/* 色はポートフォリオと同じ */
:root {
  --paper: #f5eedf;
  --paper-deep: #ece3d1;
  --ink: #4a3b2f;
  --wine: #8e3b2e;
  --sage: #9daf95;
  --line: #06c755;
  --line-dark: #05a647;
  --rule: #ddd0b9;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.nw { white-space: nowrap; }

/* 紙の地（スマホの作りを中央に。PCでは最大720px） */
.lp {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(232, 196, 178, .28), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(157, 175, 149, .18), transparent 60%),
    var(--paper);
  box-shadow: 0 0 40px rgba(74, 59, 47, .12);
}

/* 見出し */
h1, h2, h3, .pain-close, .maker-name { font-family: var(--serif); font-weight: 600; letter-spacing: 0; margin: 0; font-feature-settings: "palt"; }
.sec-title { font-size: 26px; line-height: 1.55; color: var(--ink); margin-bottom: 22px; }
.sec-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; background: var(--wine); border-radius: 2px; opacity: .85; }

/* セクション */
.sec { position: relative; padding: 48px 22px; }
.sec + .sec { border-top: 1px dashed var(--rule); }

/* 水彩の枝（添える程度） */
.sprig { position: absolute; pointer-events: none; mix-blend-mode: multiply; opacity: .9; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.sprig-fv { width: 118px; top: -6px; right: -10px; }
.sprig-gift { width: 96px; top: 10px; right: -14px; transform: scaleX(-1) rotate(-8deg); opacity: .7; }
.sprig-last { width: 110px; top: 6px; right: -10px; opacity: .75; }

/* ===== 1. ファーストビュー ===== */
.fv { position: relative; padding: 18px 18px 20px; }
.label {
  display: inline-block; margin: 0 0 10px; padding: 3px 14px;
  font-size: 15px; line-height: 1.6; color: #fff; background: var(--sage); border-radius: 999px; letter-spacing: .04em;
}
.fv-title { font-size: 26px; line-height: 1.5; color: var(--wine); margin: 0 0 10px; letter-spacing: 0; }
.fv-sub { font-size: 17px; line-height: 1.7; margin: 0 0 6px; }
.fv-visual { position: relative; height: 236px; margin: 2px 0 10px; }
.wash {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 170px; transform: translate(-50%, -48%) rotate(-6deg);
  background:
    radial-gradient(closest-side at 35% 45%, rgba(142, 59, 46, .18), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(157, 175, 149, .32), transparent);
  filter: blur(6px); border-radius: 50%;
}
.phone {
  position: relative; aspect-ratio: 9 / 18.5;
  background: #2b2420; border-radius: 22px; padding: 6px;
  box-shadow: 0 14px 26px rgba(60, 45, 35, .26), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone .screen { width: 100%; height: 100%; border-radius: 17px; overflow: hidden; background: #fff; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.phone-main { position: absolute; left: 50%; top: 2px; width: 112px; transform: translateX(-50%) rotate(-3deg); }

/* ボタン（LINEの緑・画面いっぱい・高さ56px以上） */
.cta { margin-top: 18px; }
.fv .cta { margin-top: 0; }
.btn-line {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; padding: 10px 16px;
  font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: .04em;
  color: #fff; text-decoration: none; background: var(--line); border-radius: 14px;
  box-shadow: 0 5px 0 var(--line-dark), 0 10px 22px rgba(6, 199, 85, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-line::before {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2306C755' d='M12 4C7 4 3 7.2 3 11.2c0 3.6 3.2 6.6 7.5 7.1.3.1.7.2.8.5.1.2.1.6 0 .9l-.1.8c0 .2-.2.9.8.5s5.4-3.2 7.4-5.5C20.5 14 21 12.7 21 11.2 21 7.2 17 4 12 4z'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.btn-line:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line-dark), 0 6px 14px rgba(6, 199, 85, .2); }
.btn-line:focus-visible, .sticky:focus-visible, .footer a:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.cta-note { margin: 8px 0 0; font-size: 14px; line-height: 1.6; text-align: center; color: #6b5a4b; }

/* ===== 2. あるある ===== */
.pain-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.pain-list li {
  position: relative; padding: 14px 16px 14px 50px; background: #fffaf0;
  border: 1px solid var(--rule); border-radius: 14px; line-height: 1.7;
}
.pain-list li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px;
  border: 2px solid var(--wine); border-radius: 6px;
}
.pain-list li::after {
  content: ""; position: absolute; left: 22px; top: 19px; width: 8px; height: 14px;
  border: solid var(--wine); border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.pain-close { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.7; color: var(--wine); }

/* ===== 3. 本当の原因 ===== */
.cause { background: rgba(255, 250, 240, .55); }
.cause em { white-space: nowrap; font-style: normal; font-weight: 700; color: var(--wine); background: linear-gradient(transparent 62%, rgba(157, 175, 149, .45) 62%); }

/* ===== 4. プレゼントの中身 ===== */
.gift .sec-title { padding-right: 0; }
.points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: #fffaf0; border: 1px solid var(--rule); border-radius: 14px; }
.points p { margin: 0; line-height: 1.7; }
.points strong { color: var(--wine); }
.icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--wine); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.sample { margin: 0 -4px 30px; padding: 8px 0 8px 8px; overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 8px 22px rgba(74, 59, 47, .12); transform: rotate(-.6deg); }
.sample img { width: 100%; border-radius: 6px 0 0 6px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.bonus { display: flex; gap: 16px; align-items: center; padding: 18px; border: 2px dashed var(--sage); border-radius: 16px; background: rgba(157, 175, 149, .1); }
.bonus-text { flex: 1; }
.bonus-title { font-size: 21px; line-height: 1.5; color: var(--wine); margin-bottom: 8px; }
.bonus-title::before { content: "＋"; margin-right: 4px; color: var(--sage); }
.bonus p { margin: 0; line-height: 1.75; }
.bonus strong { color: var(--ink); }
.phone-sub { flex: none; width: 92px; border-radius: 18px; padding: 5px; transform: rotate(4deg); }
.phone-sub .screen { border-radius: 14px; }

/* ===== 5. 作った人 ===== */
.maker-photos { position: relative; margin: 0 0 22px; padding-bottom: 34px; }
.ph-portrait { width: 78%; border-radius: 14px; box-shadow: 0 10px 24px rgba(74, 59, 47, .18); }
.ph-shop { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 2 / 3; object-fit: cover; border: 5px solid #fffaf0; border-radius: 12px; box-shadow: 0 10px 24px rgba(74, 59, 47, .22); transform: rotate(3deg); }
.maker-name { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.6; color: var(--wine); margin-bottom: 14px; }
.maker-name span { display: block; font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--ink); }

/* ===== 6. 受け取り方 ===== */
.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.step-list li { position: relative; counter-increment: step; padding: 4px 0 24px 58px; min-height: 64px; line-height: 1.7; }
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--wine); color: #fff;
  font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1;
}
.step-list li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; border-left: 2px dotted var(--sage); }
.step-list li:last-child { padding-bottom: 0; }

/* ===== 7. よくある質問 ===== */
.faq-list { margin: 0; display: grid; gap: 14px; }
.faq-list div { padding: 16px; background: #fffaf0; border: 1px solid var(--rule); border-radius: 14px; }
.faq-list dt { font-weight: 700; color: var(--wine); line-height: 1.6; margin-bottom: 6px; }
.faq-list dt::before { content: "Q."; font-family: var(--serif); margin-right: 6px; }
.faq-list dd { margin: 0; line-height: 1.75; }

/* ===== 8. 最後のひと押し ===== */
.last { padding-bottom: 56px; text-align: left; }
.last .sec-title { font-size: 28px; }

/* フッター */
.footer { padding: 28px 22px 110px; text-align: center; font-size: 14px; line-height: 1.8; background: var(--paper-deep); color: #6b5a4b; }
.footer p { margin: 0; }
.footer a { display: inline-block; padding: 10px 6px; color: inherit; }

/* スマホで画面下に固定するボタン */
.sticky {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10;
  width: calc(100% - 24px); max-width: 696px; min-height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: .04em; color: #fff; text-decoration: none;
  background: var(--line); border-radius: 14px; box-shadow: 0 8px 22px rgba(40, 40, 40, .28);
  transform: translate(-50%, 160%); transition: transform .3s ease; visibility: hidden;
}
.sticky::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2306C755' d='M12 4C7 4 3 7.2 3 11.2c0 3.6 3.2 6.6 7.5 7.1.3.1.7.2.8.5.1.2.1.6 0 .9l-.1.8c0 .2-.2.9.8.5s5.4-3.2 7.4-5.5C20.5 14 21 12.7 21 11.2 21 7.2 17 4 12 4z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.sticky.show { transform: translate(-50%, 0); visibility: visible; }
@media (min-width: 768px) {
  .sticky { display: none; }
  .footer { padding-bottom: 40px; }
}

/* 少し広い画面（PC）では余白とスマホ画像を大きめに */
@media (min-width: 600px) {
  .sec { padding: 64px 56px; }
  .fv { padding: 32px 56px 36px; }
  .fv-title { font-size: 36px; }
  .sec-title { font-size: 30px; }
  .last .sec-title { font-size: 32px; }
  .fv-visual { height: 300px; }
  .phone-main { width: 142px; }
  .sample { margin: 0 0 30px; }
  .wash { width: 420px; height: 240px; }
  .sprig-fv { width: 170px; }
  .phone-sub { width: 120px; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .points li { flex-direction: column; align-items: flex-start; }
  .btn-line { font-size: 21px; min-height: 64px; }
}

/* フェードイン（控えめ）。「動きを減らす」設定では止める */
.js .fade { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .fade { opacity: 1; transform: none; transition: none; }
  .sticky, .btn-line { transition: none; }
}
