@charset "utf-8";

/*
 * RESPONSIVE
 * 幅別の後読み上書きシート。要素自体のスタイルは base.css 側に定義。
 * 767px以下: スマホ（1カラム） / 768〜1199px: タブレット（fluid縮小）
 * ※メディアクエリ外の記述はモバイル用要素の既定非表示と
 *   ページ遷移フェード（全幅適用）のみ。
 */

#navToggle { display: none; }
.sub-toggle { display: none; } /* ローカルナビ折りたたみボタン（スマホのみ表示） */
#spMenu     { display: none; } /* スマホ用オーバーレイメニュー（PC・タブレットでは非表示） */

/* ==========================================================================
   ページ遷移アニメーション（フェード）
   読み込み時にフェードイン／内部リンククリック時にフェードアウトしてから遷移
   ========================================================================== */
@-webkit-keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body {
    -webkit-animation: pageFadeIn .6s ease;
            animation: pageFadeIn .6s ease;
}
body.page-leaving {
    opacity: 0;
    -webkit-transition: opacity .45s ease;
            transition: opacity .45s ease;
}
@media (prefers-reduced-motion: reduce) {
    body,
    body.page-leaving {
        -webkit-animation: none;
                animation: none;
        -webkit-transition: none;
                transition: none;
        opacity: 1;
    }
}

/*-----------------------
    TABLET & BELOW (〜1199px)
------------------------*/
@media only screen and (max-width: 1199px) {
    body { min-width: 0; }
    .inner {
        width: auto;
        max-width: 1180px;
        padding-left: 20px;
        padding-right: 20px;
    }
    img {
        max-width: 100%;
        height: auto;
    }

    /* 2カラム（company / products） */
    #main { width: calc(100% - 310px); }
    #sub { width: 280px; }

    /* ヘッダー */
    #head .h-primary li { margin-left: 10px; }
    #head .h-tel .num { font-size: 26px; }
    #head .h-btn { width: 170px; height: 58px; }

    /* フッター：横並び（住所400px＋ナビ220px×3）は約1100px未満で
       カラム落ちするため、住所（中央）→ナビ（3列を中央寄せ）→連絡先（中央）
       の縦積みに変更 */
    #footInfo .f-add {
        float: none;
        width: auto;
        text-align: center;    /* ロゴ・社名・住所ブロックを中央に配置 */
    }
    #footInfo .f-add > dl > dd {
        display: inline-block; /* 住所ブロックを内容幅に縮めて中央へ */
        text-align: left;      /* 住所テキストは左寄せのまま */
        margin: 0 auto;
    }
    #footInfo .f-nav {
        float: none;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;        /* 3列をまとめて中央寄せ */
        margin-top: 40px;
    }
    #footInfo .f-nav ul {
        width: auto;
        float: none;
    }
    #footInfo .f-nav ul + ul { margin-left: 50px; } /* 列間隔 */
    #footInfo .f-contact {
        float: none;
        display: block; /* baseのdisplay:inlineを解除（floatなしでは境界線・余白が崩れる） */
        width: auto;
    }
    #footInfo .f-contact ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;        /* 電話＋ボタン2つを中央寄せ */
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;            /* 電話とボタンの縦中央を揃える */
    }
    #footInfo .f-contact li { float: none; }

    /* HOME: メインビジュアル
       PCの1180px基準の構図（左に写真・右にタイトル）をそのまま
       calc(元px / 1180 * 100vw) で画面幅に比例縮小して収める */
    #mainVisual .slide { width: auto; }
    #mainVisual .stage { height: calc(500 / 1180 * 100vw); }
    #mainVisual .stage p { margin: 0; } /* pの既定マージンは非スケールのためズレの元。paddingだけで位置決めする */

    #mainVisual .shop {
        background-position: calc(20 / 1180 * 100vw) center;
        background-size: auto calc(450 / 1180 * 100vw);
        /* 注意: padding-leftは4スライドで統一すること。slickは先頭スライドの
           paddingを基準に全スライドの幅を決めるため、先頭より広いスライドが
           あるとfloatが折り返してtrackが2段（高さ2倍）になる */
        padding: calc(100 / 1180 * 100vw) 0 0 calc(500 / 1180 * 100vw);
    }
    #mainVisual .shop p img { width: calc(620 / 1180 * 100vw); }
    #mainVisual .shop .more { margin-top: calc(30 / 1180 * 100vw); }

    #mainVisual .lj {
        background-position: calc(20 / 1180 * 100vw) center;
        background-size: auto calc(450 / 1180 * 100vw);
        padding: calc(75 / 1180 * 100vw) 0 0 calc(500 / 1180 * 100vw);
    }
    #mainVisual .lj p img { width: calc(590 / 1180 * 100vw); }
    #mainVisual .lj .more { margin-top: calc(15 / 1180 * 100vw); }

    #mainVisual .process {
        background-position: calc(55 / 1180 * 100vw) center;
        background-size: auto calc(400 / 1180 * 100vw);
        padding: calc(125 / 1180 * 100vw) 0 0 calc(500 / 1180 * 100vw);
    }
    #mainVisual .process p img { width: calc(520 / 1180 * 100vw); }

    #mainVisual .app {
        background-position: calc(70 / 1180 * 100vw) bottom;
        background-size: calc(350 / 1180 * 100vw) auto;
        padding: calc(140 / 1180 * 100vw) 0 0 calc(500 / 1180 * 100vw);
    }
    #mainVisual .app p img { width: calc(590 / 1180 * 100vw); }
    #mainVisual .app ul { margin: calc(40 / 1180 * 100vw) 0 0; }
    #mainVisual .app li {
        margin: 0 calc(10 / 1180 * 100vw);
        font-size: clamp(9px, calc(16 / 1180 * 100vw), 16px); /* for iOS等の添え字が潰れない下限 */
    }
    #mainVisual .app li img { height: calc(60 / 1180 * 100vw); width: auto; }

    /* 「詳しくは」ボタン画像も同率で縮小 */
    #mainVisual .stage .more a img { width: calc(250 / 1180 * 100vw); height: auto; }

    /* HOME: 動画・2カラムブロック */
    #homeMovie iframe {
        width: 100%;
        max-width: 830px;
        aspect-ratio: 16 / 9;
        height: auto;
    }
    #homeNews { width: 48%; }
    #homePickup { width: 48%; }

    /* products/recruit 埋め込み動画は既に比率対応済み */
}

/*-----------------------
    〜991px: 2カラム→1カラム（メイン列の可読性確保）
------------------------*/
@media only screen and (max-width: 991px) {
    #main {
        width: auto;
        float: none;
    }
    #sub {
        width: auto;
        float: none;
        margin-top: 60px;
    }

    /* ヘッダー：ロゴ＋電話＋ボタン2つを768pxまで1段に収める */
    #head .h-logo img { width: 230px; height: auto; }
    #head .h-primary li { margin-left: 8px; }
    #head .h-tel .num { font-size: 21px; }
    #head .h-tel .hours { font-size: 10px; }
    #head .h-btn { width: 145px; height: 50px; }
    #head .h-btn-login .main { font-size: 13px; }
    #head .h-btn-login .sub { font-size: 9px; }
    #head .h-btn-contact { font-size: 13px; }
}

/*-----------------------
    MOBILE (〜767px)
------------------------*/
@media only screen and (max-width: 767px) {
    body { font-size: 15px; }
    .inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* ヘッダー：ロゴ縮小＋ハンバーガー。スマホのみ上部に追従
       （ハンバーガーが唯一のナビのため。fixedと違い穴埋め不要） */
    #head {
        padding: 12px 0;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        background: #fff; /* 追従時に背後のコンテンツが透けないように */
    }
    #head .inner { overflow: visible; }
    #head .h-logo { float: none; display: block; }
    #head .h-logo img { max-width: 150px; height: auto; }

    #navToggle {
        display: block;
        position: absolute;
        top: 50%;                       /* ロゴの高さに依存せず常に上下中央 */
        -webkit-transform: translateY(-50%);
                transform: translateY(-50%);
        right: 15px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    #navToggle span {
        display: block;
        width: 24px;
        height: 3px;
        margin: 0 auto 5px;
        background: #00529d;
        border-radius: 2px;
    }
    #navToggle span:last-child { margin-bottom: 0; }

    /* 見出し・パンくず */
    #midTitle { height: 150px; }
    #midTitle h1 { font-size: 162.5%; }
    #breadcrumb { margin-bottom: 40px; }
    #content h2 { font-size: 137.5%; }
    #content h3 { font-size: 125%; }

    /* 1カラム化 */
    #main {
        width: auto;
        float: none;
    }
    #sub {
        width: auto;
        float: none;
        margin-top: 60px;
    }

    /* テーブル：縦積み（横に長い表は個別対応）
       ラベル(th)は薄青の帯＋左に青アクセントの見出しバーに。
       行の区切りは帯で伝わるため上下の罫線は撤去（青線＋グレー線の二重線解消） */
    #content table,
    #content tbody,
    #content tr,
    #content th,
    #content td {
        display: block;
        width: auto;
    }
    #content th {
        width: auto !important;
        margin-top: 18px;
        padding: 8px 12px;
        background: #eef4fa;
        border: none;
        border-left: 3px solid #00529d;
    }
    #content tr:first-child th { margin-top: 0; }
    #content td {
        padding: 10px 2px 0;
        border: none;
    }

    #content .tbl-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #content .lj-spec-table {
        display: table;
        width: 100%;
        table-layout: auto;
    }
    #content .lj-spec-table thead { display: table-header-group; }
    #content .lj-spec-table tbody { display: table-row-group; }
    #content .lj-spec-table tr { display: table-row; }
    #content .lj-spec-table th,
    #content .lj-spec-table td {
        display: table-cell;
        padding: 10px;
        white-space: nowrap;
    }

    /* 回り込み画像 */
    #content .floatbox .left,
    #content .floatbox .right {
        float: none;
        display: block;
        margin: 0 auto 15px;
        text-align: center;
    }
    #content .ayumi-table .left {
        float: none;
        display: block;
        margin: 0 auto 15px;
    }

    /* HOME */
    #topic { padding: 10px 0; }
    #topic dl {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        padding: 0 15px;
    }
    #topic dt { font-size: 106%; }
    #topic dd {
        margin: 0 0 0 1em;
        font-size: 93%;
        text-align: left;
    }
    #homeMovie { margin: 40px 0; }
    #homeProducts { margin: 40px 0 0; }
    #homeProducts ul {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        margin: 20px -5px 0;
    }
    #homeProducts li {
        width: 50%;
        padding: 0 5px 20px;
    }
    /* ラベルバーと画像の幅を常に一致させる（セルが原寸280pxより広い帯域での
       「バーだけ広く画像が中央に浮く」ズレを防止）。タイルは320px上限で中央寄せ */
    #homeProducts li a {
        display: block;
        max-width: 320px;
        margin: 0 auto;
    }
    #homeProducts li img { width: 100%; height: auto; }
    #homeProducts .more a { width: 100%; max-width: 320px; }
    #homeNews,
    #homePickup {
        float: none;
        width: auto;
        margin: 40px 0 0;
    }
    /* MV: スマホ用に再構図（基準幅750、寸法は「構図上のpx / 750 * 100vw」）。
       写真は控えめ・タイトル優先の配分。高さ380相当で上下に余裕を確保 */
    #mainVisual .stage { height: calc(380 / 750 * 100vw); }

    #mainVisual .shop {
        background-position: calc(10 / 750 * 100vw) center;
        background-size: auto calc(230 / 750 * 100vw);
        /* padding-leftは4スライド統一（不揃いだとslickが折り返しtrack2段化。詳細は1199pxブロック参照） */
        padding: calc(65 / 750 * 100vw) 0 0 calc(245 / 750 * 100vw);
    }
    #mainVisual .shop p img { width: calc(480 / 750 * 100vw); }
    #mainVisual .shop .more { margin-top: calc(30 / 750 * 100vw); }

    #mainVisual .lj {
        background-position: calc(10 / 750 * 100vw) center;
        background-size: auto calc(230 / 750 * 100vw);
        padding: calc(45 / 750 * 100vw) 0 0 calc(245 / 750 * 100vw); /* コンテンツが最長のため上paddingは他スライドより小さめ（縦中心は揃う） */
    }
    #mainVisual .lj p img { width: calc(450 / 750 * 100vw); }
    #mainVisual .lj .more { margin-top: calc(10 / 750 * 100vw); }

    #mainVisual .process {
        background-position: calc(20 / 750 * 100vw) center;
        background-size: auto calc(230 / 750 * 100vw);
        padding: calc(80 / 750 * 100vw) 0 0 calc(245 / 750 * 100vw);
    }
    #mainVisual .process p img { width: calc(450 / 750 * 100vw); }

    #mainVisual .app {
        background-position: calc(15 / 750 * 100vw) bottom;
        background-size: calc(240 / 750 * 100vw) auto; /* 縦長画像(350x425)。高さ380相当に合わせて拡大 */
        padding: calc(60 / 750 * 100vw) 0 0 calc(245 / 750 * 100vw);
    }
    #mainVisual .app p img { width: calc(470 / 750 * 100vw); }
    #mainVisual .app ul { margin: calc(40 / 750 * 100vw) 0 0; }
    #mainVisual .app li { margin: 0 calc(10 / 750 * 100vw); }
    #mainVisual .app li img { height: calc(60 / 750 * 100vw); }

    #mainVisual .stage .more a img { width: calc(190 / 750 * 100vw); }

    /* スライド切替ドットは縮小した高さに合わせて詰める */
    #mainVisual .slick-dots { bottom: 6px; }
    #mainVisual .slick-dots li { margin: 0 3px; }
    #mainVisual .slick-dots li button,
    #mainVisual .slick-dots li.slick-active button {
        width: 28px;
        height: 6px;
        background-size: 56px 6px; /* 元スプライト80x8を等比縮小（40px幅×2コマ） */
    }
    #mainVisual .slick-dots li.slick-active button { background-position: -28px 0; }

    /* products */
    #content .products-link li { width: 100%; }
    #content .products-nav li { width: 100%; }
    #content .products-banner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
    #content .products-banner a { margin: 5px 0; }
    #content .lj-feature-cont { width: 100%; }
    #content .lj-feature-pickup {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
    }
    #content .lj-feature-pickup h3 { margin: 0 0 15px; }
    #content .lj-case-list li { width: 50%; }
    #content .lj-product-list li { width: 50%; }
    #content .products-more { text-align: center; }
    #content .qc-btn { text-align: center; }
    #content .qc-btn a {           /* 固定min-width:200pxをやめ、幅に追従（上限320px） */
        width: 100%;
        max-width: 320px;
        min-width: 0;
        margin: 0 auto 5px;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
    }

    /* company */
    #content .company-cat li { width: 100%; padding-bottom: 20px; }
    #content .president-list {
        display: block;
        margin: 0;
    }
    #content .president-list li {
        width: auto;
        margin: 0 0 25px;
    }
    #content .ayumi-nav {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        margin: 20px -5px;
    }
    #content .ayumi-nav li {
        width: 50%;
        padding: 5px;
    }
    #content .office-gmap { height: 280px; }

    /* maker */
    #content .maker-list li { width: 50%; }

    /* recruit */
    #content .recruit-nav { margin-top: 40px; }
    #content .recruit-nav li { width: 45%; font-size: 100%; }
    #content .recruit-btn a { width: 100%; max-width: 320px; }

    /* sitemap */
    #sitemap {
        display: block;
        margin: 0;
    }
    #sitemap .cont {
        width: auto;
        padding: 0;
    }

    /* フォーム（contact / estimate / recruit entry 共通） */
    #contact { margin-top: 40px; }
    #contact table,
    #contact tbody,
    #contact tr,
    #contact th,
    #contact td {
        display: block;
        width: auto;
    }
    #contact th {
        margin-top: 20px;
        padding: 8px 12px;              /* コンテンツ側テーブルの見出しバーと同スタイル */
        background: #eef4fa;
        border: none;
        border-left: 3px solid #00529d;
    }
    #contact tr:first-child th { margin-top: 0; }
    #contact th:before {
        float: right;               /* 帯の右端に配置（必須/任意バッジ） */
        margin: 1px 0 0 10px;
    }
    #contact td {
        padding: 12px 2px 0;
        border: none;
    }
    #contact .form-control { margin: 0.25em 0; }
    #contact .form-control.mid { width: 100%; }
    #contact .form-control.short { width: 60%; max-width: 200px; }
    #contact .form-control.number { width: 80px; }
    #content label {
        margin: 0 15px 0 0;
        white-space: normal;
    }
    /* confirm: 主動作の「送信する」を上、「入力画面に戻る」を下に（DOM順は維持） */
    #contact .formbtn {
        margin-top: 40px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        font-size: 0; /* フォーム間の&nbsp;による隙間を除去 */
    }
    #contact .formbtn .inline {
        display: block;
        width: 100%;
    }
    #contact .formbtn input {
        width: 100%;
        max-width: 280px;
        margin: 0 0 10px;
        font-size: 16px; /* 親のfont-size:0を打ち消し */
    }

    /* products下部CTA：着地時は電話込み縦積み、浮遊中は電話抜き2ボタン横並び。
       切替判定はjs/common.js（高さ変化による境界振動を正規化で対策） */
    #footContact { margin: 50px 0 0; }
    #footContact ul {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        padding: 15px 0;
    }
    #footContact li { margin: 5px 0; width: 100%; }
    #footContact li.tel { margin-right: 0; }
    #footContact .cta-tel .num {
        font-size: 24px;                     /* 非対応ブラウザ用フォールバック */
        font-size: clamp(20px, 6.4vw, 28px); /* 横幅に比例して伸縮 */
    }
    #footContact .cta-btn {          /* 固定280pxをやめ、幅に追従（上限320px・中央） */
        width: 100%;
        max-width: 320px;
        height: 48px;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
    }
    /* 浮遊中は電話を省き2ボタン横並びでコンパクトに */
    #footContact.is-floating li.tel { display: none; }
    #footContact.is-floating ul {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
        max-width: 520px;   /* 広い画面でも大きくなりすぎないよう中央で上限 */
        margin: 0 auto;
        padding: 8px 10px;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
    }
    #footContact.is-floating li {   /* 2ボタンを等幅で幅いっぱいに */
        -webkit-box-flex: 1;
            -ms-flex: 1 1 0px;
                flex: 1 1 0;
        margin: 0 4px;
        width: auto;
    }
    #footContact.is-floating .cta-btn {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        height: 40px;
        padding: 0 6px;
        font-size: 13px;
    }

    #foot { margin-top: 50px; }
    #footAyumi .inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        text-align: center;
    }
    #footAyumi .more { margin: 10px 0 0; }
    #footSupport ul { width: auto; }
    #footSupport li { padding: 6px; }

    #footInfo .f-add dd dd { padding-left: 7em; }

    #pagetop { right: 10px; }
    #pagetop img { width: 44px; height: 44px; }
}

/*-----------------------
    SMALL MOBILE (〜480px)
------------------------*/
@media only screen and (max-width: 480px) {
    #homeProducts li { width: 100%; }
    #footInfo .f-add dd dt {
        float: none;
        padding-bottom: 0;
    }
    #footInfo .f-add dd dd { padding: 0 0 5px; }
}

/*-----------------------
    MOBILE: フッター／コンテンツのシンプル化（2026-07 追記）
    フッターはサイトマップnav／連絡先CTAを畳み、住所＋コピーライト中心に。
    （TEL・注文システム・お問い合わせ・ナビは #spMenu オーバーレイに集約）
------------------------*/
@media only screen and (max-width: 767px) {
    /* --- フッター：住所＋コピーライト中心に --- */
    /* ※f-addの中央寄せは1199px以下ブロックで適用済み */
    #footInfo .f-nav     { display: none; } /* サイトマップnav → ヘッダーメニューに集約 */
    #footInfo .f-contact { display: none; } /* 連絡先CTA → ヘッダーメニューに集約 */

    /* フッターの協賛バナーを中央寄せ */
    #footSupport ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
    #footSupport li {
        float: none;
        width: 50%;               /* 2列に */
        box-sizing: border-box;
    }
    #footSupport li img {
        width: 100%;
        max-width: 234px;         /* ネイティブ幅(234px)を超えて拡大しない */
        height: auto;
    }

    /* --- コンテンツ画像の左寄り防止（フロート画像の余白は壊さない範囲で中央化） --- */
    #homeProducts li           { text-align: center; } /* 商品タイル（inline画像を中央へ） */
    #content .president-list li { text-align: center; } /* あゆみ 歴代社長の写真＋キャプション */
    #content td > img {                                 /* あゆみ表など、セル内の単独写真 */
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* 注目の新商品：写真とテキストの間隔を確保（ひっつき防止） */
    #homePickup li img { margin: 0 15px 8px 0; }

    /* 商品詳細ページ：小さく見える写真を横幅いっぱいに */
    #content .products-cont .floatbox .left,
    #content .products-cont .floatbox .right {
        width: 100%;
        height: auto;
    }

    /* 会社案内トップ等のカード：画像を全幅ブロック化してテキストを下へ */
    #content .company-cat img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* --- ローカルナビ（#sub）を折りたたみ式に --- */
    #sub .sub-nav.subnav-enhanced ul {                            /* 既定は畳む */
        display: block;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
    }
    #sub .sub-nav.subnav-enhanced.is-open ul {                    /* 開いた節のみ表示 */
        max-height: 640px;
        opacity: 1;
        visibility: visible;
    }
    /* トランジションはJSで .subnav-anim を付与後に有効化（初期表示のアニメ発火を防ぐ） */
    #sub .sub-nav.subnav-anim ul {
        -webkit-transition: max-height .45s ease, opacity .4s ease, visibility .45s;
                transition: max-height .45s ease, opacity .4s ease, visibility .45s;
    }
    #sub .sub-nav .ttl { padding-right: 54px; }                  /* キャレット分の余白 */
    #sub .sub-nav.subnav-enhanced .ttl { cursor: pointer; }      /* バー全体がタップで開閉 */
    #sub .sub-nav .ttl .sub-toggle {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 54px;
        height: 100%;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    #sub .sub-nav .ttl .sub-toggle::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 22px;
        width: 9px;
        height: 9px;
        margin-top: -7px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        -webkit-transform: rotate(45deg);
                transform: rotate(45deg);   /* ▼ 閉じている */
    }
    #sub .sub-nav.is-open .ttl .sub-toggle::before {
        margin-top: -3px;
        -webkit-transform: rotate(-135deg);
                transform: rotate(-135deg); /* ▲ 開いている */
    }
}

/* ==========================================================================
   スマホ用 全画面オーバーレイメニュー
   （PCの#globalNav・ヘッダーCTAを非表示にし #spMenu に置き換え）
   ========================================================================== */
@media only screen and (max-width: 767px) {
    /* 旧プッシュダウンメニューはモバイルでは使わない */
    #head #globalNav,
    #head .h-primary { display: none; }

    /* 開いている間は背面スクロール停止／ハンバーガーは×（オーバーレイ側）に置換 */
    body.nav-open { overflow: hidden; }
    body.nav-open #navToggle { display: none; }

    /* オーバーレイ本体 */
    #spMenu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        padding: 68px 26px 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(255, 255, 255, 0.93);
        -webkit-backdrop-filter: blur(8px);
                backdrop-filter: blur(8px);
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        -webkit-transform: translateY(-8px);
                transform: translateY(-8px);
        -webkit-transition: opacity .45s ease, visibility .45s, -webkit-transform .45s ease;
                transition: opacity .45s ease, visibility .45s, transform .45s ease;
    }
    body.nav-open #spMenu {
        opacity: 1;
        visibility: visible;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }

    /* 閉じる×（角丸の四角ボタン） */
    #spMenuClose {
        position: fixed;
        top: 16px;
        right: 18px;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: 1px solid #b8c2cc;
        border-radius: 4px;
        cursor: pointer;
    }
    #spMenuClose::before,
    #spMenuClose::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 2px;
        margin: -1px 0 0 -9px;
        background: #14315a;
    }
    #spMenuClose::before { -webkit-transform: rotate(45deg);  transform: rotate(45deg); }
    #spMenuClose::after  { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); }

    /* 見出し MENU / メニュー */
    .spMenu-ttl {
        margin: 0 0 6px;
        text-align: center;
        color: #00529d;
        font-size: 26px;
        font-weight: bold;
        letter-spacing: .14em;
        line-height: 1.1;
    }
    .spMenu-ttl span {
        display: block;
        margin-top: 5px;
        color: #8a939c;
        font-size: 11px;
        letter-spacing: .3em;
    }

    /* ナビ（英字＋和文） */
    .spMenu-nav { margin-top: 14px; border-top: 1px solid #dce3ea; }
    .spMenu-nav ul { margin: 0; padding: 0; list-style: none; }
    .spMenu-nav > ul > li { border-bottom: 1px solid #dce3ea; }
    .spMenu-nav > ul > li > a {
        display: block;
        padding: 15px 6px;
        text-decoration: none;
    }
    .spMenu-nav > ul > li > a b {
        color: #14315a;
        font-size: 17px;
        font-weight: bold;
        letter-spacing: .06em;
    }
    .spMenu-nav > ul > li > a span {
        margin-left: 10px;
        color: #7a828b;
        font-size: 12px;
    }
    /* サブリンク（個人情報・サイトマップ）：下のTEL・ボタン群と同じ中央軸に */
    .spMenu-sub {
        margin: 16px 0 0;
        padding: 0;
        text-align: center;
    }
    .spMenu-nav .spMenu-sub li {
        display: inline-block;
        margin: 0;
        border-bottom: none; /* .spMenu-nav > ul > li の罫線打ち消し（詳細度対策でクラス2つ） */
    }
    .spMenu-sub a {
        display: inline-block;
        padding: 2px 14px;
        color: #7a828b;
        font-size: 12px;
        text-decoration: none;
    }

    /* フッター（TEL＋ピルボタン） */
    .spMenu-foot { margin: 26px 0 0; text-align: center; }
    .spMenu-tel { display: inline-block; margin-bottom: 18px; text-decoration: none; }
    .spMenu-tel .num {
        display: block;
        color: #00529d;
        font-size: 26px;
        font-weight: bold;
        line-height: 1.2;
        white-space: nowrap;
    }
    .spMenu-tel .hours { display: block; color: #555; font-size: 11px; }
    .spMenu-btn {
        display: block;
        width: 100%;
        max-width: 340px;
        margin: 0 auto 12px;
        padding: 15px 12px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        -webkit-transition: opacity .3s ease;
                transition: opacity .3s ease;
    }
    .spMenu-btn:hover,
    .spMenu-btn:active { opacity: .7; }
    .spMenu-btn-primary { background: #00529d; color: #fff; }
    .spMenu-btn-primary:hover { color: #fff; }
    .spMenu-btn-line {
        background: #fff;
        color: #14315a;
        border: 1px solid #14315a;
    }
    .spMenu-btn-line:hover { color: #14315a; }
}
