/* 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 #200 / dir:auto / layout:center / nav:contrast / card:shadow / deco:none) ===== */
:root{
  --brand:#3b5bdb; --brand-hover:#3551c5; --brand-press:#2f48af;
  --brand-soft:#e3e8f9; --brand-soft-2:#cfd7f6; --brand-ink:#203278;
  --accent:#0ca678; --accent-ink:#076348;
  --bg:#f6f8fc; --surface:#ffffff; --surface-2:#fbfbfb; --surface-3:#f7f7f7;
  --line:#e6e9f2; --line-strong:#d3d6de;
  --ink:#10172a; --text:#374151; --muted:#6b7280; --faint:#90959f;
  --r-xs:7px; --r-sm:10px; --r:14px; --r-lg:20px;
  --sh-xs:0 1px 2px rgba(16,23,42,.10); --sh-sm:0 1px 3px rgba(16,23,42,.10); --sh:0 6px 18px rgba(16,23,42,.10); --sh-lg:0 22px 50px rgba(16,23,42,.14);
  --font:"Noto Sans JP","Hiragino Sans","Yu Gothic UI",system-ui,-apple-system,"Segoe UI",sans-serif;
}
h1,h2,h3,h4,h5{font-family:"Noto Sans JP","Hiragino Sans","Yu Gothic UI",system-ui,-apple-system,"Segoe UI",sans-serif; letter-spacing:-.015em;}
*::selection{background:#cfd7f6; color:#203278;}
.badge,.tag,.chip{background:rgba(12,166,120,0.120); color:var(--accent-ink); border-color:rgba(12,166,120,0.350);}
.btn-accent{background:var(--accent); color:#fff;}
.eyebrow{color:var(--accent-ink);}
.hero{background:linear-gradient(180deg,#ebeefb 0%,var(--bg) 100%); position:relative;}
.hero::after{content:'';position:absolute;inset:0;background:radial-gradient(700px 240px at 80% 0%,rgba(12,166,120,0.180),transparent 60%);pointer-events:none;}
/* nav: contrast */
.navbar{background:#3b5bdb !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:#10172a !important;} }


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

:root {
    color-scheme: light;
    --brand: #50223f;
    --brand-dark: #36152b;
    --accent: #f18473;
    --cream: #fff8ed;
    --surface: #ffffff;
    --surface-soft: #f8eee8;
    --ink: #352331;
    --muted: #705866;
    --line: #dfcdd3;
    --success: #285b46;
    --success-bg: #edf6ef;
    --error: #8c293b;
    --error-bg: #fff0f1;
    --warning: #71501d;
    --warning-bg: #fff4db;
    --info-bg: #f5edf4;
    --r: 18px;
    --r-sm: 10px;
    --r-lg: 28px;
    --r-pill: 999px;
    --sh: 0 12px 32px rgb(80 34 63 / 7%);
    --sh-lg: 0 22px 60px rgb(80 34 63 / 12%);
    --container: 1280px;
    --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font);
}

button,
input,
textarea,
select {
    font-size: inherit;
}

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

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

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

img {
    height: auto;
}

button,
a,
input,
textarea,
select,
summary {
    touch-action: manipulation;
}

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

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

button {
    color: inherit;
}

button:not(:disabled),
summary,
input[type="checkbox"] {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px var(--cream);
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--brand);
    color: var(--surface);
}

h1,
h2,
h3,
h4,
p,
dl,
ol,
ul,
figure {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--brand);
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.4rem, 6.8vw, 5.8rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(1.65rem, 3.2vw, 2.75rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 16px;
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    letter-spacing: -0.02em;
}

h4 {
    margin-bottom: 14px;
    font-size: 1.08rem;
}

p {
    margin-bottom: 20px;
}

strong {
    font-weight: 800;
}

small {
    font-size: 0.75em;
}

time {
    font-variant-numeric: tabular-nums;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
    min-width: 0;
}

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

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

section[id],
article[id],
div[id] {
    scroll-margin-top: 24px;
}

.lead {
    max-width: 78ch;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.7;
    letter-spacing: 0.14em;
}

.eyebrow::before {
    content: "";
    flex: 0 0 24px;
    height: 3px;
    border-radius: var(--r-pill);
    background: var(--accent);
}

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

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

.nav-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 44px;
    color: var(--surface);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.nav-brand::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 12px;
    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: var(--surface);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    background: rgb(255 255 255 / 12%);
}

.navbar :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.section-band.dark :focus-visible {
    outline-color: var(--surface);
    box-shadow: 0 0 0 7px var(--brand-dark);
}

body > a.btn-ghost:first-child {
    display: flex;
    min-height: 44px;
    padding-block: 6px;
    border: 0;
    border-radius: 0;
    background: var(--cream);
    color: var(--brand);
    font-size: 0.78rem;
    text-decoration: underline;
}

.hero {
    padding: clamp(64px, 9vw, 128px) 0;
    background-color: var(--brand-dark);
    background-image:
        linear-gradient(90deg, rgb(54 21 43 / 88%), rgb(54 21 43 / 78%)),
        url("../img/gallery-1e383b348b.png");
    background-position: center;
    background-size: cover;
    color: var(--surface);
    text-align: center;
}

.hero h1 {
    max-width: 15ch;
    margin-inline: auto;
    color: var(--surface);
    line-height: 1.25;
    text-wrap: balance;
}

.hero p {
    max-width: 66ch;
    margin-inline: auto;
    color: var(--surface);
    line-height: 1.95;
}

.hero .container > p:first-child {
    margin-bottom: 26px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 44px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--brand);
    border-radius: var(--r-pill);
    background: var(--brand);
    color: var(--surface);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(-2px);
    background: var(--brand-dark);
    color: var(--surface);
    box-shadow: 0 5px 0 rgb(80 34 63 / 12%);
    text-decoration: none;
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-secondary:hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: var(--brand);
    background: var(--cream);
    color: var(--brand);
}

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

.hero .btn-secondary:hover,
.cta-band .btn-secondary:hover {
    border-color: var(--cream);
    background: var(--cream);
    color: var(--brand-dark);
}

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

.btn-danger {
    border-color: var(--error);
    background: var(--error);
    color: var(--surface);
}

.btn-success {
    border-color: var(--success);
    background: var(--success);
    color: var(--surface);
}

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

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

.btn-block {
    display: flex;
    width: 100%;
}

button:disabled,
.btn[aria-disabled="true"] {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

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

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

.grid > *,
.split > *,
.stat-grid > * {
    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));
}

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

.card > :last-child {
    margin-bottom: 0;
}

.card-title {
    color: var(--brand);
    font-size: 1.35rem;
    font-weight: 800;
}

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

.artwork-card {
    align-self: start;
    padding: 22px;
}

.artwork-card .card-title {
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.artwork-card > p {
    font-size: 0.9rem;
}

.artwork-card > p:has(.badge) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.artwork-card dl {
    display: grid;
    gap: 6px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.artwork-card dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.artwork-card dd {
    min-width: 0;
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.artwork-card dd:last-child {
    margin-bottom: 0;
}

[data-role="current-points"] {
    font-size: 2rem;
    letter-spacing: -0.04em;
    line-height: 1.3;
}

[data-role="countdown"] {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

[data-role="countdown"]::before {
    content: "";
    flex: 0 0 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.watch-button {
    width: 100%;
    margin-bottom: 18px;
}

.watch-button[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--surface);
}

.watch-button[aria-pressed="true"]:disabled {
    background: var(--surface-soft);
    color: var(--brand);
}

.badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-soft);
    color: var(--brand);
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.6;
    vertical-align: middle;
}

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

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

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

#workspace-title {
    max-width: 48ch;
}

#experience > .card {
    margin-bottom: 28px;
}

#experience > .card:has(#workspace-title) {
    border-top: 5px solid var(--accent);
    background: var(--surface);
}

.stat-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    margin-block: 26px;
}

.stat-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--cream);
    color: var(--brand);
}

.stat-label {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.stat-value {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.stat-value small {
    font-size: 0.4em;
    letter-spacing: 0;
}

#watchlist {
    background: var(--surface-soft);
    box-shadow: none;
}

#watchlist h3 {
    margin-bottom: 10px;
}

#watchlist-summary {
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.form-group {
    min-width: 0;
    margin-bottom: 22px;
}

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

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea,
select {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--muted);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    line-height: 1.6;
}

input[type="number"] {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

textarea {
    min-height: 136px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

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

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

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

label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    cursor: pointer;
}

.form-hint {
    margin-top: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.85;
}

.alert {
    margin-block: 20px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--r-sm);
    background: var(--info-bg);
    color: var(--brand);
    font-size: 0.9rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

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

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

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

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

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

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

#app-status:empty,
#app-error:empty,
[data-role="bid-status"]:empty,
[data-role="comment-status"]:empty,
[data-role="artwork-message"]:empty {
    display: none;
}

#app-status:not(:empty),
#app-error:not(:empty),
[data-role="bid-status"]:not(:empty),
[data-role="comment-status"]:not(:empty),
[data-role="artwork-message"]:not(:empty) {
    margin-block: 16px;
    overflow-wrap: anywhere;
}

#app-error:not(:empty):not(:has(.alert)):not(.alert) {
    padding: 18px;
    border: 1px solid var(--error);
    border-radius: var(--r-sm);
    background: var(--error-bg);
    color: var(--error);
}

details {
    min-width: 0;
}

summary {
    min-height: 48px;
    padding: 14px 12px;
    border-radius: var(--r-sm);
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.65;
}

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

summary:hover {
    background: var(--surface-soft);
}

.artwork-details {
    border-top: 1px solid var(--line);
}

.artwork-details > summary {
    padding-inline: 4px;
}

.artwork-details[open] > summary {
    margin-bottom: 12px;
    color: var(--brand);
}

.artwork-details section {
    padding-block: 24px;
    border-top: 1px solid var(--line);
}

.artwork-details section > p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.95;
}

.artwork-details [data-role="minimum-message"] {
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--cream);
    color: var(--brand);
    font-weight: 700;
}

[data-role="bid-history"] ol {
    margin-bottom: 0;
    padding-left: 22px;
}

[data-role="bid-history"] li {
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.78rem;
}

[data-role="bid-history"] li::marker {
    color: var(--brand);
    font-weight: 800;
}

[data-role="bid-history"] li:last-child {
    border-bottom: 0;
}

[data-role="bid-history"] li p {
    margin-top: 8px;
    margin-bottom: 0;
}

[data-role="bid-history"] time {
    color: var(--muted);
}

.quote {
    min-width: 0;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-sm);
    background: var(--cream);
    color: var(--ink);
}

.quote p {
    margin-top: 14px;
    margin-bottom: 12px;
    font-size: 0.86rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

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

.empty-state {
    min-width: 0;
    padding: 28px 22px;
    border: 1px dashed var(--line);
    border-radius: var(--r-sm);
    background: var(--cream);
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.9;
    text-align: center;
}

.empty-state h3 {
    font-size: 1.1rem;
}

.empty-state > :last-child {
    margin-bottom: 0;
}

#watchlist-empty {
    margin-top: 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    counter-reset: kindbid-step;
}

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

.steps > div::before {
    content: counter(kindbid-step) " →";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 44px;
    margin-bottom: 22px;
    padding-inline: 14px;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: var(--surface);
    font-size: 0.9rem;
    font-weight: 800;
}

.steps > div:last-child::before {
    content: counter(kindbid-step);
    min-width: 44px;
}

.steps h4 {
    font-size: 1.05rem;
}

.steps p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.95;
}

.kpi-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 0;
    padding: 30px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface-soft);
    color: var(--brand);
}

.kpi-strip > div {
    min-width: 0;
    padding: 16px 20px;
    text-align: center;
}

.kpi-strip > div + div {
    border-left: 1px solid var(--line);
}

.kpi-value {
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 3.2vw, 2.8rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.kpi-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

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

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

.faq-item > summary {
    padding: 22px 12px;
    font-size: 1rem;
}

.faq-item[open] > summary {
    color: var(--brand);
}

.faq-body {
    max-width: 90ch;
    padding: 0 16px 24px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 2;
}

.faq-body > :last-child {
    margin-bottom: 0;
}

.cta-band {
    padding: clamp(36px, 6vw, 64px) 32px;
    border-radius: var(--r-lg);
    background: var(--brand);
    color: var(--surface);
    text-align: center;
}

.cta-band h2,
.cta-band h3,
.cta-band p,
.cta-band .eyebrow {
    color: var(--surface);
}

.cta-band p {
    max-width: 66ch;
    margin-inline: auto;
}

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

.cta-band .card,
.cta-band .stat-card {
    background: var(--surface);
    color: var(--ink);
}

.cta-band .card h3,
.cta-band .card p,
.cta-band .stat-card p {
    color: var(--ink);
}

main > .container > .cta-band {
    border-top: 0;
}

main {
    padding-bottom: 64px;
}

.section-band {
    padding-block: 64px;
    background: var(--surface-soft);
    color: var(--ink);
}

.band-inner {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

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

.section-band.dark h2,
.section-band.dark h3,
.section-band.dark .lead,
.section-band.dark .eyebrow {
    color: var(--surface);
}

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

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

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

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

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

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

.hscroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(85%, 360px);
    gap: 24px;
    padding: 8px 4px 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
}

.hscroll > * {
    scroll-snap-align: start;
}

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

.feature-num > div {
    min-width: 0;
    padding: 26px;
    border-bottom: 1px solid var(--line);
    counter-increment: kindbid-feature;
}

.feature-num > div::before {
    content: counter(kindbid-feature, decimal-leading-zero);
    display: block;
    margin-bottom: 16px;
    color: var(--brand);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

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

.table th,
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table th {
    background: var(--surface-soft);
    color: var(--brand);
    font-weight: 800;
}

.auth-wrap {
    display: grid;
    place-items: center;
    padding-block: 64px;
}

.auth-card {
    width: min(100%, 520px);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--sh);
}

.auth-card h1 {
    font-size: 2rem;
}

.site-footer {
    padding-block: 40px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.8rem;
}

.site-footer strong {
    color: var(--brand);
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

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

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

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
    color: var(--brand);
    font-weight: 700;
}

@media (min-width: 1440px) {
    .artwork-card {
        padding: 26px;
    }
}

@media (max-width: 1050px) {
    .container,
    .nav-inner,
    .band-inner {
        width: calc(100% - 40px);
    }

    .nav-inner {
        gap: 16px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding-inline: 9px;
    }

    .grid {
        gap: 18px;
    }

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

    .steps {
        gap: 16px;
    }

    .steps > div {
        padding: 22px;
    }

    .kpi-strip {
        grid-template-columns: 1fr 1fr;
    }

    .kpi-strip > div:last-child {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .split {
        gap: 28px;
    }
}

@media (max-width: 700px) {
    .container,
    .nav-inner,
    .band-inner {
        width: calc(100% - 32px);
    }

    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding-block: 16px 10px;
    }

    .nav-brand {
        justify-content: center;
        font-size: 1.6rem;
    }

    .nav-links {
        flex-basis: 100%;
        justify-content: center;
        gap: 4px;
    }

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

    .hero {
        padding-block: 64px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 9vw, 3.7rem);
    }

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

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

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

    .lead {
        font-size: 0.94rem;
    }

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

    .grid {
        gap: 24px;
    }

    .card {
        padding: 22px;
    }

    .artwork-card {
        padding: 22px;
    }

    .artwork-card .card-title {
        font-size: 1.4rem;
    }

    .card-img {
        aspect-ratio: 4 / 3;
    }

    .stat-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-label {
        font-size: 0.73rem;
    }

    .stat-value {
        font-size: clamp(1.8rem, 7vw, 2.7rem);
    }

    .steps > div {
        padding: 24px;
    }

    .steps > div::before {
        content: counter(kindbid-step) " ↓";
        margin-bottom: 18px;
    }

    .steps > div:last-child::before {
        content: counter(kindbid-step);
    }

    .kpi-strip {
        padding: 12px;
    }

    .kpi-strip > div {
        padding: 20px 12px;
    }

    .kpi-value {
        font-size: 1.9rem;
    }

    .kpi-label {
        font-size: 0.75rem;
    }

    .cta-band {
        padding: 36px 22px;
        border-radius: var(--r);
    }

    .cta-band p {
        font-size: 0.9rem;
    }

    .faq-item > summary {
        padding-block: 18px;
        font-size: 0.92rem;
    }

    .faq-body {
        padding-inline: 12px;
        font-size: 0.85rem;
    }

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

    .section-band {
        padding-block: 42px;
    }

    .site-footer {
        padding-block: 30px;
    }

    main {
        padding-bottom: 40px;
    }
}

@media (max-width: 380px) {
    .container,
    .nav-inner,
    .band-inner {
        width: calc(100% - 24px);
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

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

    .hero .btn-lg {
        width: 100%;
        padding-inline: 16px;
    }

    h2 {
        font-size: 1.55rem;
    }

    .eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }

    .card,
    .artwork-card,
    .steps > div {
        padding: 18px;
    }

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

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

    .alert {
        padding: 16px;
    }

    .quote {
        padding: 14px;
    }

    .btn {
        padding-inline: 16px;
    }

    .kpi-value {
        font-size: 1.55rem;
    }

    .kpi-strip > div:last-child .kpi-value {
        font-size: 1.7rem;
    }

    .auth-card {
        padding: 22px;
    }
}

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

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

    .btn:hover:not(:disabled):not([aria-disabled="true"]),
    .btn:active:not(:disabled) {
        transform: none;
    }
}

@media (forced-colors: active) {
    .btn,
    .badge,
    .card,
    .stat-card,
    .alert,
    .quote,
    .steps > div,
    .kpi-strip {
        border: 1px solid CanvasText;
    }

    .hero {
        background-image: none;
        background-color: Canvas;
        color: CanvasText;
    }

    .hero h1,
    .hero p {
        color: CanvasText;
    }

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

    .watch-button[aria-pressed="true"] {
        border: 3px solid Highlight;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .container,
    .nav-inner,
    .band-inner {
        width: 100%;
    }

    body > a.btn-ghost:first-child,
    .nav-links,
    .hero .btn,
    form,
    .watch-button,
    #watchlist .form-group,
    .cta-band,
    #app-status,
    #app-error {
        display: none;
    }

    .navbar,
    .hero,
    .site-footer {
        padding-block: 16px;
        background: #fff;
        color: #000;
    }

    .nav-brand,
    .hero h1,
    .hero p {
        color: #000;
    }

    .hero {
        background-image: none;
    }

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

    .grid,
    .steps {
        display: block;
    }

    .card,
    .steps > div {
        margin-bottom: 20px;
        border: 1px solid #777;
        box-shadow: none;
        break-inside: avoid;
    }

    .card-img {
        max-height: 180px;
        object-fit: contain;
    }

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

    .artwork-details > summary {
        font-size: 10pt;
    }
}

/* ===== 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%, #5e78e1 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/town-light.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}

/* Final phone navigation: reserve room for the menu and wrap long Japanese names. */
@media(max-width:820px){
 html body .navbar .nav-inner{width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important;align-items:center!important;gap:8px!important;padding:12px 16px!important}
 html body .navbar .nav-brand{display:block!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:calc(100% - 52px)!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:14px!important;line-height:1.5!important}
 html body .navbar .nav-toggle{flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;margin:0!important}
 html body input[type=number]{min-width:0!important;max-width:100%!important;box-sizing:border-box!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}