/* mado photo studio ― 白＋テラコッタ1色。角は丸くしない。細い線で区切る */
:root {
  --bg: #FAF8F5;
  --paper: #FFFFFF;
  --ink: #2A2522;
  --ink-soft: #6B625C;
  --line: #E4DDD5;
  --terra: #A8553A;      /* ボタン・強調（白文字で読める濃さ） */
  --terra-deep: #8E4630;
  --terra-tint: #F4E9E3;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Jost", "Zen Kaku Gothic New", sans-serif;
  --gutter: 20px;
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.9; letter-spacing: .02em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
.nb { display: inline-block; }
.wrap { width: min(100% - var(--gutter) * 2, 1040px); margin-inline: auto; }
.h2, .fv-title, .last-title, .point-title { font-feature-settings: "palt"; font-weight: 700; }

.eyebrow {
  font-family: var(--latin); font-size: 13px; letter-spacing: .28em; color: var(--terra);
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #F2D9CD; }
.h2 { font-size: 24px; line-height: 1.5; letter-spacing: .04em; margin-bottom: 28px; }

/* ボタン：四角・1行 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 28px; white-space: nowrap;
  background: var(--terra); color: #fff; text-decoration: none; border: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 1px 0 var(--terra-deep), 0 8px 18px -10px rgba(110, 50, 30, .55);
  transition: background .2s, transform .2s; cursor: pointer;
}
.btn:hover { background: var(--terra-deep); }
.btn:active { transform: translateY(1px); }
.btn-arrow { width: 22px; height: 1px; background: currentColor; position: relative; }
.btn-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 1px; background: currentColor; transform: rotate(35deg); transform-origin: right; }
.btn--full { width: 100%; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(var(--gutter), calc((100% - 1200px) / 2)); background: rgba(250, 248, 245, .94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 22px; height: 27px; color: var(--terra); }
.logo-text { display: flex; align-items: baseline; gap: 8px; font-family: var(--latin); }
.logo-main { font-size: 22px; font-weight: 500; letter-spacing: .12em; line-height: 1; }
.logo-sub { font-size: 13px; letter-spacing: .22em; color: var(--ink-soft); }
.header-btn {
  font-size: 13px; font-weight: 700; text-decoration: none; color: var(--terra);
  border: 1px solid var(--terra); padding: 7px 14px; line-height: 1.2; white-space: nowrap;
}

/* ファーストビュー：スマホ1画面にボタンまで */
.fv {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 500px; max-height: 860px;
}
.fv-photo { flex: 1 1 auto; min-height: 170px; position: relative; overflow: hidden; }
.fv-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }
.fv-text { flex: 0 0 auto; padding: 20px var(--gutter) 24px; background: var(--bg); }
.fv-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin-bottom: 10px; }
.fv-kicker .bar { width: 1px; height: 12px; background: var(--line); }
.fv-title { font-size: 38px; line-height: 1.32; letter-spacing: .04em; margin-bottom: 10px; }
.fv-lead { font-size: 14px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 16px; }
.fv-text .btn { width: 100%; }

@media (min-width: 900px) {
  .fv { flex-direction: row-reverse; height: calc(100vh - var(--header-h)); min-height: 560px; max-height: 760px; }
  .fv-photo { flex: 0 0 62%; }
  .fv-photo img { object-position: 78% 40%; }
  .fv-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 56px; }
  .fv-title { font-size: 56px; margin-bottom: 18px; }
  .fv-lead { font-size: 16px; margin-bottom: 32px; }
  .fv-text .btn { width: auto; align-self: flex-start; padding: 0 36px; }
}

/* 区切り */
section { padding: 72px 0; }
section.fv { padding: 0; }
.worry { padding: 56px 0 64px; }
.gallery { padding: 64px 0 56px; }
.shindan { padding: 88px 0 96px; }
.last { padding: 96px 0 72px; }
@media (min-width: 900px) {
  body { font-size: 16px; }
  .flow-list p, .plan-desc, .result-list li, .result-note, .worry-list li, .voice-item p, .fv-lead, .shindan-lead, .faq details p { font-size: 16px; }
  section { padding: 110px 0; } section.fv { padding: 0; }
  .worry { padding: 88px 0; } .gallery { padding: 96px 0 88px; }
  .shindan { padding: 130px 0 140px; } .last { padding: 140px 0 96px; }
  .fv-text { max-width: 600px; } .h2 { font-size: 32px; margin-bottom: 40px; } }

/* なやみ */
.worry { background: var(--paper); border-bottom: 1px solid var(--line); }
.worry-list { border-top: 1px solid var(--line); margin-bottom: 32px; }
.worry-list li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; line-height: 1.7; }
.worry-list li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 1px; background: var(--terra); }
.worry-answer { font-size: 18px; font-weight: 700; line-height: 1.8; }
.worry-answer .nb:nth-child(2) { color: var(--terra); }
@media (min-width: 900px) {
  .worry .wrap { display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 72px; }
  .worry .h2 { grid-row: span 2; }
  .worry-answer { font-size: 20px; }
}

/* 大事にしていること：写真に見出しをかぶせ、説明は写真のすぐ下。まとまりの間は大きくあける */
.points .wrap { margin-bottom: 8px; }
.point { width: min(100% - var(--gutter) * 2, 1040px); margin: 0 auto 72px; }
.point:last-child { margin-bottom: 0; }
.point-photo { position: relative; }
.point-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.point-photo::after { /* 窓わくの細い線 */
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .7); pointer-events: none;
}
.point-title {
  position: absolute; left: 0; bottom: -18px; z-index: 1;
  background: var(--bg); padding: 12px 18px 6px 0;
  font-size: 24px; line-height: 1.4; letter-spacing: .05em;
}
.point-body { padding-top: 30px; }
.point-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--terra); border: 1px solid var(--terra); padding: 2px 10px; margin-bottom: 10px; line-height: 1.6; }
@media (min-width: 900px) {
  .point { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; margin-bottom: 110px; }
  .point--rev { grid-template-columns: 1fr 1.35fr; }
  .point--rev .point-photo { order: 2; }
  .point-title { font-size: 30px; bottom: -22px; padding: 14px 24px 8px 0; }
  .point-body { padding: 0 0 8px; font-size: 16px; }
}

/* 写真の見本 */
.gallery { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-grid {
  width: min(100% - var(--gutter) * 2, 1040px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px;
}
.gallery-grid img { width: 100%; height: auto; }
.g-family { grid-column: 1 / -1; }
.gallery-grid figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr 2fr; gap: 20px; align-items: end; }
  .g-family { grid-column: auto; }
}

/* 流れ */
.flow .h2 { margin-bottom: 8px; }
.flow-note { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
.flow-list { position: relative; border-left: 1px solid var(--line); margin-left: 6px; }
.flow-list li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 0 0 28px 22px; }
.flow-list li:last-child { padding-bottom: 0; }
.flow-list li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--terra); }
.flow-time { font-family: var(--latin); font-size: 15px; font-weight: 500; color: var(--terra); line-height: 1.8; }
.flow-list h3 { font-size: 16px; line-height: 1.7; margin: 0 0 2px; }
.flow-list p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
@media (min-width: 900px) {
  .flow-list { display: grid; grid-template-columns: repeat(5, 1fr); border-left: 0; border-top: 1px solid var(--line); margin: 0; }
  .flow-list li { display: block; padding: 26px 18px 0 0; }
  .flow-list li::before { left: 0; top: -5px; }
  .flow-time { display: block; margin-bottom: 6px; }
}

/* プラン */
.plans { background: var(--terra-tint); }
.plans-lead { margin-bottom: 28px; }
.plan-list { border-top: 1px solid var(--terra); }
.plan { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px; padding: 20px 0; border-bottom: 1px solid rgba(168, 85, 58, .35); }
.plan-name { font-size: 18px; }
.plan-price { font-family: var(--latin); font-size: 26px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.plan-price span { font-family: var(--sans); font-size: 14px; margin-left: 2px; }
.plan-desc { grid-column: 1 / -1; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
@media (min-width: 900px) {
  .plan-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .plan { display: block; padding: 28px 28px 30px; border-top: 1px solid var(--terra); border-bottom: 0; }
  .plan + .plan { border-left: 1px solid rgba(168, 85, 58, .35); }
  .plan-price { font-size: 32px; margin: 6px 0 8px; }
}

/* 診断 */
.shindan { background: var(--ink); color: #F6F1EC; }
.shindan .h2 { margin-bottom: 12px; }
.shindan-lead { color: #CFC5BD; margin-bottom: 32px; }
.quiz { display: grid; gap: 26px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.q-no { font-family: var(--latin); color: #E7A68D; margin-right: 10px; font-weight: 500; }
.q-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.q-choices--2 { grid-template-columns: 1fr 1fr; }
.q-choices label { position: relative; cursor: pointer; }
.q-choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q-choices span {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 8px;
  border: 1px solid #6E645D; font-size: 15px; text-align: center; line-height: 1.4;
  transition: background .15s, border-color .15s;
}
.q-choices input:checked + span { background: var(--terra); border-color: var(--terra); color: #fff; font-weight: 700; }
.q-choices input:focus-visible + span { outline: 2px solid #E7A68D; outline-offset: 2px; }
.q.is-off { opacity: .35; pointer-events: none; }

.result { margin-top: 40px; background: var(--bg); color: var(--ink); padding: 28px 22px; }
.result-label { font-size: 13px; color: var(--ink-soft); }
.result-plan { font-size: 24px; font-weight: 700; line-height: 1.5; margin: 2px 0; }
.result-price { font-family: var(--latin); font-size: 34px; font-weight: 500; color: var(--terra); line-height: 1.3; margin-bottom: 14px; }
.result-price span { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin-left: 4px; }
.result-list { border-top: 1px solid var(--line); margin-bottom: 14px; }
.result-list li { font-size: 15px; padding: 8px 0 8px 20px; border-bottom: 1px solid var(--line); position: relative; line-height: 1.6; }
.result-list li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 9px; height: 5px; border-left: 1.5px solid var(--terra); border-bottom: 1.5px solid var(--terra); transform: rotate(-45deg); }
.result-note { font-size: 15px; background: var(--terra-tint); padding: 12px 14px; line-height: 1.75; margin-bottom: 28px; }
.ask { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 14px; }
.ask-title { font-size: 18px; line-height: 1.5; }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.field small { font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #CFC6BD; border-radius: 0; padding: 12px; -webkit-appearance: none; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A8553A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--terra); outline-offset: 0; border-color: var(--terra); }
.ask-safe { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.line-box { border: 1px solid #CFC6BD; background: #fff; }
.line-box-title { font-size: 13px; font-weight: 700; color: var(--ink-soft); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.line-text { margin: 0; padding: 12px; font-family: var(--sans); font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; }
.btn--line { gap: 10px; }
.line-icon { width: 22px; height: 22px; flex: none; }
.btn-sub { font: inherit; font-size: 15px; font-weight: 700; color: var(--terra); background: transparent; border: 1px solid var(--terra); min-height: 48px; cursor: pointer; }
.btn-sub.is-done { background: var(--terra-tint); }
.ask-status { font-size: 15px; font-weight: 700; color: var(--terra-deep); line-height: 1.7; }
.ask-status:empty { display: none; }
.ask-error { color: #B3261E; font-size: 14px; font-weight: 700; }
.sent { border-top: 1px solid var(--ink); padding-top: 22px; }
.sent-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
@media (min-width: 900px) {
  .shindan .wrap { max-width: 760px; }
  .result { padding: 40px 48px; }
}

/* 声 */
.voice-list { display: grid; gap: 20px; }
.voice-item { margin: 0; background: var(--paper); border-left: 2px solid var(--terra); padding: 22px 22px 18px; }
.voice-item p { font-size: 15px; line-height: 1.95; margin-bottom: 10px; }
.voice-item footer { font-size: 13px; color: var(--ink-soft); }
.sample-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
@media (min-width: 900px) { .voice-list { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* よくある質問 */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq .wrap { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 1px; background: var(--terra); box-shadow: none; }
.faq summary::before { content: ""; position: absolute; right: 11.5px; top: calc(50% - 5.5px); width: 1px; height: 12px; background: var(--terra); transition: transform .2s; }
.faq details[open] summary::before { transform: scaleY(0); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* さいごに */
.last { text-align: center; }
.last-mark { width: 30px; height: 36px; color: var(--terra); margin: 0 auto 18px; }
.last-title { font-size: 26px; line-height: 1.55; letter-spacing: .06em; margin-bottom: 10px; }
.last-lead { color: var(--ink-soft); margin-bottom: 28px; }
.last .btn { width: min(100%, 360px); }
.info { margin: 48px auto 0; max-width: 420px; text-align: left; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 56px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info dt { color: var(--terra); font-weight: 700; }
@media (min-width: 900px) { .last-title { font-size: 36px; } }

/* 下に出るボタン（スマホだけ） */
.float-btn {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  background: var(--terra); color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(60, 30, 20, .6);
  transform: translateY(140%); transition: transform .3s;
}
.float-btn.is-show { transform: none; }
@media (min-width: 900px) { .float-btn { display: none; } }

/* フッター */
.site-footer { background: var(--ink); color: #CFC5BD; text-align: center; padding: 40px var(--gutter) calc(88px + env(safe-area-inset-bottom)); font-size: 13px; line-height: 1.9; }
.footer-note, .footer-logo { max-width: 520px; margin-inline: auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--latin); font-size: 15px; letter-spacing: .16em; color: #F6F1EC; margin-bottom: 10px; }
.footer-logo svg { width: 16px; height: 20px; color: #E7A68D; }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }

/* 写真がふわっと出る（大事にしていることの写真だけ） */
.point-photo img { transition: opacity .9s ease, transform 1.2s ease; }
.js .point:not(.is-in) .point-photo img { opacity: 0; transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .point:not(.is-in) .point-photo img { opacity: 1; transform: none; }
  .float-btn, .point-photo img { transition: none; }
}
