@charset "UTF-8";

/* ============================================
 *  共通設定
 * ============================================ */
:root {
    /* Colors */
    --c-text: #300a0a;
    --c-text-muted: #300a0a99;
    --c-text-white: #ffffff;
    --c-spacer: #300a0a1f;
    --c-bg: #fffcfb;
    --c-bg-section: #9e433a0a;
    --c-bg-fb: #ffffff;
    --c-border: #300a0a0f;
    --c-accent: #ec594b;
    --c-accent--bg: #fbdedb;
    --c-ib: #ffaa48;
    --c-ib-biz: #489eff;

    /* Spacing */
    --s-1: 8px;
    --s-2: 16px;
    --s-3: 24px;
    --s-4: 32px;
    --s-5: 40px;
    --s-6: 48px;
    --s-7: 56px;
    --s-8: 64px;
    --s-9: 72px;
    --s-10: 80px;

    /* Font Size */
    --fs-xs: 14px;
    --fs-s: 16px;
    --fs-base: 18px;
    --fs-m: 20px;
    --fs-l: 24px;
    --fs-xl: 26px;
    --fs-2xl: 32px;

    /* Font Weight */
    --fw-r: 400;
    --fw-m: 500;
    --fw-sb: 600;

    /* Radius */
    --r-s: 4px;
    --r-m: 8px;
    --r-l: 16px;
    --r-full: 9999px;

    /* Transition */
    --dur: 0.3s;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --page-pad-wide: 40px;
    --page-pad: 48px;
    --max-w-wide: 1440px;
    --max-w: 1080px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --header-h: 198px;

    /* Icons */
    --icon-chevron-down-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M337.5 433C328.1 442.4 312.9 442.4 303.6 433L143.5 273C134.1 263.6 134.1 248.4 143.5 239.1C152.9 229.8 168.1 229.7 177.4 239.1L320.4 382.1L463.4 239.1C472.8 229.7 488 229.7 497.3 239.1C506.6 248.5 506.7 263.7 497.3 273L337.3 433z'/%3E%3C/svg%3E");
    --icon-chevron-right-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M473.5 303C482.9 312.4 482.9 327.6 473.5 336.9L273.5 536.9C264.1 546.3 248.9 546.3 239.6 536.9C230.3 527.5 230.2 512.3 239.6 503L422.6 320L239.6 137C230.2 127.6 230.2 112.4 239.6 103.1C249 93.8 264.2 93.7 273.5 103.1L473.5 303.1z'/%3E%3C/svg%3E");
    --icon-chevron-right-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M427.3 308.7C433.5 314.9 433.5 325.1 427.3 331.3L267.3 491.3C261.1 497.5 250.9 497.5 244.7 491.3C238.5 485.1 238.5 474.9 244.7 468.7L393.4 320L244.7 171.3C238.5 165.1 238.5 154.9 244.7 148.7C250.9 142.5 261.1 142.5 267.3 148.7L427.3 308.7z'/%3E%3C/svg%3E");
    --icon-scroll-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M303.5 207C312.9 197.6 328.1 197.6 337.4 207L497.4 367C506.8 376.4 506.8 391.6 497.4 400.9C488 410.2 472.8 410.3 463.5 400.9L320.5 257.9L177.5 400.9C168.1 410.3 152.9 410.3 143.6 400.9C134.3 391.5 134.2 376.3 143.6 367L303.6 207z'/%3E%3C/svg%3E");
    --icon-caret-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M441.3 299.8C451.5 312.4 450.8 330.9 439.1 342.6L311.1 470.6C301.9 479.8 288.2 482.5 276.2 477.5C264.2 472.5 256.5 460.9 256.5 448L256.5 192C256.5 179.1 264.3 167.4 276.3 162.4C288.3 157.4 302 160.2 311.2 169.3L439.2 297.3L441.4 299.7z'/%3E%3C/svg%3E");
}

@media (max-width: 1099px) {
    :root {
        --fs-xs: 12px;
        --fs-s: 14px;
        --fs-base: 15px;
        --fs-m: 16px;
        --fs-l: 18px;
        --fs-xl: 20px;
        --fs-2xl: 24px;
        --header-h: 183px;
    }
}

@media (max-width: 849px) {
    :root {
        --page-pad-wide: 16px;
        --page-pad: 24px;
        --header-h: 64px;
        --r-l: 12px;
    }
}

/* ============================================
 *  リセット・ベース
 * ============================================ */
button,
input,
select {
    all: unset;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-feature-settings: "palt";
    font-weight: var(--fw-r);
    letter-spacing: 0.04em;
    line-height: 1.5;
    color: var(--c-text);
}

*:focus-visible {
    outline: 3px solid #0bf !important;
    outline-offset: 3px !important;
}

.news-page select:focus-visible,
.site-search > input:focus-visible {
    outline: none !important;
}

a {
    text-decoration: none;
}

html {
    overflow-x: hidden;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--c-bg);
    font-size: var(--fs-base);
    overflow-x: clip;
}

html:has(body.is-menu-open) {
    overflow: hidden;
    overscroll-behavior: none;
}

body.is-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}

main {
    position: relative;
    margin-top: var(--header-h);
}

h1,
div:has(h1) > p,
h2,
h3,
h4 {
    line-height: 1.3;
}

.wrap-unit {
    display: inline-block;
    color: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* ============================================
 *  リサイズ時のアニメーションの停止
 * ============================================ */
body.is-resizing *,
body.is-resizing *::before,
body.is-resizing *::after {
    transition: none !important;
}

/* ============================================
 *  レイアウト
 * ============================================ */
.inner-wide {
    width: 100%;
    max-width: calc(var(--max-w-wide) + var(--page-pad-wide) * 2);
    margin-inline: auto;
    padding-inline: var(--page-pad-wide);
}

.inner {
    width: 100%;
    max-width: calc(var(--max-w) + var(--page-pad) * 2);
    margin-inline: auto;
    padding-inline: var(--page-pad);
}

/* ============================================
 *  クリッカブル要素
 * ============================================ */
.btn,
.btns a {
    font-weight: var(--fw-m);
}

.btn,
.btns a,
.btn-icon,
.hamburger__label,
.hero > ul > li > a > span,
.ib > ul > li > a > div > span,
.tablist > button {
    line-height: 1.3;
}

.btn > span,
.btns a > span,
.btn-icon > span {
    display: inline-block;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.btn,
.btns a,
.btns button,
.btn-icon,
.btn-static,
.btns-static a,
.splide__slide > a > img {
    display: inline-flex;
    align-items: center;
    background-color: var(--c-bg-fb);
    border-radius: var(--r-m);
    outline: 1px solid color-mix(in srgb, var(--c-text) 6%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--c-text) 4%, transparent);
}

.btn,
.btns a,
.btns button,
.btn-icon,
.btn.accent,
.contents .btns a.accent,
.btn-hover,
.btns-hover a,
.splide__slide > a {
    cursor: pointer;
    transition: opacity var(--dur) var(--ease);
}

.btn:hover,
.btns a:hover,
.btns button:hover,
.btn-icon:hover,
.btn.accent:hover,
.btns a.accent:hover,
.btn-hover:hover,
.btns-hover a:hover,
.splide__slide > a:hover {
    opacity: 0.7 !important;
}

.text-link:hover,
.texts-link a:hover {
    text-decoration: underline;
}

.breadcrumb a,
.contents p > a,
.contents .note > span > a,
.contents .flex-text > span > a,
.contents strong > a,
.contents ul:is(:not([class]), .spaced, .spaced-l):not(.page-index > ul, .page-list > li > ul, .page-list > li > ul > li > ul) > li a,
.contents ol:is(:not([class]), .spaced, .spaced-l) > li a {
    color: var(--c-accent);
    text-decoration: underline;
    transition: opacity var(--dur) var(--ease);
}

.contents strong > a {
    font-weight: inherit;
}

.tell > div:last-of-type > a,
.card-list > div > div:first-of-type > a {
    transition: opacity var(--dur) var(--ease);
}

.breadcrumb a:hover,
.contents p > a:hover,
.contents .note > span > a:hover,
.contents .flex-text > span > a:hover,
.tell > div:last-of-type > a:hover,
.card-list > div > div:first-of-type > a:hover,
.contents strong > a:hover,
.contents ul:is(:not([class]), .spaced, .spaced-l):not(.page-index > ul, .page-list > li > ul, .page-list > li > ul > li > ul) > li a:hover,
.contents ol:is(:not([class]), .spaced, .spaced-l) > li a:hover {
    opacity: 0.6;
}

/* ============================================
 *  お知らせの内容切替
 * ============================================ */

.tablist {
    display: flex;
    color: color-mix(in srgb, var(--c-text) 65%, transparent);
    background-color: #f3eae9;
    padding: 4px;
    border-radius: var(--r-m);
}

.tablist > button {
    display: flex;
    font-weight: var(--fw-m);
    justify-content: center;
    width: 100%;
    padding-block: 6px;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: inherit;
    transition:
        color var(--dur) var(--ease),
        background-color var(--dur) var(--ease);
}

.tablist > button.active {
    font-weight: var(--fw-sb);
    color: var(--c-accent);
    background-color: #ffc6c0;
}

/* ============================================
 *  改行設定
 * ============================================ */
.br-sp {
    display: none;
}

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

@media (max-width: 499px) {
    .br-sp {
        display: inline;
    }
}

#inner {
    padding-top: 140px;
}

/* ============================================
 *  アイコン
 * ============================================ */
.icon-before::before,
.icon-after::after,
.icons-before a::before,
.icons-after a::after,
.contents div:has(> select)::after,
.btn::after,
.btns a::after,
.btn-icon::before,
.grid-list a::after,
.column-list a::after,
.page-index > ul > li > a::after,
.external::after,
summary .toggle-label::after {
    content: "";
    display: block;
    flex-shrink: 0;
    background-color: var(--c-text);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* ============================================
 *  ヘッダー
 * ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--c-bg-fb);
    box-shadow: 0 0 16px color-mix(in srgb, var(--c-text) 4%, transparent);
    transition: transform var(--dur) var(--ease);
}

header.is-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

header.is-hidden .gnav nav > ul > li:hover > .gnav__sub {
    opacity: 0;
    visibility: hidden;
}

header > .logo {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
}

header > .logo > a {
    display: block;
    width: 280px;
}

header > .logo > a > img {
    display: block;
}

/* ── ヘッダーユーティリティ ── */
.header-util {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--s-2);
    font-size: var(--fs-s);
    padding-block: var(--s-2);
}

.header-util > ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.header-util > ul > li {
    position: relative;
}

.header-util > ul > li + li::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: -16px;
    display: block;
    width: 1px;
    content: "";
    background-color: var(--c-spacer);
    transform: translateX(-50%);
}

/* ── サイト内検索 ── */
.site-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 280px;
    border-radius: var(--r-s);
    background-color: #ffffff;
    box-shadow: unset;
    transition:
        outline var(--dur) var(--ease),
        background-color var(--dur) var(--ease);
}

.site-search:hover {
    background-color: color-mix(in srgb, var(--c-text) 2%, #ffffff);
}

.site-search:focus-within {
    outline-color: var(--c-accent);
}

.site-search > input {
    width: 100%;
    height: var(--s-4);
    border: none;
    padding-left: 14px;
    outline: none;
    font-size: var(--fs-s);
    background: transparent;
}

.site-search > input::placeholder {
    color: var(--c-text-muted);
}

.site-search > button {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--s-5);
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0 var(--r-s) var(--r-s) 0;
    background: var(--c-accent);
}

.site-search > button > img {
    width: 20px;
}

@media (max-width: 849px) {
    .header-util {
        font-size: var(--fs-base);
    }

    .site-search {
        border-radius: var(--r-m);
    }

    .site-search > button {
        border-radius: 0 var(--r-m) var(--r-m) 0;
    }

    .site-search > input {
        height: 36px;
        font-size: var(--fs-base);
    }
}

/* ── グローバルナビ ── */
.gnav {
    position: relative;
    background-color: #fef7f6;
    outline: 1px solid color-mix(in srgb, var(--c-text) 8%, transparent);
}

.gnav > .inner-wide {
    display: flex;
    align-items: center;
    gap: 4%;
}

.gnav nav {
    position: static;
    width: 100%;
    padding: var(--s-1) 0;
}

.gnav nav > ul {
    display: flex;
    list-style: none;
}

.gnav nav > ul > li {
    position: static;
    width: 100%;
}

.gnav__link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--s-1) 0;
    border-radius: var(--r-m);
    text-decoration: none;
    font-weight: var(--fw-m);
    transition: background-color var(--dur) var(--ease);
    letter-spacing: 0;
}

.gnav__link > img {
    width: 36px;
}

.gnav nav > ul > li + li > .gnav__link::before,
.gnav nav > ul > li:first-of-type > .gnav__link::before,
.gnav nav > ul > li:last-of-type > .gnav__link::after {
    position: absolute;
    top: var(--s-1);
    bottom: var(--s-1);
    left: 0;
    display: block;
    width: 1px;
    content: "";
    background-color: var(--c-spacer);
    transform: translateX(-50%);
    transition: opacity var(--dur) var(--ease);
}

.gnav nav > ul > li:last-of-type > .gnav__link::after {
    left: unset;
    right: 0;
}

.gnav nav > ul > li:hover > .gnav__link {
    background-color: color-mix(in srgb, var(--c-accent) 10%, transparent);
}

.gnav nav > ul > li:hover > .gnav__link::before,
.gnav nav > ul > li:hover > .gnav__link::after,
.gnav nav > ul > li:hover + li > .gnav__link::before {
    opacity: 0;
}

/* ── サブナビ（一部ページ下部インデックスと共用） ── */
.gnav__sub,
.page-index > ul {
    width: 100%;
    background-color: var(--c-accent--bg);
}

.gnav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    border-top: 1px solid color-mix(in srgb, var(--c-text) 6%, transparent);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--dur) var(--ease),
        visibility var(--dur) var(--ease);
}

.gnav__sub::before {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 20px;
    content: "";
}

.gnav__sub > ul,
.page-index > ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: var(--s-2);
    padding-block: var(--s-3);
    list-style: none;
}

.gnav nav > ul > li:hover > .gnav__sub,
.gnav nav > ul > li:focus-within > .gnav__sub {
    opacity: 1;
    visibility: visible;
}

.gnav__sub > ul > li > a,
.contents .page-index > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4em;
    padding: 4px var(--s-2);
    background: var(--c-bg-fb);
    text-align: center;
}

.gnav__sub > ul > li > a.all {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}

/* ── インターネットバンキング ── */
.header-ib {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-1);
    flex-shrink: 0;
    font-size: var(--fs-s);
}

.header-ib > div {
    display: flex;
    gap: 10px;
}

.header-ib > div > a {
    padding: 2px var(--s-3);
    border: 2px solid #f4cb9c;
    border-radius: var(--r-s);
    background-color: var(--c-bg-fb);
    color: var(--c-ib);
    font-size: var(--fs-base);
    font-weight: var(--fw-sb);
    transition:
        background-color var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        color var(--dur) var(--ease);
    box-shadow: unset;
}

.header-ib > div > a:nth-of-type(2) {
    border-color: #9ecbff;
    background-color: var(--c-bg-fb);
    color: var(--c-ib-biz);
}

.header-ib > div > a:hover {
    opacity: 1 !important;
}

.header-ib > div > a:hover {
    background-color: #fef0e0;
}

.header-ib > div > a:nth-of-type(2):hover {
    background-color: #e2f0ff;
}

/* ── ハンバーガー ── */
.hamburger {
    display: none;
    align-items: center;
    cursor: pointer;
}

.hamburger__label {
    grid-area: 1 / 2;
    white-space: nowrap;
    transition: opacity var(--dur) var(--ease);
}

.hamburger__label[data-close] {
    opacity: 0;
}

.hamburger.is-active .hamburger__label[data-open] {
    opacity: 0;
}

.hamburger.is-active .hamburger__label[data-close] {
    opacity: 1;
}

/* ── メニュー（PC） ── */
header > .menu {
    display: flex;
    flex-direction: column;
}

.menu-overlay {
    display: none;
}

@media (max-width: 1099px) {
    .gnav > .inner-wide {
        gap: 2%;
    }

    .header-ib > div > a {
        padding-inline: var(--s-2);
    }
}

/* ============================================
 *  ヘッダー（SP）
 * ============================================ */
@media (max-width: 849px) {
    header {
        height: var(--header-h);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-inline: var(--page-pad-wide);
        border-bottom: 1px solid color-mix(in srgb, var(--c-text) 8%, transparent);
    }

    header > .logo {
        position: static;
        transform: none;
        padding: 0;
    }

    header > .logo > a {
        width: 186px;
    }

    /* ── ハンバーガー（SP） ── */
    .hamburger {
        position: relative;
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        padding: var(--s-1) 12px var(--s-1) 34px;
        border-radius: var(--r-m);
        background: var(--c-accent);
    }

    .hamburger > span:first-of-type {
        position: absolute;
        left: 14px;
        width: 14px;
        height: 12px;
    }

    .hamburger > span:first-of-type > span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--c-text-white);
        border-radius: 2px;
    }

    .hamburger > span:first-of-type,
    .hamburger > span:first-of-type > span {
        display: inline-block;
        transition:
            transform var(--dur) var(--ease),
            opacity var(--dur) var(--ease);
    }

    .hamburger > span:first-of-type > span:nth-of-type(1) {
        top: 0;
    }

    .hamburger > span:first-of-type > span:nth-of-type(2) {
        top: 5px;
    }

    .hamburger > span:first-of-type > span:nth-of-type(3) {
        bottom: 0;
    }

    .hamburger.is-active > span:first-of-type > span:nth-of-type(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .hamburger.is-active > span:first-of-type > span:nth-of-type(2) {
        opacity: 0;
    }

    .hamburger.is-active > span:first-of-type > span:nth-of-type(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .hamburger__label {
        color: var(--c-text-white);
        font-weight: var(--fw-m);
    }

    .menu-overlay {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        display: block;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity var(--dur) var(--ease),
            visibility var(--dur) var(--ease);
    }

    .menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    header > .menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        z-index: 100;
        gap: var(--s-4);
        max-height: calc(100dvh - var(--header-h));
        padding: var(--s-4) 0;
        background-color: #fef7f6;
        box-shadow: 0 8px 24px color-mix(in srgb, var(--c-text) 10%, transparent);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transform: translateY(-8px);
        transition:
            opacity var(--dur) var(--ease),
            transform var(--dur) var(--ease),
            visibility var(--dur) var(--ease);
    }

    header > .menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-search {
        max-width: unset;
    }

    .gnav nav > ul > li + li > .gnav__link::before,
    .gnav nav > ul > li:first-of-type > .gnav__link::before,
    .gnav nav > ul > li:last-of-type > .gnav__link:not(.accordion)::after {
        display: none;
    }

    .gnav nav > ul > li:hover > .gnav__link {
        background-color: transparent;
    }

    .gnav__sub::before {
        display: none;
    }

    .gnav > .inner-wide,
    .header-util {
        padding-inline: var(--page-pad-wide);
    }

    .gnav {
        order: -1;
        background: transparent;
        border-top: none;
        outline: unset;
    }

    .gnav > .inner-wide {
        flex-direction: column;
        gap: var(--s-4);
        padding-inline: var(--page-pad);
    }

    .gnav > .inner-wide::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: var(--c-spacer);
    }

    .gnav > .inner-wide > nav {
        background: var(--c-bg-fb);
        border-radius: var(--r-l);
        outline: 1px solid color-mix(in srgb, var(--c-text) 6%, transparent);
        box-shadow: 0 2px 16px color-mix(in srgb, var(--c-text) 4%, transparent);
        overflow: hidden;
        padding: 0;
    }

    .gnav nav > ul {
        flex-direction: column;
    }

    .gnav nav > ul > li {
        border-bottom: 1px solid var(--c-spacer);
    }

    .gnav nav > ul > li:last-child {
        border-bottom: none;
    }

    .gnav nav > ul > li:hover > .gnav__link::after {
        opacity: 1;
    }

    /* ── ナビリンク（SP） ── */
    .gnav__link {
        flex-direction: row;
        gap: 6px;
        padding: 14px var(--s-2);
        transition: none;
        border-radius: 0;
        font-size: var(--fs-m);
    }

    .gnav__link.accordion {
        position: relative;
        cursor: pointer;
    }

    .gnav nav > ul > li > .gnav__link.accordion::after {
        all: unset;
        position: absolute;
        right: var(--s-2);
        display: block;
        width: 22px;
        aspect-ratio: 1;
        content: "";
        background-color: var(--c-accent);
        -webkit-mask-image: var(--icon-chevron-down-r);
        mask-image: var(--icon-chevron-down-r);
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        transition: transform var(--dur) var(--ease);
    }

    .gnav nav > ul > li > .gnav__link.is-open::after {
        transform: rotate(180deg);
    }

    .gnav__link > img {
        width: 30px;
    }

    /* ── サブナビ アコーディオン（SP） ── */
    .gnav__sub {
        position: static;
        width: auto;
        display: grid;
        grid-template-rows: 0fr;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transition: grid-template-rows var(--dur) var(--ease);
    }

    .gnav__link.is-open + .gnav__sub {
        grid-template-rows: 1fr;
    }

    .gnav__sub > ul,
    .page-index > ul {
        grid-template-columns: repeat(auto-fill, minmax(min(136px, 100%), 1fr));
        gap: var(--s-1);
    }

    .gnav__sub > ul {
        overflow: hidden;
        padding-inline: var(--s-2);
        padding-block: 0;
        transition: padding-block var(--dur) var(--ease);
    }

    .contents .page-index > ul {
        padding: var(--s-2);
    }

    .gnav__link.is-open + .gnav__sub > ul {
        padding-block: var(--s-2);
    }

    .gnav__sub > ul > li > a,
    .contents .page-index > ul > li > a {
        padding: 10px var(--s-1) !important;
        height: 100%;
    }

    .gnav__sub > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--c-bg-fb);
        border: 1px solid color-mix(in srgb, var(--c-text) 8%, transparent);
        border-radius: var(--r-m);
        text-decoration: none;
        font-size: var(--fs-s);
        text-align: center;
    }

    .gnav__sub > ul > li:last-child > a.all {
        background: var(--c-accent);
        color: #fff;
        border-color: var(--c-accent);
    }

    /* ── ユーティリティ（SP） ── */
    .header-util {
        order: 1;
        flex-direction: column-reverse;
        align-items: unset;
        gap: var(--s-4);
        padding: 0 var(--page-pad);
    }

    .header-util > ul {
        flex-wrap: wrap;
        gap: 12px var(--s-3);
    }

    .header-util > ul > li + li::before {
        display: none;
    }

    .header-util > ul > li {
        display: flex;
        align-items: center;
        gap: 0.2em;
    }

    .header-util > ul > li.icon-before::before {
        position: static;
        display: block;
        width: 16px;
        aspect-ratio: 1;
        background-color: var(--c-text);
        -webkit-mask-image: var(--icon-caret-right);
        mask-image: var(--icon-caret-right);
        transform: unset;
    }

    /* ── インターネットバンキング（SP） ── */
    .header-ib {
        flex-direction: row;
        justify-content: space-between;
        gap: var(--s-3);
        padding: var(--s-2);
        background: var(--c-bg-fb);
        border: 1px solid color-mix(in srgb, var(--c-text) 8%, transparent);
        border-radius: var(--r-l);
        width: 100%;
    }

    .header-ib > p {
        font-weight: var(--fw-m);
        min-width: 0;
        line-height: 1.2;
    }

    .header-ib > div {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .header-ib > div > a {
        padding: 4px 20px;
    }
}

/* ============================================
 *  トップへ戻るボタン
 * ============================================ */
.sticky-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -184px;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.scroll-top-btn {
    position: sticky;
    right: 0;
    bottom: var(--s-3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--s-8);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: opacity var(--dur);
}

.scroll-top-btn::before {
    display: block;
    width: var(--s-5);
    aspect-ratio: 1;
    content: "";
    background-color: var(--c-accent);
    -webkit-mask-image: var(--icon-scroll-top);
    mask-image: var(--icon-scroll-top);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn > img {
    height: 36px;
}

@media (max-width: 849px) {
    .sticky-container {
        bottom: -92px;
    }

    .scroll-top-btn {
        width: var(--s-6);
    }

    .scroll-top-btn::before {
        width: var(--s-4);
    }
}

@media print {
    .scroll-top-btn {
        position: static !important;
    }
}

/* ============================================
 *  フッター
 * ============================================ */
footer > .inner-wide > .top-menu > div > p,
footer > .inner-wide > .bottom-menu > div > ul > li > a,
footer > .copyright {
    line-height: 1.3;
}

footer {
    background-color: var(--c-bg-section);
    padding-top: 112px;
}

footer li {
    list-style: none;
}

/* ── 上部メニュー ── */
footer > .inner-wide > .top-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-4);
    padding: 0 128px 88px 0;
}

footer > .inner-wide > .top-menu > div {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

footer > .inner-wide > .top-menu > div > a > img {
    width: 304px;
    display: block;
}

footer > .inner-wide > .top-menu > div > p {
    font-size: var(--fs-xs);
}

footer > .inner-wide > .top-menu > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-5);
    list-style: none;
}

footer > .inner-wide > .top-menu > ul > li > a,
footer > .inner-wide > .bottom-menu > div > ul > li > div > ul > li > a {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.2em;
}

footer > .inner-wide > .top-menu > ul > li > a::before,
footer > .inner-wide > .bottom-menu > div > ul > li > div > ul > li > a::before {
    width: 16px;
    aspect-ratio: 1;
    margin-top: 0.23em;
    -webkit-mask-image: var(--icon-caret-right);
    mask-image: var(--icon-caret-right);
}

/* ── 下部メニュー ── */
footer > .inner-wide > .bottom-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
}

footer > .inner-wide > .bottom-menu > div > p {
    margin-bottom: var(--s-4);
    color: var(--c-accent);
    font-size: var(--fs-l);
    font-weight: var(--fw-sb);
}

footer > .inner-wide > .bottom-menu > div > ul {
    columns: 2;
    column-gap: 8%;
}

footer > .inner-wide > .bottom-menu > div > ul > li {
    break-inside: avoid;
    margin-bottom: var(--s-4);
}

footer > .inner-wide > .bottom-menu > div > ul > li > button,
footer > .inner-wide > .bottom-menu > div > ul > li > a {
    padding: var(--s-1) 0;
    font-size: var(--fs-m);
}

footer > .inner-wide > .bottom-menu > div > ul > li > button {
    width: 100%;
    border-bottom: 1px solid color-mix(in srgb, var(--c-text) 40%, transparent);
}

footer > .inner-wide > .bottom-menu > div > ul > li > div > ul {
    padding-top: var(--s-2);
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

footer > .inner-wide > .bottom-menu > div > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid color-mix(in srgb, var(--c-text) 40%, transparent);
}

footer > .inner-wide > .bottom-menu > div > ul > li > a.icon-after::after {
    width: 26px;
    aspect-ratio: 1;
    background-color: var(--c-text);
    -webkit-mask-image: var(--icon-chevron-right-l);
    mask-image: var(--icon-chevron-right-l);
}

/* ── Copyright ── */
footer > .copyright {
    color: var(--c-text-white);
    background-color: #00000052;
    padding: var(--s-3) 0;
    text-align: center;
    font-size: var(--fs-xs);
    margin-top: 128px;
}

/* ============================================
 *  フッター（SP）
 * ============================================ */
@media (max-width: 849px) {
    footer {
        padding-top: var(--s-5);
    }

    /* ── アコーディオントリガー ── */
    footer .accordion {
        all: unset;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: var(--s-2) 0;
        font-size: var(--fs-base);
        cursor: pointer;
    }

    footer .accordion::after {
        display: block;
        width: 22px;
        aspect-ratio: 1;
        flex-shrink: 0;
        content: "";
        background-color: var(--c-accent);
        -webkit-mask-image: var(--icon-chevron-down-r);
        mask-image: var(--icon-chevron-down-r);
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        transition: transform var(--dur) var(--ease);
    }

    footer .accordion.is-open::after {
        transform: rotate(180deg);
    }

    footer .accordion.is-open {
        border-bottom-color: transparent;
    }

    /* ── レイアウト調整 ── */
    footer > .inner-wide {
        padding-inline: var(--page-pad);
    }

    footer > .inner-wide > .top-menu > div {
        gap: var(--s-1);
    }

    footer > .inner-wide > .bottom-menu > div > ul > li {
        margin-bottom: 0;
    }

    /* ── アコーディオンパネル ── */
    footer .accordion + div {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows var(--dur) var(--ease);
    }

    footer .accordion + div > ul {
        overflow: hidden;
        padding-block: 0 !important;
        border-bottom: 1px solid transparent;
        transition:
            padding-block var(--dur) var(--ease),
            border-color var(--dur) var(--ease);
    }

    footer .accordion.is-open + div {
        grid-template-rows: 1fr;
    }

    footer .accordion.is-open + div > ul {
        padding-block: 18px !important;
        border-color: var(--c-spacer);
    }

    footer > .inner-wide > .bottom-menu > div > ul > li > button,
    footer > .inner-wide > .bottom-menu > div > ul > li > a {
        border-color: var(--c-spacer);
    }

    /* ── bottom-menu 上書き ── */
    footer > .inner-wide > .bottom-menu > div > ul > li > button,
    footer > .inner-wide > .bottom-menu > div > ul > li > a {
        padding: var(--s-2);
        font-weight: var(--fw-m);
    }

    footer > .inner-wide > .bottom-menu > div > ul > li > div > ul {
        padding-inline: var(--s-2);
    }

    footer > .inner-wide > .bottom-menu > div > ul > li:last-of-type > button,
    footer > .inner-wide > .bottom-menu > div > ul > li:last-of-type > a {
        border: none;
    }

    /* ── top-menu 上書き ── */
    footer > .inner-wide > .top-menu {
        flex-wrap: wrap;
        padding-bottom: var(--s-6);
        padding-right: 0;
    }

    footer > .inner-wide > .top-menu > ul {
        gap: var(--s-1) var(--s-3);
    }

    footer > .inner-wide > .top-menu > div > a > img {
        width: 208px;
    }

    /* ── bottom-menu グリッド上書き ── */
    footer > .inner-wide > .bottom-menu {
        grid-template-columns: 1fr;
        gap: var(--s-6);
    }

    footer > .inner-wide > .bottom-menu > div > p {
        margin-bottom: var(--s-2);
    }

    footer > .inner-wide > .bottom-menu > div > ul {
        background: var(--c-bg-fb);
        border-radius: var(--r-l);
        outline: 1px solid color-mix(in srgb, var(--c-text) 6%, transparent);
        box-shadow: 0 2px 16px color-mix(in srgb, var(--c-text) 4%, transparent);
        columns: unset;
    }

    footer > .inner-wide > .bottom-menu > div > ul > li > a::after {
        display: none;
    }

    /* ── Copyright 上書き ── */
    footer > .copyright {
        margin-top: 120px;
        padding: var(--s-2) 0;
        font-size: 10px;
    }
}

@media (max-width: 499px) {
    footer > .inner-wide > .top-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    footer > .inner-wide > .top-menu > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-1);
    }
}
