﻿/* ===== base ===== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width:768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}


/* スティッキーフッター用：body を縦 Flex に */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh; /* iOS アドレスバー対策 */
    display: flex;
    flex-direction: column;
    margin: 0; /* 既存の余白をクリア */
}

@media (max-width: 575.98px) {
    html, body {
        overflow-x: hidden;
    }
}

/* 余白を食べる領域（main直下 or 指定ID） */
main, #content, .page-content {
    flex: 1 0 auto;
}

/* フッターは自動で最下部へ */
#siteFooter {
    margin-top: auto;
}

.navbar-brand {
    margin-right:10rem;
}


/* フォント族 */
body {
    font-family: "Noto Sans JP","Noto Sans SC","Noto Sans TC",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}

:lang(ja) {
    font-family: "Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,sans-serif;
}

:lang(zh-CN), :lang(zh-SG) {
    font-family: "Noto Sans SC","PingFang SC","Microsoft YaHei","Source Han Sans SC",sans-serif;
}

:lang(zh-TW), :lang(zh-HK), :lang(zh-MO) {
    font-family: "Noto Sans TC","PingFang TC","Microsoft JhengHei","Source Han Sans TC",sans-serif;
}

.serif:lang(ja) {
    font-family: "Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif;
}

.serif:lang(zh-CN) {
    font-family: "Noto Serif SC","Songti SC",serif;
}

.serif:lang(zh-TW), .serif:lang(zh-HK), .serif:lang(zh-MO) {
    font-family: "Noto Serif TC",serif;
}

.emoji {
    font-family: inherit,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
}

/* 絵文字の欠け対策（任意） */
.emoji {
    font-family: inherit, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

.faq-q {
    min-height: 3.25rem; /* 高さの下限 */
    display: flex; /* 縦中央寄せ */
    align-items: center;
    padding-left: 1rem; /* 左右余白（好みで調整） */
    padding-right: 1rem;
    border-radius: .25rem; /* 見た目調整（任意） */
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* アイテム全体：上下に同じ余白をつけ、固定heightは廃止 */
.news_list .item {
    display: flex;
    align-items: center; /* 縦中央 */
    gap: 12px;
    padding: 12px 16px; /* ← 上下にも余白をつけるのが効きます */
    min-height: 70px; /* 必要なら最低高さだけ確保 */
    height: auto; /* fixed heightは外す */
    border: 1px solid #ddd;
    line-height: 1; /* 余計なleadingを抑える */
}

/* p,h3のデフォルトmarginでズレないように */
.news_list .date,
.news_list .title {
    margin: 0;
}

/* 中身の行ボックスも縦中央化（見た目の誤差をさらに消す） */
.news_list .date,
.news_list .category,
.news_list .title {
    display: flex;
    align-items: center;
}

/* ② タイトルの下線を消す＆小さく */
.news_list .title a {
    text-decoration: none;
    font-size: .95rem; /* 小さめ */
    color: #4295D1;
}

.news_list .title a:hover,
.news_list .title a:focus {
    text-decoration: none;
    color:#258cfb;
}
/* hover時も消す */

/* ③ date と category を大きく */
.news_list .date {
    font-size: 1.125rem; /* 18px相当 */
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    width: 10ch; /* 桁ぞろえ。不要なら削除 */
    color: #555;
}


/* ④ category を広げる（バッジ中央） */
.news_list .category {
    font-size: 1rem; /* 16px相当。さらに大にするなら 1.0625rem 等 */
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px; /* 縦横とも増やす */
    min-width: 140px; /* 120→140など自由に調整 */
    border-radius: 9999px;
    background: #4295D1;
    color: #fff;
    line-height: 1; /* 内側の上下バランスをフラットに */
    box-sizing: border-box;
    text-decoration: none;
}

.news_list .category a:hover,
.news_list .category a:focus {
    text-decoration: none;
    color: #258cfb;
}


.news_list .item.animate {
    -webkit-animation: slideUp 1s cubic-bezier(.165,.84,.44,1) forwards 0s;
    animation: slideUp 1s cubic-bezier(.165,.84,.44,1) forwards 0s
}

.drag-handle {
    cursor: grab;
    user-select: none;
    padding: 4px 6px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.drag-handle:active {
    cursor: grabbing;
}

.kv {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .75rem;
    padding: 1rem 1rem;
    background: #fff;
}

.kv-key {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: .35rem;
    line-height: 1.2;
}

.kv-val {
    word-break: break-word;
}

.lh-xl {
    line-height: 2.5rem;
}

.dl-compact {
    line-height: 2.5rem;
    margin-bottom: 0;
}

.dl-compact dt,
.dl-compact dd {
    margin-bottom: 0;
}

.dl-topline {
    border-top: 1px solid var(--bs-border-color);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

.card-hover {
    border-width: 2px !important; /* 通常時も見える枠線 */
    /*border-color: var(--bs-border-color) !important;*/
    transition: border-color .15s ease, box-shadow .15s ease;
}

.card-hover:hover,
.card-hover:focus-within {
    border-color: var(--bs-primary) !important; /* 青 */
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .35); /* 見た目の“太さ”追加 */
    cursor: pointer;
}

    /* stretched-link より前面にアクション行を出す */
    .card-hover .action-bar,
    .card-hover .action-bar .btn,
    .card-hover .action-bar a.btn {
        position: relative;
        z-index: 3;
    }



/* キャッチコピー見た目 */
#siteHeader .catchcopy {
    font-size: .9rem;
    letter-spacing: .03em;
}

/* _LoginPartial 内の <ul> の余白調整（必要なら） */
#siteHeader .auth-area .navbar-nav {
    margin: 0;
}

/* スマホ時の安定化 */
@media (max-width: 575.98px) {
    #siteHeader.sticky-top {
        position: static !important;
    }
    #siteHeader .brand-block {
        width: auto;
    }
    /* きつい時に自動で縮む */
    #siteHeader .navbar .navbar-toggler {
        margin-left: auto;
    }
    /* 右端に固定 */
    #siteHeader .right-block {
        width: 100%;
        min-width: 0;
    }
}

/* ===== Home/Index 専用の固定ヘッダー制御 ===== */
body.home #siteHeader.site-header {
  position: fixed;      /* Homeだけ固定 */
  top: 0; left: 0; right: 0;
  z-index: 1030;
}

/* デフォルト（スクロール後） */
body.home #siteHeader .navbar {
  background: #fff !important;
  transition: background-color .2s ease, box-shadow .2s ease;
}

/* ページ最上部：透明オーバーレイ */
body.home.is-top #siteHeader .navbar {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* 透明時はトグラー（≡）も白く見せる */
body.home.is-top #siteHeader .navbar-toggler {
  border-color: rgba(255,255,255,.5);
}
body.home.is-top #siteHeader .navbar-toggler .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(200%);
}

@media (max-width: 575.98px) {
    /* ヘッダー行に左右パディングを戻す（過不足なく） */
    #siteHeader .navbar {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: clip; /* 念のための保険（iOSなら hidden でもOK） */
    }

        /* トグラーは右側に寄せつつ、はみ出さないだけの余白を確保 */
        #siteHeader .navbar .navbar-toggler {
            margin-left: auto; /* 既存 */
            margin-right: 0; /* はみ出し防止 */
            padding: .25rem .5rem; /* 触りやすさは維持しつつコンパクトに */
            box-sizing: content-box;
        }

        /* もしコンテナを使っているなら、中の左右パディングも軽く付与 */
        #siteHeader .navbar .container,
        #siteHeader .navbar .container-fluid {
            padding-left: 0;
            padding-right: 0;
        }

    /* ブランド領域が広すぎると押し出すので、xsでは自動幅に */
    #siteHeader .brand-block {
        width: auto;
    }
}

#siteHeader .navbar .navbar-brand {
    flex: 0 0 auto;
}

#siteHeader .right-block {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

#siteHeader .navbar .navbar-toggler {
    flex: 0 0 auto;
}

/* 対応ブラウザではスクロールバー幅ぶんの余白を右側に常時確保 */
@supports (scrollbar-gutter: stable) {
    html {
        overflow-y: auto; /* ルート要素をスクロール容器に */
        scrollbar-gutter: stable both-edges;
    }
}

@media (max-width: 575.98px) {
    /* ヘッダー行の左右に十分な余白を戻す（あなたの環境に合わせて調整可） */
    #siteHeader .navbar {
        padding-left: max(12px, env(safe-area-inset-left)) !important;
        padding-right: max(12px, env(safe-area-inset-right)) !important;
        overflow-x: clip; /* 念のための保険 */
    }

        /* トグラーは右端に寄せるが、はみ出さない最小パディングに */
        #siteHeader .navbar .navbar-toggler {
            margin-left: auto;
            margin-right: 0;
            padding: .25rem .5rem;
            box-sizing: content-box;
        }

    /* ブランド幅が押し出し原因になる場合の保険 */
    #siteHeader .brand-block {
        width: auto;
    }
}

/*@media (max-width: 575.98px) {*/
    /* 中のナビ（例: #mainNav）が横に広がらないよう保険 */
    /*#mainNav {
        max-width: 100%;
    }
}*/

@media (max-width: 575.98px) {
    .right-block {
        overflow-x: clip;
        padding-right: max(12px, env(safe-area-inset-right));
    }
}




/* ロゴ幅はそのまま（必要ならここで調整） */
#siteHeader .brand-block { width: 150px; }

/* コンテンツは JS で padding-top を与えるので不要だが、保険として */
body.home main { padding-top: 72px; }

/* ===== ヒーロー（トップのスライド） ===== */
.hero-carousel {
    margin: 0;
    padding: 0;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .hero-img {
    width: 100%; /* 画面幅いっぱい */
}

    /* 一番安全：はみ出しをクリップ */
    .hero-carousel .carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        overflow: hidden; /* もしくは overflow-x: clip; */
    }

 /* 画像の通常状態を “少しだけ小さめ” にしておく */
.hero-carousel .hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    will-change: transform, opacity;
    transform: scale(1.02); /* ← 通常時の基準値（= アニメ開始値） */
}

/* 透明時：.bg-white を強制的に打ち消し、下マージンも消す */
body.home.is-top #siteHeader .navbar.bg-white {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    margin-bottom: 0 !important; /* ← mb-3 を相殺 */
}

/* 透明時：キャッチコピーも白にする */
body.home.is-top #siteHeader .catchcopy-desktop {
    color: #fff !important;
    /* 視認性を上げたい場合だけ（任意） */
    /* text-shadow: 0 1px 2px rgba(0,0,0,.25); */
}

/* 透明時：ブランド小文字・リンク・トグラーは既存の白化でOKだが、
   念のため .text-dark を上書きできるよう強めのセレクタでもう一度 */
body.home.is-top #siteHeader .navbar .nav-link,
body.home.is-top #siteHeader .navbar .dropdown-toggle {
    color: #fff !important;
}

/* ヘッダー高さを一括管理（必要なら数値を調整） */
#siteHeader {
    --header-h: 70px;
}

/* ナビバーの内側余白をゼロ＆高さを固定 */
#siteHeader .navbar {
    padding: 0 !important; /* 上下左右の余白ゼロ */
    height: var(--header-h);
    min-height: var(--header-h);
}

/* 左余白を完全にゼロ（ms-2 の打ち消しも含む） */
#siteHeader .navbar .navbar-brand {
    margin: 0 !important;
    padding: 0 0 0 10px !important; /* ← 左だけ10px */
    height: 100%; /* 親(navbar)と同じ高さ */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 画像＋smallを縦中央に */
    align-items: flex-start; /* 左寄せ */
    background-color: white;
}

/* もし ms-2 を残す場合の保険 */  
#siteHeader .navbar .navbar-brand.ms-2 {
    margin-left: 0 !important;
}

/* 画像とテキストの微調整（任意） */
#siteHeader .navbar .navbar-brand img {
    display: block;
}

#siteHeader .navbar .navbar-brand small {
    line-height: 1;
}

/* ブランド列の固定幅を使う場合（既存の .brand-block を継続） */
/*#siteHeader .brand-block {
    width: 250px;
}*/
.fs-7 {
    font-size: 0.75rem;
}

/* menu-block 全体を“縦に積むフレックス”にして、横方向を中央寄せ */
#siteHeader .menu-block {
    display: flex;
    flex-direction: column;
    align-items: center; /* ← 横中央 */
}

/* キャッチコピーの左マージン(ms-5)を打ち消し、中央寄せ */
#siteHeader .menu-block .catchcopy-desktop {
    margin-left: 0 !important;
    text-align: center;
}

/* UL（navbar-nav）を中央寄せ：横並び時は中央配置、縦並び時は項目自体を中央に */
#siteHeader .menu-block .main-menu {
    justify-content: center; /* 横並び（sm以上）で中央 */
    align-items: center; /* 縦並び（xs）でも各項目を中央 */
    width: 100%;
}
/* スライドにオーバーレイを敷く */
.hero-carousel .carousel-item {
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none; /* クリックを邪魔しない */
    z-index: 1; /* 画像より上、ボタンより下 */
    background: rgba(0,38,71,0.30); /* 指定色30% */
}

/* さらに“上部だけ”濃くしたい場合（任意・追記可） */

.hero-carousel .carousel-item::before {
    background: linear-gradient(to bottom, rgba(0,38,71,.55) 0%, rgba(0,38,71,.25) 35%, rgba(0,38,71,0) 70%), 
        rgba(0, 38, 71, 0.20);
}


/* 互換フォールバック（color-mix未対応ブラウザ向け） */
@supports not (background: color-mix(in srgb, #002647 30%, transparent)) {
    .hero-carousel .carousel-item::before {
        background: rgba(0,38,71,.30);
    }
}

/* 透明ヘッダー時だけ強めにする（任意） */
body.home.is-top .hero-carousel .carousel-item::before {
    opacity: 1;
}

body.home:not(.is-top) .hero-carousel .carousel-item::before {
    opacity: .2;
}
/* 下にスクロールしたら少し弱く */


/* ========== モバイル（～576px）でのナビ展開をフル幅ドロワーに ========== */
@media (max-width: 575.98px) {
    .collapse {
        transition: none !important;
    }

    #siteHeader #mainNav.collapse.show {
        position: fixed;
        top: var(--header-h, 70px);
        left: 0;
        right: 0;
        width: 96.8%;
        background: rgba(0,38,71,.92);
        overflow-y: auto;
        /* ガターを確保してスクロールバー下に潜らないように */
        padding: 12px 70px;
        /*padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));*/
        z-index: 1029;
        display: block !important;
        box-sizing: border-box;
    }

    #siteHeader #mainNav.collapse.show .nav-link {
        color: #fff !important;
    }

    #siteHeader .menu-block .main-menu {
        justify-content: center;  
        align-items: start ;  
        width: 100%;
    }
}




/* フェードをゆっくり＆自然に */
.hero-carousel .carousel-fade .carousel-item {
    transition: opacity 1.2s ease-in-out; /* 0.8s → 1.2s 推奨 */
}

/* 初期レンダ時のチラつき対策（GPUヒント＋裏面描画無効） */
.hero-carousel .hero-img {
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.08); /* 既存の scale(1.02) は維持 */
    will-change: transform, opacity;
}

/* アクティブ時のケンバーンズ（ズームイン）も滑らかに */
.hero-carousel .carousel-item.active .hero-img {
    animation: hero-kenburns-in 4s ease-in-out both; /* linear → ease-in-out */
}

@keyframes hero-kenburns-in {
    from {
        transform: translateZ(0) scale(1.08);
    }

    to {
        transform: translateZ(0) scale(1.02);
    }
}

/* モーション控えめ設定に配慮（そのままでOKなら既存を維持） */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel .carousel-item.active .hero-img {
        animation: none;
    }

    .hero-carousel .carousel-fade .carousel-item {
        transition: opacity .01s linear;
    }
}

/* ===== Hero caption ===== */
.hero-carousel {
    position: relative;
}

.hero-caption {
    position: absolute;
    left: clamp(16px, 6vw, 64px);
    bottom: clamp(20px, 7vh, 96px);
    z-index: 2; /* オーバーレイより前に */
    color: #fff;
    max-width: min(90vw, 480px);
}

.hero-title {
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .6rem;
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
    align-items: center;
}

.hero-desc {
    margin: 0 0 1.25rem;
    font-size: clamp(.95rem, 1.4vw, 1.125rem);
    line-height: 1.8;
    opacity: .95;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* インジケーターを左下へ */
.hero-caption .carousel-indicators {
    position: static; /* caption内の通常フローに */
    display: flex;
    gap: .5rem;
    justify-content: flex-start;
}

    .hero-caption .carousel-indicators [data-bs-target] {
        width: .9rem;
        height: .9rem;
        border-radius: 9999px;
        background-color: rgba(255,255,255,.65);
        border: 0;
        opacity: 1; /* Bootstrapの既定の透過を無効 */
        transition: transform .2s ease, background-color .2s ease;
    }

    .hero-caption .carousel-indicators .active {
        background-color: #fff;
        transform: scale(1.15);
    }

/* 小さい画面では少し詰める */
@media (max-width: 575.98px) {
    .hero-caption {
        left: 14px;
        bottom: 22px;
        max-width: 86vw;
    }
}

/* ===== Hero: 上に移動＋行間広め ===== */
.hero-carousel.hero--raised {
    /* 調整用のカスタムプロパティ */
    --cap-left: clamp(16px, 6vw, 64px);
    /* 以前が clamp(20px, 7vh, 96px) だった前提で “倍” 換算 */
    --cap-bottom: clamp(40px, 14vh, 192px);
    --title-lh: 1.45; /* 見出しの行間（広め） */
    --desc-lh: 1.95; /* 説明文の行間（広め） */
}

    /* 位置（左・下）を変数で制御 */
    .hero-carousel.hero--raised .hero-caption {
        left: var(--cap-left);
        bottom: var(--cap-bottom); /* ← これでキャプションが上に上がる */
    }

    /* 行間を広げる */
    .hero-carousel.hero--raised .hero-title {
        line-height: var(--title-lh);
    }

    .hero-carousel.hero--raised .hero-desc {
        line-height: var(--desc-lh);
    }

    /* インジケーター（ドット）の間隔はそのまま。下端までの距離は
   上の bottom を“倍”にしたことで自動的に倍になります。必要なら
   ドット下に余白を追加したい場合は↓を併用 */
    .hero-carousel.hero--raised .hero-caption .carousel-indicators {
        margin-bottom: .25rem; /* 任意：ドットとキャプション底の余白 */
    }

/* さらに小さい画面での微調整（任意） */
@media (max-width: 575.98px) {
    .hero-carousel.hero--raised {
        --cap-bottom: clamp(36px, 16vh, 160px); /* モバイルは少し控えめに */
    }
}

/* 3面カードの見た目 */
.trio-section { /* セクション上の薄い境界が欲しければ */
    /* border-top: 1px solid var(--bs-border-color); */
}

.trio-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* はみ出しを自然にトリム */
    transition: transform .5s ease;
}

.trio-card:hover .trio-img {
    transform: scale(1.05);
}

.trio-overlay {
    position: absolute;
    inset: auto 0 0 0; /* 下部全面を覆う */
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 100%);
}

.trio-eyebrow {
    font-size: .9rem;
    opacity: .9;
    margin-bottom: .25rem;
}

.trio-title {
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,.35); /* 読みやすさ向上 */
}

/* 画像まわりの余白ゼロ・角を直角に */
.trio-section .row {
    margin: 0;
}
/* 念のため */
.trio-section .col-12 {
    padding: 0;
}
/* 念のため */
.trio-card,
.trio-card .ratio,
.trio-overlay {
    border-radius: 0 !important;
}
/* 角を直角に固定 */
.trio-img {
    display: block;
}
/* 画像下の行間を消す */

/* 必要なら：セクションと上下の余白だけ付けたい場合 */
/* .trio-section { padding-top: 1rem; padding-bottom: 1rem; } */

/* ===== NEWS ticker ===== */
.news-ticker {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 16px;
    background: #fff;
}

.news-label {
    background: #4295d1;
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 10px 18px;
    border-radius: 12px;
}

.news-viewport {
    flex: 1;
    overflow: hidden;
    height: var(--news-row-h, 36px); /* JSが実測値を入れる */
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.6;
    padding: 2px 0;
    white-space: nowrap; /* 1行で省略 */
}

    .news-item time {
        color: #9aa3ae;
        font-size: .92rem;
    }

    .news-item a {
        display: block;
        flex: 1;
        min-width: 0;
        text-decoration: none;
        color: #111827;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .news-item a:hover {
            text-decoration: underline;
        }

.news-more {
    white-space: nowrap;
    color: #111827;
    text-decoration: none;
}

    .news-more:hover {
        text-decoration: underline;
    }

@media (max-width: 576px){
  .news-viewport{
    flex: 1 1 auto;
    max-width: none;
    margin-inline: 8px;
  }
  .news-viewport{
    flex: 1 1 auto;
    max-width: none;
    margin-inline: 8px;
  }
}

.top-intro{
    width: 85%;
}

.top-intro-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 画面が広いときだけ “背の高いヒーロー” 風にしたい場合（任意） */
@media (min-width: 992px) {
    .top-intro-image {
        height: min(80vh, 700px); /* 例：最大700px、画面高の60%まで */
        width: 100%;
        object-fit: cover; /* はみ出しを自然トリム */
    }
}

.top-intro-ratio {
    --bs-aspect-ratio: 56.25%;
}
/* 16:9 */
@media (max-width: 575.98px) {
    .top-intro-ratio {
        --bs-aspect-ratio: 120%;
    }
    /* 4:3 に寄せる */
}

/* 幅85%を中央寄せ。スマホは全幅 */
.w-md-85 {
    width: 100%;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .w-md-85 {
        width: 85%;
    }
}

/* ===== Intro block ===== */
.intro-block .intro-photo {
    border-radius: 16px;
    overflow: hidden;
}

.intro-block .intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 縦書き見出し（PCは縦、スマホは横） */
.ja-vertical {
    /* 既存の指定に追加（or 置換） */
    display: inline-block; /* 内容幅に縮める */
    margin: 0 auto; /* 左右autoで中央寄せ */
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #0c619f;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.2;
    font-size: clamp(1.5rem, 4.2vw, 2rem);
}

/* スマホ/タブレットは横書きに */
@media (max-width: 991.98px) {
    .ja-vertical {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
}

/* 本文 */
.intro-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #222;
    margin: 0;
}

/* 親を保険で中央寄せ */
.intro-cta {
    text-align: center;
}

    /* ボタンを行内化＋自動マージンで中央へ */
    .intro-cta .c-button {
        display: inline-grid; /* ← grid → inline-grid */
        margin-inline: auto; /* ← ブロックでも中央寄せできる */
    }

/* ---- このブロック専用トークン ---- */
.intro-cta {
    --accent-color: #0c619f;
    --btn-min-width: 280px;
    --btn-height: 60px;
    --btn-font-size: 16px;
    --btn-padding: 0 32px;
    --btn-bg: transparent;
    --btn-border: 1px solid var(--accent-color);
    --btn-radius: 9999px;
    --btn-font-color: var(--accent-color);
    --btn-bg-hover: color-mix(in srgb, var(--accent-color) 10%, transparent);
    --btn-font-hover: var(--accent-color);
    --btn-border-hover: var(--accent-color);
    margin-top:70px;
}

    /* ---- ボタン本体（intro-cta の中だけ）---- */
    .intro-cta .c-button {
        display: grid;
        place-items: center;
        width: fit-content;
        min-width: var(--btn-min-width);
        height: var(--btn-height);
        font-size: var(--btn-font-size);
        color: var(--btn-font-color);
        padding: var(--btn-padding);
        background: var(--btn-bg);
        border: var(--btn-border);
        border-radius: var(--btn-radius);
        text-decoration: none !important;
        transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .02s ease;
    }

/* このボタン専用の色トークン（必要なら色だけ変えてOK） */
.intro-cta {
    --accent-color: #0c619f;
    --btn-font-hover: #fff; /* ← 白文字に */
    --btn-bg-hover: var(--accent-color); /* ← 背景を濃色で塗る */
    --btn-border-hover: var(--accent-color);
}

    /* 反映（既存のホバールールはそのまま使用） */
    .intro-cta .c-button:hover,
    .intro-cta .c-button:focus {
        background: var(--btn-bg-hover);
        color: var(--btn-font-hover);
        border-color: var(--btn-border-hover);
    }


        .intro-cta .c-button:active {
            transform: translateY(1px);
        }

/* モバイルだけサイズ変更（このボタンだけ） */
@media (max-width:575.98px) {
    .intro-cta {
        --btn-min-width: 220px;
        --btn-height: 52px;
        --btn-padding: 0 24px;
    }
}

/* ボタンブロックの上だけ広げる（このブロック限定） */
.intro-cta {
    margin-top: 6rem; /* ↑ここで距離UP */
}

/* モバイルは少し控えめ */
@media (max-width: 575.98px) {
    .intro-cta {
        margin-top: 3rem;
    }
}

.feature-slab {
    padding-block: clamp(2rem, 5vw, 4rem); /* 上下余白 */
    /* 必要なら背景色も
  background: #fff;
  */
}

/* ===== Split Feature (image + dark panel) ===== */
.feature-frame {
    border-radius: 16px;
    overflow: hidden;
}

.feature-row {
    display: flex;
    min-height: 480px; /* 好みで調整 */
}

.feature-media,
.feature-body {
    flex: 1 1 0;
}

/* 左：画像 */
.feature-media {
    position: relative;
}

    .feature-media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* 右：濃色面 */
.feature-body {
    background: #4d1418; /* ボルドー */
    color: #fff;
    display: flex;
    align-items: center;
}

.feature-inner {
    padding: clamp(24px, 5vw, 72px);
    max-width: 720px; /* 文字行の長さを制限 */
    margin-inline: auto;
}

.feature-title {
    font-weight: 800;
    line-height: 1.35;
    font-size: clamp(1.4rem, 2.8vw, 2.25rem);
    margin: 0 0 1rem 0;
}

.feature-text {
    margin: 0 0 2rem 0;
    line-height: 1.9;
    opacity: .95;
}

/* ボタンは“このセクション内だけ”白アウトラインに */
.feature-cta {
    --accent-color: #ffffff;
    --btn-min-width: 260px;
    --btn-height: 56px;
    --btn-font-size: 16px;
    --btn-padding: 0 28px;
    --btn-bg: transparent;
    --btn-border: 1.5px solid var(--accent-color);
    --btn-radius: 9999px;
    --btn-font-color: #ffffff;
    --btn-bg-hover: #ffffff; /* 塗り */
    --btn-font-hover: #4d1418; /* 文字はボルドーに反転 */
    --btn-border-hover: #ffffff;
    text-align: center; /* 念のため中央 */
}

    .feature-cta .c-button {
        display: inline-grid; /* 中央寄せしやすくする */
        margin-inline: auto;
        min-width: var(--btn-min-width);
        height: var(--btn-height);
        font-size: var(--btn-font-size);
        color: var(--btn-font-color);
        padding: var(--btn-padding);
        background: var(--btn-bg);
        border: var(--btn-border);
        border-radius: var(--btn-radius);
        text-decoration: none !important;
        transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .02s ease;
        place-items: center;
    }

        .feature-cta .c-button:hover,
        .feature-cta .c-button:focus {
            background: var(--btn-bg-hover);
            color: var(--btn-font-hover);
            border-color: var(--btn-border-hover);
            box-shadow: 0 0 0 3px rgba(255,255,255,.18);
        }

        .feature-cta .c-button:active {
            transform: translateY(1px);
        }

/* スマホは縦積み（画像→テキスト） */
@media (max-width: 991.98px) {
    .feature-row {
        flex-direction: column;
        min-height: 0;
    }

    .feature-media {
        height: 48vw;
        min-height: 220px;
    }
}


/* full-bleed セクションは 100vw を使いつつ、中央基準ではみ出しを抑制 */
.full-bleed {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
}

@supports (overflow: clip) {
    .full-bleed {
        overflow-x: clip;
    }
}

@supports not (overflow: clip) {
    .full-bleed {
        overflow-x: hidden;
    }
}



    .full-bleed .feature-row {
        border-radius: 0;
    }
/* 角丸が不要なら */

/* ===== Catalog ===== */
.catalog-title {
    color: #0f5a2b; /* 見出しをグリーンに */
    font-weight: 600;
    letter-spacing: .04em;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    margin: 0 0 .6rem;
}

.catalog-lead {
    margin: 0 auto 2.2rem;
    line-height: 1.9;
    color: #1f2937;
    opacity: .95;
}

@media (max-width: 575.98px) { /* Bootstrapのxs未満 */
    .catalog-lead {
        padding-inline: clamp(12px, 5vw, 20px); /* だいたい12〜20px */
        box-sizing: border-box; /* 余白で横スクロールしないよう保険 */
        text-align: left;
    }
}


/* グリッド */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: clamp(16px, 2vw, 28px);
}

/* カード */
.catalog-card {
    list-style: none;
}

.catalog-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.catalog-media {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* 正方形 */
    background: #f3f4f6;
}

    .catalog-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s ease;
    }

.catalog-name {
    text-align: center;
    margin: .9rem 0 .35rem;
    font-size: clamp(.95rem, 1.4vw, 1.1rem);
    font-weight: 700;
}

    .catalog-name strong {
        font-weight: 800;
    }

.catalog-price {
    text-align: center;
    color: #374151;
    font-weight: 400;
}

@media (max-width: 575.98px) {
    .catalog-price {
        padding-inline: clamp(12px, 5vw, 20px); /* 両側に適度な余白 */
        text-align: left; /* 左寄せ */
        box-sizing: border-box; /* 横スクロール防止の保険 */
    }
}


/* hover */
.catalog-link:hover .catalog-media img {
    transform: scale(1.04);
}

/* レスポンシブ：2列→1列 */
@media (max-width: 1199.98px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 991.98px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 575.98px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer ===== */
#siteFooter {
    --footer-bg: #2d2e2f; /* 背景色（好みで調整） */
    --footer-fg: rgba(255,255,255,.92); /* 文字色 */
    --footer-dim: rgba(255,255,255,.6); /* 薄い文字 */
    --footer-sep: rgba(255,255,255,.15); /* 罫線 */
    background: var(--footer-bg);
    color: var(--footer-fg);
}

    #siteFooter .footer-sep {
        border: 0;
        border-top: 1px solid var(--footer-sep);
    }

    #siteFooter .footer-brand .h2 {
        color: var(--footer-fg);
    }

    #siteFooter .footer-link {
        color: var(--footer-fg);
        text-decoration: none;
    }

        #siteFooter .footer-link:hover,
        #siteFooter .footer-link:focus {
            text-decoration: underline;
            text-underline-offset: .2rem;
        }

    #siteFooter .footer-sns {
        color: var(--footer-fg);
        font-size: 1.25rem;
        opacity: .9;
    }

        #siteFooter .footer-sns:hover {
            opacity: 1;
        }

@media (max-width: 575.98px) {
    #siteFooter .footer-bottom {
        gap: 1rem;
    }
}

/* === Company page === */
.page-hero {
    padding: 1.25rem 0;
}

.section {
    padding: 2rem 0;
}

.company-dl dt {
    color: #6c757d;
    font-weight: 600;
}

.company-dl dd {
    margin-bottom: .5rem;
}

/* チェック風の箇条書き */
.checklist {
    padding-left: 1.4rem;
    margin-bottom: 0;
}

    .checklist li {
        margin-bottom: .5rem;
        position: relative;
    }

        .checklist li::marker {
            content: "• ";
            color: #4295D1;
        }
/* サイトのアクセント色に合わせて変更可 */

/* （任意）長文の読みやすさ */
.section p {
    line-height: 1.9;
}

/* RealEstateKnowledge page */
.page-hero {
    padding: 1.25rem 0;
}

.accordion-button {
    font-weight: 600;
}

.knowledge-note li {
    margin-bottom: .25rem;
}

.estate-filter {
    position: relative;
}

.scroll-y-150 {
    max-height: 150px;
    overflow: auto;
}

@media (min-width: 992px) {
    .sticky-lg {
        position: sticky;
        top: 90px;
    }
}

/* サイドバーの区切り・間隔 */
.estate-filter .form-label.fw-semibold {
    font-size: 1.05rem;
}

/* 共通チップの選択状態（価格/利回りと同じ見た目） */
.range-chip {
    font-size: 0.85rem;
}
.range-chip.active {
    border-color: var(--bs-primary) !important;
    background: #eef4ff !important;
    color: var(--bs-primary) !important;
    font-weight: 700;
}

.range-chip:focus-visible {
    outline: 2px solid rgba(13,110,253,.4);
    outline-offset: 2px;
}

/* 大きめの角丸スクエアチェック */
.checkbox-square .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: .35rem;
}

    .checkbox-square .form-check-input:checked {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

.checkbox-square .form-check-label {
    font-size: 0.85rem;
}

/* 例：選択時の見た目（他のチップと合わせる） */
.btn.btn-light.active {
    outline: 2px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
    font-weight: 700;
}

/* 共通：チェック群の標準スタイル（物件種別と同じ） */
.chk-std .form-check-input {
    width: 22px;
    height: 22px;
    border-radius: .4rem;
    border: 2px solid #c8ced6;
    box-shadow: none;
}

    .chk-std .form-check-input:focus {
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
    }

    .chk-std .form-check-input:checked {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }

.chk-std .form-check-label {
    font-size: 0.85rem; /* 物件種別と同じ程度 */
    font-weight: 400; /* 太字にしない */
    line-height: 1.1;
}

/* フィルタのチェック項目は太字にしない */
.form-check-label {
    font-weight: 400;
}
/* 角の大きい外枠は使わない（既存のスクロール箱を外したので念のため） */
.scroll-y-150 {
    max-height: none;
    overflow: visible;
}

/* ===== Search sidebar base ===== */
.estate-filter {
    font-size: .85rem; /* ← サイドバー全体の基準サイズ */
}

    /* Bootstrapが個別に指定しているサイズを上書きして継承させる */
    .estate-filter .form-control,
    .estate-filter .form-select,
    .estate-filter .btn,
    .estate-filter .form-check-label,
    .estate-filter .form-check-input,
    .estate-filter .input-group-text {
        font-size: inherit;
    }

    /* セクション見出しだけは少し大きめに（任意） */
    .estate-filter .form-label.fw-semibold {
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* チップ/ショートカットボタンの文字（任意） */
    .estate-filter .range-chip.btn,
    .estate-filter .et-cat.btn {
        font-size: inherit;
    }

.greeting-page p,
.greeting-page li {
    line-height: 1.9;
}

.greeting-page h2,
.greeting-page h3 {
    letter-spacing: .08em;
}



