/* フォトリバイブ 遺影写真ページ（2026-11 試作）
   方針：スマホ優先・字は大きく濃く・飾りの円やピル型は使わない */
:root {
  --bg: #FBF8F3;
  --bg-soft: #F2ECE2;
  --ink: #2F2B26;
  --text: #46403A;
  --sub: #5F584F;
  --line: #D9CFBF;
  --green: #56705F;
  --green-dark: #435A4C;
  --gold: #A9853F;
  --white: #FFFFFF;
  --line-app: #06893A;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 76px; /* 下の固定バーのぶん */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[id] { scroll-margin-top: 76px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ── 上の帯 ── */
.head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.97);
  border-bottom: 1px solid var(--line);
}
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 4px; flex: none; }
.brand__name { font-family: var(--mincho); font-size: 18px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.brand__by { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--sub); white-space: nowrap; }
.nav { display: none; }
.head__btn {
  flex: none; white-space: nowrap;
  background: var(--green); color: var(--white); text-decoration: none;
  font-size: 15px; font-weight: 700; line-height: 1;
  padding: 13px 14px; border-radius: 6px;
}

/* ── ボタン ── */
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 60px; padding: 12px 20px;
  background: var(--green); color: var(--white);
  font-size: 18px; font-weight: 700; line-height: 1.4; text-decoration: none;
  border: 0; border-radius: 6px; cursor: pointer;
  box-shadow: 0 2px 0 var(--green-dark);
}
.btn:hover { background: var(--green-dark); }
.btn small { display: block; font-size: 14px; font-weight: 500; }
.btn-note { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--text); }
.alt { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alt a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60px; padding: 8px 6px; text-align: center; text-decoration: none;
  font-size: 16px; font-weight: 700; line-height: 1.4;
  color: var(--ink); background: var(--white); border: 1.5px solid var(--ink); border-radius: 6px;
}
.alt a small { font-size: 13px; font-weight: 400; color: var(--sub); }
.alt .alt__line { color: var(--line-app); border-color: var(--line-app); }

/* ── 最初の画面 ── */
.hero { padding: 26px 0 40px; }
.hero h1 {
  font-family: var(--mincho); font-weight: 600; color: var(--ink);
  font-size: 29px; line-height: 1.5; letter-spacing: 0.01em;
}
.hero h1 span { display: inline-block; }
.hero__lead { margin-top: 12px; font-size: 17px; line-height: 1.8; }
.hero__lead strong { color: var(--ink); display: inline-block; }
.pair { margin-top: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.pair figure { position: relative; }
.pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); background: var(--bg-soft); }
.pair figcaption { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text); text-align: center; }
.pair__arrow { font-size: 22px; color: var(--gold); padding-bottom: 28px; }
.hero__cta { margin-top: 22px; }
.hero__who { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.8; color: var(--text); }

/* ── 共通の区切り ── */
.sec { padding: 52px 0; border-top: 1px solid var(--line); }
.sec--soft { background: var(--bg-soft); }
.sec h2 {
  font-family: var(--mincho); font-weight: 600; color: var(--ink);
  font-size: 25px; line-height: 1.5; margin-bottom: 8px;
}
.sec h2::after { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin-top: 12px; }
.sec__lead { margin-top: 16px; }

/* ── こんな写真でも ── */
.cases { margin-top: 22px; border-top: 1px solid var(--line); }
.cases li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cases h3 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.cases p { margin-top: 4px; font-size: 16px; }
.aside { margin-top: 22px; padding-left: 14px; border-left: 3px solid var(--gold); font-size: 17px; color: var(--ink); }

/* ── 仕上がりの例 ── */
.works { margin-top: 26px; display: grid; gap: 36px; }
.work h3 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.5; margin-top: 14px; }
.work p { margin-top: 4px; font-size: 16px; }
.work .pair { margin-top: 0; }

/* ── 料金 ── */
.plans { margin-top: 24px; border-top: 2px solid var(--ink); }
.plan { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.plan__use { font-size: 14px; font-weight: 700; color: var(--gold); line-height: 1.5; }
.plan h3 { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.plan__price { font-family: var(--mincho); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.plan__price small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--text); margin-left: 4px; }
.plan__in { font-size: 16px; line-height: 1.75; }
.notes { margin-top: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.75; }
.notes li { padding-left: 1.1em; text-indent: -1.1em; }
.notes li::before { content: "・"; }
.sec__cta { margin-top: 30px; }
.fast { margin-top: 26px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; }
.fast summary { padding: 16px; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; line-height: 1.6; }
.fast__body { padding: 0 16px 18px; font-size: 15px; }
.fast__list { margin-top: 12px; display: grid; gap: 8px; }
.fast__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 14px; text-decoration: none;
  font-size: 16px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--green); border-radius: 6px; background: var(--bg);
}
.fast__list a span { color: var(--green-dark); white-space: nowrap; }

/* ── 流れ ── */
.steps { margin-top: 24px; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 54px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mincho); font-size: 20px; font-weight: 600; color: var(--white); background: var(--ink); border-radius: 4px;
}
.steps li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.6; padding-top: 3px; }
.steps p { margin-top: 2px; font-size: 16px; }

/* ── よくあるご質問 ── */
.faq { margin-top: 22px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 40px 18px 0; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--green-dark);
}
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 20px; font-size: 16px; }

/* ── 写真を送る ── */
.form-box { margin-top: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.form-box iframe { display: block; width: 100%; height: 640px; border: 0; }
.or { margin-top: 30px; font-size: 17px; font-weight: 700; color: var(--ink); }

/* ── 写真館について ── */
.about p + p { margin-top: 14px; }
.about dl { margin-top: 22px; border-top: 1px solid var(--line); font-size: 16px; }
.about dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.about dt { font-weight: 700; color: var(--ink); }

/* ── いちばん下 ── */
.foot { background: var(--ink); color: #E9E2D6; padding: 36px 0 30px; font-size: 15px; line-height: 1.9; }
.foot a { color: #FFFFFF; }
.foot__links { display: grid; gap: 4px; margin-top: 16px; }
.foot__links a { display: block; padding: 8px 0; }
.foot__copy { margin-top: 22px; font-size: 13px; color: #CFC6B8; }

/* ── スマホで下に付いてくる帯 ── */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 243, 0.98); border-top: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.bar.is-hidden { transform: translateY(110%); }
.bar a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 4px 4px; border-radius: 6px; text-decoration: none;
  font-size: 15px; font-weight: 700; line-height: 1.35;
}
.bar__send { background: var(--green); color: var(--white); flex-direction: column; font-size: 17px !important; }
.bar__send small { font-size: 13px; font-weight: 500; }
.bar__line { background: var(--white); color: var(--line-app); border: 1.5px solid var(--line-app); }
.bar__tel { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }

/* ── 先にお支払いする方の確認 ── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(47, 43, 38, 0.6); align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 8px; padding: 24px 20px; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; }
.modal__title { font-family: var(--mincho); font-size: 21px; color: var(--ink); line-height: 1.5; }
.modal__sub { margin-top: 6px; font-size: 15px; }
.check-list { margin-top: 14px; display: grid; gap: 4px; }
.check-list label { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; font-size: 16px; line-height: 1.7; cursor: pointer; }
.check-list input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--green); }
.modal__actions { margin-top: 16px; display: grid; gap: 10px; }
#modal-submit { opacity: 0.4; pointer-events: none; }
#modal-submit.ready { opacity: 1; pointer-events: auto; }
.btn--cancel { min-height: 52px; background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; font-size: 16px; font-family: inherit; cursor: pointer; }

/* ── 業者さま向けページ ── */
.biz h1 { font-family: var(--mincho); font-size: 27px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.biz h2 { margin-top: 36px; }
.biz ul.dots { margin-top: 12px; display: grid; gap: 6px; }
.biz ul.dots li { padding-left: 1.1em; text-indent: -1.1em; }
.biz ul.dots li::before { content: "・"; }

/* ── タブレット ── */
@media (min-width: 700px) {
  body { font-size: 18px; }
  .wrap { padding: 0 32px; }
  .hero h1 { font-size: 36px; }
  .sec { padding: 72px 0; }
  .sec h2 { font-size: 30px; }
  .works { grid-template-columns: 1fr 1fr; gap: 40px; }
  .plan { grid-template-columns: 1fr auto; column-gap: 24px; align-items: start; }
  .plan__use, .plan h3, .plan__in { grid-column: 1; }
  .plan__price { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; }
  .alt { max-width: 520px; }
  .btn { max-width: 520px; }
  .form-box iframe { height: 700px; }
}

/* ── 横に並べられる幅から：左に文とボタン、右に写真 ── */
@media (min-width: 760px) {
  .hero__grid {
    display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 36px;
    grid-template-areas: "t p" "c p"; align-items: start;
  }
  .hero__grid > div:first-child { grid-area: t; }
  .hero .pair { grid-area: p; margin-top: 6px; align-self: center; }
  .hero__cta { grid-area: c; }
}

/* ── パソコン ── */
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .head__in { min-height: 72px; }
  .brand img { width: 48px; height: 48px; }
  .brand__name { font-size: 21px; }
  .brand__by { font-size: 13px; }
  .nav { display: flex; gap: 26px; margin-left: auto; margin-right: 12px; }
  .nav a { font-size: 16px; color: var(--ink); text-decoration: none; white-space: nowrap; padding: 8px 0; }
  .nav a:hover { color: var(--green-dark); text-decoration: underline; }
  .head__btn { font-size: 16px; padding: 15px 20px; }
  .hero { padding: 64px 0 72px; }
  .hero__grid { column-gap: 56px; }
  .hero h1 { font-size: 44px; line-height: 1.45; }
  .hero__lead { font-size: 19px; margin-top: 18px; }
  .hero .pair { gap: 12px; }
  .hero__cta { margin-top: 30px; }
  .pair figcaption { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { transition: none; }
}

/* ── 2026-11-12 料金を決めて先にお申し込みの形へ ── */
.plan__btn { margin-top: 10px; min-height: 54px; font-size: 17px; }
.guide { margin-top: 24px; padding: 18px 18px 20px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.guide h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.guide ul { margin-top: 8px; display: grid; gap: 4px; }
.guide li { padding-left: 1.1em; text-indent: -1.1em; font-size: 16px; }
.guide li::before { content: "・"; }
.guide p { margin-top: 12px; font-size: 16px; }
.contact__link { margin-top: 16px; font-size: 17px; font-weight: 700; }
.contact__link a { display: inline-block; padding: 10px 0; }
@media (min-width: 700px) {
  .plan__btn { grid-column: 1 / -1; max-width: 360px; }
}
