/* ============================================================
   Top Page v2 スタイル
   クラス名: .topv2-* 統一
   body.home-topv2 クラスによりスコープを閉じる
   他ページへの影響: なし
   ブランドカラー: #ff6b60
   ============================================================ */

/* ============================================================
   ヘッダー（トップページのみ）2段ラッパー構造
   ─────────────────────────────────────────────────────────────
   Level1: .topv2-header-sticky
     → 全幅 sticky。margin:auto を sticky に使うと
       ブラウザによって右寄りになる問題を根本回避するため
       ここは幅 100% のまま。KV に 40px 被せる。

   Level2: .topv2-header-box
     → 通常ブロック要素なので margin:0 auto が確実に効く。
       max-width + 中央寄せ + 浮遊感（shadow/radius）を担う。

   .header-container
     → position だけリセット。width/flex などは他ページと同等のまま。
   ============================================================ */

/* ============================================================
   Header redesign final
   方針:
   - 商社・金融の端正さ
   - 海運コーポレートの信頼感
   - 派手ではなく、上質で整理されたヘッダー
   ============================================================ */

/* sticky wrapper */
.topv2-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: -40px;
    pointer-events: none;
}

.topv2-header-box {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    pointer-events: auto;
}
/* ============================================================
   KV セクション
   ============================================================ */
.topv2-kv {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1a2e 0%, #1e3a5c 50%, #2a5c80 100%);
}

.topv2-kv-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
}

.topv2-kv .side-floating-menu {
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
    z-index: 60;
}

/* ============================================================
   KV 左側オーバーレイ: ロゴ + キャッチコピー
   ============================================================ */
.topv2-kv-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 520px;
    z-index: 10;
    margin-top: -20px; /* ヘッダー40px被さり分の半分を補正 */
}

.topv2-kv-logo {
    display: block;
    width: 300px;
    height: auto;
    max-width: none;    /* Tailwind preflight の max-width:100% 上書き */
    margin-bottom: 28px;
}

.topv2-kv-main-ja {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.50);
    margin-bottom: 8px;
}

.topv2-kv-main-en {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
    margin-bottom: 28px;
}

.topv2-kv-body-ja {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    line-height: 2.0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.topv2-kv-body-en {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.04em;
}

/* ============================================================
   共通: セクションレイアウト
   ============================================================ */
.topv2-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.topv2-sec-label {
    width: 220px;
    flex-shrink: 0;
    padding-top: 4px;
}

.topv2-sec-en {
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #ff6b60;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.topv2-sec-ja {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #1e3a5c;
    letter-spacing: 0.04em;
    line-height: 1.25;
    margin-bottom: 24px;
}

.topv2-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ff6b60;
    border: 1.5px solid #ff6b60;
    border-radius: 2px;
    padding: 8px 18px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.topv2-sec-link:hover {
    background: #ff6b60;
    color: #fff;
    text-decoration: none;
}
.topv2-sec-link i {
    font-size: 10px;
}

/* ============================================================
   お知らせセクション
   ============================================================ */
.topv2-news {
    padding: 80px 0;
    background: #fff;
}

.topv2-news-wrap {
    flex: 1;
    min-width: 0;
}

.topv2-news-list {
    border-top: 1px solid #e8e2dc;
}

.topv2-news-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 4px;
    border-bottom: 1px solid #e8e2dc;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}
.topv2-news-item:hover {
    opacity: 0.7;
    text-decoration: none;
}

.topv2-news-date {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.topv2-news-cat {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #ff6b60;
    border: 1px solid rgba(255, 107, 96, 0.5);
    border-radius: 2px;
    padding: 2px 8px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.topv2-news-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1e3a5c;
    letter-spacing: 0.02em;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.topv2-news-empty {
    padding: 24px 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    color: #999;
}

/* ============================================================
   事業案内セクション
   ============================================================ */
.topv2-service {
    padding: 80px 0;
    position: relative;
    background: #f7f4f1;
    overflow: hidden;
}

.topv2-service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.topv2-service .topv2-section-inner {
    position: relative;
    z-index: 1;
}

/* ============================================================
   カードグリッド外枠
   ============================================================ */
.topv2-cards-outer {
    flex: 1;
    min-width: 0;
}

/* グリッド: 3列 × 2段 固定表示 */
.topv2-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================================================
   サービスカード
   ラベル = #ff6b60 地、部分幅（fit-content 寄り）
   ============================================================ */
.topv2-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.topv2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    color: inherit;
}

/* 画像エリア */
.topv2-card-img {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #ddd;
    flex-shrink: 0;
}
.topv2-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.topv2-card:hover .topv2-card-img img {
    transform: scale(1.06);
}

/* ラベル: 画像左下にオーバーラップ（position: absolute） */
.topv2-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    background: #ff6b60;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.topv2-card-arrow {
    font-size: 15px;
    font-family: sans-serif;
    opacity: 0.9;
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット: 900px 以下 */
@media screen and (max-width: 900px) {
    /* KV オーバーレイ: 中央寄せ */
    .topv2-kv-content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        max-width: 85%;
        margin-top: -20px;
    }
    .topv2-kv-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .topv2-section-inner {
        flex-direction: column;
        gap: 28px;
    }

    .topv2-sec-label {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 16px;
        padding-bottom: 16px;
        border-bottom: 2px solid rgba(255, 107, 96, 0.15);
    }

    .topv2-sec-ja {
        margin-bottom: 0;
        font-size: 22px;
    }

    .topv2-sec-link {
        margin-left: auto;
    }

    .topv2-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ: 560px 以下 */
@media screen and (max-width: 560px) {
    /* KV オーバーレイ: フォント縮小・英語説明非表示 */
    .topv2-kv-content {
        max-width: 90%;
    }
    .topv2-kv-logo {
        width: 130px;
        margin-bottom: 20px;
    }
    .topv2-kv-main-ja {
        font-size: 22px;
    }
    .topv2-kv-main-en {
        font-size: 10px;
        letter-spacing: 0.08em;
    }
    .topv2-kv-body-en {
        display: none;
    }

    .topv2-news,
    .topv2-service {
        padding: 50px 0;
    }

    .topv2-news-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .topv2-news-title {
        width: 100%;
        white-space: normal;
        font-size: 12px;
    }

    .topv2-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ヘッダー本体 */
.home-topv2 .header-container {
    position: relative;
    top: 14px;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 84px;

    display: flex;
    align-items: stretch;
    justify-content: space-between;

    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,249,252,0.98) 100%);
    border: 1px solid rgba(21, 43, 71, 0.10);
    border-radius: 20px;

    box-shadow:
        0 16px 36px rgba(18, 36, 61, 0.14),
        0 6px 16px rgba(18, 36, 61, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.92),
        inset 0 -1px 0 rgba(18, 36, 61, 0.05);

    overflow: visible;
}

/* 外枠の内側装飾 */
.home-topv2 .header-container::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 15px;
    pointer-events: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.90),
        inset 0 -1px 0 rgba(19, 39, 65, 0.05);
}

/* ロゴ領域 */
.home-topv2 .header-logo {
    flex: 0 0 auto;
    min-width: 305px;
    display: flex;
    align-items: center;
    padding: 0 34px 0 28px;
    border-right: none;
}

.home-topv2 .header-logo a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.home-topv2 .header-logo img {
    display: block;
    width: auto;
    height: 40px;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
}

.home-topv2 .header-logo.logo02 img {
    display: block;
    width: auto;
    height: 70px;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
    
}

/* ナビ領域 */
.home-topv2 .header-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 10px 0 10px;
}

.home-topv2 .header-nav-list {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    height: 100%;
    max-width: none;
    margin-right: 10px;
}

.home-topv2 .header-nav-list > li {
    height: 100%;
    display: flex;
    align-items: center;
    position: static;
    padding: 0 4px;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* ナビリンク */
.home-topv2 .header-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 12px;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.home-topv2 .header-nav-item::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6b60 0%, #ffb360 100%);
    opacity: 0;
    transform: scaleX(0.5);
    transform-origin: center;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.home-topv2 .header-nav-list > li:hover .header-nav-item {
    background: rgba(26, 47, 74, 0.045);
}

.home-topv2 .header-nav-list > li:hover .header-nav-item::after {
    opacity: 1;
    transform: scaleX(1);
}

/* 英字サブ見出し */
.home-topv2 .nav-label-en {
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #ff6b60;
    margin-bottom: 1px;
}

/* 日本語メイン見出し */
.home-topv2 .nav-label-jp {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #182738;
    transition: color 0.2s ease;
}

.home-topv2 .header-nav-list > li:hover .nav-label-jp {
    color: #1f3f63;
}

/* 長いメニューだけ改行を許可 */
.home-topv2 .nav-label-jp--schedule {
    white-space: normal;
    line-height: 1.18;
}

/* メガメニュー高さ補正 */
.home-topv2 .mega-menu {
    top: 84px;
}

/* CTA領域 */
.home-topv2 .header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 8px 10px 8px 12px;
    margin-left: auto;
    border-left: none;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: visible;
    background: transparent;
}

/* CTA共通 */
.home-topv2 .action-btn {
    position: relative;
    display: flex;
    flex-direction: row;
    gap:5px;
    justify-content: center;
    align-items: center;
    width: 126px;
    min-width: 126px;
    height: 68px;
    padding: 8px 12px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0.03em;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
    overflow: hidden;
}

.home-topv2 .action-btn i {
    width: 28px;
    height: 28px;
    margin: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.home-topv2 .action-btn span {
    display: block;
}

/* ログイン */
.home-topv2 .btn-login {
    color: #8b4d00;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.68) 100%),
        linear-gradient(180deg, rgba(255,179,96,0.28) 0%, rgba(255,179,96,0.16) 100%);
    border: 1px solid rgba(255,179,96,0.56);
    box-shadow:
        0 8px 18px rgba(255,179,96,0.18),
        inset 0 1px 0 rgba(255,255,255,0.94);
}

.home-topv2 .btn-login i {
    color: #fff;
    background: linear-gradient(180deg, #ffc27d 0%, #ffb360 100%);
    box-shadow:
        0 4px 10px rgba(255,179,96,0.30),
        inset 0 1px 0 rgba(255,255,255,0.52);
}

/* お問合せ */
.home-topv2 .btn-contact {
    color: #ad3d35;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.68) 100%),
        linear-gradient(180deg, rgba(255,107,96,0.24) 0%, rgba(255,107,96,0.12) 100%);
    border: 1px solid rgba(255,107,96,0.52);
    box-shadow:
        0 8px 18px rgba(255,107,96,0.16),
        inset 0 1px 0 rgba(255,255,255,0.94);
}

.home-topv2 .btn-contact i {
    color: #fff;
    background: linear-gradient(180deg, #ff8a80 0%, #ff6b60 100%);
    box-shadow:
        0 4px 10px rgba(255,107,96,0.28),
        inset 0 1px 0 rgba(255,255,255,0.46);
}

.home-topv2 .action-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* 言語スイッチャー */
.home-topv2 .header-lang-switcher {
    position: absolute;
    right: 16px;
    bottom: -25px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.90);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.32);
}

.home-topv2 .header-lang-switcher a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.22);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.home-topv2 .header-lang-switcher a:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.52);
}

.home-topv2 .header-lang-switcher .active {
    color: #ffffff;
}

/* レスポンシブ保険 */
@media (max-width: 1280px) {
    .home-topv2 .header-logo {
        min-width: 270px;
        padding-left: 22px;
        padding-right: 18px;
    }

    .home-topv2 .header-nav {
        padding-left: 4px;
    }

    .home-topv2 .header-nav-list {
        margin-right: 4px;
    }

    .home-topv2 .header-nav-list > li {
        padding: 0 2px;
    }

    .home-topv2 .header-nav-item {
        padding: 0 10px;
    }

    .home-topv2 .action-btn {
        width: 116px;
        min-width: 116px;
    }
}

/* ============================================================
   KV ロゴ見切れ防止 & SFM フェードイン演出
   ============================================================ */

/* KVコンテンツ: flex縦方向センタリングで上側見切れを防ぐ
   - top:0/bottom:0 で全高を使い、justify-content:center で中央寄せ
   - padding でヘッダー被さり分・下余白を調整
   - transform/margin-top はリセット（top:50% 方式を廃止）
*/
.home-topv2 .topv2-kv-content {
    top: 0;
    bottom: 0;
    transform: none;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;   /* ヘッダー高さ分の余白 */
    padding-bottom: 20px;
    box-sizing: border-box;
    overflow: visible;
}

/* ロゴ: 元のサイズに戻す（縮小禁止） */
.home-topv2 .topv2-kv-logo {
    display: block;
    width: 300px;
    height: auto;
    max-width: none;
    margin-bottom: 28px;
}

/* SFM: 初期状態は透明＋少し下 → 表示時にふわっと上へ */
#js-sfm {
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-50% + 10px));
    transition:
        opacity 0.35s ease,
        visibility 0.35s,
        transform 0.35s ease;
}

#js-sfm.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}

/* SFM: ページ最下部付近でふわっと消える
   is-visible より後方宣言のため、両クラスが重なっても
   is-footer-hidden が優先されてフェードアウトする */
#js-sfm.is-footer-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-50% + 10px));
}

/* ============================================================
   スマホ専用: ハンバーガーメニュー・ドロワー・ヘッダー修正
   PC では非表示にする要素（1001px以上）
   ============================================================ */
.sp-menu-btn,
.sp-nav-overlay,
.sp-nav-drawer { display: none; }

@media (max-width: 1000px) {

    /* ── トップページ用ラッパー修正 ── */
    .topv2-header-sticky {
        margin-top: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .topv2-header-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ── ヘッダーコンテナ: absolute/left/transform を解除して幅崩れ防止 ── */
    .home-topv2 .header-container {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: auto;
        min-height: 56px;
        border-radius: 0;
        top: auto;
        box-shadow: 0 2px 10px rgba(18, 36, 61, 0.10);
    }

    /* ── ロゴ領域 ── */
    .home-topv2 .header-logo {
        min-width: unset;
        flex: 1 1 auto;
        padding: 8px 10px 8px 14px;
        box-sizing: border-box;
    }
    /* pictureタグ経由のSPロゴ高さ指定 */
    .home-topv2 .header-logo picture {
        display: contents;
    }
    .home-topv2 .header-logo picture img {
        height: 32px;
        width: auto;
    }
    /* logo02（日本語ヘッダー）の PC ルール .header-logo.logo02 img { height:70px }
       は詳細度 0,3,1 で上記 SP ルール(0,2,2)に勝ってしまうため、
       同詳細度・後方宣言で強制上書きする */
    .home-topv2 .header-logo.logo02 img {
        height: 32px;
        width: auto;
    }

    /* ── PCナビ・CTAボタンを非表示 ── */
    .home-topv2 .header-nav {
        display: none;
    }
    .home-topv2 .header-actions {
        display: none;
    }

    /* ── 言語スイッチャー: SP では非表示（ドロワー内 sp-nav-lang に移動） ── */
    .home-topv2 .header-lang-switcher {
        display: none;
    }

    /* ── ハンバーガーボタン ── */
    .sp-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        margin-right: 8px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        align-self: center;
    }
    .sp-menu-btn span {
        display: block;
        width: 27px;
        height: 3px;
        background: #1e3a5c;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    body.sp-nav-open .sp-menu-btn span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    body.sp-nav-open .sp-menu-btn span:nth-child(2) {
        opacity: 0;
    }
    body.sp-nav-open .sp-menu-btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* ── オーバーレイ ── */
    .sp-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1800;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    body.sp-nav-open .sp-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* ── ドロワー本体 ── */
    .sp-nav-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100dvh;
        background: #fff;
        z-index: 1900;
        transform: none;
        clip-path: inset(0 0 0 100%);
        visibility: hidden;
        transition: clip-path 0.3s ease, visibility 0s 0.3s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -4px 0 24px rgba(18, 36, 61, 0.14);
    }
    body.sp-nav-open .sp-nav-drawer {
        clip-path: inset(0 0 0 0%);
        visibility: visible;
        transition: clip-path 0.3s ease, visibility 0s 0s;
    }

    /* ── ドロワー内部 ── */
    .sp-nav-drawer-inner {
        padding-bottom: 48px;
    }
    .sp-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(30, 58, 92, 0.10);
    }
    .sp-nav-header img {
        height: 28px;
        width: auto;
        display: block;
    }
    .sp-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 20px;
        color: #555;
        border-radius: 50%;
        transition: background 0.15s;
    }
    .sp-nav-close:hover {
        background: rgba(30, 58, 92, 0.06);
    }

    /* ── ドロワーナビリスト ── */
    .sp-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .sp-nav-list .sp-nav-section {
        padding: 12px 20px 6px;
        font-size: 10px;
        font-weight: 700;
        color: #ff6b60;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        background: rgba(30, 58, 92, 0.03);
        border-top: 1px solid rgba(30, 58, 92, 0.07);
        border-bottom: none;
    }
    .sp-nav-list li a {
        display: block;
        padding: 11px 20px 11px 24px;
        font-size: 13px;
        font-weight: 500;
        color: #1e3a5c;
        text-decoration: none;
        border-bottom: 1px solid rgba(30, 58, 92, 0.07);
        transition: background 0.15s, color 0.15s;
    }
    .sp-nav-list li a:hover {
        background: rgba(30, 58, 92, 0.04);
        color: #ff6b60;
    }

    /* ── 言語切替ボタン ── */
    .sp-nav-lang {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 20px 0;
    }
    .sp-nav-lang a {
        display: inline-block;
        padding: 7px 20px;
        border: 1px solid rgba(30, 58, 92, 0.35);
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        color: #1e3a5c;
        text-decoration: none;
        letter-spacing: 0.05em;
        transition: background 0.15s;
    }
    .sp-nav-lang a:hover {
        background: rgba(30, 58, 92, 0.05);
    }
    .sp-nav-lang-current {
        display: inline-block;
        padding: 7px 20px;
        border: 1px solid #1e3a5c;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        background: #1e3a5c;
        letter-spacing: 0.05em;
    }
    .sp-nav-lang-sep {
        color: rgba(30, 58, 92, 0.35);
        font-size: 12px;
    }
}

/* ============================================================
   KV: SP 配置・サイズ修正
   ─────────────────────────────────────────────────────────────
   根本原因:
     .home-topv2 .topv2-kv-content (詳細度 0,2,0, 非メディア) が
     transform: none を宣言しているため、
     @media (max-width: 900px) の .topv2-kv-content (0,1,0) が持つ
     left: 50% + transform: translate(-50%) の中央寄せが半分だけ効く。
     left: 50% は適用されるが transform による水平オフセットが打ち消され、
     コンテンツの左端がビューポート中央から始まり右側にはみ出す。

   修正方針:
     同詳細度 (.home-topv2 .topv2-kv-content = 0,2,0) でファイル末尾に
     後方宣言し、transform 依存の位置指定を left/right/padding に差し替える。
   ============================================================ */
@media (max-width: 1000px) {

    /* KV 全体: SP では min-height を少し緩める */
    .home-topv2 .topv2-kv {
        min-height: 500px;
    }

    /* KV コンテンツ: transform 依存をやめ、left/right/padding で安全配置 */
    .home-topv2 .topv2-kv-content {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        transform: none;
        margin-top: 0;
        max-width: 100%;
        width: auto;
        padding-top: 60px;
        padding-bottom: 16px;
        padding-left: 24px;
        padding-right: 24px;
        text-align: left;
        box-sizing: border-box;
    }

    /* ロゴ: SP向け縮小・左寄せ */
    .home-topv2 .topv2-kv-logo {
        width: 160px;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
    }

    /* 日本語見出し */
    .home-topv2 .topv2-kv-main-ja {
        font-size: 20px;
    }

    /* 英語見出し */
    .home-topv2 .topv2-kv-main-en {
        font-size: 12px;
        letter-spacing: 0.06em;
        margin-bottom: 16px;
    }

    /* 日本語本文 */
    .home-topv2 .topv2-kv-body-ja {
        font-size: 11px;
        line-height: 1.9;
        margin-bottom: 0;
    }

    /* 英語本文: SP では非表示 */
    .home-topv2 .topv2-kv-body-en {
        display: none;
    }
}
