/* 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 #176 / dir:auto / layout:banner / nav:underline / card:tint / deco:bar) ===== */
:root{
  --brand:#ff8a3d; --brand-hover:#e57c36; --brand-press:#cc6e30;
  --brand-soft:#ffeee3; --brand-soft-2:#ffe2d0; --brand-ink:#8c4b21;
  --accent:#2fc4c4; --accent-ink:#1c7575;
  --bg:#fffaf3; --surface:#ffffff; --surface-2:#fbfbfb; --surface-3:#f7f7f7;
  --line:#ffe8d2; --line-strong:#ead5c1;
  --ink:#3a2a1d; --text:#5a4636; --muted:#9b8470; --faint:#b4a293;
  --r-xs:12px; --r-sm:16px; --r:22px; --r-lg:30px;
  --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:"Hiragino Maru Gothic ProN","Quicksand","Rounded Mplus 1c","Noto Sans JP",system-ui,sans-serif;
}
h1,h2,h3,h4,h5{font-family:"Hiragino Maru Gothic ProN","Quicksand","Rounded Mplus 1c","Noto Sans JP",system-ui,sans-serif; letter-spacing:.005em; font-weight:800;}
*::selection{background:#ffe2d0; color:#8c4b21;}
.badge,.tag,.chip{background:rgba(47,196,196,0.120); color:var(--accent-ink); border-color:rgba(47,196,196,0.350);}
.btn-accent{background:var(--accent); color:#fff;}
.eyebrow{color:var(--accent-ink);}
.hero{background:radial-gradient(1200px 400px at 10% -10%,rgba(47,196,196,0.550),transparent 60%),radial-gradient(900px 380px at 100% 0%,rgba(255,138,61,0.600),transparent 55%),#ffeee3;}
/* nav: underline */
@media (min-width:821px){
  .navbar .nav-links a{border-radius:0; padding:9px 4px; margin:0 8px; position:relative; background:transparent;}
  .navbar .nav-links a::after{content:''; position:absolute; left:0; right:0; bottom:2px; height:2px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .18s ease;}
  .navbar .nav-links a:hover{background:transparent; color:var(--ink);}
  .navbar .nav-links a:hover::after{transform:scaleX(1);}
}
/* card: tint(淡色ベタ) */
.card{background:#fff7f3; border-color:transparent; box-shadow:none;}
a.card:hover,.card-link:hover{background:var(--surface); border-color:var(--line-strong); box-shadow:var(--sh-sm);}
/* deco: bar */
.container h2, main h2{padding-left:.6em; border-left:4px solid var(--brand);}


/* ===== project-specific styles (AI generated) ===== */
:root {
    color-scheme: light;
    --brand: #1645df;
    --brand-hover: #1035b3;
    --accent: #d6ff48;
    --ink: #111318;
    --muted: #505767;
    --surface: #ffffff;
    --surface-alt: #eff2fb;
    --canvas: #f8f9fd;
    --line: #cbd2e3;
    --danger: #a61d35;
    --success: #17633d;
    --r: 24px;
    --r-sm: 14px;
    --r-lg: 36px;
    --sh: 0 20px 64px rgb(17 19 24 / 14%);
    --font: "Arial", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    --content: 1200px;
}

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

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

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

body:has(dialog[open]) {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

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

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

:target {
    scroll-margin-top: 24px;
}

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

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

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

button,
select {
    cursor: pointer;
}

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

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

button {
    touch-action: manipulation;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
fieldset:disabled {
    cursor: not-allowed;
}

button:disabled,
.btn:disabled {
    opacity: 0.58;
    transform: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    max-width: 100%;
    vertical-align: middle;
}

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

h1,
h2,
h3,
h4 {
    color: inherit;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(2.4rem, 5.6vw, 4.8rem);
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    letter-spacing: -0.045em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    letter-spacing: -0.025em;
}

h4 {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

p + p,
p + details {
    margin-top: 1em;
}

h1 + p,
h2 + p,
h3 + p,
h4 + p {
    margin-top: 16px;
}

ul,
ol {
    padding-inline-start: 1.5em;
}

li + li {
    margin-top: 8px;
}

.container {
    width: min(var(--content), 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 > .lead {
    max-width: 82ch;
}

.lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.95;
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: 0.16em;
}

.skip-link {
    display: block;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 800;
    text-align: center;
}

.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

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

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

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    color: inherit;
    font-size: clamp(1.05rem, 2.3vw, 1.5rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.nav-brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    min-width: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
    color: var(--surface);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 3px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-size 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background-size: 100% 3px;
}

.navbar :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.section-band.dark :focus-visible {
    outline-color: var(--accent);
}

.hero {
    padding-block: clamp(40px, 6vw, 76px);
    background-color: var(--ink);
    background-image: linear-gradient(90deg, rgb(17 19 24 / 96%), rgb(17 19 24 / 86%) 55%, rgb(17 19 24 / 72%)), url("../img/creative-notes.png");
    background-position: center;
    background-size: cover;
    color: var(--surface);
}

.hero .eyebrow {
    color: var(--accent);
}

.hero h1 {
    max-width: 17ch;
}

.hero p {
    max-width: 68ch;
    color: var(--surface);
}

.hero h1 + p {
    margin-top: 24px;
}

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

.hero .btn + p {
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero .btn-secondary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.hero .btn-secondary:hover {
    border-color: var(--surface);
    background: var(--surface);
    color: var(--ink);
}

.quote {
    margin-top: 32px;
    padding: clamp(24px, 4vw, 44px);
    border: 0;
    border-radius: var(--r-lg);
    background: var(--surface-alt);
    color: var(--ink);
}

.quote > p {
    max-width: 35ch;
    font-size: clamp(1.35rem, 2.8vw, 2.25rem);
    font-weight: 900;
    line-height: 1.65;
    letter-spacing: -0.04em;
}

.quote-by {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.8rem;
}

.section-band {
    padding: 48px 0;
    background: var(--surface-alt);
    color: var(--ink);
}

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

.band-inner h2 {
    max-width: 28ch;
}

.band-inner > p {
    max-width: 90ch;
}

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

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

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

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

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 32px;
    padding: 30px 12px;
    border-radius: var(--r-lg);
    background: var(--ink);
    color: var(--accent);
}

.kpi-strip > div {
    min-width: 0;
    padding: 12px 24px;
}

.kpi-strip > div + div {
    border-left: 1px solid rgb(214 255 72 / 30%);
}

.kpi-value {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    letter-spacing: -0.07em;
}

.kpi-label {
    margin-top: 10px;
    color: var(--surface);
    font-size: 0.9rem;
    font-weight: 800;
}

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

.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: clamp(22px, 3vw, 36px);
    border: 0;
    border-radius: var(--r);
    background: var(--surface-alt);
    color: var(--ink);
    box-shadow: none;
}

.card > p,
.card .faq-body {
    color: var(--muted);
}

.card-title {
    margin-bottom: 12px;
    font-weight: 900;
}

.card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: 24px;
    border-radius: var(--r-sm);
    object-fit: cover;
    background: var(--surface);
}

.card .badge + .card-title {
    margin-top: 16px;
}

#board > .grid {
    align-items: start;
    margin-top: 32px;
}

#board > section {
    padding-top: 48px;
}

#board > .grid > .card:first-child {
    background: var(--surface-alt);
}

#board > .grid > .card:last-child {
    background: var(--surface);
}

#board > .grid .card > p {
    margin-bottom: 24px;
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 20px;
    padding: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.7;
}

label .badge {
    margin-left: 6px;
    vertical-align: middle;
}

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

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

select {
    padding-right: 32px;
}

textarea {
    min-height: 136px;
    resize: vertical;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

label > textarea {
    margin-top: 8px;
    font-weight: 400;
}

input::placeholder,
textarea::placeholder {
    color: #626b7c;
    opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgb(22 69 223 / 12%);
}

[aria-invalid="true"] {
    border-color: var(--danger) !important;
}

.form-hint {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.8;
}

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

.btn:hover:not(:disabled) {
    border-color: var(--brand-hover);
    background: var(--brand-hover);
    color: var(--surface);
    text-decoration: none;
    transform: translateY(-2px);
}

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

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

.btn-secondary:hover:not(:disabled) {
    border-color: var(--brand);
    background: var(--surface-alt);
    color: var(--brand);
}

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

.btn-ghost:hover:not(:disabled) {
    border-color: var(--line);
    background: var(--surface);
    color: var(--brand);
}

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

.btn-danger:hover:not(:disabled) {
    border-color: #83162a;
    background: #83162a;
    color: var(--surface);
}

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

.btn-success:hover:not(:disabled) {
    border-color: #104c2d;
    background: #104c2d;
    color: var(--surface);
}

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

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

.btn-block {
    width: 100%;
}

form > .btn,
fieldset > .btn {
    margin-bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 8px;
    background: #dce5ff;
    color: #183d9e;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.025em;
}

.badge.ok,
.badge.completed,
.badge[data-category="completed"] {
    background: var(--accent);
    color: var(--ink);
}

.badge.warn,
.badge.in_progress,
.badge[data-category="in_progress"] {
    background: var(--brand);
    color: var(--surface);
}

.badge.err {
    background: #fce4e9;
    color: var(--danger);
}

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

.alert.info {
    border-color: #b6c8ff;
    background: #eaf0ff;
    color: #183d9e;
}

.alert.success {
    border-color: #a2d3b8;
    background: #e9f6ee;
    color: #155333;
}

.alert.error {
    border-color: #e5a5b2;
    background: #fcecf0;
    color: #8c1930;
}

.alert.warning {
    border-color: #d4c27d;
    background: #fff5d5;
    color: #64490a;
}

#status-message:empty,
#error-message:empty,
#edit-error:empty,
#delete-error:empty,
[data-field="comment-error"]:empty,
#results-summary:empty {
    display: none;
}

#results-summary {
    margin-block: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

#posts-list {
    display: grid;
    gap: 24px;
    min-width: 0;
}

#posts-list[aria-busy="true"] {
    opacity: 0.65;
}

.post-card {
    padding: clamp(24px, 3.5vw, 40px);
}

.post-card header {
    min-width: 0;
}

.post-card header .form-hint {
    margin-top: 12px;
}

.post-card .card-title {
    margin-top: 10px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.post-body,
.comment-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
}

.post-body {
    margin-top: 20px;
    line-height: 1.95;
}

.post-body + .form-hint {
    margin-top: 20px;
}

.post-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.post-actions .btn[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.post-actions [data-action="delete_post"],
.comment-card [data-action="delete_comment"] {
    color: var(--danger);
}

[data-field="reaction-count"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.post-comments {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

summary {
    min-height: 48px;
    padding: 12px 4px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.7;
    cursor: pointer;
}

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

details[open] > summary {
    margin-bottom: 12px;
}

.post-comments > .form-hint {
    margin-bottom: 20px;
}

[data-field="comments"] {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.comment-card {
    padding: 20px;
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
}

.comment-card > .form-hint {
    margin-top: 0;
}

.comment-card .comment-body {
    margin-top: 12px;
    color: var(--ink);
}

.comment-card .btn {
    margin-top: 12px;
}

.comment-form {
    margin-top: 24px;
}

.empty-state {
    padding: 36px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    text-align: center;
}

div.empty-state {
    margin-top: 24px;
}

.empty-state p {
    max-width: 65ch;
    margin-inline: auto;
    color: var(--muted);
}

.empty-state .btn {
    margin-top: 20px;
}

p.empty-state {
    padding: 20px;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: left;
}

#guide > .grid {
    margin-top: 36px;
}

.steps,
.feature-num {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
    counter-reset: studio-step;
}

.steps > div,
.feature-num > div {
    min-width: 0;
    padding-top: 24px;
    border-top: 3px solid var(--ink);
    counter-increment: studio-step;
}

.steps > div::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--surface);
    content: counter(studio-step);
    font-size: 1.1rem;
    font-weight: 900;
}

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

.steps p,
.feature-num p {
    color: var(--muted);
    font-size: 0.9rem;
}

.faq-item {
    padding-block: 10px;
    border-bottom: 1px solid var(--line);
}

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

.faq-body {
    padding: 0 4px 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.cta-band {
    padding: clamp(40px, 6vw, 72px) 24px;
    background: var(--brand);
    color: var(--surface);
    text-align: center;
}

.cta-band h2,
.cta-band p {
    max-width: 72ch;
    margin-inline: auto;
    color: var(--surface);
}

.cta-band .btn {
    margin-top: 28px;
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.cta-band .btn:hover:not(:disabled) {
    border-color: var(--surface);
    background: var(--surface);
    color: var(--ink);
}

dialog {
    width: min(680px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 2px solid var(--ink);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--sh);
}

dialog::backdrop {
    background: rgb(17 19 24 / 76%);
}

dialog .card {
    border-radius: 0;
    background: var(--surface);
    color: var(--ink);
}

dialog h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

dialog form {
    margin-top: 24px;
}

#delete-target-title {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--r-sm);
    background: var(--surface-alt);
    color: var(--ink);
    font-weight: 800;
    white-space: pre-wrap;
}

#delete-target-title:empty {
    display: none;
}

.site-footer {
    padding-block: 44px;
    background: var(--ink);
    color: var(--surface);
}

.site-footer .nav-brand {
    color: var(--accent);
}

.site-footer p {
    max-width: 90ch;
    margin-top: 14px;
    color: #c8cedc;
    font-size: 0.8rem;
    line-height: 1.9;
}

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

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

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

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

.hscroll {
    display: flex;
    gap: 20px;
    padding-block: 12px 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

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

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 20px;
}

.stat-card {
    min-width: 0;
    padding: 24px;
    border-radius: var(--r);
    background: var(--surface-alt);
    color: var(--ink);
}

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

.stat-value {
    margin-top: 12px;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.06em;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

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

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

.table th {
    background: var(--surface-alt);
    font-size: 0.85rem;
    font-weight: 800;
}

@media (min-width: 1000px) {
    #board > .grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    }
}

@media (max-width: 900px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: 4px 24px;
        padding-block: 16px;
    }

    .nav-links {
        gap: 8px 20px;
    }

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

    #guide > .cols-3 > :last-child {
        grid-column: 1 / -1;
    }

    #guide > .cols-3 > :last-child .card-img {
        max-height: 320px;
    }

    .steps,
    .feature-num {
        gap: 20px;
    }
}

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

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

    .hero {
        background-position: 65% center;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 7.8vw, 3.5rem);
    }

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

    #guide > .cols-3 > :last-child {
        grid-column: auto;
    }

    #guide > .cols-3 > :last-child .card-img {
        max-height: none;
    }

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

    .grid,
    .split {
        gap: 20px;
    }

    .kpi-strip {
        padding: 20px 4px;
        border-radius: var(--r);
    }

    .kpi-strip > div {
        padding: 8px 14px;
    }

    .kpi-value {
        font-size: clamp(2.4rem, 9vw, 4rem);
    }

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

    .steps,
    .feature-num {
        gap: 24px;
    }

    .steps > div,
    .feature-num > div {
        padding-top: 20px;
    }

    .steps > div::before {
        margin-bottom: 14px;
    }

    .post-actions {
        gap: 8px 4px;
    }

    .post-card .post-actions .btn {
        padding-inline: 14px;
    }

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

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

    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-links {
        justify-content: space-between;
        width: 100%;
        gap: 4px 10px;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

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

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

    .card,
    .post-card {
        padding: 20px 16px;
    }

    .quote {
        padding: 24px 20px;
    }

    .kpi-strip > div {
        padding-inline: 10px;
    }

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

    .btn {
        padding-inline: 16px;
    }

    .btn-lg {
        padding-inline: 20px;
        font-size: 0.9rem;
    }

    .comment-card {
        padding: 16px 12px;
    }

    dialog {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: var(--r-sm);
    }

    dialog form > .btn {
        width: 100%;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .btn:hover:not(:disabled),
    .btn:active:not(:disabled) {
        transform: none;
    }

    .hscroll {
        scroll-snap-type: none;
    }
}

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

    .nav-links a {
        text-decoration: underline;
    }

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

    [aria-pressed="true"] {
        outline: 2px solid Highlight;
    }
}

/* ===== 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: banner) --- */
.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(220px,30vh,340px) !important; padding:clamp(36px,5vw,64px) clamp(20px,6vw,48px) !important; color:#fff !important; background-color:var(--brand-press) !important; background-image:var(--hero-bg, linear-gradient(120deg, var(--brand) 0%, 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,.38), rgba(8,12,30,.52)) !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, section[class*="hero"] h1{ font-size:clamp(1.7rem,3.2vw,2.5rem) !important; }
.hero p, section[class*="hero"] p{ max-width:64ch !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/creative-notes.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}