/* AIB-DESIGN-SYSTEM v3 — プロデザイナー仕上げの共通デザイン+レイアウトパターン集(初期構築・修正後も維持) */
:root{
  /* ブランド */
  --brand:#3b5bdb; --brand-hover:#2f49b8; --brand-press:#27409f;
  --brand-soft:#eef2ff; --brand-soft-2:#e0e7ff; --brand-ink:#1e2a78;
  /* 面と境界 */
  --bg:#f6f8fc; --surface:#ffffff; --surface-2:#f9fafe; --surface-3:#f1f4fb;
  --line:#e6e9f2; --line-strong:#d4d9e8;
  /* テキスト階層 */
  --ink:#10172a; --text:#374151; --muted:#6b7280; --faint:#9aa3b2;
  /* セマンティック */
  --ok:#15803d; --ok-bg:#ecfdf3; --ok-line:#bbf7d0;
  --warn:#b45309; --warn-bg:#fffbeb; --warn-line:#fde68a;
  --err:#b91c1c; --err-bg:#fef2f2; --err-line:#fecaca;
  --info:#1e40af; --info-bg:#eff4ff; --info-line:#c7d6fe;
  /* 形状・影・余白 */
  --r-xs:6px; --r-sm:9px; --r:13px; --r-lg:18px; --r-pill:999px;
  --sh-xs:0 1px 2px rgba(16,23,42,.06);
  --sh-sm:0 1px 3px rgba(16,23,42,.07), 0 1px 2px rgba(16,23,42,.04);
  --sh:0 4px 14px rgba(16,23,42,.07), 0 2px 4px rgba(16,23,42,.04);
  --sh-lg:0 18px 44px rgba(16,23,42,.12), 0 6px 14px rgba(16,23,42,.06);
  --maxw:1120px; --ease:cubic-bezier(.4,0,.2,1);
  --font:"Inter","Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Sans","Segoe UI",sans-serif;
}
*{box-sizing:border-box;}
*::selection{background:var(--brand-soft-2); color:var(--brand-ink);}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
html,body{margin:0;padding:0;overflow-x:hidden;max-width:100%;}
body{
  font-family:var(--font); background:var(--bg); color:var(--text);
  line-height:1.7; font-size:15.5px; letter-spacing:.005em;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5{color:var(--ink); line-height:1.25; margin:0 0 .55em; font-weight:700; letter-spacing:-.012em;}
h1{font-size:clamp(1.7rem,2.4vw,2.15rem);} h2{font-size:1.5rem; margin-top:.2em;} h3{font-size:1.2rem;} h4{font-size:1.02rem;}
p{margin:0 0 1em;} small{color:var(--muted);}
a{color:var(--brand); text-decoration:none; transition:color .15s var(--ease);}
a:hover{color:var(--brand-hover); text-decoration:underline; text-underline-offset:2px;}
img{max-width:100%; height:auto; display:block;}
hr{border:0; border-top:1px solid var(--line); margin:24px 0;}
code{background:var(--surface-3); padding:.12em .4em; border-radius:var(--r-xs); font-size:.88em; font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,monospace;}
:focus-visible{outline:2px solid var(--brand); outline-offset:2px; border-radius:4px;}
::-webkit-scrollbar{width:11px; height:11px;}
::-webkit-scrollbar-thumb{background:#cfd6e6; border-radius:8px; border:3px solid var(--bg);}
::-webkit-scrollbar-thumb:hover{background:#b9c2d8;}
.container{max-width:var(--maxw); margin:0 auto; padding:28px 22px;}
/* 取りこぼし対策: ラッパークラスを付け忘れても整って見えるように */
main{display:block;}
main:not(.container){max-width:var(--maxw); margin:0 auto; padding:28px 22px;}
section:not(.hero){margin:18px 0;}

/* ナビゲーション */
.navbar{background:rgba(255,255,255,.86); backdrop-filter:saturate(1.6) blur(10px);
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50;}
.navbar .nav-inner{max-width:var(--maxw); margin:0 auto; padding:14px 22px;
  display:flex; align-items:center; justify-content:space-between; gap:18px;}
.nav-brand{font-weight:800; font-size:1.12rem; color:var(--ink); letter-spacing:-.02em;
  display:flex; align-items:center; gap:9px;}
.nav-brand:hover{text-decoration:none; color:var(--ink);}
.nav-links{display:flex; align-items:center; gap:6px; flex-wrap:wrap;}
.nav-links a{color:var(--muted); font-weight:600; font-size:.9rem; padding:7px 12px; border-radius:var(--r-sm);
  transition:background .15s var(--ease),color .15s var(--ease);}
.nav-links a:hover{color:var(--brand-ink); background:var(--brand-soft); text-decoration:none;}
/* ハンバーガーボタン(スマホ時のみ表示。PCでは非表示) */
.nav-toggle{display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:38px; padding:8px 9px; background:transparent; border:1px solid var(--line-strong);
  border-radius:var(--r-sm); cursor:pointer; box-shadow:none;}
.nav-toggle:hover{background:var(--surface-3); transform:none;}
.nav-toggle span{display:block; width:100%; height:2px; background:var(--ink); border-radius:2px; transition:transform .2s var(--ease),opacity .2s var(--ease);}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ヒーロー(画面いっぱいのフルブリード) */
.hero{position:relative; overflow:hidden; color:#fff; border-radius:0;
  width:auto; max-width:none; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
  margin-top:0; margin-bottom:36px;
  padding:clamp(56px,9vw,132px) clamp(20px,6vw,48px);
  min-height:clamp(340px,52vh,620px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  box-shadow:none; background-color:var(--brand-press); background-size:cover; background-position:center;
  background-image:linear-gradient(180deg, rgba(12,18,42,.50), rgba(12,18,42,.66)),
    var(--hero-bg, radial-gradient(120% 140% at 0% 0%, #4c6ef5 0%, var(--brand) 45%, var(--brand-press) 100%));}
.hero > *{position:relative; z-index:1; max-width:var(--maxw); width:100%; margin-left:auto; margin-right:auto;}
.hero::after{content:""; position:absolute; inset:0; z-index:0;
  background:radial-gradient(70% 90% at 50% 0%, rgba(255,255,255,.16), transparent 62%); pointer-events:none;}
.hero h1{color:#fff; font-size:clamp(2.1rem,4.6vw,3.4rem); line-height:1.12; margin-bottom:.4em; letter-spacing:-.025em; text-shadow:0 2px 18px rgba(0,0,0,.28);}
.hero p{color:rgba(255,255,255,.96); font-size:clamp(1.02rem,1.6vw,1.28rem); line-height:1.85; max-width:64ch; margin:0 auto; text-shadow:0 1px 10px rgba(0,0,0,.22);}
.hero .btn{margin-top:26px;}

/* カード・グリッド */
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:24px; box-shadow:var(--sh-sm); margin-bottom:22px; transition:box-shadow .2s var(--ease),transform .2s var(--ease),border-color .2s var(--ease);}
a.card,.card-link{display:block; color:inherit;}
a.card:hover,.card-link:hover{text-decoration:none; box-shadow:var(--sh); transform:translateY(-2px); border-color:var(--line-strong);}
.card-title{font-size:1.08rem; font-weight:700; color:var(--ink); margin-bottom:.7em; letter-spacing:-.01em;}
.grid{display:grid; gap:22px;}
.grid.cols-2{grid-template-columns:repeat(2,1fr);}
.grid.cols-3{grid-template-columns:repeat(3,1fr);}
.grid.cols-4{grid-template-columns:repeat(4,1fr);}

/* ボタン */
.btn,button{display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 19px; background:var(--brand); color:#fff; border:1px solid transparent;
  border-radius:var(--r-sm); cursor:pointer; font:inherit; font-weight:650; line-height:1.1;
  text-decoration:none; letter-spacing:.01em; box-shadow:var(--sh-xs);
  transition:background .15s var(--ease),box-shadow .15s var(--ease),transform .06s var(--ease);}
.btn:hover,button:hover{background:var(--brand-hover); color:#fff; text-decoration:none; box-shadow:var(--sh-sm); transform:translateY(-1px);}
.btn:active,button:active{background:var(--brand-press); transform:translateY(0);}
.btn:disabled,button:disabled{opacity:.55; cursor:not-allowed; transform:none; box-shadow:none;}
.btn-secondary{background:var(--brand-soft); color:var(--brand-ink); border-color:var(--brand-soft-2);}
.btn-secondary:hover{background:var(--brand-soft-2); color:var(--brand-ink);}
.btn-ghost{background:var(--surface); color:var(--text); border-color:var(--line-strong);}
.btn-ghost:hover{background:var(--surface-3); color:var(--ink);}
.btn-danger{background:var(--err);} .btn-danger:hover{background:#a11616;}
.btn-success{background:var(--ok);} .btn-success:hover{background:#11652f;}
.btn-sm{padding:7px 13px; font-size:.85rem; border-radius:var(--r-xs);}
.btn-lg{padding:14px 26px; font-size:1.05rem;}
.btn-block{display:flex; width:100%;}

/* フォーム */
.form-group{margin-bottom:17px;}
label{display:block; font-weight:600; color:var(--ink); margin-bottom:7px; font-size:.9rem;}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=tel],
input[type=date],input[type=search],input[type=url],input[type=time],select,textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line-strong); border-radius:var(--r-sm);
  font:inherit; color:var(--ink); background:var(--surface); transition:border-color .15s var(--ease),box-shadow .15s var(--ease);}
input::placeholder,textarea::placeholder{color:var(--faint);}
input:hover,select:hover,textarea:hover{border-color:#b6bed2;}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--brand); box-shadow:0 0 0 3.5px var(--brand-soft);}
input:disabled,select:disabled,textarea:disabled{background:var(--surface-3); color:var(--muted);}
textarea{min-height:118px; resize:vertical;}
.form-hint{font-size:.82rem; color:var(--muted); margin-top:5px;}

/* 認証ページ */
.auth-wrap{min-height:calc(100vh - 64px); display:flex; align-items:center; justify-content:center; padding:34px 16px;
  background:radial-gradient(80% 60% at 50% -10%, var(--brand-soft), transparent 70%);}
.auth-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-lg); padding:38px 34px; width:100%; max-width:430px;}
.auth-card h1{text-align:center; font-size:1.55rem; margin-bottom:1.1em;}
.auth-card .btn{width:100%; margin-top:4px;}
.auth-alt{text-align:center; margin-top:20px; font-size:.9rem; color:var(--muted);}

/* テーブル */
.table-wrap{overflow-x:auto; border-radius:var(--r); box-shadow:var(--sh-sm); border:1px solid var(--line);}
.table,table{width:100%; border-collapse:collapse; background:var(--surface); overflow:hidden;}
.table th,.table td,th,td{padding:13px 15px; text-align:left; border-bottom:1px solid var(--line); font-size:.93rem;}
.table th,th{background:var(--surface-3); font-weight:700; color:var(--ink); font-size:.82rem;
  text-transform:uppercase; letter-spacing:.04em;}
.table tbody tr,tbody tr{transition:background .12s var(--ease);}
.table tbody tr:hover,tbody tr:hover{background:var(--surface-2);}
.table tr:last-child td,tr:last-child td{border-bottom:0;}

/* アラート・バッジ */
.alert{padding:13px 16px 13px 16px; border-radius:var(--r-sm); margin:14px 0; border:1px solid transparent;
  border-left-width:4px; font-size:.92rem;}
.alert.success{background:var(--ok-bg); color:var(--ok); border-color:var(--ok-line); border-left-color:var(--ok);}
.alert.error{background:var(--err-bg); color:var(--err); border-color:var(--err-line); border-left-color:var(--err);}
.alert.warning{background:var(--warn-bg); color:var(--warn); border-color:var(--warn-line); border-left-color:var(--warn);}
.alert.info{background:var(--info-bg); color:var(--info); border-color:var(--info-line); border-left-color:var(--info);}
.badge{display:inline-flex; align-items:center; gap:5px; padding:3px 11px; border-radius:var(--r-pill);
  font-size:.76rem; font-weight:700; background:var(--brand-soft); color:var(--brand-ink); letter-spacing:.01em;}
.badge.ok{background:var(--ok-bg); color:var(--ok);} .badge.warn{background:var(--warn-bg); color:var(--warn);}
.badge.err{background:var(--err-bg); color:var(--err);}

/* ダッシュボード */
.stat-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:18px; margin-bottom:8px;}
.stat-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:22px; box-shadow:var(--sh-sm); position:relative; overflow:hidden;}
.stat-card::before{content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--brand); opacity:.9;}
.stat-card .stat-label{color:var(--muted); font-size:.85rem; font-weight:600;}
.stat-card .stat-value{font-size:2rem; font-weight:800; color:var(--ink); margin-top:5px; letter-spacing:-.02em;}

/* 空状態・フッター・ユーティリティ */
.empty-state{text-align:center; color:var(--muted); padding:48px 20px;}
.site-footer{text-align:center; color:var(--muted); font-size:.85rem; padding:30px 16px; border-top:1px solid var(--line); margin-top:36px;}
.text-center{text-align:center;} .text-muted{color:var(--muted);} .text-right{text-align:right;}
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;} .mt-1{margin-top:8px;} .mb-1{margin-bottom:8px;}
.mt-2{margin-top:18px;} .mb-2{margin-bottom:18px;} .mt-3{margin-top:28px;}
.flex{display:flex; gap:12px; align-items:center;} .flex-between{justify-content:space-between;}
.flex-wrap{flex-wrap:wrap;} .gap-sm{gap:8px;}

/* ===== レイアウトパターン集(v3)— トップページや特集を多彩に組むための共通部品 ===== */
/* 小さなオーバーラインラベル(セクション見出しの上に置く) */
.eyebrow{display:inline-block; font-size:.78rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand); margin-bottom:8px;}
.lead{font-size:1.08rem; line-height:1.9; color:var(--text); max-width:70ch;}

/* 全幅バンド(淡色/濃色)。重要メッセージ・特徴を帯で強調 */
/* 注意: left:50%+負マージン方式はAI CSSの margin 上書きで右ズレ事故を起こすため使用禁止。
   margin計算のみの方式なら、上書きされても「親幅の帯」に安全に退化する */
.section-band{width:auto; margin:44px calc(50% - 50vw); padding:clamp(36px,6vw,72px) clamp(20px,6vw,48px);
  background:var(--brand-soft);}
.section-band > .band-inner, .section-band > .container{max-width:var(--maxw); margin:0 auto; padding:0;}
.section-band.dark{background:var(--brand-press); color:rgba(255,255,255,.92);}
.section-band.dark h1,.section-band.dark h2,.section-band.dark h3{color:#fff;}
.section-band.dark .eyebrow{color:rgba(255,255,255,.75);}
.section-band.dark .card{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16); color:rgba(255,255,255,.92); box-shadow:none;}
.section-band.dark .card-title{color:#fff;}

/* 画像×テキストの左右分割(交互に .reverse でジグザグ) */
.split{display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center; margin:40px 0;}
.split.reverse > .split-media{order:2;}
.split .split-media img{width:100%; border-radius:var(--r-lg); box-shadow:var(--sh);}
.split .split-media .media-ph{aspect-ratio:4/3; border-radius:var(--r-lg);
  background:linear-gradient(135deg,var(--brand-soft),var(--brand-soft-2)); display:flex; align-items:center; justify-content:center;
  color:var(--brand-ink); font-size:2.2rem;}

/* 横スクロール(スナップ)カード列 */
.hscroll{display:flex; gap:18px; overflow-x:auto; padding:6px 4px 18px; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;}
.hscroll > *{flex:0 0 min(280px,78vw); scroll-snap-align:start; margin-bottom:0;}
.hscroll::-webkit-scrollbar{height:8px;}

/* 大きな番号付き特徴(01/02/03…) */
.feature-num{display:grid; grid-template-columns:repeat(3,1fr); gap:26px; counter-reset:featnum; margin:28px 0;}
.feature-num > div{counter-increment:featnum; position:relative; padding-top:14px;}
.feature-num > div::before{content:counter(featnum,decimal-leading-zero); display:block;
  font-size:2.4rem; font-weight:800; line-height:1; letter-spacing:-.02em; color:var(--brand-soft-2); margin-bottom:10px;}
.feature-num h3{margin-bottom:.4em;}

/* 利用の流れ(ステップ) */
.steps{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; counter-reset:stepnum; margin:28px 0;}
.steps > div{counter-increment:stepnum; background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:20px 18px; position:relative;}
.steps > div::before{content:counter(stepnum); display:flex; align-items:center; justify-content:center; position:static;
  width:30px; height:30px; border-radius:50%; background:var(--brand); color:#fff; font-weight:800; font-size:.9rem; margin-bottom:10px;}
.steps > div:not(:last-child)::after{content:"→"; position:absolute; right:-14px; top:50%; transform:translateY(-50%);
  color:var(--faint); font-weight:700; z-index:1;}

/* 実績・数値の帯 */
.kpi-strip{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:18px; text-align:center;
  padding:26px 18px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); margin:34px 0;}
.kpi-strip .kpi-value{font-size:clamp(1.8rem,3.4vw,2.6rem); font-weight:800; color:var(--brand); letter-spacing:-.02em; line-height:1.1;}
.kpi-strip .kpi-label{color:var(--muted); font-size:.88rem; font-weight:600; margin-top:6px;}

/* よくある質問(開閉式) */
.faq-item{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); margin-bottom:12px; overflow:hidden;}
.faq-item summary{cursor:pointer; list-style:none; padding:16px 20px; font-weight:700; color:var(--ink);
  display:flex; justify-content:space-between; align-items:center; gap:12px;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+"; font-size:1.3rem; color:var(--brand); font-weight:700; transition:transform .18s var(--ease);}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item .faq-body{padding:0 20px 18px; color:var(--text);}

/* お客様の声・引用 */
.quote{background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--accent, var(--brand));
  border-radius:var(--r); padding:22px 24px; margin:18px 0; box-shadow:var(--sh-sm);}
.quote p{font-style:normal; margin-bottom:.6em;}
.quote .quote-by{color:var(--muted); font-size:.86rem; font-weight:600;}

/* 行動喚起の帯(登録・予約・問い合わせ) */
.cta-band{width:auto; margin:48px calc(50% - 50vw) 0;
  padding:clamp(40px,6vw,72px) clamp(20px,6vw,48px); text-align:center;
  background:linear-gradient(120deg,var(--brand),var(--brand-press)); color:#fff;}
.cta-band > *{max-width:min(var(--maxw),60ch); margin-left:auto; margin-right:auto;}
.cta-band h2{color:#fff; margin-bottom:.4em;}
.cta-band p{color:rgba(255,255,255,.92); max-width:60ch; margin:0 auto 1.2em;}
.cta-band .btn{background:#fff; color:var(--brand-ink); font-weight:800;}
.cta-band .btn:hover{background:rgba(255,255,255,.9); color:var(--brand-ink);}

/* 画像トップのカード */
.card > .card-img, .card > a > .card-img{width:calc(100% + 48px); margin:-24px -24px 16px; border-radius:var(--r) var(--r) 0 0;
  aspect-ratio:16/9; object-fit:cover;}

@media (max-width:820px){
  .split{grid-template-columns:1fr;}
  .split.reverse > .split-media{order:0;}
  .feature-num{grid-template-columns:1fr;}
  .steps > div:not(:last-child)::after{content:"";}
}

@media (max-width:820px){
  .grid.cols-2,.grid.cols-3,.grid.cols-4{grid-template-columns:1fr;}
  .nav-inner{flex-wrap:wrap; gap:10px;}
  .container{padding:22px 16px;}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important; transition:none !important; scroll-behavior:auto !important;}
}

/* ===== AIB-THEME v2 (project #172 / dir:auto / layout:center / nav:contrast / card:shadow / deco:underline) ===== */
:root{
  --brand:#7b2ff7; --brand-hover:#8843f7; --brand-press:#9254f8;
  --brand-soft:rgba(123,47,247,0.160); --brand-soft-2:rgba(123,47,247,0.260); --brand-ink:#c3a1fb;
  --accent:#f72585; --accent-ink:#fa7cb5;
  --bg:#0f0c1d; --surface:#1b1730; --surface-2:#242038; --surface-3:#2d2940;
  --line:#2c2647; --line-strong:#413b59;
  --ink:#f4f1ff; --text:#cfc8e6; --muted:#9b93b8; --faint:#7c7593;
  --r-xs:7px; --r-sm:10px; --r:14px; --r-lg:20px;
  --sh-xs:0 1px 2px rgba(0,0,0,.45); --sh-sm:0 1px 3px rgba(0,0,0,.45); --sh:0 6px 18px rgba(0,0,0,.45); --sh-lg:0 22px 50px rgba(0,0,0,.55);
  --font:"Noto Sans JP","Hiragino Sans","Yu Gothic UI",system-ui,-apple-system,"Segoe UI",sans-serif;
}
h1,h2,h3,h4,h5{font-family:"Yu Gothic","YuGothic","Hiragino Kaku Gothic ProN","Noto Sans JP",system-ui,sans-serif; letter-spacing:-.015em;}
body{background:#0f0c1d;} .card,.panel{background:var(--surface); border-color:var(--line);}
input,select,textarea{background:var(--surface-2); color:var(--text); border-color:var(--line-strong);}
*::selection{background:rgba(247,37,133,0.350); color:#f4f1ff;}
.navbar{background:rgba(27,23,48,0.820) !important; border-bottom-color:var(--line) !important;}
.badge,.tag,.chip{background:rgba(247,37,133,0.180); color:var(--accent-ink); border-color:rgba(247,37,133,0.350);}
.btn-accent{background:var(--accent); color:#fff;}
.eyebrow{color:var(--accent-ink);}
.hero{background:linear-gradient(135deg,#5620ac 0%,#b91b63 130%); color:#fff;}
.hero h1,.hero h2,.hero p{color:#fff;}
/* nav: contrast */
.navbar{background:rgba(27,23,48,0.920) !important; border-bottom-color:rgba(0,0,0,0.120) !important;}
.navbar .nav-brand{color:#fff;}
@media (min-width:821px){
  .navbar .nav-links a{color:rgba(255,255,255,.88);}
  .navbar .nav-links a:hover{color:#fff; background:rgba(255,255,255,.14);}
}
.nav-toggle{border-color:rgba(255,255,255,.45) !important;}
.nav-toggle span{background:#fff !important;}
@media (max-width:820px){ .navbar .nav-links a{color:#f4f1ff !important;} }
/* deco: underline */
.container h2, main h2{padding-bottom:.3em; position:relative;}
.container h2::after, main h2::after{content:''; position:absolute; left:0; bottom:0; width:2.2em; height:3px; border-radius:2px; background:linear-gradient(90deg,var(--brand),var(--accent));}


/* ===== project-specific styles (AI generated) ===== */
@charset "UTF-8";

:root {
    color-scheme: light;
    --brand: #1746d1;
    --brand-hover: #1137a8;
    --accent: #53e6f1;
    --ink: #122442;
    --muted: #52627b;
    --surface: #ffffff;
    --surface-soft: #f0f5fc;
    --background: #f7f9fe;
    --navy: #091b39;
    --line: #d4deed;
    --success: #146147;
    --success-bg: #edf9f2;
    --error: #a4243c;
    --error-bg: #fff1f3;
    --warning: #77520c;
    --warning-bg: #fff8e7;
    --info: #173f87;
    --info-bg: #eef5ff;
    --r-sm: 10px;
    --r: 18px;
    --r-lg: 28px;
    --sh: 0 12px 34px rgb(17 42 91 / 7%), 0 2px 5px rgb(17 42 91 / 3%);
    --sh-lg: 0 22px 64px rgb(7 24 57 / 18%);
    --content: 1200px;
    --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 0;
    background: var(--background);
    color: var(--ink);
    font-family: "Inter", "Aptos", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--navy);
}

a {
    color: var(--brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 5px;
}

h1,
h2,
h3,
h4,
p,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.25rem, 6vw, 5rem);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
}

h3 {
    margin-bottom: 12px;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

p {
    margin-bottom: 18px;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 750;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
select {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(var(--content), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
    min-width: 0;
}

body > a.btn-ghost:first-child {
    display: flex;
    justify-content: center;
    min-height: 44px;
    padding: 6px 16px;
    border: 0;
    border-radius: 0;
    background: var(--navy);
    color: #ffffff;
    font-size: .8rem;
    letter-spacing: .05em;
}

.navbar {
    background: var(--brand);
    color: #ffffff;
    border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    width: min(var(--content), calc(100% - var(--gutter) * 2));
    min-width: 0;
    min-height: 88px;
    margin-inline: auto;
    padding-block: 16px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.2;
    text-decoration: none;
}

.nav-brand::before {
    content: "";
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 6px solid var(--accent);
    border-radius: 50%;
    box-shadow: 5px -5px 0 -3px #ffffff;
    transform: rotate(-25deg);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 10px;
    min-width: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    color: #ffffff;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: rgb(255 255 255 / 14%);
}

.navbar :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.section-band.dark :focus-visible,
body > a.btn-ghost:first-child:focus-visible {
    outline-color: var(--accent);
}

.hero {
    padding: clamp(64px, 9vw, 128px) 0;
    background-color: var(--navy);
    background-image: linear-gradient(100deg, rgb(5 19 48 / 92%), rgb(8 29 68 / 79%)), url("../img/gallery-0c5b89f1eb.png");
    background-position: center;
    background-size: cover;
    color: #ffffff;
    text-align: center;
}

.hero h1 {
    max-width: 1000px;
    margin-inline: auto;
    color: #ffffff;
    font-size: clamp(2.4rem, 6.7vw, 5.75rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero p {
    max-width: 760px;
    margin-inline: auto;
    color: #ffffff;
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    line-height: 1.9;
}

.hero .container > p:first-child {
    margin-bottom: 26px;
    color: var(--accent);
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .08em;
}

.hero .btn {
    margin-top: 14px;
}

.hero .btn + p {
    margin-top: 22px;
    margin-bottom: 0;
    font-size: .8rem;
}

main > .container > section {
    padding-block: clamp(42px, 6vw, 76px);
}

main > .container > section + section {
    border-top: 1px solid var(--line);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.6;
}

.eyebrow::before {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    flex: 0 0 24px;
    background: currentColor;
    border-radius: 2px;
}

.lead {
    max-width: 860px;
    color: var(--ink);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 550;
    line-height: 1.9;
}

.section-band {
    padding: clamp(38px, 5vw, 64px) var(--gutter);
    border-block: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--ink);
}

.band-inner {
    max-width: var(--content);
    margin-inline: auto;
    min-width: 0;
}

.section-band.dark {
    border-color: var(--navy);
    background: var(--navy);
    color: #ffffff;
}

.section-band.dark h2,
.section-band.dark h3,
.section-band.dark .lead {
    color: #ffffff;
}

.section-band.dark .eyebrow {
    color: var(--accent);
}

.section-band.dark .card {
    background: var(--surface);
    color: var(--ink);
}

.section-band.dark .card h3,
.section-band.dark .card h4,
.section-band.dark .card .card-title {
    color: var(--ink);
}

.quote {
    display: grid;
    gap: 12px;
    margin-block: 30px;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: 0 var(--r) var(--r) 0;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--sh);
}

.quote p {
    margin-bottom: 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 750;
}

.quote-by {
    color: var(--muted);
    font-size: .8rem;
}

.grid {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid > *,
.split > *,
.stat-grid > * {
    min-width: 0;
}

.card {
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--sh);
}

.card-title {
    margin-block: 12px;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.45;
}

.card p {
    color: var(--muted);
    font-size: .93rem;
}

.card p strong {
    color: var(--ink);
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-soft);
    object-fit: cover;
}

#rooms-list .card {
    display: flex;
    flex-direction: column;
}

#rooms-list .badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

#rooms-list h3 {
    margin-bottom: 8px;
}

#rooms-list .card > p:last-child {
    margin-top: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    max-width: 100%;
    padding: 3px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--info);
    font-size: .73rem;
    font-weight: 750;
    line-height: 1.5;
}

.badge.ok,
.badge.active {
    border-color: #b7d9c9;
    background: var(--success-bg);
    color: var(--success);
}

.badge.warn {
    border-color: #e6d3a7;
    background: var(--warning-bg);
    color: var(--warning);
}

.badge.err {
    border-color: #ebc3cb;
    background: var(--error-bg);
    color: var(--error);
}

.badge.cancelled {
    background: var(--surface-soft);
    color: var(--muted);
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 48px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: var(--brand);
    color: #ffffff;
    font-size: .94rem;
    font-weight: 750;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
button:hover {
    background: var(--brand-hover);
    color: #ffffff;
    box-shadow: 0 5px 16px rgb(23 70 209 / 16%);
    text-decoration: none;
}

.btn-secondary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--brand);
}

.btn-secondary:hover {
    border-color: var(--brand);
    background: var(--info-bg);
    color: var(--brand-hover);
}

.hero .btn-secondary,
.cta-band .btn-secondary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--navy);
}

.hero .btn-secondary:hover,
.cta-band .btn-secondary:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--navy);
}

.btn-ghost {
    border-color: var(--line);
    background: transparent;
    color: var(--brand);
}

.btn-ghost:hover {
    background: var(--info-bg);
    color: var(--brand-hover);
}

.btn-danger {
    border-color: #ebc3cb;
    background: var(--error-bg);
    color: var(--error);
}

.btn-danger:hover {
    border-color: var(--error);
    background: var(--error);
    color: #ffffff;
}

.btn-success {
    background: var(--success);
    color: #ffffff;
}

.btn-success:hover {
    background: #104c38;
    color: #ffffff;
}

.btn-sm {
    min-height: 44px;
    padding: 9px 15px;
    font-size: .83rem;
}

.btn-lg {
    min-height: 56px;
    padding: 15px 30px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

button:disabled,
.btn[aria-disabled="true"],
fieldset:disabled button {
    border-color: var(--line);
    background: #e4eaf3;
    color: #58667b;
    box-shadow: none;
    cursor: not-allowed;
}

fieldset {
    min-width: 0;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

legend {
    max-width: 100%;
    margin-bottom: 20px;
    padding: 0;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 750;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

label {
    display: block;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: .87rem;
    font-weight: 750;
}

label span {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
}

input:not([type="hidden"]),
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #aebed4;
    border-radius: var(--r-sm);
    background-color: var(--surface);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

select {
    padding-right: 30px;
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    width: 22px;
    min-height: 22px;
    accent-color: var(--brand);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--brand);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--brand);
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgb(23 70 209 / 8%);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border: 2px solid var(--error);
}

input:disabled,
select:disabled,
textarea:disabled {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    cursor: not-allowed;
    opacity: 1;
}

.form-hint,
.card .form-hint {
    margin-top: 9px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.75;
}

#search-hint {
    margin-block: 26px 18px;
}

.alert {
    margin-block: 24px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: var(--r-sm);
    background: var(--surface-soft);
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.85;
}

.alert p {
    margin-bottom: 8px;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert.info {
    border-color: #b7cdec;
    background: var(--info-bg);
    color: var(--info);
}

.alert.success {
    border-color: #b7d9c9;
    background: var(--success-bg);
    color: var(--success);
}

.alert.error {
    border-color: #ebc3cb;
    background: var(--error-bg);
    color: var(--error);
}

.alert.warning {
    border-color: #e6d3a7;
    background: var(--warning-bg);
    color: var(--warning);
}

.alert a {
    color: inherit;
    font-weight: 750;
}

#booking-board > div[aria-labelledby="results-title"] {
    padding-top: 36px;
}

#search-results,
#bookings-list,
#daily-summary {
    min-width: 0;
    margin-top: 24px;
}

#search-results > .card + .card,
#bookings-list > .card + .card,
#bookings-list > article + article {
    margin-top: 18px;
}

#search-results .card .btn,
#search-results .card button {
    margin-top: 18px;
}

[aria-busy="true"] {
    cursor: progress;
}

.empty-state {
    grid-column: 1 / -1;
    padding: clamp(26px, 4vw, 44px);
    border: 1px dashed #aebed4;
    border-radius: var(--r);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    color: var(--ink);
}

.empty-state p {
    max-width: 650px;
    margin-inline: auto;
    font-size: .9rem;
}

.table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    box-shadow: var(--sh);
    overscroll-behavior-inline: contain;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    color: var(--ink);
    font-size: .87rem;
    text-align: left;
}

.table caption {
    padding: 18px 20px;
    color: var(--muted);
    font-weight: 700;
    text-align: left;
}

.table th,
.table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.table th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #f7faff;
}

.table td .btn {
    font-size: .8rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    min-width: 0;
    padding: 24px 14px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--sh);
}

.stat-label {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.6;
}

.stat-value {
    color: var(--brand);
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}

.stat-value small,
.stat-value span {
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: 0;
}

.stat-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: .76rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    counter-reset: orbit-step;
    margin-top: 30px;
}

.steps > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    box-shadow: var(--sh);
    counter-increment: orbit-step;
}

.steps > div::before {
    content: counter(orbit-step, decimal-leading-zero) " →";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--info-bg);
    color: var(--brand);
    font-size: .85rem;
    font-weight: 850;
    line-height: 1;
}

.steps > div:last-child::before {
    content: counter(orbit-step, decimal-leading-zero) " ✓";
}

.steps h3,
.steps h4,
.steps p {
    margin-bottom: 0;
}

.steps h3,
.steps h4 {
    font-size: 1.05rem;
    line-height: 1.65;
}

.steps p {
    color: var(--muted);
    font-size: .88rem;
}

.faq-item {
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--line);
}

.faq-item summary {
    min-height: 64px;
    padding: 20px 12px;
    color: var(--ink);
    font-weight: 750;
    line-height: 1.7;
    cursor: pointer;
}

.faq-item summary::marker {
    color: var(--brand);
}

.faq-item summary:hover {
    color: var(--brand);
}

.faq-item[open] {
    background: var(--surface);
}

.faq-body {
    max-width: 940px;
    padding: 0 24px 24px;
    color: var(--muted);
    font-size: .92rem;
}

.cta-band {
    padding: clamp(46px, 7vw, 80px) var(--gutter);
    background: var(--brand);
    color: #ffffff;
    text-align: center;
}

.cta-band h2,
.cta-band p {
    max-width: 850px;
    margin-inline: auto;
    color: #ffffff;
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3.6vw, 3.1rem);
    text-wrap: balance;
}

.cta-band .btn {
    margin-top: 12px;
}

.site-footer {
    padding-block: 44px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    background: var(--navy);
    color: #d6e1f4;
    font-size: .8rem;
}

.site-footer strong {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: .025em;
}

.site-footer p {
    margin-bottom: 10px;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 8px;
    color: var(--accent);
}

.site-footer :focus-visible {
    outline-color: var(--accent);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
}

.split-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    object-fit: cover;
}

.split.reverse .split-media {
    order: 2;
}

.hscroll {
    display: flex;
    gap: 20px;
    max-width: 100%;
    padding-bottom: 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.hscroll > .card {
    flex: 0 0 min(340px, 88%);
    scroll-snap-align: start;
}

.feature-num {
    display: grid;
    gap: 22px;
    counter-reset: feature;
}

.feature-num > div {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    counter-increment: feature;
}

.feature-num > div::before {
    content: counter(feature, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 2rem;
    font-weight: 850;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-block: 24px;
}

.kpi-value {
    color: var(--brand);
    font-size: 2.5rem;
    font-weight: 850;
    line-height: 1.3;
}

.kpi-label {
    margin-top: 10px;
    color: var(--muted);
    font-size: .85rem;
}

dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    padding: clamp(22px, 4vw, 36px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--sh-lg);
}

dialog::backdrop {
    background: rgb(5 18 42 / 70%);
}

dialog form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

dialog form > p {
    flex-basis: 100%;
}

.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 1000px) {
    #search-form .grid.cols-3 {
        grid-template-columns: 1.25fr 1fr 1fr;
    }
}

@media (max-width: 1000px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid {
        gap: 18px;
    }

    .steps {
        gap: 16px;
    }

    .steps > div {
        padding: 22px;
    }
}

@media (max-width: 760px) {
    .nav-inner {
        display: grid;
        gap: 14px;
        padding-block: 18px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding-inline: 10px;
        font-size: .8rem;
    }

    .hero {
        padding-block: 60px;
    }

    .hero h1 {
        line-height: 1.25;
    }

    .cols-2,
    .cols-3,
    .cols-4,
    .split,
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .split.reverse .split-media {
        order: 0;
    }

    #rooms-list {
        gap: 22px;
    }

    .card-img {
        max-height: 300px;
    }

    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .steps > div {
        gap: 14px;
    }

    .kpi-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    #bookings-list .table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #bookings-list .table,
    #bookings-list .table tbody {
        display: block;
        width: 100%;
        background: transparent;
    }

    #bookings-list .table thead {
        display: none;
    }

    #bookings-list .table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
        margin-bottom: 18px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--r);
        background: var(--surface);
        color: var(--ink);
        box-shadow: var(--sh);
    }

    #bookings-list .table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        min-width: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        font-variant-numeric: tabular-nums;
    }

    #bookings-list .table td[data-label]::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .72rem;
        font-weight: 700;
    }

    #bookings-list .table td:first-child,
    #bookings-list .table td:last-child {
        grid-column: 1 / -1;
    }

    #bookings-list .table td:first-child {
        color: var(--brand);
        font-weight: 750;
    }

    #bookings-list .table tbody tr:last-child td {
        border-bottom: 1px solid var(--line);
    }

    #bookings-list .table td:last-child,
    #bookings-list .table tbody tr:last-child td:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    #bookings-list .table td:last-child .btn,
    #bookings-list .table td:last-child button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links a {
        justify-content: flex-start;
        padding-inline: 8px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero p {
        font-size: .9rem;
    }

    .hero .container > p:first-child {
        font-size: .73rem;
        letter-spacing: .015em;
    }

    .hero .btn,
    .cta-band .btn,
    #search-button {
        width: 100%;
        padding-inline: 16px;
    }

    .card {
        padding: 20px;
    }

    .quote {
        padding: 20px;
    }

    .alert {
        padding: 16px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card {
        padding: 20px 14px;
    }

    .stat-value {
        font-size: 1.65rem;
    }

    .faq-item summary {
        padding-inline: 6px;
        font-size: .92rem;
    }

    .faq-body {
        padding-inline: 12px;
    }

    .empty-state {
        padding: 24px 18px;
    }

    .site-footer {
        font-size: .76rem;
    }

    dialog form > button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (forced-colors: active) {
    .btn,
    button,
    .badge,
    .card,
    .stat-card,
    .alert {
        border: 1px solid ButtonText;
    }

    :focus-visible {
        outline: 3px solid Highlight;
    }

    .hero,
    .navbar,
    .cta-band,
    .site-footer {
        border-block: 1px solid CanvasText;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 10pt;
    }

    .navbar,
    body > a.btn-ghost:first-child,
    .hero .btn,
    #search-form,
    #search-results,
    #app-status,
    .cta-band,
    button,
    .site-footer a {
        display: none !important;
    }

    .container {
        width: 100%;
    }

    .hero,
    .section-band,
    .site-footer {
        padding-block: 24px;
        background: #ffffff;
        color: #000000;
    }

    .hero h1,
    .hero p,
    .hero .container > p:first-child,
    .site-footer strong,
    .site-footer p {
        color: #000000;
    }

    .hero h1 {
        font-size: 28pt;
    }

    main > .container > section {
        padding-block: 24px;
    }

    .card,
    .stat-card,
    .steps > div {
        break-inside: avoid;
        box-shadow: none;
    }

    .table-wrap {
        overflow: visible;
        box-shadow: none;
    }

    .faq-item .faq-body {
        display: block;
    }
}

/* ===== AIB-HARD-OVERRIDE v2 — AI生成CSSより後に置き、最終的なレイアウトを保証 ===== */
html,body{overflow-x:hidden !important;}

/* 帯パターンの右ズレ・文字切れ防止(AI CSSが margin/position を上書きしても崩れないよう強制) */
.section-band,.cta-band{position:static !important; left:auto !important; right:auto !important;
  width:auto !important; min-width:0 !important; max-width:none !important;
  margin-left:calc(50% - 50vw) !important; margin-right:calc(50% - 50vw) !important;
  box-sizing:border-box !important;}
/* カードや分割レイアウトの中に入れられた場合は全幅化せずパネルとして表示 */
.card .section-band,.split .section-band,.grid .section-band,.hero .section-band,
.card .cta-band,.split .cta-band,.grid .cta-band,.hero .cta-band{
  margin-left:0 !important; margin-right:0 !important; border-radius:14px !important;}

/* 長い単語・URLでの横はみ出し防止 / グリッド子要素の膨張防止 */
h1,h2,h3,h4,h5,h6,p,li,dd,dt,td,th{overflow-wrap:break-word;}
.grid > *,.split > *,.steps > *,.kpi-strip > *,.feature-num > *,.hscroll > *{min-width:0 !important;}

/* ヘッダー固定(常に画面上部) */
.navbar{position:sticky !important; top:0 !important; z-index:1000 !important;}
.nav-inner{position:relative;}

/* スマホ: ハンバーガーメニュー */
@media (max-width:820px){
  .nav-toggle{display:inline-flex !important;}
  .nav-inner{flex-wrap:nowrap !important; gap:10px !important;}
  .navbar .nav-links{
    display:none !important; position:absolute !important; top:100% !important; left:0 !important; right:0 !important;
    flex-direction:column !important; align-items:stretch !important; gap:0 !important;
    background:#fff !important; border-top:1px solid var(--line) !important; border-bottom:1px solid var(--line) !important;
    box-shadow:0 14px 30px rgba(16,23,42,.14) !important; padding:6px 0 !important; margin:0 !important;
  }
  .navbar .nav-links.open{ display:flex !important; }
  .navbar .nav-links a{ padding:13px 22px !important; border-radius:0 !important; font-size:1rem !important; width:100% !important; }
}
@media (min-width:821px){ .nav-toggle{display:none !important;} }
/* --- hero override (layout: center) --- */
.hero, section.hero, .hero-section, .lp-hero, .hero-banner, section[class*="hero"], header[class*="hero"]{ position:relative !important; box-sizing:border-box !important; overflow:hidden !important; background-size:cover !important; background-position:center !important; background-repeat:no-repeat !important; }
.hero > *, section[class*="hero"] > *, .hero-section > *, .lp-hero > *{ position:relative !important; z-index:2 !important; float:none !important; }
.hero img, section[class*="hero"] img, .hero-section img, .lp-hero img{ display:none !important; }
.hero > div, section[class*="hero"] > div, .hero .container{ display:block !important; }
.hero, section.hero, .hero-section, .lp-hero, .hero-banner, section[class*="hero"], header[class*="hero"]{ width:auto !important; max-width:none !important; min-width:0 !important; left:auto !important; right:auto !important; margin-left:calc(50% - 50vw) !important; margin-right:calc(50% - 50vw) !important; margin-top:0 !important; border-radius:0 !important; box-sizing:border-box !important; display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; text-align:center !important; min-height:clamp(340px,52vh,600px) !important; padding:clamp(56px,9vw,120px) clamp(20px,6vw,48px) !important; color:#fff !important; background-color:var(--brand-press) !important; background-image:var(--hero-bg, radial-gradient(120% 140% at 0% 0%, #9254f8 0%, var(--brand) 45%, var(--brand-press) 100%)) !important; }
.hero::before, section[class*="hero"]::before, .hero-section::before, .lp-hero::before{ content:"" !important; position:absolute !important; inset:0 !important; z-index:1 !important; pointer-events:none !important; background:linear-gradient(180deg, rgba(8,12,30,.42), rgba(8,12,30,.60)) !important; }
.hero > *, section[class*="hero"] > *, .hero-section > *, .lp-hero > *{ width:100% !important; max-width:var(--maxw) !important; margin-left:auto !important; margin-right:auto !important; }
.hero h1,.hero h2,.hero h3,.hero p,.hero span,.hero li,section[class*="hero"] h1, section[class*="hero"] h2, section[class*="hero"] h3, section[class*="hero"] p{ color:#fff !important; }
.hero .btn-secondary{ background:rgba(255,255,255,.16) !important; color:#fff !important; border-color:rgba(255,255,255,.5) !important; }

/* V15: existing generated image in readable public hero */
html body .hero{background-image:linear-gradient(90deg,rgba(10,18,34,.94) 0%,rgba(10,18,34,.82) 38%,rgba(10,18,34,.18) 100%),url('../img/small-meeting-room.png')!important;background-size:cover!important;background-position:center!important;color:#fff!important}html body .hero::before{background:transparent!important}html body .hero h1{color:#fff!important;-webkit-text-fill-color:currentColor;font-size:clamp(34px,5.2vw,68px)!important;line-height:1.15!important;letter-spacing:-.045em;overflow-wrap:anywhere}html body .hero p{color:#f3f4f6!important;max-width:44rem}html body .hero a.btn{background:#ffbf47!important;border-color:#ffbf47!important;color:#14263f!important}html body .hero a.btn:focus-visible{outline:3px solid white;outline-offset:5px}

html body .navbar{background:#fffaf5!important;color:#1c2431!important}html body .navbar .nav-brand,html body .navbar .nav-links a{color:#1c2431!important}html body .navbar .nav-brand{white-space:normal!important;min-width:0;overflow-wrap:anywhere}html body .navbar .nav-toggle span{background:#1c2431!important}

/* Public sample navigation contrast, including filled theme buttons. */
html body .navbar .nav-links{background:#fffaf5!important}
html body .navbar .nav-toggle{background:#fffaf5!important;color:#1c2431!important;border:1px solid #cecbd3!important;min-width:44px!important;min-height:44px!important;padding:10px!important}
html body .navbar .nav-toggle span{display:block!important;background:#1c2431!important;width:22px!important;height:2px!important;min-height:2px!important}