/* MoriPost 官網 — cream paper, rose ink, forest green. Mobile first. */
:root {
  --paper: #FAF4E8;
  --card: #FFFDF8;
  --ink: #4A3428;
  --soft: #8A7260;
  --rose: #C95F74;
  --rose-soft: #F6DDE2;
  --forest: #6E8A63;
  --line: #E8DCCB;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(74, 52, 40, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
:lang(ja) { font-family: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif; }
:lang(ko) { font-family: -apple-system, "Apple SD Gothic Neo", sans-serif; word-break: keep-all; }
:lang(ja), :lang(zh-Hant) { line-break: strict; }
img { max-width: 100%; display: block; }
a { color: var(--rose); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 244, 232, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang-bar { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.lang-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--soft);
  border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer;
}
.lang-btn.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.nav { display: flex; gap: 14px; width: 100%; overflow-x: auto; font-size: 14px; padding-bottom: 2px; }
.nav a { color: var(--soft); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--rose); }

/* Language panels */
.lang-panel { display: block; }
body.js-ready .lang-panel { display: none; }
body.js-ready .lang-panel.active { display: block; }

/* Sections */
section.block { padding: 48px 0; }
section.block.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(28px, 6vw, 46px); line-height: 1.3; margin: 0 0 14px; letter-spacing: 0.01em; }
h2 { font-size: clamp(22px, 4.2vw, 32px); line-height: 1.35; margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lead { font-size: 17px; color: var(--soft); margin: 0 0 20px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--forest); letter-spacing: 0.08em; margin-bottom: 8px; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.badges li { background: var(--rose-soft); color: var(--rose); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-block; border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 15px; }
.btn.primary { background: var(--rose); color: #fff; box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--rose); border: 1.5px solid var(--rose); }
.note { font-size: 13px; color: var(--soft); }

/* Flip postcard */
.flip { perspective: 1400px; cursor: pointer; max-width: 560px; margin: 0 auto; }
.flip-inner { position: relative; aspect-ratio: 3 / 2; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.flip-face img { width: 100%; height: 100%; object-fit: cover; }
.flip-face.back { transform: rotateY(180deg); }
.flip-hint { text-align: center; font-size: 13px; color: var(--soft); margin-top: 10px; }

/* Cards & grids */
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 2px 10px rgba(74,52,40,0.05); }
.card .pic { border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: var(--paper); }
.card p { margin: 0; color: var(--soft); font-size: 15px; }

/* Horizontal page strip */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 16px; }
.strip figure { flex: 0 0 min(62vw, 240px); margin: 0; scroll-snap-align: start; }
.strip img { border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.strip figcaption { font-size: 13px; color: var(--soft); margin-top: 8px; }

/* Season postcards */
.season { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .season { grid-template-columns: repeat(4, 1fr); } }
.season img { border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.season figure { margin: 0; }
.season figcaption { font-size: 13px; color: var(--soft); margin-top: 6px; }

/* Lists and tables */
ul.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.check li { padding-left: 30px; position: relative; }
ul.check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 13px; display: grid; place-items: center; margin-top: 3px; }
table.plans { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
table.plans th, table.plans td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.plans th { background: var(--rose-soft); color: var(--ink); }
.price { font-size: 28px; font-weight: 800; color: var(--rose); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p, details li { color: var(--soft); }

/* Legal text */
.legal h2 { margin-top: 32px; font-size: 22px; }
.legal p, .legal li { color: var(--ink); }

/* Footer */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
footer .links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
footer .links a { color: var(--soft); }
.scam { background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.pelican { width: 120px; }
.by { font-size: 12px; color: var(--soft); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.by:hover { color: var(--rose); }
.conditions { display: grid; gap: 10px; }
@media (min-width: 720px) { .conditions { grid-template-columns: repeat(2, 1fr); } }
.conditions div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.conditions strong { display: block; color: var(--ink); margin-bottom: 2px; }
.vipbox { background: var(--rose-soft); border-radius: var(--radius); padding: 18px; margin-top: 24px; }
.vipbox h3 { color: var(--rose); }
.vipbox ul { margin: 8px 0 0; padding-left: 20px; }
.btn.disabled { background: var(--line); color: var(--soft); box-shadow: none; cursor: default; }
