/* AI店長 LP — Decision Loop デザインシステム準拠
   白地・墨の文字・1px罫線・小さな角丸・影なし。色は状態を伝えるときだけ使う。 */

:root {
  --ink: #373c44;        /* 墨: 本文・主ボタン 11.0:1 */
  --ink-hover: #1f2328;
  --ink-2: #5c6370;      /* 墨2: 補足・ラベル 6.1:1 */
  --ink-3: #8d95a0;      /* 墨3: 文字には使わない */
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --bg-3: #eef0f3;
  --line: #e5e7eb;
  --line-input: #d4d9df;
  --ok: #2e7d32;
  --ok-bg: #e8f5e9;
  --wait: #f57f17;       /* 印と線だけ */
  --alert: #c62828;
  --alert-bg: #ffebee;
  --brand-band: #c62828; /* ロゴの帯（朱）。ロゴ以外には使わない */

  --font-sans: 'IBM Plex Sans JP', 'Noto Sans JP', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1200px;
  --h2: clamp(26px, 3vw, 40px);
  --section-pad: clamp(56px, 8vw, 112px);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink-hover); }
h1, h2, p, ul { margin: 0; }
.num { font-family: var(--font-mono); font-weight: 700; }
.unit { font-family: var(--font-sans); font-weight: 500; margin-left: 2px; }
.muted { color: var(--ink-2); }

.container { max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); display: flex; flex-direction: column; gap: 40px; }
.section-title { font-size: var(--h2); line-height: 1.35; font-weight: 700; }
.lead { font-size: 16px; line-height: 1.85; text-wrap: pretty; }
[id] { scroll-margin-top: 16px; }

/* ボタン */
.btn {
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  padding: 0 24px; border-radius: 4px; font-size: 16px; text-decoration: none;
  border: 1px solid var(--line-input);
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.btn-primary:hover { color: #fff; background: var(--ink-hover); }
.btn-secondary { background: #fff; color: var(--ink); font-weight: 500; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* ロゴ（AI店長 ロゴ一式 v1.0 に従う）
   横組み: シンボルの高さ = 文字サイズ × 1.27、間隔 = シンボルの高さ × 0.35
   柱は墨、帯は朱。白抜きは柱・帯とも白。 */
.logo { display: flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; color: var(--ink); }
.logo-mark { flex: none; display: block; }
.logo-pillars { fill: var(--ink); }
.logo-band { fill: var(--brand-band); }
.logo-type { font-size: 25px; font-weight: 600; letter-spacing: 0.08em; line-height: 1; }
.logo-white { gap: 10px; color: #fff; }
.logo-white .logo-pillars, .logo-white .logo-band { fill: #fff; }
.logo-white .logo-type { font-size: 22px; }
.nav-wide { display: flex; align-items: center; gap: 4px; }
.nav-wide a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; font-size: 15px; text-decoration: none; }
.nav-wide a:hover { text-decoration: underline; }
.nav-wide a.nav-cta { padding: 0 18px; margin-left: 12px; background: var(--ink); color: #fff; border-radius: 4px; font-weight: 600; }
.nav-wide a.nav-cta:hover { text-decoration: none; background: var(--ink-hover); }
.menu-toggle {
  display: none; min-height: 44px; min-width: 44px; padding: 0 14px;
  background: #fff; color: var(--ink); border: 1px solid var(--line-input); border-radius: 4px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.nav-narrow { border-top: 1px solid var(--line); padding: 8px 20px 16px; flex-direction: column; display: none; }
.nav-narrow a { min-height: 48px; display: flex; align-items: center; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-narrow a.nav-cta { margin-top: 12px; justify-content: center; background: var(--ink); color: #fff; border: 0; border-radius: 4px; font-weight: 600; }
.site-header.is-open .nav-narrow { display: flex; }

@media (max-width: 1039px) {
  .nav-wide { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 1040px) {
  .site-header.is-open .nav-narrow { display: none; }
}

/* 冒頭 */
.hero { border-bottom: 1px solid var(--line); }
/* 文章は上に揃え、画面イメージは下の罫線に接するように下に揃える */
.hero-inner {
  padding-top: clamp(32px, 4vw, 56px);
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start;
}
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-bottom: clamp(0px, 6vw, 80px); }
.hero-eyebrow { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hero-title { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.hero-text { max-width: 34em; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.85; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 200px; max-width: 260px; }
.hero-visual {
  align-self: flex-end;
  flex: 1 1 360px; max-width: 440px; margin: 0 auto; min-width: 0;
  background: var(--bg-3); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0;
  padding: clamp(12px, 2.4vw, 24px) clamp(12px, 2.4vw, 24px) 0;
}
.hero-visual-clip { height: clamp(520px, 60vw, 720px); overflow: hidden; border-radius: 8px 8px 0 0; }
.hero-note { padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: flex-end; font-size: 13px; color: var(--ink-2); }

/* コンソールのホーム画面（イメージ） */
.console { width: 100%; background: var(--bg-2); border: 1px solid var(--line-input); border-radius: 8px; overflow: hidden; }
.console-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.console-bar .store { font-size: 17px; font-weight: 700; }
.console-small { font-size: 13px; color: var(--ink-2); }
.console-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.c-pad { padding: 16px; }
.c-title { font-size: 17px; font-weight: 700; }
.c-today { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.c-today-big { font-size: 36px; line-height: 1.1; }
.c-today-big .unit { font-size: 15px; font-weight: 600; margin-left: 3px; }
.c-today-list { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 16px; }
.c-row { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 15px; }
.c-row + .c-row { border-top: 1px solid var(--line); }
.c-row .num { font-size: 17px; }
.c-row .unit { font-size: 13px; }
.c-proposal { display: flex; flex-direction: column; gap: 12px; }
.c-head { display: flex; justify-content: space-between; align-items: center; }
.c-proposal p { font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.c-actions { display: flex; flex-direction: column; gap: 8px; }
.c-actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-btn { min-height: 44px; width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line-input); border-radius: 4px; font: inherit; font-size: 15px; }
.c-btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.c-domain { overflow: hidden; }
.c-domain .c-head { padding: 14px 16px 0; }
.badge { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.badge-alert { color: var(--alert); background: var(--alert-bg); }
.badge-ok { color: var(--ok); background: var(--ok-bg); align-self: flex-start; }
.c-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 16px; gap: 8px; }
.c-metric { display: flex; flex-direction: column; gap: 2px; }
.c-metric > span:first-child { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.c-metric .num { font-size: 20px; }
.c-metric .unit { font-size: 12px; }
.c-tasks { border-top: 1px solid var(--line); }
.c-task { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; border-left: 4px solid var(--wait); }
.c-task > span:first-child { font-size: 15px; line-height: 1.5; flex: 1; }
.c-more { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-top: 1px solid var(--line); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.c-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-mini { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.c-stack { display: flex; flex-direction: column; gap: 8px; }

/* 使い方 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.step { border-top: 2px solid var(--ink); padding: 20px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.step-head { display: flex; align-items: baseline; gap: 14px; }
.step-no { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--ink-2); }
.step-title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; }

/* 店長の1日 */
.bordered-top { border-top: 1px solid var(--line); }
.day-list { display: flex; flex-direction: column; }
/* 狭い幅: 時間帯 → 写真 → 本文 → 動く係 の縦並び。広い幅: 時間帯 | 写真 | 本文と動く係 */
.day-item { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "when" "photo" "body" "staff"; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line-input); }
.day-when { grid-area: when; font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.3; }
.day-photo { grid-area: photo; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-3); }
.day-body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) {
  .day-item { grid-template-columns: 172px minmax(240px, 360px) minmax(0, 1fr); grid-template-areas: "when photo body" "when photo staff"; grid-template-rows: auto 1fr; gap: 12px 32px; }
}
.day-body h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.5; }
.day-staff { grid-area: staff; align-self: start; display: flex; flex-direction: column; gap: 8px; }
.day-staff > span { font-size: 13px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { font-size: 14px; font-weight: 600; padding: 4px 10px; background: var(--bg-2); border: 1px solid var(--line-input); border-radius: 4px; }

/* AIスタッフ */
.staff-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.staff-section .section { gap: 32px; }
.staff-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.staff-intro-text { flex: 999 1 520px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.staff-counts { flex: 1 1 220px; display: flex; border: 1px solid var(--line-input); border-radius: 6px; background: #fff; max-width: 320px; }
.staff-count { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.staff-count + .staff-count { border-left: 1px solid var(--line); }
.staff-count > span:first-child { font-size: 13px; color: var(--ink-2); }
.staff-count .num { font-size: 28px; line-height: 1.1; }
.staff-count .unit { font-size: 14px; }
.staff-count.is-preparing .num { color: var(--ink-2); }

.staff-table { background: #fff; border: 1px solid var(--line-input); border-radius: 6px; }
.group { display: flex; flex-wrap: wrap; }
.group + .group { border-top: 1px solid var(--line-input); }
.group-head { flex: 1 1 240px; max-width: 100%; padding: 24px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-2); border-right: 1px solid var(--line); }
.group-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.group-name { font-size: 22px; font-weight: 700; margin: 0; }
.group-count { font-size: 13px; color: var(--ink-2); }
.group-count .num { color: var(--ink); }
.group-desc { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.group-members { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; }
.member { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 22px 24px; }
.member + .member { border-top: 1px solid var(--line); }
.member-name { flex: 1 1 200px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.member-name h4 { margin: 0; font-size: 18px; font-weight: 700; }
.tag-new { font-size: 12px; font-weight: 700; padding: 2px 8px; border: 1px solid var(--ink); border-radius: 4px; }
.abilities { flex: 999 1 340px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.abilities li { font-size: 15px; line-height: 1.7; padding-left: 14px; border-left: 2px solid var(--line); }

.preparing { border: 1px dashed var(--ink-3); border-radius: 6px; display: flex; flex-wrap: wrap; }
.preparing .group-head { background: transparent; border-right: 0; }
.preparing .group-name, .preparing .group-count .num { color: var(--ink-2); }
.preparing-list { flex: 999 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.preparing-item { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.preparing-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.preparing-item-head h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.tag-preparing { font-size: 12px; font-weight: 600; padding: 2px 8px; background: var(--bg-3); color: var(--ink-2); border-radius: 4px; }
.preparing-item p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* 導入のしかた */
.start-intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.intro-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 40px; }
.intro-step { display: flex; flex-direction: column; gap: 16px; }
.intro-figure { height: 150px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.intro-frame { width: 120px; height: 118px; background: #fff; border: 1px solid var(--line-input); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.intro-frame.is-dashed { border-style: dashed; }
.slot { height: 26px; border-radius: 4px; background: #fff; border: 1px solid var(--ink); }
.slot.is-filled { background: var(--ink); }
.intro-step .step-head { gap: 12px; }
.intro-step .step-title { font-size: 22px; }

/* 任せるための設計 */
.design-section { background: var(--ink); color: #fff; }
.design-inner { flex-direction: row; flex-wrap: wrap; gap: 40px 64px; }
.design-title { flex: 1 1 300px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.35; font-weight: 700; color: #fff; }
.principles { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 40px; }
.principle { border-top: 1px solid var(--ink-3); padding: 20px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.principle h3 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; }
.principle p { font-size: 16px; line-height: 1.85; color: var(--line); text-wrap: pretty; }

/* つながるサービス */
.services-section .section { padding-bottom: 0; gap: 32px; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--line-input); border-left: 1px solid var(--line-input); }
.service { padding: 22px 24px; border-right: 1px solid var(--line-input); border-bottom: 1px solid var(--line-input); display: flex; flex-direction: column; gap: 8px; }
.service h3 { margin: 0; font-size: 19px; font-weight: 700; }
.service p { font-size: 15px; line-height: 1.75; text-wrap: pretty; }

/* よくある質問 */
.faq-section .section { gap: 32px; }
.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-input); margin: 0; }
.faq-item { display: flex; flex-wrap: wrap; gap: 10px 48px; padding: 24px 0; border-top: 1px solid var(--line-input); }
.faq-item dt { flex: 1 1 300px; max-width: 460px; font-size: 18px; font-weight: 700; line-height: 1.6; }
.faq-item dd { flex: 999 1 420px; min-width: 0; margin: 0; font-size: 16px; line-height: 1.85; text-wrap: pretty; }

/* お問い合わせ */
.contact-section { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-inner { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.contact-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-action { flex: 1 1 260px; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.contact-action .btn { min-height: 56px; padding: 0 28px; font-size: 17px; }
.contact-action span { font-size: 13px; color: var(--ink-2); text-align: center; }

/* フッター */
.site-footer { background: var(--ink); }
.footer-inner { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-inner > span { font-size: 14px; color: var(--line-input); }
