/* common */
#nav-dock,
.footer-container {
    display: none !important;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    font:
        16px / 1.7 Helvetica,
        Helvetica Neue,
        Arial;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.wrapper a {
    color: inherit;
    transition: opacity 0.1s ease;
}
.wrapper a:hover {
    color: inherit;
    opacity: 0.8;
}

.dib {
    display: inline-block;
}

.ff_serif {
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

@media screen and (max-width: 767px) {
    .d_for_pc {
        display: none;
    }
}
@media screen and (min-width: 768px) {
    .d_for_sp {
        display: none;
    }
}

/* animation */
.fade-in-element {
    opacity: 0;
    transition: opacity 1s ease-out;
}
.fade-in-element.is-visible {
    opacity: 1;
}

/* header */
#header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px 0;
    height: 78px;
    /* margin-bottom: 30px; */
    padding: 23px 20px 0;
}
#header .h_title {
    margin: 0 50px 0 0;
    font-weight: bold;
    font-size: 24px;
    line-height: 1.3;
    /* white-space: nowrap; */
}
#header .h_navi_wrap {
    order: 3;
    height: auto;
}
#header .h_navi {
    display: flex;
    gap: 40px;
}
#header .h_navi a {
    display: block;
    padding: 6px 3px;
    color: #333;
}
#header .h_navi a:hover {
    opacity: 1;
    color: #e6001b;
}
#header .h_navi a.active {
    border-bottom: 2px solid #e6001b;
    color: #e6001b;
}
#header .logo_area {
    display: none;
    /* width: 80px; */
    margin-left: auto;
}
/* ハンバーガーメニューボタン */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    position: absolute;
    left: 8px;
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}
.hamburger span:nth-child(1) {
    top: 10px;
}
.hamburger span:nth-child(2) {
    top: 19px;
}
.hamburger span:nth-child(3) {
    top: 28px;
}

/* ハンバーガーメニュー開いた状態 */
.hamburger.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

/* スライドインメニュー */
.sp_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}
.sp_menu.active {
    pointer-events: auto;
}

/* オーバーレイ */
.sp_menu_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sp_menu.active .sp_menu_overlay {
    opacity: 1;
}

/* メニューコンテンツ */
.sp_menu_content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    background: #f2f2f2;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}
.sp_menu.active .sp_menu_content {
    transform: translateY(0);
}

.sp_menu_title {
    padding: 20px 20px 0;
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
}

/* メニューリスト */
.sp_menu_list {
    display: block;
    list-style: none;
    padding: 32px 5% 30px;
    margin: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.sp_menu_list > li + li {
    margin-top: 15px;
}

.sp_menu_list > li > a,
.sp_menu_list > li > span,
.sp_submenu > li > a {
    display: block;
    position: relative;
    padding: 5px 10px 5px 30px;
}

/* サブメニュー */
.sp_submenu {
    display: block;
    margin-left: 20px;
}
.sp_menu_list > li > a:before,
.sp_submenu > li > a:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 6px;
    height: 6px;
    margin: auto;
    border: 1px solid #e6001b;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
}
.sp_menu_list > li > a:hover,
.sp_submenu > li > a:hover {
    opacity: 1;
    color: #e6001b;
}

@media screen and (min-width: 768px) {
    #header {
        align-items: center;
        flex-wrap: nowrap;
        height: auto;
        margin-bottom: 0px;
        padding: 40px min(4%, 66px) 0 min(4%, 57px);
    }
    #header .h_title {
        flex: 0 0 auto;
        font-size: 21px;
    }
    #header .h_navi_wrap {
        order: inherit;
        margin-right: 30px;
        white-space: nowrap;
    }

    .sp_menu {
        display: none;
    }
}
@media screen and (min-width: 1024px) {

    #header .h_title {
        margin-right: 74px;
        font-size: 28px;
    }
    #header .logo_area {
        display: block;
        width: 132px;
    }

}

/* footer */
.footer {
    padding: 40px 0 60px;
    text-align: center;
}
.footer > .inner {
    width: 90%;
    margin: auto;
}

.footer .logo_area {
    width: 60%;
    max-width: 130px;
    margin: 0 auto;
}

/* __  link_list */
.footer .link_list {
    display: flex;
    justify-content: space-around;
    max-width: 346px;
    margin: 40px auto;
}
.footer .link_list > li {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
}

.footer .link_list a {
    color: #333;
}
.footer .link_list .ico_blank:after {
    content: "";
    display: inline-block;
    vertical-align: text-top;
    width: 14px;
    height: 14px;
    margin-left: 7px;
    background: url(../images/ico_blank.svg) no-repeat center / contain;
}

.footer .copyright {
    font-size: 16px;
}

/* page_title */
.page_title {
    margin: 50px 0 40px;
    text-align: center;
    font-size: 20px;
}
.page_title .page_title_sub {
    display: block;
    line-height: 1.4;
    font-size: 0.44em;
    color: #999;
}


/* history_title */
.history_title {
    margin: 0;
    padding: 27px 10px;
    background: #e6001b;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    line-height: 1.4;
    color: #fff;
}

/* history_navi */
.history_navi {
    height: auto;
}
.history_navi ul {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin: auto;
}
.history_navi ul li {
    flex: 1 1 300px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    line-height: 1;
}
.history_navi ul li:last-child {
    flex-basis: 400px;
}
.history_navi li a {
    display: block;
    /* padding: 17px; */
    padding: 17px 0;
    font-weight: bold;
    /* font-size: 25px; */
    /* font-size: 18px; */
    font-size: 14px;
    color: #999999;
    transition: background 0.1s ease;
}

.history_navi li a:hover,
.history_navi li a.current {
    opacity: 1;
    background: #e6001b;
    color: #fff;
}
.history_navi.is_after {
    border-top: 5px solid #e6001b;
}
.history_navi.is_after ul {
    border-bottom: 1px solid #c9c9c9;
    padding-bottom: 40px;
}

/* block */
.block {
    background: #f2f2f2;
}
.block .block_inner {
    display: flex;
    /* max-width: 1920px; */
    max-width: 1840px;
    margin: 0 auto;
    padding: 50px clamp(20px, 4%, 90px) 0 0;
}

.block .content_area {
    flex: 1 1 auto;
    padding-bottom: 5px;
}
.block .content_area .img_area {
    margin-bottom: 20px;
}
.block .content_area .img_area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.block .content_area .info_area {
    display: flex;
    align-items: flex-start;
    flex-direction: column-reverse;
    z-index: 1;
}
.block .content_area .info_area .text_area {
    flex: 0 1 auto;
    padding: 6% 6%;
    background: #fff;
    box-shadow: 10px 10px 42px #00000021;
    font-size: 14px;
    line-height: 3.1;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
.block .content_area .info_area .text_area .text_inner {
    background: repeating-linear-gradient(#fff0 0, #fff0 42.4px, #eee 42.4px, #eee 43.4px);
    /* font-family: "Noto Serif JP", serif; */
}
.block .content_area .info_area .title_area {
    flex: 0 1 auto;
    width: 100%;
}
.block .content_area .info_area .title_area .title_main {
    font-weight: bold;
    /* font-size: 36px; */
    font-size: 25px;
    line-height: 1.2;
}
.block .content_area .info_area .title_area .title_sub {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}
.block .content_area .info_area .title_area .title_img {
    margin: 0 auto 30px;
}

/* year_area */
.year_area {
    display: flex;
    align-items: baseline;
    flex-direction: column;
    /* margin-bottom: 25px; */
    padding: 0 1% 0 20px;
    text-align: center;
    line-height: 1;
}
.year_area .year {
    margin-left: -6px;
    writing-mode: sideways-rl;
    font-weight: bold;
    font-size: 40px;
    color: #e6001b;
}
.year_area .era_name {
    text-orientation: upright;
    writing-mode: vertical-lr;
    margin-top: 14px;
    font-size: 14px;
    height: 5em;
}
.year_area .era_name .num {
    writing-mode: horizontal-tb;
    vertical-align: bottom;
    white-space: nowrap;
}
.year_area .line {
    flex: 1 1 auto;
    position: relative;
    width: 2px;
    margin-top: 14px;
    background: #e6001b;
}
.year_area .line:before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border-radius: 10px;
    background: #e6001b;
    transform: translateX(-50%);
}
.year_area .line.is_not_circle:before {
    content: none;
}

@media screen and (min-width: 768px) {
    .page_title {
        margin-top: 26px;
        margin-bottom: 40px;
        letter-spacing: 3px;
        font-size: 36px;
    }

    .history_navi ul {
        gap: 40px;
        width: 95%;
    }
    .history_navi li a {
        padding: 22px 0;
        font-size: 18px;
    }

    .year_area {
        align-items: center;
        padding-left: 2%;
        /* padding-right: 2%; */
    }
    .year_area .year {
        font-size: min(9vw, 100px);
        margin-left: 0;
        transform: translateX(7px);
    }
    .year_area .era_name {
        font-size: 21px;
    }

    .block .content_area {
        padding-bottom: 70px;
    }
    .block .content_area .img_area {
        margin-bottom: 40px;
    }
    .block .content_area .img_area img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .block .content_area .info_area .text_area {
        padding: min(5%, 70px) min(calc(13% - 70px), 100px) min(6%, 78px);
    }
}
@media screen and (min-width: 1024px) {
    .history_title {
        padding-top: 39px;
        padding-bottom: 39px;
        font-size: 38px;
    }

    .block .content_area .info_area .title_area .title_main {
        font-size: 45px;
    }
    .block .content_area .info_area .title_area .title_sub {
        font-size: 23px;
    }
    .block .content_area .info_area .title_area .title_img {
        margin-bottom: 0;
        margin-left: 0;
    }
    .block .content_area .info_area .text_area {
        font-size: 16px;
    }
    .block .content_area .info_area .text_area .text_inner {
        background: repeating-linear-gradient(#fff0 0, #fff0 48.6px, #eee 48.6px, #eee 49.6px);
    }
}

/* 個別 */
/* type01 */
.block.type01 .block_inner {
    padding-top: 20px;
}
.block.type01 .content_area .img_area {
    height: 300px;
}
.block.type01 .content_area .info_area .title_area .title_img {
    max-width: 400px;
}

/* type03 */
.block.type03 .block_inner {
    padding-top: 52px;
}
.block.type03 .content_area .info_area .title_area .title_img {
    max-width: 400px;
}

/* type04 */
.block.type04 .content_area .info_area .title_area .title_img {
    max-width: 270px;
}

/* type05 */
.block.type05 .content_area .img_area {
    height: 400px;
}

.block.p1-2 .content_area .info_area .title_area .title_img {
    width: 40%;
    margin-left: auto;
}

.block.p2-2 .content_area .info_area .title_area .title_sub {
    margin-bottom: 45px;
}
.block.p2-2 .content_area .info_area .title_area .title_img {
    width: 200px;
    margin-bottom: 50px;
    margin-left: 30px;
}

.block.p3-3 .content_area {
    padding-bottom: 70px;
}

/* top */
.block.top {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 860px;
    background: url(../images/bg_top_sp.jpg) no-repeat right 26% bottom / cover;
}
.block.top .block_inner {
    flex: 1 1 auto;
    width: 100%;
    align-items: flex-start;
    padding-top: 0;
    padding-right: calc(60px + 1%);
}

.block.top .year_area .year,
.block.top .year_area .era_name {
    color: #fff;
}
.block.top .year_area {
    padding-right: 2%;
}
.block.top .year_area .line {
    height: 120px;
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: #fff;
}
.block.top .year_area .line:before {
    background-color: #fff;
}

.top .name_area {
    flex: 1 1 auto;
    padding-top: 50px;
    text-align: center;
}
.top .name_area .img {
    width: 80%;
    max-width: 180px;
    margin: auto;
}
.top .name_area .info {
    display: inline-block;
    margin-top: 40px;
    text-align: left;
}
.top .name_area .info .post {
    margin-right: 1.2em;
    font-size: 17px;
}
.top .name_area .info .name {
    font-size: 21px;
}
.top .name_area .info .furigana {
    vertical-align: text-bottom;
    font-size: 12px;
}

.top .name_area .info .history {
    position: relative;
    margin-top: 1.1em;
    padding-left: 5em;
    font-size: 14px;
    line-height: 2em;
}
.top .name_area .info .history .year {
    position: absolute;
    left: 0;
}

/* last */
.block.last {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 600px;
    background: url(../images/img_history3_4_01.jpg) no-repeat right 43% bottom / cover;
}
.block.last .block_inner {
    width: 100%;
    height: 100%;
    padding-top: 0;
    padding-right: calc(54px + 1%);
}
.block.last .year_area {
    align-self: flex-start;
}
.block.last .year_area .line {
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 90px;
}
.block.last .content_area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding-top: 160px; */
    text-align: center;
    line-height: 2;
}
.block.last .content_area .text01 {
    font-size: 18px;
}
.block.last .content_area .text02 {
    font-weight: bold;
    font-size: 18px;
}
.block.last .content_area .text03 {
    margin-top: 13px;
    font-weight: bold;
    font-size: 28px;
    line-height: 1.6;
}
.block.last .content_area .next_button_area {
    width: 100%;
    margin-top: 72px;
}
.block.last .content_area .next_button_area .button {
    display: block;
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid #e6001b;
    border-radius: 5px;
    background: #fffe;
    font-size: 14px;
    color: #e6001b;
    box-shadow: 3px 3px 1px #0000001f;
}
/* .block.last .content_area .next_button_area .button02 {
    display: block;
    width: 100%;
    max-width: 230px;
    margin: auto;
    padding: 6px 8px 10px;
    border-radius: 5px;
    background: #000 url(../images/img_btn_bg.png) no-repeat left -46% top 8px / auto 100%;
    font-size: 14px;
    color: #fff;
    box-shadow: 3px 3px 1px #0000001f;
}
.block.last .content_area .next_button_area .button02 .sub_title {
    display: block;
    line-height: 1.2;
    font-size: 0.75em;
} */

.block.last .notes_area {
    background: #fff;
}
.block.last .notes_area .block_inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: auto;
    padding: 33px 0;
    font-size: 14px;
}

/* button_area */
.block.button_area .block_inner {
    text-align: center;
    padding: 50px 0 80px;
}
.block.button_area .button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px 30px;

    width: 90%;
    margin: auto;
    padding: 19px;
    padding: 20px 19px 26px;
    border: 1px solid #e6001b;
    border-radius: 5px;
    background: #fff;
    color: #e6001b;
}
.block.button_area .button .button_info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.block.button_area .button .button_info .year {
    vertical-align: -7px;
    white-space: nowrap;
    font-size: 35px;
    line-height: 1;
    font-weight: bold;
}
.block.button_area .button .button_info .img {
    pointer-events: none;
}

.mov_message video {
    width: 100%;
    height: 100%;
    background: #000;
}

/* read */
.read_message {
    background: linear-gradient(180deg, #000000, #2e2e2e);
    text-align: center;
}
.read_message .inner {
    padding: 40px 0 130px;
}
.read_message .inner .text {
    display: inline-block;
    margin: auto;
    text-align: left;
    letter-spacing: 3px;
    font-size: 15px;
    line-height: 3.93;
    color: #fff;
}

@media screen and (min-width: 600px) {
    .mov_message {
        position: relative;
        height: 100vh;
        max-height: 1000px;
    }
    .mov_message video {
        position: absolute;
        width: 100%;
        top: 0;
        bottom: 0;
        margin: auto;
    }

    .read_message .inner {
        padding-top: 22px;
        padding-bottom: 149px;
    }
    .read_message .inner .text {
        font-size: 21px;
        line-height: 3;
    }
} /* screen and (min-width: 600px) */

@media screen and (min-width: 768px) {
    .block.type01 .block_inner {
        padding-top: 115px;
    }
    .block.type01 .content_area .img_area {
        height: auto;
    }
    .block.type01 .content_area .info_area {
        flex-direction: row;
        margin-left: -60px;
    }
    .block.type01 .content_area .info_area .title_area {
        flex: 0 1 400px;
    }
    .block.type01 .content_area .info_area .text_area {
        flex: 0 1 790px;
        max-width: 790px;
        margin: -90px calc(10% - 60px) 0 6%;
    }

    .block.type03 .content_area .info_area {
        flex-direction: row-reverse;
        justify-content: space-around;
        margin-left: -20px;
    }
    .block.type03 .content_area .info_area .title_area {
        flex-basis: 490px;
    }
    .block.type03 .content_area .info_area .text_area {
        flex-basis: 790px;
        max-width: 790px;
        margin: -90px 1% 0 4%;
    }

    .block.type04 .content_area .info_area {
        flex-direction: row;
    }
    .block.type04 .content_area .info_area .text_area {
        flex: 0 1 790px;
        max-width: 790px;
    }
    .block.type04 .content_area .info_area .title_area {
        flex-basis: 600px;
    }
    .block.type04 .content_area .info_area .title_area .title_sub {
        margin-top: 14px;
    }

    .block.type05 .content_area {
        display: flex;
    }
    .block.type05 .content_area .img_area {
        flex: 0 1 50%;
        max-width: 630px;
        height: auto;
        margin-bottom: 0;
    }
    .block.type05 .content_area .info_area {
        flex: 1 1 50%;
        flex-direction: column;
        padding-right: 3%;
    }
    .block.type05 .content_area .info_area .text_area {
        margin-top: 7%;
        margin-left: -13%;
        padding-left: min(calc(20% - 40px), 100px);
        padding-right: min(calc(20% - 40px), 100px);
    }
    .block.type05 .content_area .info_area .title_area {
        margin-top: 6%;
        padding-left: calc(-60px + 25%);
    }
    .block.type05 .content_area .info_area .title_area .title_img {
        max-width: 644px;
    }

    .block.type06 .content_area {
        display: flex;
        flex-direction: row-reverse;
    }
    .block.type06 .content_area .img_area {
        flex: 0 1 50%;
        max-width: 750px;
        margin-bottom: 0;
    }
    .block.type06 .content_area .info_area {
        flex: 1 1 50%;
        flex-direction: column;
        padding-left: 3%;
    }
    .block.type06 .content_area .info_area .text_area {
        max-width: 1000px;
        margin-right: -13%;
        margin-top: 7%;
        padding-left: min(calc(20% - 40px), 100px);
        padding-right: min(calc(20% - 40px), 100px);
    }
    .block.type06 .content_area .info_area .title_area {
        margin-top: 6%;
        padding-right: 10px;
    }
    .block.type06 .content_area .info_area .title_area .title_img {
        max-width: 400px;
    }

    .block.p1-2 .content_area .info_area .title_area .title_sub {
        margin-bottom: 50px;
    }
    .block.p1-2 .content_area .info_area .title_area .title_img {
        width: 70%;
    }

    .block.p1-2 .content_area .info_area .text_area {
        margin: -90px 5% 0 calc(10% - 90px);
    }

    .block.p2-2 .content_area .info_area .text_area {
        margin: -90px calc(12% - 60px) 0 calc(7% - 70px);
    }
    .block.p2-2 .content_area .info_area .title_area .title_img {
        width: 60%;
        margin-left: 0;
        margin-bottom: 0;
    }

    .block.p2-3 .content_area .info_area .text_area {
        margin-right: -25%;
    }

    .block.p3-2 .content_area .info_area .text_area {
        margin-right: -17%;
    }

    .block.top {
        max-height: 1000px;
        min-height: 800px;
        background-image: url(../images/bg_top.jpg);
        background-position: center bottom;
    }

    .top .name_area {
        flex: 0 0 auto;
        align-self: center;
        margin: auto;
        padding-right: 20%;
    }
    .top .name_area .img {
        max-width: 360px;
    }
    .top .name_area .info {
        margin-top: 122px;
    }
    .top .name_area .info .post {
        font-size: 25px;
    }
    .top .name_area .info .name {
        font-size: 30px;
    }
    .top .name_area .info .furigana {
        font-size: 16px;
    }
    .top .name_area .info .history {
        font-size: 16px;
    }

    .block.last {
        background-position: center bottom;
    }

    .block.last .content_area .text01 {
        font-size: 23px;
    }
    .block.last .content_area .text02 {
        margin-top: 14px;
        font-size: 23px;
    }
    .block.last .content_area .text03 {
        font-size: 40px;
    }
    /* .block.last .content_area .next_button_area {
        margin-top: 116px;
    } */
    .block.last .content_area .next_button_area .button {
        max-width: 380px;
        /* margin-top: 40px; */
        padding: 23px;
        font-size: 16px;
    }
    /* .block.last .content_area .next_button_area .button02 {
        max-width: 380px;
        padding: 12px 23px 21px;
        background-position: left -144% top 7px;
        background-size: auto 165%;
        font-size: 16px; */
    }

    .block.last .notes_area .block_inner {
        width: 95%;
        text-align: center;
        font-size: 16px;
    }

    .block.button_area .block_inner {
        padding: 30px 0 100px;
    }
    .block.button_area .button {
        width: 95%;
    }
    .block.button_area .button .year {
        font-size: 40px;
    }
}
