/* =================================================================
   共通設定
   ================================================================= */

:root {
    /* ========================= フォント ========================= */
    --font-family-base: "Oswald", "Noto Sans JP", sans-serif;

    /* ========================= フォントサイズ：日本語タイトル ========================= */
    --font-size-title-hero: 5.4rem;
    --font-size-title-p-hero: 4.6rem;
    --font-size-main-title: 4.0rem;
    --font-size-sub-title-l: 3.2rem;
    --font-size-sub-title-m: 2.4rem;
    --font-size-sub-title-s: 2.0rem;

    /* ========================= フォントサイズ：本文テキスト ========================= */
    --font-size-text-lg: 1.8rem;
    --font-size-text-md: 1.6rem;
    --font-size-text-sm: 1.4rem;

    /* ========================= フォントサイズ：数字 ========================= */
    --font-size-number-l: 9.6rem;
    --font-size-number-m: 4.0rem;

    /* ========================= フォントサイズ：ボタン ========================= */
    --font-size-button: 1.6rem;

    /* ========================= 文字色 ========================= */

    /* 基本テキスト */
    --color-text-main: #3A3A3A;     /* メインの黒 */
    --color-text-sub: #696969;      /* メインの黒 */
    --color-text-white: #FFFFFF;    /* メインの黒 */

    /* アクセントテキスト（ブルー系） */
    --color-text-accent:      #0967D8; /* 明るめブルーのアクセント */
    --color-text-accent-dark: #0C128E; /* 濃いブルーのアクセント */

    /* リンクテキスト */
    --color-text-link: #0F16A5;     /* リンクカラー */

    /* ========================= カラー：マーカー ========================= */
    --color-marker: rgb(9, 103, 216, 0.4);

    /* ========================= カラー：カード・アイテム背景 ========================= */
    --color-bg-card-gray:      #F4F5FA; /* カード背景（グレー寄り） */
    --color-bg-card-lightblue: #FAFCFF; /* カード背景（白寄り） */
    --color-bg-card-blue:      #D8E3EE; /* カード背景（ブルー寄り） */
    --color-bg-card-sky:       #EDF5FF; /* カード背景（スカイブルー寄り） */
    --color-bg-card-light:     #F8F8F8; /* カード背景（ライトグレー） */
    --color-bg-card-white:     #ffffff; /* カード背景（ホワイト） */

    /* ========================= カラー：セクション背景 ========================= */
    --color-bg-section-blue:  #F8FBFF;  /* セクション背景（ブルー系） */
    --color-bg-section-white: #ffffff;  /* セクション背景（ホワイト） */

    /* ========================= カラー：フッター背景 ========================= */
    --color-bg-footer-blue: #E9EFF8;    /* セクション背景（ブルー系） */
}


/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */
@media (max-width: 1024px) {
    :root {
        /* ========================= フォントサイズ（日本語タイトル） ========================= */
        --font-size-title-hero: clamp(3.6rem, 3.90625vw, 4rem);
        --font-size-title-p-hero: clamp(3.6rem, 3.90625vw, 4rem);
        --font-size-main-title: clamp(3.2rem, 3.41796875vw, 4rem);
        --font-size-sub-title-l: clamp(2.4rem, 2.734375vw, 3.2rem);
        --font-size-sub-title-m: clamp(2rem, 2.34375vw, 2.4rem);
        --font-size-sub-title-s: 1.8rem;

        /* ========================= フォントサイズ（本文テキスト） ========================= */
        --font-size-text-lg: 1.6rem;
        --font-size-text-md: 1.4rem;
        --font-size-text-sm: clamp(1.2rem, 1.3671875vw, 1.4rem);

        /* ========================= フォントサイズ：数字 ========================= */
        --font-size-number-l: 8rem;
        --font-size-number-m: 3.6rem;

        /* ========================= フォントサイズ：ボタン ========================= */
        --font-size-button: 1.6rem;
    }
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    :root {
        /* ========================= フォントサイズ（日本語タイトル） ========================= */
        --font-size-title-hero: 2.8rem;
        --font-size-title-p-hero: 2.6rem;
        --font-size-main-title: 2.4rem;
        --font-size-sub-title-l: 2.0rem;
        --font-size-sub-title-m: 2.0rem;
        --font-size-sub-title-s: 1.8rem;

        /* ========================= フォントサイズ（本文テキスト） ========================= */
        --font-size-text-lg: 1.6rem;
        --font-size-text-md: 1.4rem;
        --font-size-text-sm: 1.2rem;

        /* ========================= フォントサイズ：数字 ========================= */
        --font-size-number-l: 5rem;
        --font-size-number-m: 2rem;

        /* ========================= フォントサイズ：ボタン ========================= */
        --font-size-button: 1.4rem;
    }
}


/* =================================================================
   ベース・共通・リセット系
   ================================================================= */

/* 全体の基準フォントサイズを設定（1rem = 10px） */
html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* 基本のフォント設定・色・行間など */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-text-md);
    letter-spacing: 0.04em;
    color: var(--color-text-main);
    line-height: 1;
    background-color: var(--color-bg-section-white);
    box-sizing: border-box;
}

p {
    font-size: var(--font-size-text-md);
    letter-spacing: 0.04em;
}

a {
    text-decoration: none;
    font-size: var(--font-size-body-md);
    color: var(--color-text-main);
}


/* ===============================================================
   共通
   ============================================================== */

/* ヘッダーボタン */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.125em 2.215em;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: var(--font-size-text-md);
    line-height: 1.4;
}

/* グラデーション版（ヘッダー用）：btn-hover系の強いスライド */
.button--contact-gradient {
    color: var(--color-text-white);
    /* 2色をリピートして“帯”を作る */
    background-image: linear-gradient(to right, #311BA7, #08B0E1, #311BA7, #08B0E1);
    background-size: 300% 100%;      /* 横に3倍に拡張 */
    background-position: 100% 0;     /* 右端からスタート */
    background-repeat: no-repeat;
    transition: background-position .9s ease;  /* 位置だけ滑らかに */
    will-change: background-position;          /* レンダリング最適化 */
}
.button--contact-gradient:hover,
.button--contact-gradient:focus-visible {
    background-position: 0 0;        /* 右 → 左へ一気にスライド */
}

/* ページ内リンクボタン */
.button--outline {
    position: relative;
    z-index: 0;
    overflow: hidden; /* はみ出し防止 */
    border: 2px solid var(--color-text-accent-dark);
    border-radius: 999px;
    color: var(--color-text-accent-dark);
    transition: color 0.4s ease;
}
/* 疑似要素でグラデーション背景を仕込む */
.button--outline::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, #311BA7, #08B0E1);
    opacity: 0;                         /* 初期は透明 */
    transition: opacity 0.6s ease;      /* じんわり */
    z-index: -1;                         /* テキストの下に配置 */
    border-radius: inherit;
}
/* ホバーでグラデがふわっと出現 */
.button--outline:hover::before { opacity: 1; }
/* ホバー時のテキスト色 */
.button--outline:hover { color: var(--color-text-white); }

/* ========================= 768px以下：右ドロワーに切替 ========================= */
@media (max-width: 768px) {
    .button--outline {
        padding: 0.91em 2em;
    }
}


/* ===============================================================
   Header （PCレイアウト：そのまま）
   ============================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 2.77777777vw;
    max-width: var(--container);
    margin-inline: auto;
}

/* Logo */
.header__logo { margin: 0; }
.header__logo-link { display: inline-block; }
.header__logo-img {
    display: block;
    height: 60px; /* PDFに合わせて調整してください */
    width: auto;
}

/* Navigation（PCは横並び） */
.header__nav {
    display: flex;
    align-items: end;
    gap: 2.77777777vw;
}
.header__nav-list {
    display: flex;
    gap: 2.77777777vw;
    margin: 0;
    padding: 0;
    list-style: none;
}
.header__nav-item { }
.header__nav-link {
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.header__nav-link:hover { color: var(--brand-ink); }

/* CTA（PCは横並び） */
.header__cta {
    display: flex;
    align-items: end;
    gap: 20px;
}
.header__cta-label {
    display: block;
    margin-bottom: 0.5em;
    line-height: 1;
    font-weight: 700;
}
.header__cta-link--tel {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* アイコンと文字の間隔 */
    font-size: var(--font-size-title-md);
    color: var(--color-text-accent);
    line-height: 1;
    text-decoration: none;
}
.header__cta-number {
    font-size: var(--font-size-sub-title-m);
    font-weight: 700;
    color: var(--color-text-accent-dark);
}
.header__cta-icon {
    display: inline-block;
    width: 20px;
    height: 25px;
    background: url("../image/common/tel-icon.png") no-repeat center;
    background-size: contain;
}

/* ========================= PC最小・レスポンシブ対応（1240px以下） ========================= */
@media (max-width: 1240px) {
    .header__inner {
        gap: 16px;
        padding: 16px 24px;
        font-size: 1.4rem;
    }
    .header__logo-img {
        display: block;
        height: 40px;
        width: auto;
    }
    /* CTA */
    .button--contact { font-size: 1.4rem; }
    .header__cta-link--tel { font-size: 2rem; }
}


/* ===============================================================
   ここから追加：SP/タブレット用（PCは一切上書きしない）
   ============================================================== */

/* ハンバーガー（PCでは非表示。1024px以下で表示） */
.header__toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.header__toggle-bar {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
/* 3本線を中央を基準に均等配置 */
.header__toggle-bar:nth-child(1) { top: 10px; }
.header__toggle-bar:nth-child(2) { top: 19px; }
.header__toggle-bar:nth-child(3) { top: 28px; }

/* ========= 開いたとき（×アイコンに変形） ========= */
.is-drawer-open .header__toggle-bar:nth-child(1) {
    top: 19px; /* 真ん中に寄せる */
    transform: rotate(45deg);
}
.is-drawer-open .header__toggle-bar:nth-child(2) { opacity: 0; /* 真ん中線は消す */ }
.is-drawer-open .header__toggle-bar:nth-child(3) {
    top: 19px; /* 真ん中に寄せる */
    transform: rotate(-45deg);
}

/* スクリム（全画面オーバーレイ。PCでは非表示のまま） */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 9;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
/* 開いた状態（JSで body に付与） */
.is-drawer-open .scrim {
    opacity: 1;
    pointer-events: auto;
}

/* ========================= 1024px以下：右ドロワーに切替 ========================= */
@media (max-width: 1024px) {
    /* ハンバーガー表示 */
    .header__toggle {
        display: inline-block;
        z-index: 9999;
    }

    /* 右ドロワー化（PCのflexはこの範囲内だけ上書き） */
    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        width: min(80vw, 360px);
        height: 100dvh;
        padding: 24px;
        background: var(--color-bg-card-white);
        border-left: 1px solid var(--line);
        box-shadow: -4px 0 24px rgba(0,0,0,.08);
        transform: translateX(100%); /* 初期は画面外（右） */
        transition: transform .3s ease;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 40px;
    }
    /* ドロワーを開いたとき */
    .is-drawer-open .header__nav { transform: translateX(0); }

    /* メニューは縦並び */
    .header__nav-list {
        display: grid;
        gap: 16px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    /* CTAも縦積み */
    .header__cta { display: grid; gap: 16px; }

    /* ロゴ縮小（既存の意図に合わせる） */
    .header__logo-img {
        height: 40px;
        width: auto;
    }
}

/* ========================= 768px以下：右ドロワーに切替 ========================= */
@media (max-width: 768px) {
    .header__inner {
        align-items: center;
        padding: 8px 24px;
    }
    .header__logo-img {
        height: 30px;
        width: auto;
    }
}


/* ===============================================================
   全ページ共通 Title
   ============================================================== */
h2.section-title {
    margin-bottom: 0.6em;
    padding: 0 8px;
    font-size: var(--font-size-main-title);
    font-weight: 700;
    text-align: center;
    line-height: 1.45;
    letter-spacing: 0.04em;
}
/* 一部文字色ブルーへ変更 */
h2.section-title span.solution__title-highlight { color: var(--color-text-accent); }
h2.section-title span.section-title__subtext { font-size: var(--font-size-sub-title-m); }

/* === Firefoxズレ対策：見出しラベルを安定化 === */
.problems-heading__label {
    position: relative;
    display: inline;     /* ← inlineのままにしない */
    line-height: 1.45;   /* h2.section-title と揃える */
    vertical-align: baseline;
}

.title-marker {
    background: linear-gradient(transparent 60%, var(--color-marker) 60%);
    /* background: linear-gradient(
        transparent calc(100% - 0.55em),
        var(--color-marker) 0
    ); */
}

.u-accent { color: var(--color-text-accent); }

.br-pc  { display: block; }
.br-tab { display: none;  }
.br-sp  { display: none;  }

.u-footnote {
    font-size: var(--font-size-text-sm);
    color: #C01212;
}

@media (max-width: 1024px) {
    .br-tab { display: block; }
}
@media (max-width: 768px) {
    .br-pc { display: none;  }
    .br-sp { display: block; }
}


/* ===============================================================
   Breadcrumbs
   ============================================================== */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 24px;
    box-sizing: border-box;
}
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--font-size-text-sm);
    color: #9ca3af;
}
.breadcrumbs__list li span { color: #9ca3af; }
/* NavXTの <li> には .bcn-li が付与されることが多いですが、汎用で li を対象に */
.breadcrumbs__list > li > a { text-decoration: none; }
.breadcrumbs__list > li > a:hover { text-decoration: underline; }

.breadcrumbs__item a { color: #9ca3af; text-decoration: none; }
.breadcrumbs__item:not(:last-child)::after {
    content: "ー";
    margin-left: 10px;
    color: #9ca3af;
}
/* 区切り（プラグイン側は空にしたのでCSSで足す） */
.breadcrumbs__list > li:not(:last-child)::after {
    content: "ー";
    margin-left: 10px;
    color: #9ca3af;
}
/* 現在位置（NavXTは .current-item が付く。念のため最終要素も） */
.breadcrumbs__list > li.current-item,
.breadcrumbs__list > li:last-child span {
    color: var(--color-text-main);
}


/* ===============================================================
   Footer
   ============================================================== */
.footer {
    background: var(--color-bg-footer-blue); /* スクショの淡いグレー寄りブルー */
    color: var(--color-text-main);           /* 文字はやや濃いグレー */
    padding: 60px 0;
    box-sizing: border-box;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- 上段:4カラム --- */
.footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 48px;
    margin-bottom: 40px;
}
.footer__col { }
.footer__content { margin-bottom: 2.5em; }

.footer__heading {
    margin: 0 0 1em;
    padding-bottom: 0.6em;
    font-weight: 800;
    font-size: var(--font-size-text-md);
    line-height: 1.4;
    border-bottom: 2px solid var(--color-bg-card-blue); /* 見出し下の薄い線 */
}
.footer__subheading {
    margin: 20px 0 12px;
    padding-bottom: 1em;
    font-weight: 800;
    font-size: var(--font-size-text-md);
    line-height: 1;
    border-bottom: 2px solid var(--color-bg-card-blue); /* 見出し下の薄い線 */
}

.footer__list {
    display: grid;
    gap: 0.8em;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--font-size-text-sm);
}
.footer__link {
    text-decoration: none;
    color: var(--color-text-main); /* グレー文字 */
    transition: color .2s ease, opacity .2s ease;
}
.footer__link:hover,
.footer__link:focus-visible {
    color: var(--color-text-link); /* ブランド濃青に寄せる */
}

/* --- ロゴ --- */
.footer__brand {
    margin-bottom: 32px;
}

.footer__logo img {
    display: block;
    max-width: 256px;
    height: auto;
}

/* --- 拠点情報 --- */
.footer__offices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer__office { }

.footer__office-name {
    margin: 0 0 0.5em;
    font-size: var(--font-size-text-md);
    font-weight: 700;
    color: var(--color-text-accent-dark);
    line-height: 1.4;
}

.footer__office-address {
    font-style: normal;
    font-size: var(--font-size-text-sm);
    line-height: 1.75;
    color: var(--color-text-main);
}

.footer__office-tel {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer__office-tel:hover {
    opacity: 0.7;
}

/* --- コピーライト --- */
.footer__bottom {
    text-align: center;
}

.footer__copy {
    font-size: var(--font-size-text-sm);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer {
        padding: 40px 0;
        box-sizing: border-box;
    }
    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .footer__brand {
        margin-bottom: 24px;
    }
    .footer__logo img {
        max-height: 40px;
        max-width: initial;
    }
    .footer__offices {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .footer { padding: 40px 0 24px; }
    .footer__nav { grid-template-columns: 1fr; }
    .footer__content:nth-child(2) { margin-bottom: 0; }
    .footer__brand {
        margin-bottom: 20px;
    }
    .footer__offices {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



    .pdfemb-viewer {
        /* width: 100% !important;
        height: 100% !important; */
    }

@media (max-width: 1024px) {
        /* .pdfemb-viewer {
        width: 80% !important;
        height: 80% !important;
    } */
}
@media (max-width: 768px) {
}


/* 251223追加CSS CTA */

/* ===============================================================
   CTA Banner
=============================================================== */
.cta-banner {
    padding: 60px 0;
    width: 100%;
    background: url(../image/purpose/cts-bg.jpg) no-repeat center / cover;
    color: #ffffff;
}

.cta-banner__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-banner__title {
    position: relative;
    margin-bottom: 0.5em;
    font-size: var(--font-size-main-title);
    font-weight: 700;
    text-align: center;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.cta-banner__title::after {
    position: absolute;
    content: "";
    top:  0em;
    left: calc(50% + 7.6em);
    width: 110px;
    height: 155px;
    background: url(../image/purpose/icon/women-illust.png) no-repeat center / contain;
}

.cta-banner__title::before {
    position: absolute;
    content: "";
    top:  0em;
    right: calc(50% + 7.6em);
    width: 130px;
    height: 157px;
    background: url(../image/purpose/icon/men-illust.png) no-repeat center / contain;
}

.cta-banner__lead {
    margin: 0 0 16px;
    text-align: center;
    line-height: 1.8;
}

.cta-banner__actions {
    display: flex;
    gap: 7.55556%;
    justify-content: center;
}

/* 共通ボタン */
.cta-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 416px;
    padding: 1.05em 1.2em;
    border-radius: 10px;
    font-size: var(--font-size-sub-title-m);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    will-change: transform, box-shadow;
}

/* ゴースト（電話） */
.cta-banner__btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: inset 0 0 0 0 rgba(255,255,255,0);
}
.cta-banner__btn--ghost:hover,
.cta-banner__btn--ghost:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    outline: none;
}

/* ソリッド（フォーム） */
.cta-banner__btn--solid {
    background: #ffffff;
    color: var(--color-text-accent-dark);
    border: 2px solid #ffffff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}
.cta-banner__btn--solid:hover,
.cta-banner__btn--solid:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    outline: none;
}

/* アイコン */
.cta-banner__icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 画像パスはプロジェクトの実体に合わせて調整してください */
.cta-banner__icon--tel {
    background-image: url("../image/common/tel-icon.png");
}
.cta-banner__icon--mail {
    background-image: url("../image/common/mail-icon.png");
}

/* Responsive */
@media (max-width: 768px) {
    .cta-banner {
        padding: 40px 0;
    }
    .cta-banner__title::before {
        top: 0.5em;
        right: calc(50% + 4em);
        width: 50px;
        height: 57px;
        background: url(../image/purpose/icon/men-illust.png) no-repeat center / contain;
    }
    .cta-banner__title::after {
        top: 0.5em;
        left: calc(50% + 4em);
        width: 40px;
        height: 60px;
        background: url(../image/purpose/icon/women-illust.png) no-repeat center / contain;
    }
    .cta-banner__lead {
        text-align: left;
    }
    .cta-banner__btn {
        width: 100%;
        max-width: 416px;
        font-size: var(--font-size-text-lg);
        padding: 0.95em 1em;
    }
    .cta-banner__icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }
    .cta-banner__actions {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* 251224追加・NEWSの日付非表示 */
.home .news__date,               /* フロントページ（TOP） */
.blog .news__date,               /* 投稿一覧（エムアイディファースト通信） */
.post-type-archive-news .news__date,
.news-single-page .news__date {
    display: none;
}