@charset 'utf-8';

/* =============================================================
   フッター
   ============================================================= */
.l-footer {
    position: relative;
    background-color: var(--c-green);
    color: var(--c-white);
}

.l-footer__inner {
    padding: 128px 0 90px;
}

.l-footer__top {
    display: flex;
    justify-content: space-between;
}

.l-footer__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    padding-bottom: 10px;
}

.l-footer__logo {
    display: block;
    width: 218px;
    line-height: 0;
}

.l-footer__logo-svg {
    width: 100%;
    height: auto;
}

/* Figma は 400。1 段細く 300（2026-11-11 指示。Noto Sans JP の 300 は site.ts で読み込む） */
.l-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-left: 4px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
}

.l-footer__contact .c-arrow {
    width: 21px;
    height: 21px;
}

/* Figma：21px の丸に軸 7.7・線 1（Footer.astro の軸 11.55・線 1.5 の形を 2/3 で表示） */
.l-footer__contact .c-arrow__icon {
    width: 8.7px;
}

/* ---------- PC：列ナビ ---------- */
.l-footer__nav {
    display: flex;
    justify-content: space-between;
    flex: 1;
    margin-left: clamp(40px, 5.903vw, 85px);
}

.l-footer__group + .l-footer__group {
    margin-top: 22px;
}

.l-footer__group-head {
    display: flex;
    flex-direction: column;
}

/* 英字は緑。英字・和文とも Figma は 500 だが見た目が太いので 1 段細く（2026-11-10 指示） */
.l-footer__group-en {
    padding-left: 2px;
    font-family: var(--ff-en);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.22;
    color: var(--c-green-light);
}

/* 行の高さは 16px 時代の 32px のまま（下の一覧の位置を変えない）。文字はデザインどおり少し上 */
.l-footer__group-ja {
    position: relative;
    top: -4px;
    font-family: var(--ff-head);
    font-size: 15px;
    font-weight: 400;
    line-height: calc(32 / 15);
}

.l-footer__list {
    margin-top: 8px;
}

.l-footer__link {
    display: inline-block;
    white-space: nowrap;
    font-size: 13px;
    line-height: 2.46;
    /* SP のメニュー・フッターの子リンクとそろえて白寄りに（2026-11-26 指示。それまでは --c-green-light） */
    color: var(--c-green-pale);
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat;
    transition: color .3s, background-size .4s var(--ease-out);
}

.l-footer__list--en .l-footer__link {
    font-family: var(--ff-en);
    font-size: 15px;
    line-height: 2.13;
    letter-spacing: .05em;
}

@media (any-hover: hover) {
    .l-footer__link:hover {
        color: var(--c-white);
        background-size: 100% 1px;
    }
}

/* ---------- 下部 ---------- */
/* Figma：規約リンクは線の 26px 下、コピーライトはそれより 5px 下 */
.l-footer__bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--c-green-light);
}

.l-footer__copy {
    flex-shrink: 0;
    margin-top: 5px;
    font-family: var(--ff-en);
    font-size: 12px;
    line-height: 1.22;
    color: var(--c-green-light);
}

.l-footer__copy small {
    font-size: inherit;
}

.l-footer__acc,
.l-footer__totop {
    display: none;
}

/* =============================================================
   768〜1199px：列ナビが収まらないため、ロゴの下に全幅で並べる
   ============================================================= */
@media screen and (min-width: 768px) and (max-width: 1199.98px) {
    .l-footer__top {
        flex-direction: column;
        gap: 56px;
    }

    .l-footer__brand {
        flex-direction: row;
        align-items: flex-end;
        padding-bottom: 0;
    }

    .l-footer__nav {
        gap: 24px;
        margin-left: 0;
    }
}

/* =============================================================
   SP
   ============================================================= */
@media screen and (max-width: 767.98px) {
    .l-footer__inner {
        width: 100%;
        padding: calc(64 * var(--u)) 0 calc(34 * var(--u));
    }

    .l-footer__top {
        flex-direction: column;
    }

    .l-footer__brand {
        padding: 0 0 0 calc(31 * var(--u));
    }

    .l-footer__logo {
        width: calc(218 * var(--u));
    }

    .l-footer__contact,
    .l-footer__nav {
        display: none;
    }

    .l-footer__acc {
        display: block;
        margin-top: calc(61 * var(--u));
    }

    .l-footer__bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: calc(31 * var(--u));
        padding: 0 calc(28 * var(--u));
        border-top: 0;
    }

    .l-footer__totop {
        display: inline-flex;
        align-items: center;
        gap: calc(13 * var(--u));
        justify-self: end;
        margin-top: calc(34 * var(--u));
        margin-right: calc(-13 * var(--u));
        font-family: var(--ff-en);
        font-size: calc(12 * var(--u));
        line-height: 1.22;
        letter-spacing: .02em;
    }

    /* 上向き矢印 */
    .l-footer__totop-icon {
        position: relative;
        width: calc(13 * var(--u));
        height: calc(11 * var(--u));
    }

    .l-footer__totop-icon::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 1px;
        height: 100%;
        background-color: currentColor;
    }

    .l-footer__totop-icon::after {
        content: "";
        position: absolute;
        top: calc(1 * var(--u));
        left: 50%;
        width: calc(8 * var(--u));
        height: calc(8 * var(--u));
        border-top: 1px solid currentColor;
        border-left: 1px solid currentColor;
        transform: translateX(-50%) rotate(45deg);
        transform-origin: center;
        margin-left: .5px;
    }

    .l-footer__copy {
        justify-self: center;
        margin-top: calc(31 * var(--u));
        font-size: calc(12 * var(--u));
    }
}
