/* ===== メルフレ LP ===== */
:root {
  --paper: #fff6f6;
  --paper-2: #edf8f1;
  --ink: #3b3440;
  --ink-soft: #6a6170;
  --pink: #f6b3c6;
  --pink-pale: #ffe9ef;
  --pink-deep: #d4628a;
  --green: #a9dcc4;
  --green-pale: #e2f4ea;
  --green-deep: #3f8f72;
  --line: #ecd8dd;
  --white: #fffefc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.pc { display: none; }
/* 日本語の改行を言葉のまとまりで(対応ブラウザ)+ .nw で区切りを固定 */
h1, h2, h3, summary, .checklist b, .rate th { word-break: auto-phrase; }
.nw { display: inline-block; }
@media (min-width: 768px) { .pc { display: inline; } }

.note { font-size: 12px; color: var(--ink-soft); margin-top: 12px; }
.note.center { text-align: center; }

/* 見出し:番号+下線(手書き風) */
.sec-title {
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.sec-no {
  font-family: "Klee One", serif;
  font-size: 15px;
  color: var(--pink-deep);
  border: 1.5px solid var(--pink-deep);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transform: rotate(-8deg);
}
.sec-lead { color: var(--ink-soft); margin-bottom: 28px; }

section { padding: clamp(64px, 10vw, 110px) 0; }

/* ボタン */
.btn-post {
  display: inline-block;
  background: var(--pink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn-post:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-post.big { font-size: 18px; padding: 18px 36px; }
.link-under { font-weight: 500; text-underline-offset: 5px; }

/* ===== ヒーロー:エアメール封筒 ===== */
.hero { padding: 20px 16px clamp(48px, 8vw, 90px); }
.brand {
  width: min(1080px, 100%);
  margin: 0 auto 24px;
  font-weight: 700;
  font-size: 20px;
  display: flex; align-items: center; gap: 8px;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--green-deep); color: #fff;
  border-radius: 6px; font-size: 16px;
}
.envelope {
  position: relative;
  width: min(1080px, 100%);
  margin: 0 auto;
  background: var(--white);
  padding: clamp(56px, 8vw, 90px) clamp(24px, 6vw, 80px) clamp(44px, 6vw, 64px);
  box-shadow: 0 18px 40px rgba(120, 70, 90, .14);
}
/* エアメールの縁取り */
.envelope::before {
  content: "";
  position: absolute; inset: 0;
  padding: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--pink) 0 18px, var(--white) 18px 28px,
    var(--green) 28px 46px, var(--white) 46px 56px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.env-stamp {
  position: absolute;
  top: 28px; right: 28px;
  width: 84px; height: 100px;
  background: var(--pink);
  color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 6px solid var(--white);
  outline: 2px dashed var(--line);
  transform: rotate(4deg);
}
.stamp-face { font-size: 36px; line-height: 1; }
.stamp-price { font-family: "Klee One", serif; font-size: 14px; margin-top: 6px; }
.env-postmark {
  position: absolute;
  top: 40px; right: 92px;
  width: 104px; height: 104px;
  border: 2px solid rgba(63, 143, 114, .55);
  border-radius: 50%;
  color: rgba(63, 143, 114, .85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: .1em;
  transform: rotate(-14deg);
}
.env-postmark b { font-size: 13px; border-block: 1.5px solid currentColor; padding: 2px 0; margin: 2px 0; }

.env-to {
  font-family: "Klee One", serif;
  color: var(--ink-soft);
  font-size: clamp(15px, 2vw, 18px);
  margin-bottom: 18px;
  max-width: calc(100% - 120px);
}
.env-body h1 {
  font-size: clamp(32px, 6.4vw, 64px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .02em;
}
.env-body h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--pink-pale) 62%);
}
.env-lead { margin: 22px 0 32px; font-size: clamp(15px, 1.8vw, 17px); }
.env-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.usagi { display: block; }
.env-usagi {
  position: absolute;
  right: clamp(40px, 6vw, 90px);
  bottom: 28px;
  width: clamp(200px, 22vw, 270px);
  height: auto;
  animation: sway 4s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes sway {
  0%, 100% { rotate: -2deg; }
  50% { rotate: 2deg; }
}
@media (prefers-reduced-motion: reduce) { .env-usagi { animation: none; } }
@media (max-width: 900px) {
  .env-usagi { position: static; width: 180px; margin: 32px auto 0; }
  .envelope .env-from { margin: 12px auto 0; }
}
.env-from {
  width: fit-content;
  font-family: "Klee One", serif;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 600px) {
  .env-stamp { width: 60px; height: 72px; top: 22px; right: 22px; border-width: 4px; }
  .stamp-face { font-size: 26px; }
  .env-postmark { width: 76px; height: 76px; top: 30px; right: 64px; font-size: 8px; }
  .env-postmark b { font-size: 10px; }
  .envelope { padding-top: 120px; }
  .env-to { max-width: none; }
  .env-body h1 { font-size: min(8.4vw, 40px); }
  .env-actions .btn-post { width: 100%; text-align: center; }
}

/* ===== 01 話題を選ぶ ===== */
.topics { background: var(--paper-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chips { gap: 14px 12px; }
.chip {
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  background: var(--c, var(--pink));
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  rotate: -2deg;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, rotate .2s;
}
.chip:nth-child(even) { rotate: 2deg; }
.chip:hover { transform: translateY(-3px); rotate: 0deg; }
.chip.is-on {
  transform: scale(1.12);
  rotate: 0deg;
  box-shadow: 5px 5px 0 var(--ink);
}
.chip.is-on::before { content: "♥ "; color: var(--pink-deep); }
.chip:not(.is-on) { opacity: .85; }

.postcard {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--white);
  max-width: 720px;
  box-shadow: 0 10px 24px rgba(120, 70, 90, .12);
  transition: opacity .2s, transform .2s;
}
.postcard.is-change { opacity: 0; transform: translateY(6px); }
.pc-left {
  padding: 28px 32px;
  border-right: 1.5px dashed var(--line);
  background-image: repeating-linear-gradient(transparent 0 35px, var(--line) 35px 36px);
  background-position: 0 66px;
}
.pc-name { font-weight: 700; font-size: 20px; }
.pc-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.pc-msg { font-family: "Klee One", serif; font-size: 16px; line-height: 36px; }
.pc-right {
  padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--c, var(--pink));
  transition: background .3s;
}
.pc-sticker {
  width: 170px; height: auto;
  rotate: 4deg;
  filter: drop-shadow(3px 4px 0 rgba(59, 52, 64, .18));
}
.pc-pace { font-size: 12px; text-align: center; color: var(--ink); }
.pc-pace b { font-size: 14px; color: var(--ink); }
@media (max-width: 600px) {
  .postcard { grid-template-columns: 1fr; }
  .pc-left { border-right: 0; border-bottom: 1.5px dashed var(--line); padding: 24px 20px; }
  .pc-right { flex-direction: row; justify-content: space-around; padding: 16px 20px; }
  .pc-sticker { width: 130px; }
}

/* ===== 02 郵便ルート ===== */
.route-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
}
.route-list::before {
  content: "";
  position: absolute;
  top: 27px; left: 28px; right: 28px;
  border-top: 2px dashed var(--pink);
}
.route-list li { position: relative; }
.route-list .mark {
  position: relative;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  background: var(--paper);
  border: 2px solid var(--pink-deep);
  border-radius: 50%;
  color: var(--pink-deep);
  font-family: "Klee One", serif;
  font-size: 22px; font-weight: 600;
  margin-bottom: 16px;
}
.route-list h3 { font-size: 18px; margin-bottom: 6px; }
.route-list p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .route-list { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .route-list::before { display: none; }
}
@media (max-width: 600px) {
  .route-list { grid-template-columns: 1fr; gap: 0; }
  .route-list li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .route-list li:not(:last-child)::after {
    content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px;
    border-left: 2px dashed var(--pink);
  }
  .route-list .mark { grid-row: span 2; margin: 0; }
}

/* ===== 03 手紙の往復 ===== */
.sample { background: var(--green); }
.sample .sec-no { color: var(--green-deep); border-color: var(--green-deep); background: var(--white); }
.sample .note { color: var(--ink); }
.letters { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.letter {
  width: min(560px, 92%);
  background: var(--white);
  color: var(--ink);
  padding: 28px 32px;
  box-shadow: 0 12px 28px rgba(40, 100, 80, .18);
  background-image: repeating-linear-gradient(transparent 0 35px, var(--line) 35px 36px);
  background-position: 0 64px;
}
.from-a { align-self: flex-start; transform: rotate(-1.2deg); }
.from-b { align-self: flex-end; transform: rotate(1deg); border-top: 6px solid var(--pink); }
.from-a { border-top: 6px solid var(--green-deep); }
.l-date { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.l-text { font-family: "Klee One", serif; font-size: 17px; line-height: 36px; }
@media (max-width: 600px) {
  .letter { width: 100%; padding: 22px 20px; }
  .l-text { font-size: 16px; }
}
.reveal { opacity: 0; translate: 0 24px; transition: opacity .6s, translate .6s; }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ===== 04 特長:ポップなカード ===== */
.stamp-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.stamp {
  position: relative;
  background: var(--c, var(--pink));
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  padding: 44px 22px 26px;
  box-shadow: 6px 6px 0 var(--ink);
  rotate: -1.5deg;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), rotate .25s;
}
.stamp:nth-child(even) { rotate: 1.5deg; margin-top: 18px; }
.stamp:hover { transform: translateY(-6px); rotate: 0deg; }
.stamp-no {
  position: absolute;
  top: -24px; left: 18px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  font-size: 20px;
  rotate: -10deg;
}
.stamp h3 {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.stamp p { font-size: 14px; line-height: 1.8; }
@media (max-width: 900px) {
  .stamp-sheet { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .stamp:nth-child(even) { margin-top: 0; }
}
@media (max-width: 600px) {
  .stamp-sheet { grid-template-columns: 1fr; gap: 40px; padding: 0 6px; }
}

/* ===== 安心:書留の控え ===== */
.safety { background: var(--paper-2); }
.receipt {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--ink);
  position: relative;
}
.receipt-head {
  background: var(--green); color: var(--ink);
  padding: 20px 28px;
}
.receipt-label { font-size: 13px; color: var(--ink-soft); }
.receipt-head h2 { font-size: clamp(22px, 4vw, 28px); }
.checklist { list-style: none; padding: 8px 28px; }
.checklist li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.checklist li::before {
  content: "✓";
  grid-row: span 2;
  width: 26px; height: 26px;
  border: 2px solid var(--pink-deep); color: var(--pink-deep);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  margin-top: 3px;
}
.checklist b { font-size: 17px; }
.checklist span { font-size: 14px; color: var(--ink-soft); }
.receipt-foot { padding: 16px 28px 22px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 600px) {
  .receipt-head, .checklist, .receipt-foot { padding-inline: 18px; }
}

/* ===== 05 料金表 ===== */
.table-scroll { overflow-x: auto; margin-top: 32px; }
.rate {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 15px;
}
.rate th, .rate td { border: 1px solid var(--line); padding: 14px 16px; text-align: center; }
.rate tbody th { text-align: left; font-weight: 500; background: var(--green-pale); }
.rate thead th { font-size: 16px; padding: 18px 16px; }
.rate thead th.hl { background: var(--pink); color: var(--ink); }
.rate td.hl { background: var(--pink-pale); }
.rate td b { font-size: 22px; color: var(--pink-deep); }
.rate small { font-size: 11px; }
@media (max-width: 600px) {
  .rate { font-size: 13px; min-width: 0; }
  .rate th, .rate td { padding: 10px 8px; }
  .rate thead th { font-size: 13px; padding: 12px 4px; white-space: nowrap; }
  .rate td { white-space: nowrap; }
  .rate td b { font-size: 18px; }
  .rate small { display: block; }
}

/* ===== 06 はがきFAQ ===== */
.faq { background: var(--paper-2); }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; align-items: start; }
.faq details {
  background: var(--white);
  border-left: 6px solid var(--green);
  box-shadow: 0 6px 16px rgba(120, 70, 90, .08);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 48px 20px 22px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  translate: 0 -50%;
  font-size: 22px; color: var(--green-deep);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 22px 22px;
  font-family: "Klee One", serif;
  font-size: 15px;
}
@media (max-width: 768px) { .faq-list { grid-template-columns: 1fr; } }

/* ===== CTA:ポスト ===== */
.start-inner { display: flex; align-items: flex-end; justify-content: center; gap: clamp(32px, 6vw, 80px); }
.start-usagi { width: 280px; height: auto; flex-shrink: 0; }
.start-text h2 { font-size: clamp(26px, 4.6vw, 42px); line-height: 1.45; margin-bottom: 14px; }
.start-text p { margin-bottom: 24px; }
.start-text .note { margin: 12px 0 0; }
@media (max-width: 600px) {
  .start-inner { flex-direction: column; align-items: center; text-align: center; }
  .start-usagi { width: 200px; }
  .start-text .btn-post { width: 100%; }
}

/* ===== フッター ===== */
.footer { background: var(--green-deep); color: #eef7f2; padding: 40px 0 28px; font-size: 13px; }
.f-brand { font-weight: 700; font-size: 18px; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer .brand-mark { background: var(--pink); color: var(--ink); }
.f-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.f-links a { text-decoration: none; }
.f-links a:hover { text-decoration: underline; }
.f-legal { font-size: 12px; color: #d6ece2; }
.f-copy { margin-top: 12px; font-size: 12px; color: #c2e0d3; }
