@charset "UTF-8";

/* リニューアル版フッター（下層ページ用 / TOPは style.css に含む） */
:root {
    --font-weight-bold: 700;
    --footer-font-link: 1.3rem;
}

@media (min-width: 769px) {
    :root {
        --footer-font-link: 1.2rem;
    }
}

.pc {
    display: block;
}

.sp {
    display: none;
}

br.sp {
    display: none;
}

/* ==============================
  Project: Footer
============================== */
.p-footer {
    background: #d8d8d8;
    padding: 70px 0 40px;
}

.p-footer__inner {
    width: min(1060px, calc(100% - 80px));
    margin: 0 auto;
}

.p-footer__content {
    width: 100%;
}

.p-footer__flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    margin: 0 0 64px;
}

.p-footer__item {
    width: 150px;
}

.p-footer__item a {
    display: block;
    text-decoration: none;
}

.p-footer__item img {
    display: block;
    width: 100%;
    height: auto;
}

.p-footer-info__flex {
    display: flex;
    align-items: flex-end;
    gap: 80px;
    justify-content: space-around;
}

.p-footer-catch {
    width: 420px;
}

.p-footer-catch p {
    margin: 0 0 26px 80px;
    color: #e60012;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 18px;
}

.p-footer-catch img {
    display: block;
    width: min(360px, 100%);
    height: auto;
}

.p-footer-info-content {
    flex: 1;
    padding-top: 120px;
}

.p-footer-info-content p {
    margin: 0 0 10px;
    line-height: 1.8;
    font-size: 14px;
    color: #ff0000;
}

.p-footer-info-content a {
    color: #ff0000;
    text-decoration: none;
}

.p-footer-info-content a:hover {
    opacity: 0.7;
}

.footer {
    background-color: #d8d8d8;
    margin: auto;
    padding: 8rem 0 4.8rem;
}

.footer p {
    text-align: center;
    color: #ff0000;
    letter-spacing: 1.1px;
}

/* 追従サイドメニュー（SP: 下部横 / PC: 右縦）Group 241 / Component 1 */
.footer__group {
    position: fixed;
    z-index: 90;
}

.footer__group-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

li.footer__group-item {
    display: flex;
    flex: 1;
    position: relative;
}

li.footer__group-item:not(:last-child)::after {
    content: '';
    position: absolute;
    background: #fff;
    pointer-events: none;
}

a.footer__group-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0;
}

.footer__group-link_text {
    text-align: center;
}

img.footer__group-link_img {
    width: auto;
    height: auto;
    flex-shrink: 0;
    display: block;
}

@media (min-width: 769px) {
    .footer__group {
        top: 352px;
        right: 0;
        bottom: auto;
        width: 60px;
        height: min(43.4rem, calc(100vh - 352px));
        max-height: calc(100vh - 352px);
        overflow: hidden;
        background: transparent;
    }

    .footer__group-list {
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    li.footer__group-item {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
        align-items: stretch;
        background-color: rgba(26, 26, 26, 0.9);
        transition: background-color 0.2s ease;
    }

    @media (hover: hover) {
        li.footer__group-item:hover {
            background-color: #1a1a1a;
        }
    }

    li.footer__group-item:not(:last-child)::after {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 38px;
        height: 1px;
        z-index: 2;
    }

    a.footer__group-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(2px, calc((100vh - 352px) * 0.014), 6px);
        padding: clamp(2px, calc((100vh - 352px) * 0.023), 10px) 4px;
        font-size: var(--footer-font-link);
        line-height: 1.25;
        min-height: 0;
        height: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .footer__group-link_text {
        display: inline-flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        flex: 0 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    /* AUN #7: 資料請求の文字だけ上下中央 */
    li.footer__group-item:last-child .footer__group-link_text {
        align-items: center;
    }

    /* PC縦書き：HTMLは上→下の語順、横並びは右→左に並べる */
    li.footer__group-item:not(:last-child) .footer__group-link_text {
        flex-direction: row-reverse;
    }

    .footer__group-link_col {
        display: inline-block;
        writing-mode: vertical-rl;
        -webkit-writing-mode: vertical-rl;
        text-orientation: mixed;
        -webkit-text-orientation: mixed;
        letter-spacing: 0.12em;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        font-size: min(1.2rem, max(1rem, calc((100vh - 352px) / 30)));
    }

    img.footer__group-link_img {
        max-height: min(3.2rem, calc((100vh - 352px) / 12));
        max-width: min(3.4rem, calc((100vh - 352px) / 12));
        flex-shrink: 0;
    }
}

@media (max-width: 1024px) {
    .p-footer {
        padding: 56px 0 32px;
    }

    .p-footer__inner {
        width: min(960px, calc(100% - 48px));
    }

    .p-footer__flex {
        gap: 24px;
        margin-bottom: 52px;
    }

    .p-footer__item {
        width: 140px;
    }

    .p-footer-info__flex {
        gap: 56px;
    }

    .p-footer-catch {
        width: 380px;
    }

    .p-footer-info-content {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    br.sp {
        display: inline;
    }

    .p-footer__inner {
        width: calc(100% - 32px);
    }

    .p-footer__flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        margin-bottom: 40px;
    }

    .p-footer__item {
        width: min(44vw, 170px);
    }

    .p-footer-info__flex {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .p-footer-catch {
        width: 100%;
    }

    .p-footer-catch p {
        font-size: 16px;
        margin-bottom: 18px;
        margin-left: 80px;
    }

    .p-footer-catch img {
        width: min(360px, 100%);
    }

    .p-footer-info-content {
        padding-top: 0;
    }

    .footer {
        padding-bottom: calc(60px + 32px);
    }

    .footer__group {
        left: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 60px;
        background: transparent;
    }

    .footer__group-list {
        flex-direction: row;
        width: 100%;
        height: 60px;
    }

    li.footer__group-item {
        background-color: rgba(26, 26, 26, 0.9);
    }

    li.footer__group-item:not(:last-child)::after {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 38px;
    }

    a.footer__group-link {
        flex-direction: row;
        gap: 6px;
        padding: 0 8px;
        font-size: var(--footer-font-link);
        line-height: 1.25;
    }

    .footer__group-link_text {
        display: flex;
        flex-direction: column;
        text-align: left;
        line-height: 1.25;
    }

    .footer__group-link_col {
        writing-mode: horizontal-tb;
        letter-spacing: 0;
        white-space: normal;
    }

    img.footer__group-link_img {
        max-height: 32px;
        max-width: 34px;
    }
}

@media (max-width: 480px) {
    .p-footer {
        padding: 44px 0 28px;
    }

    .p-footer__flex {
        gap: 14px;
    }

    .p-footer__item {
        width: 47%;
    }

    .p-footer-info-content p {
        font-size: 13px;
    }
}
