/* AI右腕顧問 — 図面と赤入れをモチーフにしたスタイル */

:root {
  --paper: #f3efe7;
  --paper-2: #e9e3d6;
  --card: #fbf9f4;
  --ink: #1a1917;
  --ink-2: #56524b;
  --ink-3: #7d786e;
  --rule: rgba(26, 25, 23, 0.16);
  --red: #c5432a;
  --red-ink: #a5351f;
  --navy: #15273a;
  --navy-text: #e6edf4;
  --navy-sub: #a9bacb;
  --navy-rule: rgba(230, 237, 244, 0.2);

  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --w: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 700; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
}

.container {
  width: 100%;
  max-width: calc(var(--w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }

.sp { display: none; }
@media (max-width: 720px) {
  .sp { display: inline; }
  .pc { display: none; }
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 10px 26px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover { background: var(--red-ink); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.875rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-lg { min-height: 64px; padding: 12px 34px; font-size: 1.0625rem; }
.btn-note { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; opacity: 0.92; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 231, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1.05;
  writing-mode: vertical-rl;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.1875rem; letter-spacing: 0.06em; }
.brand-sub { font-size: 0.6875rem; color: var(--ink-2); letter-spacing: 0.1em; }

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 6px 0;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.25s;
}
.nav a:hover { background-size: 100% 1.5px; }
@media (max-width: 960px) { .nav { display: none; } }
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.0625rem; }
}

/* ---------- ヒーロー ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 5vw, 56px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--red); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.04em;
}
.hero h1 em {
  position: relative;
  font-style: normal;
  white-space: nowrap;
}
.hero h1 em svg {
  position: absolute;
  left: -4%;
  bottom: -0.12em;
  width: 108%;
  height: 0.2em;
  overflow: visible;
}
.hero h1 em path {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 2;
  color: var(--ink-2);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-top: 36px; }
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes li::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateY(-2px) rotate(-45deg);
}

/* 図面シート */
.sheet {
  position: relative;
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 14px 14px 18px;
  box-shadow: 8px 8px 0 var(--paper-2);
}
.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--red);
}
.sheet::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.sheet::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ご相談 → 納品 */
.deal { padding: 0; }
.deal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.75rem;
}
.deal-dots { display: inline-flex; gap: 5px; }
.deal-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink-3); }
.deal-dots i:first-child { background: var(--red); border-color: var(--red); }
.deal-title { font-weight: 700; letter-spacing: 0.1em; }
.deal-id { margin-left: auto; font-family: var(--mono); color: var(--ink-3); letter-spacing: 0.08em; }

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px 6px;
  background-image: radial-gradient(rgba(26, 25, 23, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
}
.msg { max-width: 86%; }
.msg p {
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.msg-you p { background: #fff; border: 1px solid var(--rule); border-bottom-left-radius: 3px; }
.msg-ai { align-self: flex-end; }
.msg-ai .who { justify-content: flex-end; color: var(--ink-2); }
.msg-ai p { background: var(--ink); color: var(--paper); border-bottom-right-radius: 3px; }
.who-seal {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.625rem;
  line-height: 1;
}

.delivery {
  position: relative;
  margin: 16px 18px 0;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--ink);
}
.delivery-top { display: flex; align-items: center; gap: 10px; padding-right: 48px; }
.delivery-tag {
  flex: none;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.delivery-top b { font-family: var(--serif); font-size: 1.0625rem; letter-spacing: 0.06em; }
.file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px dashed var(--ink-3);
  border-radius: 3px;
  font-size: 0.8125rem;
}
.file-icon {
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.file-name { font-weight: 500; }
.file-arrow { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--red-ink); }
.mini { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 0.8125rem; }
.mini th, .mini td { padding: 6px 2px; border-bottom: 1px dashed var(--rule); line-height: 1.5; }
.mini th { text-align: left; font-weight: 500; color: var(--ink-2); }
.mini td { text-align: right; font-weight: 500; color: var(--ink); }
.mini td.ok { color: #1f6e43; font-weight: 700; }
.mini td.ok::before { content: "✓ "; }
.delivery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--ink-2);
}
.out-btn {
  flex: none;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.stamp {
  position: absolute;
  right: -10px;
  top: -30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  background: rgba(251, 249, 244, 0.6);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  transform: rotate(-14deg);
  box-shadow: inset 0 0 0 2px rgba(251, 249, 244, 0.9), inset 0 0 0 4px var(--red);
}
.stamp small { font-family: var(--mono); font-weight: 500; font-size: 0.5625rem; letter-spacing: 0.04em; margin-bottom: 2px; }
.deal-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 14px 18px 16px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}
.deal-cap span { font-family: var(--sans); font-weight: 400; font-size: 0.6875rem; color: var(--ink-3); align-self: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sheet { max-width: 620px; margin-right: 8px; }
}
@media (max-width: 520px) {
  .eyebrow { gap: 10px; font-size: 0.75rem; letter-spacing: 0.04em; }
  .eyebrow::before { width: 18px; flex: none; }
  .cta-row .btn { width: 100%; }
  .msg { max-width: 92%; }
  .stamp { width: 66px; height: 66px; font-size: 1.125rem; right: -6px; top: -26px; }
}

/* ---------- セクション共通 ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--paper-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-no {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-2);
}
.sec-no span {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ink);
  padding: 3px 9px 2px;
  line-height: 1.5;
}
.sec-no::after { content: ""; width: 56px; height: 1px; background: var(--ink); opacity: 0.5; }
.sec-head h2 {
  margin-top: 20px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.5;
  letter-spacing: 0;
}
.sec-lead { margin-top: 22px; color: var(--ink-2); font-size: 1rem; line-height: 2.05; }
.sec-lead strong { color: var(--ink); background: linear-gradient(transparent 68%, rgba(197, 67, 42, 0.22) 68%); }

/* ---------- 課題 ---------- */
.issues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.issues li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.issues li:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--rule); }
.issues li:nth-child(even) { padding-left: 32px; }
.issues strong { font-family: var(--serif); font-size: 1.1875rem; letter-spacing: 0.04em; }
.check {
  flex: none;
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 5px;
  border: 1.5px solid var(--ink);
  background: var(--card);
}
.check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -5px;
  width: 22px;
  height: 13px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-48deg);
  transform-origin: left bottom;
  translate: 5px 8px;
}
.issue-close {
  margin-top: clamp(40px, 6vw, 64px);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-align: center;
}
@media (max-width: 720px) {
  .issues { grid-template-columns: 1fr; }
  .issues li, .issues li:nth-child(odd), .issues li:nth-child(even) { padding: 20px 4px; border-right: 0; }
  .issues li { font-size: 1rem; }
  .issues strong { font-size: 1.0625rem; }
}

/* ---------- サービス ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.pillar {
  position: relative;
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 34px 30px 30px;
}
.pillar-no {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--red-ink);
  letter-spacing: 0.1em;
}
.pillar-no::before { content: "SERVICE "; color: var(--ink-3); }
.pillar h3 { margin-top: 10px; font-size: 1.5rem; }
.pillar > p:not(.pillar-no) { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.pillar ul { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.pillar li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 2;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.9em;
  width: 8px;
  height: 1.5px;
  background: var(--red);
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- つくれるもの ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.work {
  padding: 26px 22px 30px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.25s;
}
.work:hover { background: var(--card); }
.work-tag {
  display: inline-block;
  padding: 2px 10px 1px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.7;
}
.t-app { color: var(--red-ink); }
.t-web { color: #1f5a4c; }
.t-sys { color: #2b4a73; }
.work h3 { margin-top: 14px; font-size: 1.125rem; line-height: 1.6; }
.work > p:last-child { margin-top: 10px; font-size: 0.875rem; line-height: 1.85; color: var(--ink-2); }
.works-note { margin-top: 32px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .works { grid-template-columns: 1fr; } }

/* ---------- 約束 ---------- */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); counter-reset: pr; }
.promises li { counter-increment: pr; border-top: 1px solid var(--ink); padding-top: 22px; }
.promises li::before {
  content: "0" counter(pr);
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
}
.promises h3 { margin-top: 18px; font-size: 1.25rem; line-height: 1.6; }
.promises p { margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }

/* ---------- 流れ（青焼き） ---------- */
.section-navy {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(230, 237, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 237, 244, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--navy-text);
}
.section-navy .sec-no { color: var(--navy-sub); }
.section-navy .sec-no span { background: var(--navy-text); color: var(--navy); }
.section-navy .sec-no::after { background: var(--navy-text); }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--navy-text); }
.flow li {
  position: relative;
  padding: 30px 22px 6px 0;
}
.flow li + li { padding-left: 22px; border-left: 1px solid var(--navy-rule); }
.flow li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
}
.flow li + li::before { left: -5px; }
.flow-no { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--navy-sub); }
.flow-no::before { content: "STEP "; }
.flow h3 { margin-top: 10px; font-size: 1.25rem; }
.flow li > p:last-child { margin-top: 10px; font-size: 0.875rem; line-height: 1.9; color: var(--navy-sub); }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--navy-text); }
  .flow li, .flow li + li { padding: 0 0 34px 28px; border-left: 0; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before, .flow li + li::before { top: 8px; left: -5px; }
}

/* ---------- 料金 ---------- */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.price {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 28px 24px 26px;
}
.price h3 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; }
.price h3 small {
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  font-size: 0.6875rem;
  color: var(--ink-2);
  vertical-align: 1px;
}
.price-num {
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.price-num span { font-size: 3.25rem; font-weight: 500; margin-right: 4px; letter-spacing: 0; }
.price-desc { margin-top: 16px; font-size: 0.875rem; line-height: 1.85; color: var(--ink-2); }
.price-opt { background: transparent; border-style: dashed; }
.price-notes { margin-top: 28px; font-size: 0.8125rem; color: var(--ink-2); }
.price-notes li { position: relative; padding-left: 1.3em; }
.price-notes li::before { content: "※"; position: absolute; left: 0; }
@media (max-width: 1000px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .prices { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  display: block;
  padding: 24px 48px 24px 44px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 4px;
  top: 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--red);
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 34px;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq details p { padding: 0 48px 28px 44px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 520px) {
  .faq summary { font-size: 1rem; padding: 20px 36px 20px 36px; }
  .faq summary::before { top: 17px; }
  .faq summary::after { top: 28px; right: 6px; }
  .faq details p { padding: 0 8px 24px 36px; }
}

/* ---------- お問い合わせ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-grid .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.contact-points { margin-top: 26px; font-size: 0.9375rem; font-weight: 500; }
.contact-points li { display: flex; align-items: center; gap: 12px; line-height: 2.2; }
.contact-points li::before {
  content: "";
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateY(-2px) rotate(-45deg);
}
.form-wrap {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 8px 8px 0 var(--paper-2);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > label, .field > legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.field > legend { margin-bottom: 8px; padding: 0; }
.req, .opt {
  padding: 1px 7px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.6;
  border-radius: 2px;
}
.req { background: var(--red); color: #fff; }
.opt { background: var(--paper-2); color: var(--ink-2); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form textarea { resize: vertical; min-height: 150px; }
.form ::placeholder { color: #a39e94; }
.form input:focus-visible, .form textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(197, 67, 42, 0.25);
}
.form .is-invalid { border-color: var(--red); background: #fff8f6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: block;
  padding: 9px 16px;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.consent label { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.consent a { text-decoration-color: var(--red); text-underline-offset: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  background: #fff3ef;
  color: var(--red-ink);
  font-size: 0.9375rem;
  font-weight: 500;
}
.form-actions { display: flex; }
.form-actions .btn { width: 100%; max-width: 360px; }
.form-done { text-align: center; padding: clamp(24px, 5vw, 56px) 8px; outline: none; }
.form-done .brand-seal { width: 56px; height: 56px; margin-inline: auto; font-size: 1.125rem; }
.form-done h3 { margin-top: 24px; font-size: 1.5rem; }
.form-done p { margin-top: 14px; color: var(--ink-2); }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .sec-head { position: static; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form-actions .btn { max-width: none; }
  .form-wrap { box-shadow: 5px 5px 0 var(--paper-2); }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.site-footer .brand-sub { color: #b9b3a7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 0.875rem; }
.footer-nav a { text-decoration: none; opacity: 0.86; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.copy { width: 100%; padding-top: 24px; border-top: 1px solid rgba(243, 239, 231, 0.18); font-family: var(--mono); font-size: 0.75rem; color: #b9b3a7; letter-spacing: 0.06em; }

/* ---------- スマホ用 固定CTA ---------- */
.float-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(140%);
  transition: transform 0.3s ease;
}
.float-cta span { font-size: 0.75rem; font-weight: 500; opacity: 0.92; }
.float-cta.is-on { transform: none; }
@media (max-width: 720px) {
  .float-cta { display: flex; }
  .site-footer { padding-bottom: 104px; }
}

/* ---------- 下層ページ ---------- */
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.doc h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 18px; }
.doc h2 { font-size: 1.25rem; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); }
.doc p, .doc ul, .doc ol { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.doc ul { list-style: disc; padding-left: 1.4em; }
.doc ol { list-style: decimal; padding-left: 1.6em; }
.doc .doc-meta { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); margin-top: 40px; }
.doc .btn { margin-top: 36px; }
.doc-center { text-align: center; }
.doc-center .brand-seal { width: 60px; height: 60px; margin-inline: auto; font-size: 1.1875rem; }

/* ---------- アニメーション ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .issues .reveal:nth-child(even),
  .js .pillars .reveal:nth-child(2),
  .js .promises .reveal:nth-child(2),
  .js .prices .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .pillars .reveal:nth-child(3),
  .js .promises .reveal:nth-child(3),
  .js .prices .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .prices .reveal:nth-child(4) { transition-delay: 0.24s; }

  .deal .msg, .deal .delivery { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .deal .msg-you { animation-delay: 0.6s; }
  .deal .msg-ai { animation-delay: 1.4s; }
  .deal .delivery { animation-delay: 2.2s; }
  .deal .mini tr { animation: fade 0.35s ease both; }
  .deal .mini tr:nth-child(1) { animation-delay: 2.7s; }
  .deal .mini tr:nth-child(2) { animation-delay: 2.85s; }
  .deal .mini tr:nth-child(3) { animation-delay: 3s; }
  .deal .mini tr:nth-child(4) { animation-delay: 3.15s; }
  .deal .mini tr:nth-child(5) { animation-delay: 3.3s; }
  .deal .stamp { animation: stamp 0.45s 3.7s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .hero h1 em path { stroke-dashoffset: 1; animation: draw 0.7s 0.7s ease-out forwards; }
  .hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.28s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.36s; }
  .sheet { animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.8); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
