/* =========================================
   100年のあゆみ アーカイブページ
   ========================================= */

.h100-history {
    --h100-main-color: #A24CB8;
    --h100-sub-color: #EFEAEF;
    font-family: "Noto Sans JP", sans-serif;
    padding-bottom: 40px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.h100-history * {
    box-sizing: border-box;
}

.h100-history #topic-path {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

/* KV
----------------------------------------- */
.h100-kv {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 786;
    overflow: hidden;
}
@supports not (aspect-ratio: 1440 / 786) {
    .h100-kv::before {
        content: '';
        display: block;
        padding-top: calc(786 / 1440 * 100%);
    }
}
.h100-kv__bg {
    position: absolute;
    inset: 0;
    background: #000;
}
.h100-kv__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
}
.h100-kv__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.h100-kv__title {
    font-size: 4rem !important;
    font-weight: bold;
    margin: 0 0 32px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    font-family: "Noto Serif JP", serif;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.h100-kv__text {
    font-size: 1.25rem;
    margin: 0 auto;
    letter-spacing: 0.05em;
    line-height: 1.7;
    max-width: 712px;
    font-family: "Noto Serif JP", serif;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
@media screen and (max-width: 820px) {
    .h100-kv__title {
        font-size: 2.2rem !important;
        margin: 0 0 24px;
    }
    .h100-kv__text {
        font-size: 1rem;
    }
}
@media screen and (max-width: 736px) {
    .h100-kv__content {
        top: 45%;
        transform: translateY(-50%);
    }
    .h100-kv {
        aspect-ratio: 390 / 606;
    }
}

/* Scroll indicator
----------------------------------------- */
.h100-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #fff;
}
.h100-scroll__line {
    width: 1px;
    height: 85px;
    position: relative;
    overflow: hidden;
}
.h100-scroll__line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: h100ScrollLine 1.8s ease-in-out infinite;
}
@keyframes h100ScrollLine {
    0%   { top: -100%; }
    100% { top: 100%; }
}
.h100-scroll__text {
    writing-mode: vertical-rl;
    font-size: 0.875rem;
    font-family: "Archivo Narrow", sans-serif;
    font-weight: 500;
    padding-left: 5px;
    padding-top: 27px;
    letter-spacing: 0.16em;
    line-height: 1.5;
}
@media screen and (max-width: 736px) {
    .h100-scroll__text {
        font-size: 0.75rem;
        padding-top: 35px;
    }
}

/* Categories
----------------------------------------- */
.h100-categories {
    padding: 80px 20px 60px;
}
.h100-categories__title {
    text-align: center;
    font-size: 2rem !important;
    font-family: "Archivo Narrow", sans-serif;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
    padding-bottom: 10px !important;
    margin-bottom: 40px !important;
    position: relative;
    border-bottom: 0 !important;
}
.h100-categories__title:after {
    content: "";
    background-color: var(--h100-main-color);
    width: 57px;
    height: 2px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}
.h100-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 50px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.h100-categories__item {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}
.h100-categories__icon {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

@media screen and (max-width: 736px) {
    .h100-categories {
        padding: 80px 24px 60px;
    }
    .h100-categories__title {
        font-size: 1.5rem !important;
    }
    .h100-categories__list {
        margin: 0 auto;
        gap: 32px 10px;
        max-width: 380px;
        display: grid;
	    grid-template-columns: 55fr 45fr;
    }
    .h100-categories__icon {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Year nav dropdown
----------------------------------------- */
.h100-year-nav {
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 20;
    display: inline-block;
    background-color: var(--h100-sub-color);
    width: 100%;
    padding: 20px;
}
.h100-year-nav__toggle {
    cursor: pointer;
    position: relative;
    background-color: var(--h100-main-color);
    border: none;
    color: #fff;
    padding: 10px 20px;
    min-width: 285px;
    border-radius: 50px;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.h100-year-nav__toggle-label {
    margin: 0 auto;
}
.h100-year-nav__toggle::after {
    content: '';
    display: inline-block;
    position: absolute;
    right: 20px;
    width: 32px;
    height: 16px;
    background: url('../../images/history-100th/icon-arrow.svg') no-repeat center / contain;
    /* transition: transform 0.3s ease; */
}
.h100-year-nav__toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.h100-year-nav__list {
    position: absolute;
    top: calc(100% - 15px);
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    margin: 0;
    padding: 16px 10px;
    z-index: 100;
    min-width: 285px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.15);
    max-height: 0;
    opacity: 0;
    transition: max-height .3s ease, opacity .3s ease;
}
.h100-year-nav__list.is-open {
    opacity: 1;
    overflow-y: auto;
    max-height: min(var(--h100-list-content-height, 0px), calc(100svh - var(--h100-year-nav-height, 0px)));
}
.h100-year-nav__link {
    display: block;
    white-space: nowrap;
    text-decoration: none;
    padding: 10px 0;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--h100-main-color) !important;
    transition: all 0.3s;
}
.h100-year-nav__link:hover {
    opacity: 0.6;
}
.h100-year-nav__item:not(:last-child) .h100-year-nav__link {
    border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 736px) {
    .h100-year-nav__toggle {
        font-size: 1.25rem;
    }
    .h100-year-nav__link {
        font-size: 1.25rem;
    }
    .h100-year-nav__toggle::after {
        width: 28px;
        height: 14px;
    }
}

/* Timeline
----------------------------------------- */
.h100-timeline {
    max-width: 100%;
    margin: 0 auto;
    padding: 50px 80px;
}
.h100-timeline__inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}
.h100-timeline__item {
    display: grid;
    grid-template-columns: 120px 70px 1fr;
    scroll-margin-top: calc(var(--h100-year-nav-height, 0px) + 20px);
}
.h100-timeline__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.h100-timeline__year {
    font-size: 2.625rem;
    color: var(--h100-main-color);
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin: 0 0 12px;
    align-self: flex-start;
    font-family: "Archivo Narrow", sans-serif;
}
.h100-timeline__cat-icon {
    position: absolute;
    left: calc(-70px - 120px);
    top: 0;
    width: 120px;
    height: 40px;
    object-fit: contain;
    object-position: right;
}
.h100-timeline__connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 24px;
}
.h100-timeline__dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--h100-main-color);
    flex-shrink: 0;
}
.h100-timeline__line {
    flex: 1;
    width: 2px;
    background: var(--h100-main-color);
    min-height: 24px;
}
.h100-timeline__right {
    padding-bottom: 48px;
}
.h100-timeline__item:last-child .h100-timeline__right {
    padding-bottom: 0;
}
.h100-timeline__content {
    font-weight: 700;
    margin: 0 0 40px;
    color: var(--h100-main-color);
    line-height: 1.75;
    font-size: 1.25rem;
}
.h100-timeline__content p:first-child {
    margin: 0 !important;
    padding: 14px 0;
}
.h100-timeline__module {
    position: relative;
    width: 100%;
}
.h100-timeline__module--has-img {
    display: grid;
    grid-template-columns: 1fr 42%;
    gap: 0 46px;
    align-items: flex-start;
    max-width: 100%;
}
.h100-timeline__module--has-img .h100-timeline__module-img {
    grid-column: 2;
    grid-row: 1 / 4;
    min-height: 0;
    height: 100%;
    object-fit: cover;
}
.h100-timeline__module-body {
    flex: 1;
    min-width: 0;
    width: 100%;
    font-size: 1rem;
}
.h100-timeline__module-img {
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}
.h100-timeline__module-img img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}
.h100-timeline__lead {
    margin: 0 0 20px !important;
    line-height: 1.75;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 3px 0 6px;
    font-size: 1rem;
}
.h100-timeline__focus-row {
    border: 2px solid var(--h100-main-color);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.h100-timeline__focus-icon {
    font-size: 0.875rem;
    color: var(--h100-main-color);
    background-color: var(--h100-sub-color);
    border-radius: 100px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-family: "Archivo Narrow", sans-serif;
    padding: 0 10px;
}
.h100-timeline__focus-body {
    flex: 1;
}
.h100-timeline__focus-title {
    margin: 4px 0 0 !important;
    color: var(--h100-main-color);
    line-height: 1.75;
    font-weight: 700;
    font-size: 1rem !important;
    font-family: "Noto Sans JP", sans-serif !important;
}
.h100-timeline__focus-text {
    margin: 10px 0 0 !important;
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.h100-timeline__focus-img {
    width: 160px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}
.h100-timeline__section + .h100-timeline__section {
    margin-top: 40px;
}

@media screen and (max-width: 736px) {
    .h100-timeline {
        padding: 60px 24px;
    }
    .h100-timeline__connector {
        display: none;
    }
    .h100-timeline__item {
        display: block;
    }
    .h100-timeline__year {
        font-size: 2.375rem;
        line-height: 1;
        margin-bottom: 12px !important;
    }
    .h100-timeline__content {
        font-size: 1rem;
        margin: 0 0 26px;
    }
    .h100-timeline__content p:first-child {
        margin: 0 !important;
        padding: 0;
    }
    .h100-timeline__module--has-img {
        display: flex;
        flex-direction: column;
    }
    .h100-timeline__module-img {
        order: 1;
        width: 100%;
    }
    .h100-timeline__module-body {
        order: 2;
    }
    .h100-timeline__cat-icon {
        width: 32px !important;
        height: 32px !important;
        left: 0;
    }
    .h100-timeline__lead {
        padding-left: 46px;
        padding-bottom: 0;
        margin-bottom: 0 0 16px !important;
        padding-top: 0;
    }
    .h100-timeline__section:last-child .h100-timeline__module:not(.h100-timeline__module--has-img) .h100-timeline__lead {
        margin-bottom: 0 !important;
    }
    .h100-timeline__right {
        padding-bottom: 60px;
    }
    .h100-timeline__section + .h100-timeline__section {
        margin-top: 0px;
    }
    .h100-timeline__focus-row {
        padding: 20px 16px;
        margin-top: 16px;
    }
    .h100-timeline__focus-title {
        font-size: 0.875rem;
        margin: 0 0 20px !important;
    }
}

/* More button & Modal
----------------------------------------- */
.h100-more-btn {
    cursor: pointer;
    margin-top: 17px;
    background-color: var(--h100-main-color);
    color: #fff;
    font-family: "Archivo Narrow", sans-serif;
    line-height: 1.5;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 100px;
    max-width: 178px;
    width: 100%;
    border: none;
    margin-left: auto;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.17);
}
.h100-modal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.h100-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.h100-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}
.h100-modal__content {
    position: relative;
    background: #fff;
    max-width: 1073px;
    width: 100%;
    margin: auto;
    padding: 40px 60px;
    z-index: 1;
    border: 2px solid var(--h100-main-color);
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.75;
    letter-spacing: 0.05em;
}
.h100-modal__close {
    display: block;
    margin: 40px auto 0;
    cursor: pointer;
    background-color: var(--h100-main-color);
    color: #fff;
    font-family: "Archivo Narrow", sans-serif;
    line-height: 1.5;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 100px;
    max-width: 178px;
    width: 100%;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.17);
}
.h100-modal__child-content {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}
.h100-modal__child-text {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.05em;
}
.h100-modal__child-img {
    width: 37%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px;
    vertical-align: bottom;
}
.h100-modal__child + .h100-modal__child {
    margin-top: 50px;
}
h3.h100-modal__child-title {
    margin: 0 0 16px;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.75 !important;
    color: var(--h100-main-color);
    font-family: "Noto Sans JP", sans-serif;
}
.h100-modal__focus-wrap {
    text-align: center;
    margin-bottom: 30px;
}
.h100-modal__focus-icon {
    font-size: 1.25rem;
    color: var(--h100-main-color);
    background-color: var(--h100-sub-color);
    border-radius: 100px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-family: "Archivo Narrow", sans-serif;
    padding: 0 10px;
}

@media screen and (max-width: 736px) {
    .h100-more-btn {
        margin: 30px auto 0;
    }
    .h100-modal__focus-icon {
        padding: 2px 10px;
    }
    .h100-modal__focus-wrap {
        margin-bottom: 20px;
    }
    .h100-modal__content {
        padding: 32px 16px;
    }
    .h100-modal__child-content {
        display: block;
    }
    h3.h100-modal__child-title {
        font-size: 0.875rem !important;
        line-height: 1.7 !important;
    }
    .h100-modal__child-text {
        font-size: 0.875rem;
    }
    .h100-modal__child-img {
        margin-top: 16px;
    }
    .h100-modal__child + .h100-modal__child {
        margin-top: 40px;
    }
    .h100-modal__close {
        margin: 20px auto 0;
    }
}