/* 葬祭プラスLP：画像を縦に並べ、実際の画面・費用・よくある質問だけHTMLで組む。色・書体は画像（灰白・墨・深緑・金、細い明朝×細いゴシック）とそろえる */
:root {
  --bg: #e6e8e2;
  --paper: #ffffff;
  --tint: #f3f4f0;
  --soft: #e2ebe3;
  --green: #3b6b4a;
  --navy: #1f2220;
  --ink: #2b2e2b;
  --sub: #45433e;
  --gold: #b5965a;
  --line: #d9dcd4;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mincho: var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.85; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }

.lp { max-width: 600px; margin: 0 auto; background: var(--paper); box-shadow: 0 0 0 1px rgba(43, 46, 43, .04), 0 20px 60px rgba(43, 46, 43, .08); }
.screens { background: var(--tint); }
.sheet { position: relative; }
.sheet img { width: 100%; }
.est { margin: 0; padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); background: var(--paper); color: var(--sub); font-size: 14px; text-align: center; line-height: 1.7; }
.hit { position: absolute; display: block; }
.hit:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* HTMLの段：画像の構成ページと同じ、細い角ゴシックの見出し */
.block { padding-block: 56px 60px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.label { margin: 0 0 8px; color: var(--green); font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h { margin: 0; color: var(--navy); font-family: var(--font); font-weight: 700; font-size: clamp(28px, 7.4vw, 40px); line-height: 1.4; letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; line-break: strict; }
.lead { margin: 16px 0 0; color: var(--ink); font-size: 17px; }
.note { margin: 18px 0 0; color: var(--sub); font-size: 14px; line-height: 1.75; }

/* 実際の画面：2列にそろえて並べる（隠れる画面を作らない） */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.shot { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.shot img { width: 100%; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 6px 20px rgba(29, 37, 71, .10); }
.shot figcaption { font-size: 15.5px; line-height: 1.7; color: var(--sub); }
.shot figcaption b { display: block; color: var(--navy); font-weight: 700; font-size: 17px; }

/* 費用の目安：細い罫線の表。決まっていない額は【】のまま見せる */
.price { border-top: 1px solid var(--line); }
.tbl { margin-top: 24px; overflow-x: auto; }
.price table { width: 100%; border-collapse: collapse; }
.price th, .price td { padding: 16px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price th { width: 34%; color: var(--sub); font-weight: 500; font-size: 16px; }
.price td { color: var(--navy); font-weight: 700; font-size: 19px; }
.price td small { display: block; margin-top: 2px; color: var(--sub); font-weight: 500; font-size: 15px; }
.tbd { color: var(--green); }

/* よくある質問：Q は吹き出し、A は面。上から順に1列 */
.qa { margin: 28px 0 0; display: grid; gap: 22px; }
.item { display: grid; gap: 10px; }
.qa dt { position: relative; justify-self: start; max-width: 100%; padding: 12px 16px 12px 46px; background: var(--soft); color: var(--navy); border-radius: 2px; font-weight: 700; line-height: 1.6; }
.qa dt::before { content: "Q"; position: absolute; left: 16px; top: 11px; color: var(--green); font-weight: 700; }
.qa dd { position: relative; margin: 0; padding: 0 4px 0 46px; color: var(--ink); }
.qa dd::before { content: "A"; position: absolute; left: 20px; top: 0; color: var(--navy); font-weight: 700; }

.foot { background: var(--tint); padding-block: 36px 120px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); text-align: center; color: var(--sub); font-size: 14px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot .small { font-size: 13px; margin-top: 12px; }

/* 追従のボタン：最初の画面と最後の申込の画面、下へ読み進めている間は隠す */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(to top, rgba(243, 244, 240, .97) 70%, rgba(243, 244, 240, 0)); }
.dock[hidden] { display: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 552px; min-height: 52px; padding: 0 20px; border-radius: 2px; background: var(--green); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 8px 22px rgba(29, 37, 71, .25); }
.dock a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .dock:not([hidden]) { animation: rise .25s ease-out; }
  @keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
}
@media (min-width: 640px) {
  body { padding-block: 32px; }

}

/* 2つのボタンの違い（CTAの下） */
.choose { display: grid; gap: 14px; padding: 4px max(24px, env(safe-area-inset-right, 0px)) 36px max(24px, env(safe-area-inset-left, 0px)); }
.choose p { margin: 0; padding: 14px 16px; background: var(--tint); border-left: 4px solid var(--green); color: var(--sub); font-size: 16px; line-height: 1.7; }
.choose b { display: block; color: var(--navy); font-weight: 700; font-size: 17px; }

/* 実画面の面の下：元の大きさで開くリンク */
.zoom { margin: 0; padding: 12px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); background: var(--paper); text-align: center; font-size: 16px; font-weight: 700; line-height: 2.2; }
.zoom a { display: inline-block; min-height: 44px; padding: 6px 4px; color: var(--green); }
