/* ===========================
   配色（ここを変えると全体の色が変わります）
   =========================== */
:root {
  --bg: #faf8f4;
  --bg-tint: #f2eee6;
  --surface: #ffffff;
  --ink: #2b2a28;
  --ink-soft: #5f5b54;
  --line: #e2dcd1;
  --accent: #3f6b5a;
  --accent-dark: #2f5345;
  --accent-soft: #e4ede8;
  --warm: #c98b5b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 42, 40, .08);
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 2px solid var(--accent); transition: background .2s, color .2s, transform .2s;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo span { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-left: .8em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav .nav-cta { background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- ファーストビュー ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 1fr; } }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--warm); margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 6.6vw, 40px); line-height: 1.6; margin-bottom: 24px;
}
@media (min-width: 960px) { .hero h1 { font-size: clamp(30px, 3.1vw, 40px); } }
.nw { display: inline-block; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, #f0dcc6 62%); }
.lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li {
  font-size: 13px; padding: 4px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 500;
}
.hero-visual { position: relative; padding: 0 0 40px; }
.hero-pc {
  width: 100%; border-radius: 10px; box-shadow: var(--shadow);
  border: 6px solid #fff; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
}
.hero-sp {
  position: absolute; right: 4%; bottom: 0; width: 26%; min-width: 96px;
  border-radius: 18px; border: 5px solid #2b2a28; box-shadow: var(--shadow);
  aspect-ratio: 9 / 19; object-fit: cover; object-position: top;
}

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
.section-lead { color: var(--ink-soft); margin: 16px auto 0; max-width: 640px; }
.note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 1.7em; margin-bottom: .6em; }
.check-list li::before {
  content: ""; position: absolute; left: .2em; top: .55em;
  width: .9em; height: .5em; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 制作実績 ---------- */
.work {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px;
}
@media (min-width: 960px) { .work { grid-template-columns: 1.1fr 1fr; padding: 48px; } }
.work-gallery { display: grid; grid-template-columns: 1fr .42fr; gap: 16px; align-content: start; }
.work-gallery figure { margin: 0; }
.work-gallery img { border-radius: 8px; border: 1px solid var(--line); width: 100%; object-fit: cover; object-position: top; }
.work-main { grid-column: 1 / -1; }
.work-main img { aspect-ratio: 16 / 10; }
.work-gallery figure:nth-child(2) img { aspect-ratio: 16 / 10; height: 100%; }
.work-phone img { aspect-ratio: 9 / 16; border-radius: 12px; }
.work-cat { font-size: 13px; color: var(--warm); font-weight: 700; margin-bottom: 4px; }
.work-body h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 16px; }
.work-body h4 { font-size: 15px; margin: 28px 0 12px; }
.work-spec {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.work-spec div { background: var(--bg); padding: 10px 14px; }
.work-spec dt { font-size: 12px; color: var(--ink-soft); }
.work-spec dd { margin: 0; font-weight: 500; font-size: 14px; }
.work-body .check-list { font-size: 15px; margin-bottom: 28px; }
.ext { font-size: .9em; }

/* ---------- 大切にしていること ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: var(--radius); padding: 32px 28px; }
.card-num { font-family: var(--serif); font-size: 32px; color: var(--warm); line-height: 1; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- 料金 ---------- */
.plans { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 28px 28px; text-align: center;
}
.plan h3 { font-size: 18px; }
.plan-price { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--accent); margin: 8px 0 0; line-height: 1.3; }
.plan-price span { font-size: 16px; margin-left: 2px; }
.plan-pages { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-bottom: 16px; }
.plan > p:last-child { text-align: left; font-size: 14px; color: var(--ink-soft); margin: 0; }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 16px; border-radius: 999px;
}
.plan-extra { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 860px) { .plan-extra { grid-template-columns: 1fr 1fr; } }
.plan-extra h3 { font-size: 17px; margin-bottom: 16px; }
.option-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.option-table th, .option-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.option-table td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 16px; }

/* ---------- 流れ ---------- */
.flow { list-style: none; counter-reset: step; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 960px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow li {
  counter-increment: step; background: var(--surface); border-radius: var(--radius);
  padding: 28px 22px; position: relative;
}
.flow li::before {
  content: "STEP " counter(step); display: block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--warm); margin-bottom: 8px;
}
.flow h3 { font-size: 16px; margin-bottom: 8px; }
.flow p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.flow-note { text-align: center; margin: 32px 0 0; }

/* ---------- プロフィール ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 320px 1fr; gap: 64px; } }
.about-photo { margin: 0 auto; max-width: 280px; width: 100%; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-tint); }
.about-body h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 4px; }
.about-body h2 .en { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: .12em; }
.about-role { font-weight: 700; color: var(--accent); margin: 12px 0 20px; }
.skills h3, .hours h3 { font-size: 15px; margin: 28px 0 12px; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { font-size: 13px; padding: 4px 14px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); }
.tag-list-sub li { background: var(--bg-tint); color: var(--ink-soft); }
.hours { margin-top: 12px; padding: 4px 24px 8px; border-left: 3px solid var(--warm); background: var(--surface); border-radius: 0 8px 8px 0; }
.hours p { font-size: 15px; }

/* ---------- お問い合わせ ---------- */
.section-accent { background: var(--accent-soft); }
.form {
  max-width: 720px; margin: 0 auto; background: var(--surface);
  padding: 40px 32px; border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 600px) { .form { padding: 28px 20px; } }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { font-size: 11px; background: var(--warm); color: #fff; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.btn-submit { width: 100%; margin-top: 8px; font-size: 16px; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- フッター ---------- */
.site-footer { padding: 32px 0; text-align: center; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }

/* ---------- 送信完了ページ ---------- */
.thanks { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.thanks h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); margin-bottom: 20px; }
.thanks p { color: var(--ink-soft); }

/* ---------- スマホ調整 ---------- */
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .work { padding: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- 印刷・PDF用 ---------- */
.print-only { display: none; }

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html { scroll-behavior: auto; }
  body { font-size: 10.5pt; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .container { max-width: none; padding: 0; }
  .site-header { position: static; background: #fff; backdrop-filter: none; }
  .nav, .nav-toggle, .hero-actions, .form, .work .btn { display: none !important; }
  .print-only { display: block; }

    .hero-inner { grid-template-columns: 1fr 1fr; gap: 8mm; }
  .hero h1 { font-size: 22pt; }
  .section { padding: 8mm 0; }
  .section-head { margin-bottom: 6mm; }
  .section-head h2 { font-size: 18pt; }
  main { display: flex; flex-direction: column; }
  .hero { order: 1; } #strengths { order: 2; } #works { order: 3; } #service { order: 4; }
  #about { order: 5; } #flow { order: 6; } #partner { order: 7; } #contact { order: 8; }
  #works, #service, #about, #flow { break-before: page; }
  #strengths { padding: 6mm 0; }
  #flow { padding: 5mm 0; }
  #flow .section-head { margin-bottom: 4mm; }
  .flow-note { margin-top: 3mm; font-size: 9pt; }
  .plans { margin-bottom: 5mm; }
  .plan { padding: 6mm 4mm 4mm; }
  .plan-price { font-size: 22pt; }
  #service { padding-bottom: 2mm; }
  #service .section-head, #flow .section-head { margin-bottom: 4mm; }
  .plan-extra h3 { margin-bottom: 2mm; font-size: 11pt; }
  .plan-extra .check-list li { margin-bottom: 0; font-size: 9pt; }
  .option-table { font-size: 9pt; }
  .option-table th, .option-table td { padding: 1.5mm 0; }
  #flow { break-inside: avoid; }
  .flow h3 { font-size: 10pt; }
  .eyebrow { margin-bottom: 1mm; }
  #about { padding-bottom: 4mm; }
  .hours { padding: 1mm 4mm 2mm; }
  #contact { padding: 8mm 0; margin-top: 5mm; break-inside: avoid; }
  #partner { padding: 6mm 0; margin-top: 5mm; break-inside: avoid; }
  .partner-lead { font-size: 10pt; margin-bottom: 4mm; }
  .partner-list { margin-bottom: 0; font-size: 9pt; }
  .partner h2 { font-size: 16pt; margin-bottom: 3mm; }
  .section-dark .btn-light { display: none; }
  #contact .section-lead { display: none; }
  .site-footer { order: 9; }
  .print-url-small { font-weight: 700; color: var(--accent); margin: 0; }
  .hero { padding: 2mm 0 4mm; }
  .hero .lead { margin-bottom: 4mm; }
  #works { padding-top: 4mm; }
  .work-gallery { gap: 3mm; }
  .about { grid-template-columns: 40mm 1fr; gap: 8mm; }
  .skills h3, .hours h3 { margin: 4mm 0 2mm; }
  .about-body p, .hours p { font-size: 9.5pt; }
  #contact .section-head { margin-bottom: 3mm; }
  .print-contact { padding: 3mm; }
  .card, .plan, .flow li, .work, .about-photo, .print-contact { break-inside: avoid; }
  .card p, .plan > p:last-child, .flow p { font-size: 9pt; }
  .work-body .check-list, .work-body p { font-size: 9.5pt; }
  .work-body h3 { font-size: 18pt; }
  .work { grid-template-columns: 1fr 1.1fr; gap: 8mm; padding: 0; box-shadow: none; }
  .work-bot { break-before: page; margin-top: 0; }
  .chat-bubble { font-size: 9pt; }
  .cards, .plans { grid-template-columns: repeat(3, 1fr); gap: 5mm; }
  .plans { margin-bottom: 8mm; }
  .plan-extra { grid-template-columns: 1fr 1fr; gap: 8mm; }
  .flow { grid-template-columns: repeat(5, 1fr); gap: 3mm; }
  .flow li { padding: 5mm 4mm; }
  .about { grid-template-columns: 55mm 1fr; gap: 10mm; }
  .card, .plan, .flow li { box-shadow: none; border: 1px solid var(--line); }
  .plan-featured { border: 2px solid var(--accent); }

  .print-contact { text-align: center; background: #fff; border-radius: var(--radius); padding: 8mm; }
  .print-url { font-size: 14pt; font-weight: 700; color: var(--accent); margin: 0; }
  .site-footer { border: 0; padding: 4mm 0 0; }
}

/* ---------- チャットボットの実績 ---------- */
.work-bot { margin-top: 32px; }
.chat-demo {
  background: #eef2f7; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 18px; display: flex; flex-direction: column; gap: 12px;
}
.chat-demo-head {
  font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 0 0 4px;
  padding-bottom: 10px; border-bottom: 1px solid #dfe5ee;
}
.chat-bubble {
  margin: 0; font-size: 14px; line-height: 1.8; padding: 12px 16px;
  border-radius: 14px; max-width: 88%;
}
.chat-bot { background: #fff; border: 1px solid #e0e6ef; align-self: flex-start; border-top-left-radius: 4px; }
.chat-user { background: #dbe7fb; align-self: flex-end; border-top-right-radius: 4px; }
.chat-demo-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); text-align: right; }

/* ---------- 制作会社様へ ---------- */
.section-dark { background: var(--accent-dark); color: #fff; }
.section-dark .eyebrow { color: #e9c9a8; }
.partner { max-width: 760px; margin: 0 auto; text-align: center; }
.partner h2 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 32px); margin-bottom: 20px; }
.partner-lead { font-size: 17px; margin-bottom: 28px; }
.partner-list {
  display: inline-grid; grid-template-columns: 1fr; gap: 2px;
  text-align: left; margin-bottom: 32px; font-size: 15px;
}
@media (min-width: 720px) { .partner-list { grid-template-columns: 1fr 1fr; gap: 4px 32px; } }
.section-dark .check-list li::before { border-color: #e9c9a8; }
.btn-light { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn-light:hover { background: #f0e7db; border-color: #f0e7db; color: var(--accent-dark); }
