/* Craft LP — モノトーン・レトロ（白×薄グレー格子×黒インク／角なし／ハードシャドウ） */
:root {
  --ink:    #111111;
  --paper:  #FFFFFF;
  --gray:   #E9E8E4;   /* 背景の薄グレー */
  --gray-2: #F4F3F0;   /* 表・帯のトーン */
  --shadow: #111111;
  --radius: 2px;
  /* アクセント（モノトーン紙面の中で比較表の総括だけに使う） */
  --yellow: #F6B91E;
  --coral:  #EB5734;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--ink);
  overflow-x: clip;
  background-color: var(--gray);
  background-image:
    linear-gradient(rgba(17,17,17,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.8;
  font-feature-settings: "halt" 1;
}
img { max-width: 100%; display: block; }
.inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.pc { display: inline; }
.sp { display: none; }

/* ---- 共通パーツ ---- */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px; letter-spacing: .18em;
  color: var(--ink); opacity: .6; margin-bottom: 10px;
}
.sec { padding: 88px 0; }
.sec.on-paper { background: var(--paper); border-block: 2px solid var(--ink); }
.sec-title {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 900; line-height: 1.4; margin-bottom: 28px;
}
.sec-lead { margin-bottom: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 10px 20px; cursor: pointer; text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.big { font-size: 17px; padding: 14px 26px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary::after { content: "↗"; font-weight: 900; }
.btn-demo { background: var(--paper); position: relative; }
.btn-demo .soon {
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1px 6px; letter-spacing: .06em;
}

/* 窓（レトロウィンドウ） */
.win {
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow);
  overflow: hidden;
}
.win-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--gray-2);
  border-bottom: 2px solid var(--ink);
  padding: 7px 12px;
}
.win-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper);
}
.win-name {
  font-family: 'Space Mono', monospace; font-size: 12px;
  margin-left: 6px; opacity: .7;
}
.win-body { padding: 22px 24px; }
.win-body.pad0 { padding: 0; }
.win-body h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.win-body p { font-size: 14.5px; }

/* ロボ吹き出し */
.speech { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.speech .face {
  width: 52px; height: 52px; position: relative; z-index: 1; flex: none;
  filter: grayscale(1) contrast(1.05);
}
.speech p {
  position: relative;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 10px 16px; font-size: 14px; font-weight: 700;
  box-shadow: 4px 4px 0 var(--shadow);
}
.speech p::before {
  content: ""; position: absolute; left: -8px; top: 50%; margin-top: -6px;
  width: 10px; height: 10px; background: var(--paper);
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); z-index: 0;
}
.speech.big { justify-content: center; margin-bottom: 24px; }
.speech.big .face { width: 66px; height: 66px; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 2px solid var(--ink);
}
.header-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
}
.brand img { height: 26px; filter: grayscale(1) contrast(1.1); }
.gnav { display: flex; gap: 22px; margin-left: auto; }
.gnav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px;
}
.gnav a::after { content: " ↗"; font-size: 11px; }
.gnav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { font-size: 13px; padding: 7px 14px; box-shadow: 3px 3px 0 var(--shadow); }

/* ---- ヒーロー ---- */
.hero { padding: 72px 0 88px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 900; line-height: 1.32; margin: 6px 0 18px;
  letter-spacing: .01em;
}
.hero .lead { font-size: 17px; font-weight: 700; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.hero-visual { justify-self: center; text-align: center; }
.phone {
  width: 300px; aspect-ratio: 9 / 16;
  border: 3px solid var(--ink); border-radius: 14px;
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--shadow);
  overflow: hidden; position: relative; margin: 0 auto;
}
.phone.small { width: 240px; box-shadow: 5px 5px 0 var(--shadow); }
.phone video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.slideshow { position: absolute; inset: 0; }
.slideshow img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .7s ease;
}
.slideshow img.is-on { opacity: 1; }
.hero-note {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px; margin-top: 14px; opacity: .7;
}

/* ---- 課題 ---- */
.card-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prob-emoji { font-size: 30px; margin-bottom: 6px; filter: grayscale(1) contrast(1.1); }

/* ---- ビフォーアフター ---- */
.sec-demo { background: var(--paper); border-block: 2px solid var(--ink); }
.sec-demo .inner { text-align: center; }
.demo-grid {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 28px; align-items: center; justify-content: center;
  text-align: left; margin-top: 12px;
}
.request-text { font-size: 16px; font-weight: 700; line-height: 2; }
.demo-arrow { font-size: 40px; font-weight: 900; }
.demo-caption { margin-top: 30px; font-weight: 700; }

/* ---- 使い方 ---- */
.sec-howto .inner { text-align: center; }
.step-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-bottom: 44px; text-align: left;
}
.step {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow); padding: 24px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 18px;
  margin-bottom: 12px;
}
.step h3 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.step p { font-size: 14.5px; }
.shot-win { max-width: 900px; margin: 0 auto; }
.shot { width: 100%; }

/* ---- 4部構成 ---- */
.sec-structure { background: var(--paper); border-block: 2px solid var(--ink); }
.sec-structure .inner { text-align: center; }
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 16px;
}
.tl-shot {
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 4px 4px 0 var(--shadow); aspect-ratio: 9 / 16; background: var(--ink);
}
.tl-shot img { width: 100%; height: 100%; object-fit: cover; }
.tl-label { margin-top: 14px; font-size: 17px; }
.tl-label b { font-weight: 900; }
.tl-label span {
  font-family: 'Space Mono', monospace; font-size: 11px;
  display: inline-block; margin-left: 8px;
  background: var(--gray-2); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 0 8px; vertical-align: 2px;
}
.tl-desc { font-size: 13.5px; margin-top: 4px; text-align: center; }
.tl-bar {
  display: flex; align-items: center; gap: 12px;
  max-width: 760px; margin: 34px auto 0;
  font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700;
}
.tl-bar i { flex: 1; height: 0; border-top: 3px dashed var(--ink); }
.structure-note { max-width: 720px; margin: 36px auto 48px; font-size: 16px; }
.craft-points { text-align: left; }

/* ---- 比較表 ---- */
.sec-compare .inner { text-align: center; }
.table-wrap { overflow-x: auto; padding-top: 40px; }  /* はみ出す吹き出しの逃げ場 */
.compare-table {
  width: 100%; min-width: 760px;
  border-collapse: separate; border-spacing: 0;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow);
  font-size: 14px; text-align: left;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 2px solid var(--ink);  /* 横ラインも縦と同じ太さで区分け */
  border-right: 2px solid var(--ink);   /* 縦ラインで方式を明確に区分け */
  vertical-align: top;
}
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table thead th {
  background: var(--gray-2); border-bottom: 2px solid var(--ink);
  font-size: 15px; font-weight: 900;
  vertical-align: bottom;
  position: relative;   /* はみ出しバブルの基準 */
}
.compare-table thead th.is-craft { background: var(--ink); color: var(--paper); }
.compare-table thead th .th-sub {
  display: block; font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 400;
}
/* ヘッダー上の所見バブル（表からはみ出して乗る・角丸ピル） */
.th-bubble {
  position: absolute; top: -24px; left: 14px; z-index: 2;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 8px 16px;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  white-space: nowrap;
}
.th-bubble::after {
  content: ""; position: absolute; left: 24px; bottom: -6px;
  width: 10px; height: 10px; background: inherit;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
/* 吹き出しの色（総括行と同じ意味の色体系: グレー=無個性/コーラル=警告/黄=結論） */
.compare-table thead th:nth-child(2) .th-bubble { background: var(--gray); }
.compare-table thead th:nth-child(3) .th-bubble { background: var(--coral); color: var(--paper); }
.compare-table thead th.is-craft .th-bubble { background: var(--yellow); }
.compare-table tbody th { width: 110px; font-weight: 900; background: var(--gray-2); }
.compare-table td.is-craft { background: var(--gray-2); font-weight: 700; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
/* 総括2行（メリット/デメリット）: 属性行と区切って太罫＋マーク */
.row-merit th, .row-merit td { border-top: 2px solid var(--ink); }
.row-merit td::before { content: "○ "; font-weight: 900; }
.row-merit td:nth-child(3)::before { content: "△ "; }   /* 一枚絵はメリットも弱い */
.row-merit td.is-craft::before { content: "◎ "; }
.row-demerit td::before { content: "△ "; font-weight: 900; }
.row-demerit td:nth-child(3)::before { content: "× "; }  /* 一枚絵は実務で致命的 */
.row-demerit td.is-craft::before { content: "— "; }      /* うちにデメリットは無い */
.row-merit td, .row-demerit td { font-weight: 700; }
/* 総括の色強調（モノトーン紙面のアクセントはここだけ） */
.row-merit td.is-craft { background: var(--yellow); }
.row-demerit td.is-craft { background: color-mix(in srgb, var(--yellow) 30%, var(--paper)); }
.row-demerit td:nth-child(3) { background: var(--coral); color: var(--paper); }

/* ---- ギャラリー ---- */
.sec-gallery { background: var(--paper); border-block: 2px solid var(--ink); }
.sec-gallery .inner { text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.gallery-grid figure {
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 4px 4px 0 var(--shadow); background: var(--ink);
}
.gallery-grid img { aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.gallery-grid figcaption {
  background: var(--paper); border-top: 2px solid var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: 12px; font-weight: 700; padding: 5px 0;
}
.gallery-note { margin-top: 26px; font-size: 14px; }

/* ---- 導入の流れ / FAQ ---- */
.sec-flow .inner { text-align: center; }
.step-grid.flow { margin-bottom: 0; }
.sec-faq .inner { max-width: 800px; }
.faq-list { display: grid; gap: 16px; }
.faq { padding: 0; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 22px; font-weight: 900; font-size: 15.5px;
  position: relative; padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); font-weight: 900;
}
.faq[open] summary::after { content: "−"; }
.faq p {
  padding: 14px 22px 18px; font-size: 14.5px;
  border-top: 1px dashed rgba(17,17,17,.35);
}

/* ---- CTA / フッター ---- */
.sec-contact { background: var(--paper); border-top: 2px solid var(--ink); }
.contact-inner { text-align: center; }
.contact-note { margin-top: 18px; font-size: 14px; font-weight: 700; }
.site-footer {
  border-top: 2px solid var(--ink); background: var(--ink);
  text-align: center; padding: 30px 0 34px;
}
.foot-logo { height: 22px; margin: 0 auto 8px; filter: grayscale(1) brightness(4); }
.site-footer p { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--paper); }
.foot-credit {
  font-family: 'Zen Maru Gothic', sans-serif !important;
  font-size: 13px !important; line-height: 1.9; margin-bottom: 10px;
}
.foot-credit a {
  color: var(--paper); font-weight: 700;
  text-underline-offset: 4px;
}
.foot-credit a:hover { color: var(--yellow); }

/* ---- トースト ---- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--paper); border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 99;
  max-width: calc(100vw - 40px);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .pc { display: none; }
  .sp { display: inline; }
  .gnav { display: none; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-demo { display: none; }
  .header-inner { gap: 12px; padding: 12px 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .speech { justify-content: center; }
  .card-grid3, .step-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .demo-arrow { transform: rotate(90deg); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .sec { padding: 64px 0; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
