@charset "UTF-8";

/* =========================================================
   fudosan.css（bbb/lab からコピー・不動産デモ専用）
   ========================================================= */

/* ---------- 1. Basic Elements ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: 400;
    /* Standard weight */
    margin: 0;
    color: #000;
    line-height: 1.6;
}

/* ---------- 2. Typography utilities (独自・Bootstrap utility 卒業) ---------- */
.bold {
    font-weight: bold;
}

.big50 {
    font-size: 50px;
    line-height: 0.9;
}

.big20 {
    font-size: 20px;
}

/* 可変表示テキスト：画面幅で文字が伸び縮みする。数字＝最大px（.big50 と揃えて50）。
   clamp() の使用は .clamp* クラスのみ許可（hero など見せ場専用）。見出しは原則 big 系（固定px） */
.clamp50 {
    font-size: clamp(28px, 8vw, 50px);
    line-height: 1;
}

.text18 {
    font-size: 18px;
}

.small14 {
    font-size: 14px;
}

/* ---------- 3. Color utilities ---------- */
.gray {
    color: #6c757d;
}

/* ---------- Layout utilities ---------- */
.center {
    text-align: center;
}

.text-white {
    color: #fff;
}

/* ---------- Spacing utilities (px統一スケール: 0 / 4 / 8 / 16 / 24 / 48 / 64 / 96 / 128) ---------- */
/* margin-top（6/7/8 はセクション間隔用に拡張） */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }
.mt-7 { margin-top: 96px; }
.mt-8 { margin-top: 128px; }

/* margin-bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 48px; }

/* 768px以上で margin-bottom を解除（モバイル縦積みの隙間をPC横並びで消す） */
@media (min-width: 768px) {
    .mb-md-0 { margin-bottom: 0; }
}

/* margin-right (end) */
.me-0 { margin-right: 0; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.me-3 { margin-right: 16px; }
.me-4 { margin-right: 24px; }
.me-5 { margin-right: 48px; }

/* margin-left (start) */
.ms-0 { margin-left: 0; }
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.ms-3 { margin-left: 16px; }
.ms-4 { margin-left: 24px; }
.ms-5 { margin-left: 48px; }

/* margin-x auto */
.mx-auto { margin-left: auto; margin-right: auto; }

/* padding */
.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 48px; }

/* padding-top */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 16px; }
.pt-4 { padding-top: 24px; }
.pt-5 { padding-top: 48px; }

/* padding-bottom（6/7/8 はセクション間隔用に拡張） */
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 4px; }
.pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 16px; }
.pb-4 { padding-bottom: 24px; }
.pb-5 { padding-bottom: 48px; }
.pb-6 { padding-bottom: 64px; }
.pb-7 { padding-bottom: 96px; }
.pb-8 { padding-bottom: 128px; }

/* padding-left (start) */
.ps-0 { padding-left: 0; }
.ps-1 { padding-left: 4px; }
.ps-2 { padding-left: 8px; }
.ps-3 { padding-left: 16px; }
.ps-4 { padding-left: 24px; }
.ps-5 { padding-left: 48px; }

/* padding-y */
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 16px; padding-bottom: 16px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }

/* =========================================================
   Grid System (独自・全カラム / Bootstrap互換)
   Portions adapted from Bootstrap v5.3.3 (https://getbootstrap.com)
   Copyright 2011-2024 The Bootstrap Authors / Licensed under MIT
   ========================================================= */

/* Container */
.container,
.container-fluid {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

/* Gutters g-0 〜 g-5 */
.row.g-0 { --gutter-x: 0;       --gutter-y: 0;       }
.row.g-1 { --gutter-x: 4px;  --gutter-y: 4px;  }
.row.g-2 { --gutter-x: 8px;  --gutter-y: 8px;  }
.row.g-3 { --gutter-x: 16px; --gutter-y: 16px; }
.row.g-4 { --gutter-x: 24px; --gutter-y: 24px; }
.row.g-5 { --gutter-x: 48px; --gutter-y: 48px; }

.row[class*="g-"] {
    margin-top: calc(-1 * var(--gutter-y));
    margin-right: calc(-0.5 * var(--gutter-x));
    margin-left: calc(-0.5 * var(--gutter-x));
}

.row[class*="g-"]>* {
    padding-right: calc(var(--gutter-x) * 0.5);
    padding-left: calc(var(--gutter-x) * 0.5);
    margin-top: var(--gutter-y);
}

/* カードグリッド: 2列(モバイル)時のカード間ガターを画面端余白(12px)と一致させる。
   横・縦とも12pxに揃え均等グリッドに。md以上は元のガター据え置き */
@media (max-width: 767px) {
    .row.card-grid {
        --gutter-x: 12px;
        --gutter-y: 12px;
    }
}

/* Columns — base (xs) */
.col-1  { flex: 0 0 auto; width: 8.333333%;  }
.col-2  { flex: 0 0 auto; width: 16.666667%; }
.col-3  { flex: 0 0 auto; width: 25%;        }
.col-4  { flex: 0 0 auto; width: 33.333333%; }
.col-5  { flex: 0 0 auto; width: 41.666667%; }
.col-6  { flex: 0 0 auto; width: 50%;        }
.col-7  { flex: 0 0 auto; width: 58.333333%; }
.col-8  { flex: 0 0 auto; width: 66.666667%; }
.col-9  { flex: 0 0 auto; width: 75%;        }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%;       }

/* sm (576px+) */
@media (min-width: 576px) {
    .col-sm-1  { flex: 0 0 auto; width: 8.333333%;  }
    .col-sm-2  { flex: 0 0 auto; width: 16.666667%; }
    .col-sm-3  { flex: 0 0 auto; width: 25%;        }
    .col-sm-4  { flex: 0 0 auto; width: 33.333333%; }
    .col-sm-5  { flex: 0 0 auto; width: 41.666667%; }
    .col-sm-6  { flex: 0 0 auto; width: 50%;        }
    .col-sm-7  { flex: 0 0 auto; width: 58.333333%; }
    .col-sm-8  { flex: 0 0 auto; width: 66.666667%; }
    .col-sm-9  { flex: 0 0 auto; width: 75%;        }
    .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%;       }
}

/* md (768px+) */
@media (min-width: 768px) {
    .col-md-1  { flex: 0 0 auto; width: 8.333333%;  }
    .col-md-2  { flex: 0 0 auto; width: 16.666667%; }
    .col-md-3  { flex: 0 0 auto; width: 25%;        }
    .col-md-4  { flex: 0 0 auto; width: 33.333333%; }
    .col-md-5  { flex: 0 0 auto; width: 41.666667%; }
    .col-md-6  { flex: 0 0 auto; width: 50%;        }
    .col-md-7  { flex: 0 0 auto; width: 58.333333%; }
    .col-md-8  { flex: 0 0 auto; width: 66.666667%; }
    .col-md-9  { flex: 0 0 auto; width: 75%;        }
    .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%;       }
}

/* lg (992px+) */
@media (min-width: 992px) {
    .col-lg-1  { flex: 0 0 auto; width: 8.333333%;  }
    .col-lg-2  { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-3  { flex: 0 0 auto; width: 25%;        }
    .col-lg-4  { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5  { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6  { flex: 0 0 auto; width: 50%;        }
    .col-lg-7  { flex: 0 0 auto; width: 58.333333%; }
    .col-lg-8  { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9  { flex: 0 0 auto; width: 75%;        }
    .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%;       }
}

/* xl (1200px+) */
@media (min-width: 1200px) {
    .col-xl-1  { flex: 0 0 auto; width: 8.333333%;  }
    .col-xl-2  { flex: 0 0 auto; width: 16.666667%; }
    .col-xl-3  { flex: 0 0 auto; width: 25%;        }
    .col-xl-4  { flex: 0 0 auto; width: 33.333333%; }
    .col-xl-5  { flex: 0 0 auto; width: 41.666667%; }
    .col-xl-6  { flex: 0 0 auto; width: 50%;        }
    .col-xl-7  { flex: 0 0 auto; width: 58.333333%; }
    .col-xl-8  { flex: 0 0 auto; width: 66.666667%; }
    .col-xl-9  { flex: 0 0 auto; width: 75%;        }
    .col-xl-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-xl-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%;       }
}

/* xxl (1400px+) */
@media (min-width: 1400px) {
    .col-xxl-1  { flex: 0 0 auto; width: 8.333333%;  }
    .col-xxl-2  { flex: 0 0 auto; width: 16.666667%; }
    .col-xxl-3  { flex: 0 0 auto; width: 25%;        }
    .col-xxl-4  { flex: 0 0 auto; width: 33.333333%; }
    .col-xxl-5  { flex: 0 0 auto; width: 41.666667%; }
    .col-xxl-6  { flex: 0 0 auto; width: 50%;        }
    .col-xxl-7  { flex: 0 0 auto; width: 58.333333%; }
    .col-xxl-8  { flex: 0 0 auto; width: 66.666667%; }
    .col-xxl-9  { flex: 0 0 auto; width: 75%;        }
    .col-xxl-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-xxl-11 { flex: 0 0 auto; width: 91.666667%; }
    .col-xxl-12 { flex: 0 0 auto; width: 100%;       }
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

a:hover {
    opacity: 0.7;
}

/* ---------- 4. Header & Navigation (Common Template) ---------- */
.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 20px;
}

/* Hamburger Menu Logic */
#hamburger {
    display: none;
}

.menu-trigger {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 101;
}

.menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    transition: .3s;
}

.menu-trigger span:nth-of-type(1) {
    top: 0;
}

.menu-trigger span:nth-of-type(2) {
    top: 11px;
}

.menu-trigger span:nth-of-type(3) {
    bottom: 0;
}

#hamburger:checked+.menu-trigger span:nth-of-type(1) {
    transform: translateY(11px) rotate(-45deg);
}

#hamburger:checked+.menu-trigger span:nth-of-type(2) {
    opacity: 0;
}

#hamburger:checked+.menu-trigger span:nth-of-type(3) {
    transform: translateY(-11px) rotate(45deg);
}

.global_menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 100;
}

#hamburger:checked~.global_menu {
    opacity: 1;
    visibility: visible;
}

/* ---------- 5. Layout ---------- */
.main {
    width: 100%;
}

/* ---------- 6. Footer ---------- */
.footer {
    padding: 48px 0;
    background: #f8f9fa;
}

.footer2 {
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #6c757d;
}

/* ---------- 7. Media Queries ---------- */
@media (min-width: 992px) {
    .menu-trigger {
        display: none;
    }

    .global_menu {
        position: static;
        height: auto;
        background: transparent;
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .nav-list {
        display: flex;
        gap: 32px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* nav hover：下線が左から伸びるワイプ（bbb index 由来） */
    .global_menu a {
        display: inline-block;
        position: relative;
        padding: 4px 0;
        color: #000;
        text-decoration: none;
        transition: transform 1.2s cubic-bezier(0.0, 0.7, 0.0, 1.0);
    }

    .global_menu a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 3px;
        background: #66CC33;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 1.2s cubic-bezier(0.0, 0.7, 0.0, 1.0);
    }

    .global_menu a:hover {
        color: #66CC33;
        transform: translateY(-2px);
        transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1.0);
    }

    .global_menu a:hover::after {
        transform: scaleX(1);
        transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1.0);
    }
}

/* =========================================================
   Horizontal Rule (区切り線シリーズ)
   ========================================================= */
.b-hr     { border: 0; border-top: 1px solid currentColor; margin: 24px 0; opacity: 0.5; }
.b-hr-dot { border: 0; border-top: 2px dotted currentColor; margin: 24px 0; opacity: 0.7; }

/* =========================================================
   Card & 見出し装飾部品（クラスを足すだけ／外すだけ）
   ========================================================= */
/* 白背景カード（白bg＋枠＋角丸＋内側余白）。height:100% で横並び時に等高 */
.card {
    height: 100%;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
}

/* 見出し左の縦棒（bbbブランド緑）。クラスを足すだけ／外すだけ */
.bar-green {
    border-left: 5px solid #66CC33;
    padding-left: 8px;
}

/* ドット：余白のみ。HTMLに「・」直書き＋色クラス（.text-green 等）で着色 */
.dot {
    margin-right: 2px;
}

/* リスト先頭のアイコン画像（check.png 等）。本文に合わせ20px・中央揃え */
.check {
    width: 20px;
    height: auto;
    margin-right: 8px;
    margin-top: -2px;
    vertical-align: middle;
}

/* 仕様リスト（台数・種類数など「項目＋大きな数字」を縦に並べる）。行ごとに上罫線・最終行に下罫線 */
.lineup-item {
    padding: 32px 0;
    border-top: 1px solid #dee2e6;
}

.lineup-item:last-child {
    border-bottom: 1px solid #dee2e6;
}

/* 数字＋単位を題字脇に。大小の文字を下端（baseline）で揃える */
.lineup-count {
    display: inline-flex;
    align-items: baseline;
    margin-left: 12px;
}

/* 数字を gfont（欧文ディスプレイ書体）で見せる時だけ、和文とベースラインがズレる。
   数字側を下げて単位と下端を合わせる。値は書体・サイズ依存（big50＝3px目安） */
.lineup-count.gfont .big50 {
    position: relative;
    top: 3px;
}

/* 余白は section が持つ。中＝padding（pt- pb-）、外＝margin（mt-）。container は中央寄せだけ。
   padding は相殺しないので必ず効く。広げたい section だけ pt- や pb- を足す */
section {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* =========================================================
   Button base (Bootstrap独立化 — 本体含めて自前)
   sorkas 5/18 ポートを bbb に取り込み（⚪︎リング装飾は sorkas 固有のため除外）
   ========================================================= */
.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px #B3E699;
}

.btn-lg {
    padding: 8px 16px;
    font-size: 20px;
    border-radius: 8px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 4px;
}

/* variant ごとに色を #hex 直書き（color / bg / border の3点を base・hover・active で持つ） */
.btn-green {
    color: #fff;
    background-color: #66CC33;
    border-color: #66CC33;
}

.btn-green:hover {
    color: #fff;
    background-color: #57b32a;
    border-color: #57b32a;
}

.btn-green:active {
    color: #fff;
    background-color: #4d9d24;
    border-color: #4d9d24;
}

.btn-gray {
    color: #121212;
    background-color: transparent;
    border-color: #121212;
}

.btn-gray:hover {
    color: #fff;
    background-color: #121212;
    border-color: #121212;
}

.btn-gray:active {
    color: #fff;
    background-color: #121212;
    border-color: #121212;
}

/* サンライズ不動産ブランドカラー（ネイビー） */
.btn-navy {
    color: #fff;
    background-color: #1B3A5C;
    border-color: #1B3A5C;
}

.btn-navy:hover {
    color: #fff;
    background-color: #142c46;
    border-color: #142c46;
}

.btn-navy:active {
    color: #fff;
    background-color: #0f2033;
    border-color: #0f2033;
}

/* =========================================================
   Background & Text Color utilities
   ========================================================= */

.bg-black   { background-color: #000; }
.bg-light   { background-color: #f8f9fa; }
.bg-green   { background-color: #66CC33; }
.bg-navy    { background-color: #1B3A5C; }

.text-green { color: #66CC33; }
.navy       { color: #1B3A5C; }

/* =========================================================
   Display / Flex / Sizing / Misc utilities
   （Bootstrap 卒業: CDN を読まず実使用分のみ自前で持つ）
   ========================================================= */

.d-flex                  { display: flex; }
.d-block                 { display: block; }
.d-inline-block          { display: inline-block; }
.d-none                  { display: none; }
.flex-column             { flex-direction: column; }
.flex-wrap               { flex-wrap: wrap; }
.align-items-center      { align-items: center; }
.align-items-start       { align-items: flex-start; }
.align-items-stretch     { align-items: stretch; }
.justify-content-center  { justify-content: center; }
.justify-content-start   { justify-content: flex-start; }
.gap-2                   { gap: 8px; }
.gap-3                   { gap: 16px; }

.w-100      { width: 100%; }
.h-100      { height: 100%; }
.min-vh-100 { min-height: 100vh; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }

.img-fluid  { max-width: 100%; height: auto; }
.rounded      { border-radius: 6px; }
.rounded-pill { border-radius: 9999px; }

.list-unstyled        { padding-left: 0; list-style: none; }
.text-decoration-none { text-decoration: none; }
.border-bottom        { border-bottom: 1px solid #dee2e6; }
.fw-normal            { font-weight: 400; }

/* badge（小ラベル）。色は bg-*／text-* を併用 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 6px;
}

/* アイコン（bootstrap-icons 卒業: SVG 背景で自前。16px・本文中央付近） */
.ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ico-chevron-right {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23121212'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.ico-calendar {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23121212'%3e%3cpath d='M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2M1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857z'/%3e%3cpath d='M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2'/%3e%3c/svg%3e");
}

/* =========================================================
   Tables (独自・実使用分のみ / Bootstrap互換)
   ========================================================= */

.table {
    width: 100%;
    margin-bottom: 16px;
    vertical-align: top;
    border-color: #dee2e6;
}

.table > :not(caption) > * > * {
    padding: 8px 8px;
    border-bottom: 1px solid #dee2e6;
}

.table > thead {
    vertical-align: bottom;
}

.table > tbody {
    vertical-align: inherit;
}

/* table-bordered */
.table-bordered > :not(caption) > * {
    border-width: 1px 0;
    border-style: solid;
    border-color: #dee2e6;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
    border-style: solid;
    border-color: #dee2e6;
}

/* table-hover */
.table-hover > tbody > tr:hover > * {
    background-color: #f2f2f2;
}

/* =========================================================
   Forms (独自・実使用分のみ)
   Portions adapted from Bootstrap v5.3.3 (https://getbootstrap.com)
   Copyright 2011-2024 The Bootstrap Authors / Licensed under MIT
   ========================================================= */

.form-label {
    margin-bottom: 8px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-control:focus {
    color: #000;
    background-color: #fff;
    border-color: #66CC33;
    outline: 0;
    box-shadow: 0 0 0 4px #D9F2CC;
}

textarea.form-control {
    min-height: calc(24px + 12px + 2px);
}

.form-check {
    display: block;
    min-height: 24px;
    padding-left: 24px;
    margin-bottom: 2px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #bfbfbf;
    appearance: none;
    print-color-adjust: exact;
}

.form-check .form-check-input {
    float: left;
    margin-left: -24px;
}

.form-check-input[type="checkbox"] { border-radius: 4px; }
.form-check-input[type="radio"]    { border-radius: 50%; }

.form-check-input:focus {
    border-color: #66CC33;
    outline: 0;
    box-shadow: 0 0 0 4px #D9F2CC;
}

.form-check-input:checked {
    background-color: #66CC33;
    border-color: #66CC33;
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
    cursor: pointer;
}

/* =========================================================
   Design Templates (コピペ用テンプレ)
   ========================================================= */

/* ---------- 3ステップフロー ---------- */
.step-arrow {
    background: #121212;
    color: #fff;
    padding: 14px 32px 14px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.step-num {
    background: #66CC33;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.takeaway-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px 20px;
    background: #fff;
    margin-top: 24px;
}

.takeaway-label {
    color: #66CC33;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.takeaway-text {
    font-weight: 700;
    margin-top: 6px;
}

/* ---------- 4ステップロードマップ ---------- */
.roadmap-milestone-label {
    color: #6c757d;
    font-size: 12px;
    letter-spacing: 0.96px;
    font-weight: 600;
}

.roadmap-milestone-title {
    font-weight: 700;
    margin-bottom: 14px;
}

.roadmap-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #66CC33;
    border: 2px solid #66CC33;
    background: #fff;
}

.roadmap-circle-filled {
    background: #66CC33;
    color: #fff;
}

/* ---------- 2×2マトリクス ---------- */
.matrix-2x2-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    gap: 16px;
}

.matrix-y-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #6c757d;
    font-size: 14px;
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    justify-self: center;
}

.matrix-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    grid-row: 1;
    grid-column: 2;
}

.matrix-x-label {
    grid-row: 2;
    grid-column: 2;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.matrix-x-label::before,
.matrix-x-label::after {
    content: "——";
    color: #66CC33;
    margin: 0 8px;
}

.matrix-cell {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    min-height: 160px;
}

.matrix-cell-highlight {
    background: #f0fbe8;
    border-color: #c8e8b0;
    color: #66CC33;
}

.matrix-coord {
    color: #6c757d;
    font-size: 14px;
}

@media (max-width: 576px) {
    .matrix-y-label {
        display: none;
    }

    .matrix-2x2-wrap {
        grid-template-columns: 1fr;
    }

    .matrix-2x2 {
        grid-column: 1;
    }

    .matrix-x-label {
        grid-column: 1;
    }
}

/* ===== hero スライダー（Swiper 11・進捗バー同期） ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-swiper {
    height: calc(100vh - 62px);
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 62px);
    overflow: hidden;
}

/* 背景レイヤー：CMYK 単色がゆっくり横に動くだけ */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: 200% 200%;
    animation: heroShift 12s ease-in-out infinite;
}

.hero-bg1 {
    background-image: linear-gradient(135deg, #00a0e9 0%, #5ec6f2 50%, #00a0e9 100%); /* Cyan */
}

.hero-bg2 {
    background-image: linear-gradient(135deg, #e4007f 0%, #f05ba8 50%, #e4007f 100%); /* Magenta */
}

.hero-bg3 {
    background-image: linear-gradient(135deg, #ffe600 0%, #fff58a 50%, #ffe600 100%); /* Yellow */
}

.hero-bg4 {
    background-image: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 50%, #1a1a1a 100%); /* Key */
}

@keyframes heroShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-copy {
    position: relative;
    z-index: 1;
    transform: translateY(-30px);
    /* CMYK どの背景でも読めるよう白文字に影 */
    text-shadow: 0 2px 14px #00000073;
}

/* 左右ナビ矢印（白・hover で緑＋矢印方向に5px スライド） */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    color: #66CC33;
}

.hero-swiper .swiper-button-prev:hover {
    transform: translateX(-5px);
}

.hero-swiper .swiper-button-next:hover {
    transform: translateX(5px);
}

/* スライド最上部（header 直下）の autoplay 進捗バー（2px 緑） */
.hero-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #66CC33;
    z-index: 20;
}

/* スライド遷移を強めの ease-out（急発進→急減速） */
.hero-swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.05, 0.9, 0.1, 1);
}

/* pagination：白枠の輪郭丸。現在地は白枠の中に緑丸 */
.hero-swiper .swiper-pagination {
    bottom: 160px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 1.5px solid #fff;
    background: transparent;
    opacity: 1;
    margin: 0 7px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #66CC33;
    background-clip: content-box;
    padding: 2px;
}

/* ===== スクロール連動ビデオ（scrub） ===== */
.scrub-track {
    height: 300vh;
}

.scrub-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.scrub-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scrub-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.25;
}

.scrub-text {
    position: absolute;
    top: 42%;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    will-change: opacity, transform, filter;
}

/* 終端で白に溶かし、動画が止まる瞬間を隠す（スクロール進捗で opacity を制御） */
.scrub-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    will-change: opacity;
}

/* ===== fudosan ヒーロー（静止画1枚・動き無し） ===== */
.fudosan-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 62px);
}

.fudosan-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fudosan-hero-shade {
    position: absolute;
    inset: 0;
    background: #0f2033;
    opacity: 0.45;
}

.fudosan-hero-copy {
    position: relative;
    z-index: 1;
}