/* =========================================================
   tORu GLOBAL FOOTER
   /assets/toru-footer.css
========================================================= */

#toru-global-footer {
    --toru-ink: #171716;
    --toru-paper: #f7f6f1;

    --toru-muted:
        rgb(255 255 255 / 58%);

    --toru-text:
        rgb(255 255 255 / 76%);

    --toru-line:
        rgb(255 255 255 / 18%);

    --toru-sans:
        "Noto Sans JP",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;

    --toru-serif:
        "Noto Serif JP",
        "Yu Mincho",
        serif;

    --toru-ease:
        cubic-bezier(.23, 1, .32, 1);

    width: 100%;

    background:
        var(--toru-ink);

    color: #fff;

    font-family:
        var(--toru-sans);
}


#toru-global-footer * {
    box-sizing: border-box;
}


#toru-global-footer a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   SHELL
========================================================= */

#toru-global-footer
.toru-footer-shell {
    width:
        min(1320px, calc(100% - 64px));

    margin: 0 auto;
}


/* =========================================================
   TOP
========================================================= */

#toru-global-footer
.toru-footer-top {
    display: grid;

    grid-template-columns:
        minmax(360px, .92fr)
        minmax(0, 1.08fr);

    gap:
        clamp(64px, 7vw, 120px);

    padding:
        104px 0
        88px;
}


/* =========================================================
   BRAND
========================================================= */

#toru-global-footer
.toru-footer-brand {
    max-width: 500px;
}


#toru-global-footer
.toru-footer-mark {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
}


#toru-global-footer
.toru-footer-mark img {
    display: block;

    width: 54px;
    height: 54px;

    object-fit: contain;

    filter:
        brightness(0)
        invert(1);
}


#toru-global-footer
.toru-footer-brand-copy {
    display: block !important;

    margin-top: 30px;
}


#toru-global-footer
.toru-footer-kicker {
    display: block !important;

    margin:
        0 0
        19px;

    color:
        rgb(255 255 255 / 64%) !important;

    font-size:
        9px !important;

    font-weight:
        600 !important;

    line-height:
        1.5 !important;

    letter-spacing:
        .19em !important;

    text-transform:
        none !important;
}


#toru-global-footer
.toru-footer-statement {
    display: block !important;

    margin:
        0 !important;

    color:
        #fff !important;

    font-family:
        var(--toru-serif) !important;

    font-size:
        clamp(32px, 3.2vw, 46px) !important;

    font-weight:
        500 !important;

    line-height:
        1.48 !important;

    letter-spacing:
        .065em !important;
}


#toru-global-footer
.toru-footer-statement span {
    display: block !important;
}


#toru-global-footer
.toru-footer-description {
    display: block !important;

    max-width: 39em;

    margin:
        25px 0
        0 !important;

    color:
        var(--toru-text) !important;

    font-size:
        13px !important;

    line-height:
        2.05 !important;

    letter-spacing:
        .045em !important;
}


/* =========================================================
   JOIN CTA
========================================================= */

#toru-global-footer
.toru-footer-join {
    display: inline-flex;

    align-items: center;

    gap: 16px;

    margin-top: 34px;

    padding-bottom: 7px;

    border-bottom:
        1px solid #fff;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: .1em;

    transition:
        gap 180ms var(--toru-ease),
        opacity 180ms var(--toru-ease);
}


#toru-global-footer
.toru-footer-join span {
    transition:
        transform 180ms var(--toru-ease);
}


#toru-global-footer
.toru-footer-join:hover,
#toru-global-footer
.toru-footer-join:focus-visible {
    gap: 22px;

    opacity: .72;
}


#toru-global-footer
.toru-footer-join:hover span,
#toru-global-footer
.toru-footer-join:focus-visible span {
    transform:
        translateX(3px);
}


/* =========================================================
   LINK AREA
========================================================= */

#toru-global-footer
.toru-footer-links {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        28px 26px;

    align-content: start;

    padding-top: 11px;
}


#toru-global-footer
.toru-footer-links > div {
    display: flex;

    flex-direction: column;
    align-items: flex-start;

    gap: 14px;

    min-width: 0;
}


#toru-global-footer
.toru-footer-label {
    margin-bottom: 14px;

    color:
        var(--toru-muted);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: .19em;
}


#toru-global-footer
.toru-footer-links a {
    position: relative;

    display: inline-block;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.7;
    letter-spacing: .06em;

    transition:
        opacity 180ms var(--toru-ease),
        transform 180ms var(--toru-ease);
}


#toru-global-footer
.toru-footer-links a:hover,
#toru-global-footer
.toru-footer-links a:focus-visible {
    opacity: .58;

    transform:
        translateX(2px);
}


/* =========================================================
   BOTTOM
========================================================= */

#toru-global-footer
.toru-footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        24px 0;

    border-top:
        1px solid var(--toru-line);

    color:
        var(--toru-muted);

    font-size: 9px;

    letter-spacing: .13em;
}


/* =========================================================
   MEDIUM DESKTOP
========================================================= */

@media (max-width: 1180px) {

    #toru-global-footer
    .toru-footer-shell {
        width:
            calc(100% - 48px);
    }


    #toru-global-footer
    .toru-footer-top {
        grid-template-columns:
            minmax(320px, .85fr)
            minmax(0, 1.15fr);

        gap: 64px;
    }


    #toru-global-footer
    .toru-footer-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            46px 38px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

    #toru-global-footer
    .toru-footer-shell {
        width:
            min(100% - 40px, 720px);
    }


    #toru-global-footer
    .toru-footer-top {
        grid-template-columns: 1fr;

        gap: 70px;

        padding:
            78px 0
            64px;
    }


    #toru-global-footer
    .toru-footer-brand {
        max-width: 560px;
    }


    #toru-global-footer
    .toru-footer-links {
        max-width: 680px;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 24px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    #toru-global-footer
    .toru-footer-shell {
        width:
            calc(100% - 32px);
    }


    #toru-global-footer
    .toru-footer-top {
        gap: 58px;

        padding:
            66px 0
            54px;
    }


    #toru-global-footer
    .toru-footer-mark,
    #toru-global-footer
    .toru-footer-mark img {
        width: 48px;
        height: 48px;
    }


    #toru-global-footer
    .toru-footer-brand-copy {
        margin-top: 25px;
    }


    #toru-global-footer
    .toru-footer-statement {
        font-size:
            30px !important;

        line-height:
            1.52 !important;
    }


    #toru-global-footer
    .toru-footer-description {
        margin-top:
            21px !important;

        font-size:
            12px !important;

        line-height:
            2 !important;
    }


    #toru-global-footer
    .toru-footer-join {
        margin-top: 29px;

        font-size: 11px;
    }


    #toru-global-footer
    .toru-footer-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            42px 22px;
    }


    #toru-global-footer
    .toru-footer-label {
        margin-bottom: 11px;

        font-size: 8px;
    }


    #toru-global-footer
    .toru-footer-links a {
        font-size: 11px;

        line-height: 1.65;
    }


    #toru-global-footer
    .toru-footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 7px;

        padding:
            20px 0;

        font-size: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    #toru-global-footer
    .toru-footer-links {
        grid-template-columns: 1fr;

        gap: 36px;
    }

}


/* =========================================================
   FOCUS
========================================================= */

#toru-global-footer
a:focus-visible {
    outline:
        1px solid rgb(255 255 255 / 72%);

    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    #toru-global-footer *,
    #toru-global-footer *::before,
    #toru-global-footer *::after {
        transition-duration:
            .01ms !important;

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;
    }

}

/* =========================================================
   tORu GLOBAL FOOTER
   LINK COLOR FIX

   WordPress / Divi リンクカラー上書き対策
========================================================= */


/* ========================================
   FOOTER LINKS
======================================== */

/* 通常リンク・訪問済みリンク */

#toru-global-footer a,
#toru-global-footer a:link,
#toru-global-footer a:visited {

    color: #ffffff !important;

    text-decoration: none !important;

}


/* ========================================
   JOIN CTA
======================================== */

#toru-global-footer
.toru-footer-join,

#toru-global-footer
.toru-footer-join:link,

#toru-global-footer
.toru-footer-join:visited {

    color: #ffffff !important;

}


/* ========================================
   NAVIGATION LINKS
======================================== */

#toru-global-footer
.toru-footer-links a,

#toru-global-footer
.toru-footer-links a:link,

#toru-global-footer
.toru-footer-links a:visited {

    color: #ffffff !important;

}


/* ========================================
   LINK HOVER
======================================== */

#toru-global-footer a:hover,
#toru-global-footer a:focus-visible {

    color: #ffffff !important;

}

/* =========================================================
   tORu GLOBAL FOOTER
   LOGIN / MY PAGE
========================================================= */

/* 未ログイン時：マイページを非表示 */
body:not(.logged-in) #toru-global-footer
.toru-footer-account--mypage {
  display: none !important;
}

/* ログイン済み：ログインを非表示 */
body.logged-in #toru-global-footer
.toru-footer-account--login {
  display: none !important;
}

/* 既存のフッターリンクと同じ幅で表示 */
#toru-global-footer .toru-footer-account {
  box-sizing: border-box;
}