/* ヘッダー */
.header-wrap {
    background-color: var(--white);
}

header {
    color: var(--green);
    font-weight: 400;
}

.header::selection {
    background-color: var(--green);
    color: var(--white);
}

main > section {
    padding-block: 32px;
    margin-block: 120px;
}

main > section:last-of-type {
    margin-bottom: 96px;
    padding-bottom: 0;
}

@media (orientation: landscape) and (min-width: 1024px) {
    main > section {
        margin-inline: auto;
        max-width: 90%;
    }

    .section-creed {
        max-width: none;
    }

    .creed-grid {
        margin: 0 auto;
        max-width: 90%;
    }
}

.section-creed::selection {
    background-color: var(--green);
    color: var(--white);
}

.section-value {
    padding-top: 0;
    margin-top: 80px;
}

:is(.creed-text, .value-text, .strength-text) > p {
    font-size: var(--font-size-normal);
    margin-bottom: 20px;
}

:is(.creed-text, .value-text, .strength-text) > p:last-child {
    margin-bottom: 0;
}

.section-strength h2 {
    font-size: var(--font-size-h1);
}

.creed-text-wrap, .value-text-wrap {
    margin: auto;
}

.sticky-title {
    position: sticky;
}

/* section-creed */
.section-creed {
    background-color: var(--white);
    color: var(--green);
    font-weight: 400;
    margin-block: 0;
    padding: 32px 0 0 0;
}

.creed-grid {
    padding-inline: clamp(16px, 5.13vw, 100px);
}

.creed-grid > * {
    min-width: 0;
}

.creed-title {
    top: calc(var(--font-size-h1) / 2.5);
}

@media (orientation: landscape) and (min-width: 1024px) {
    .creed-title > img, .overview-title > img {
        height: auto;
        width: 62px;
    }
}

/* ヒーローテキストのサイズ調整 */
.creed-large-text {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.creed-small-text {
    text-align: right;
}

.creed-large-text > .small-text {
    margin-top: 16px;
}

.creed-large-text-wrap {
    container-type: inline-size;
    font-weight: 600;
    line-height: 1.0;
}

.creed-large-text-wrap > span {
    letter-spacing: 0;
    white-space: nowrap;
    display: block;
    font-size: 21.5cqi;
}

.creed-large-text-wrap > span:nth-child(2) {
    padding-right: 1.2cqi;
}

/* /ヒーローテキストのサイズ調整 */

.creed-large-text > span {
    text-align: right;
    margin-top: 24px;
}

@media (orientation: landscape) {
    .creed-large-text > span {
        font-size: clamp(var(--font-size-smallest), 0.86vw + 5.38px, var(--font-size-small));
    }
}

/* ヒーロービジュアルのアニメーション */
.creed-large-text-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 40cqi;
    width: 40cqi;
    background-repeat: no-repeat;
    animation: bgImageLoop 2s steps(1) infinite;
}

@keyframes bgImageLoop {
    0%, 100% { background-image: url(/r/img/mv-person01.svg); }
    25% { background-image: url(/r/img/mv-person02.svg); }
    50% { background-image: url(/r/img/mv-person03.svg); }
    75% { background-image: url(/r/img/mv-person04.svg); }
}

.creed-large-text-wrap > span {
    animation: textLoop 2s steps(1) infinite;
}

@keyframes textLoop {
    0%, 100% {
        text-decoration: none;
        font-style: normal;
        text-transform: none;
    }
    25% {
        text-decoration: underline;
        font-style: italic;
        text-transform: uppercase;
    }
    50% {
        text-decoration: line-through;
        font-style: normal;
        text-transform: none;
    }
    75% {
        text-decoration: underline dashed;
        font-style: italic;
        text-transform: uppercase;
    }
}

/* /ヒーローテキストのアニメーション */

/* dividerアニメーション */
#triggerSection {
    height: 250vh;
}

.creed-container {
    overflow: clip;
}

.divider {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    justify-content: center;
    align-items: start;
    margin-top: 20vh;
}

.divider > * {
    grid-row: 1;
    grid-column: 1;
}
.animation-content {
    width: 20vw;
    height: 20vh;
    background-color: var(--green);
    will-change: transform;
}

.divider-text-wrap {
    height: 20vh;
    width: 20vw;
    margin-top: 4vh;
}

@media (orientation: landscape) {
    .divider {
        margin-top: 40vh;
    }

    .animation-content, .divider-text-wrap {
        width: 20vh;
        height: 20vw;
    }

    .divider-text-wrap {
        margin-top: 8vh;
    }
}

@media (orientation: landscape) and (min-width: 1024px) {
    .divider-text-wrap {
        margin-top: 10vh;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .divider-text-wrap {
        margin-top: 8vh;
    }
}

.rotate-text {
    transform: rotate(90deg);
    font-size: var(--font-size-normal);
    color: var(--white);
}

.scroll-percent {
    font-size: calc(0.5vh + var(--font-size-normal));
}
/* /dividerアニメーション */


/* グリッド定義 */
.creed-grid {
    display: grid;
}

.creed-title-wrap { grid-area: a; }
.creed-large-text { grid-area: b; }
.creed-text-wrap { grid-area: c; }


.creed-container {
    container-type: inline-size;
}

.creed-grid {
    grid-template-areas: 
        "b b b"
        "c . a";
    grid-template-rows: auto auto;
    row-gap: calc(100cqi * 56 / 350);
    grid-template-columns: minmax(0, 1fr) 20px max-content;
}


@media (orientation: landscape) {
    .creed-grid {
        row-gap: 0;
        grid-template-areas: "b . c . a";
        grid-template-columns: 1fr 64px 1fr 20px max-content; /* x軸のサイズ */
    }
}
/* /section-creed */


/* section-value */
.value-title-container {
    display: flex;
    container-type: inline-size;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.value-title-container > h2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100cqi;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
}

.value-title-container img {
    width: 40cqi;
    height: auto;
}

.value-title-container > h2::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90cqi;
    aspect-ratio: 1 / 1;
    content: "";
    background-image: url(/r/img/circle-title.svg);
    background-repeat: no-repeat;
    background-size: contain;
    animation: value_spiner 20s linear infinite;
}

@keyframes value_spiner {
    0% {
        transform: translate(-50.5%, -49.5%) rotate(0deg)
    }

    100% {
        transform: translate(-50.5%, -49.5%) rotate(-360deg)
    }
}

.value-container {
    display: flex;
    flex-direction: column;
    gap: calc(100cqi * 20 / 350);
}

@media (orientation: landscape) {
    .value-container {
        flex-direction: row-reverse;
        gap: 5vw;
    }
}
/* /section-value */


/* section-strength */
.section-strength h2 {
    font-weight: 100;
    line-height: 1.3;
    margin-bottom: clamp(40px, 1.31vw + 50.89px, 64px);
}

.strength-container {
    container-type: inline-size;
}

.strength-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(100cqi * 56 / 350);
}

@media (orientation: landscape) {
    .strength-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 5vw;
    }
}

.strength-container li {
    container-type: inline-size;
}

.strength-heading {
    display: flex;
    align-items: center;
    gap: 2%;
    margin-bottom: 24px;
}

.strength-heading .lottie-wrap {
    display: flex;
    align-items: center;
    width: 25%;
    aspect-ratio: 4 / 3;
}

.strength-heading .lottie-wrap > * {
    display: flex;
    align-items: center;
}

.strength-heading-inner-right {
    width: 73%;
}

.strength-heading-inner-right > p {
    font-size: clamp(var(--font-size-smallest), 3.58vw , var(--font-size-small));
}

.strength-heading-inner-right > h3 {
    font-size: var(--font-size-h2);
}

.strength-heading-divider {
    margin-inline: 8px;
    font-weight: 100;
    font-size: calc(clamp(var(--font-size-smallest), 3.58vw , var(--font-size-small)) * 0.8);
}
/* /section-strength */


/* section-overview */
.overview-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(16px, 5.13vw, 72px);
    width: 100%;
}

.overview-title-wrap {
    flex-shrink: 0;
    margin: 0;
    font-weight: 100;
}

.overview-title {
    top: calc(98.5dvh - var(--overview-title-height, 0px));
}

.overview-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.overview-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: var(--font-size-normal);
    padding: 16px 4px;
}

.overview-item > dd + dt {
    margin-top: 12px;
}

.overview-item ul {
    list-style: disc;
    /*
    list-style-position: inside;
    text-indent: calc(var(--font-size-normal) * -1);
    */
    padding-left: var(--font-size-normal);
}

@media (orientation: landscape) {
    .overview-item {
        grid-template-columns: 1fr 5fr;
        gap: 16px 8px;
        padding-block: 24px;
    }

    .overview-item > dd + dt {
        margin-top: 0;
    }
}

.overview-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--white);
    border-radius: 1px;
}

.overview-item:last-child::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--white);
    border-radius: 1px;
}

.section-overview .link-block {
    justify-content: start;
    margin-top: 12px;
}
/* /section-overview */

/* contact */
.button-link-block-outer {
    margin-bottom: 32px;
}
/* /contact */