/* ==========================================================================
   meguri LP v3 — 「旅のしおり」エディトリアル
   方眼紙 × コーラル × 明朝。モバイルファースト1カラム (max 720px)。
   ========================================================================== */

:root {
  --coral: #ff5a36;
  --coral-deep: #dd4327;
  --coral-soft: #ffe5dd;
  --ink: #15110f;
  --muted: #6e6058;
  --paper: #fffaf6;
  --paper-warm: #fff5ef;
  --grid-line: rgba(255, 90, 54, 0.07);
  --line: rgba(255, 90, 54, 0.18);
  --white: #ffffff;
  --shadow-card: 0 10px 40px rgba(74, 39, 26, 0.1);
  --shadow-float: 0 24px 70px rgba(74, 39, 26, 0.18);
  --display: "Shippori Mincho B1", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  /* 方眼紙 */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 1カラムページ (triplate方式: PCでも中央の縦長カラム) */
.page {
  max-width: 720px;
  margin: 0 auto;
  background: transparent;
  position: relative;
}

@media (min-width: 760px) {
  .page {
    box-shadow: 0 0 0 1px var(--line), 0 30px 120px rgba(74, 39, 26, 0.1);
    border-radius: 0 0 32px 32px;
    background-color: var(--paper);
    background-image:
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    overflow: clip;
  }
  body {
    background-color: var(--paper-warm);
    background-image:
      linear-gradient(rgba(255, 90, 54, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 90, 54, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 250, 246, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.nav-cta {
  font-size: 13px;
  font-weight: 900;
  color: var(--white);
  background: var(--coral);
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  box-shadow: 0 12px 30px rgba(255, 90, 54, 0.35);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 90, 54, 0.42);
}

.button-ghost {
  color: var(--coral-deep);
  background: transparent;
  border: 2px solid var(--line);
}

.button-ghost:hover {
  border-color: var(--coral);
  background: rgba(255, 90, 54, 0.05);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 48px 20px 0;
  position: relative;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 800;
  /* 「最高のガイドブック。」(10文字) が 350px 幅に収まる上限にする */
  font-size: clamp(26px, 7.2vw, 48px);
  line-height: 1.44;
  letter-spacing: 0.01em;
}

/* 蛍光マーカー (文字下40%だけコーラル) */
.marker {
  background: linear-gradient(transparent 62%, var(--coral-soft) 62%);
  padding: 0 2px;
}

.hero-lead {
  margin: 0 auto 28px;
  max-width: min(34em, 100%);
  font-size: clamp(13.5px, 3.8vw, 15px);
  font-weight: 500;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-actions .button {
  width: min(100%, 320px);
}

.hero-note {
  margin: 14px auto 0;
  max-width: 100%;
  font-size: clamp(10.5px, 3vw, 12px);
  font-weight: 700;
  color: var(--muted);
}

.pc-br {
  display: none;
}

.sp-br {
  display: inline;
}

@media (min-width: 560px) {
  .pc-br { display: inline; }
  .sp-br { display: none; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .button { width: auto; }
}

/* Hero visual: デバイスフレーム付きスクショ2枚を傾けて重ねる */
.hero-visual {
  position: relative;
  margin: 44px auto 0;
  width: min(100%, 460px);
  height: 470px;
  z-index: 1;
}

.shot {
  margin: 0;
  position: absolute;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot-front {
  width: 52%;
  left: 8%;
  top: 0;
  transform: rotate(-6deg);
  z-index: 2;
}

.shot-back {
  width: 48%;
  right: 4%;
  top: 44px;
  transform: rotate(5deg);
  z-index: 1;
  opacity: 0.96;
}

/* 点線ルート + ピン */
.hero-route {
  position: absolute;
  inset: -30px -10px auto;
  height: 150px;
  color: var(--coral);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.hero-route svg {
  width: 100%;
  height: 100%;
}

.route-pin {
  position: absolute;
  font-size: 18px;
}

.route-pin-a {
  left: 0;
  bottom: 6px;
  transform: rotate(-12deg);
}

.route-pin-b {
  right: -2px;
  top: 6px;
}

/* マステ風チップ */
.visual-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 16px;
  background: rgba(255, 90, 54, 0.92);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(221, 67, 39, 0.35);
}

.chip-a {
  left: 0;
  top: 40%;
  transform: rotate(-5deg);
}

.chip-b {
  right: 0;
  bottom: 12%;
  transform: rotate(4deg);
  background: var(--white);
  color: var(--coral-deep);
  border: 1.5px solid var(--line);
}

/* ==========================================================================
   Marquee (湾曲パネルでヒーローと接続)
   ========================================================================== */

.marquee {
  margin-top: -34px;
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 18px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  color: var(--coral);
  font-size: 13px;
}

.marquee-track span {
  padding-left: 28px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections 共通
   ========================================================================== */

.section {
  padding: 72px 20px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--coral);
}

.section-label.light {
  color: rgba(255, 255, 255, 0.85);
}

.section-heading h2,
.preview-copy h2,
.waitlist h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  /* 最長見出し「旅に必要なものを、ひとつに。」(14文字) が収まる上限 */
  font-size: clamp(21px, 5.8vw, 32px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ==========================================================================
   Problem — 付箋カード
   ========================================================================== */

.problem {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: 72px;
  margin-top: -1px;
}

.problem .section-sub {
  color: rgba(255, 250, 246, 0.66);
}

.pain-grid {
  display: grid;
  gap: 14px;
}

.pain-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

/* マスキングテープ */
.pain-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 84px;
  height: 20px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 90, 54, 0.5);
  border-radius: 2px;
}

.pain-card:nth-child(2) {
  transform: rotate(0.6deg);
}

.pain-card:nth-child(2)::before {
  transform: translateX(-50%) rotate(2deg);
}

.pain-card:nth-child(3) {
  transform: rotate(-0.5deg);
}

.pain-tag {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.pain-card strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
}

@media (min-width: 560px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   How it works — 左右交互オーバーラップ
   ========================================================================== */

.flow {
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -28px;
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}

.step {
  position: relative;
  margin-top: 48px;
  min-height: 400px;
}

.step:first-of-type {
  margin-top: 8px;
}

.step-shot {
  margin: 0;
  width: min(58%, 250px);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.step-right .step-shot {
  margin-left: auto;
  margin-right: -28px;
  transform: rotate(3deg);
}

.step-left .step-shot {
  margin-right: auto;
  margin-left: -28px;
  transform: rotate(-3deg);
}

.step-card {
  position: absolute;
  bottom: -8px;
  width: min(74%, 330px);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 90, 54, 0.1);
}

.step-right .step-card {
  left: 0;
}

.step-left .step-card {
  right: 0;
}

.step-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--coral);
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.step-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ==========================================================================
   Features — 切符風カード
   ========================================================================== */

.features {
  padding-bottom: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-card {
  position: relative;
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 24px 18px 20px;
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--coral-deep);
  border: 1.5px solid var(--coral);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ==========================================================================
   Tools — 予算 / 地図 (実スクショの見せ場)
   ========================================================================== */

.tools {
  padding-bottom: 8px;
}

.tools-grid {
  display: grid;
  gap: 40px;
}

.tool-card {
  position: relative;
  margin: 0;
  text-align: center;
}

.tool-card img {
  width: min(64%, 260px);
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 90, 54, 0.12);
}

.tool-card:first-child img {
  transform: rotate(-2deg);
}

.tool-card:last-child img {
  transform: rotate(2deg);
}

.tool-chip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 2;
  padding: 7px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.tool-card figcaption {
  margin-top: 20px;
}

.tool-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
}

.tool-card figcaption p {
  margin: 0 auto;
  max-width: 24em;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

@media (min-width: 560px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
}

/* ==========================================================================
   Preview — 非公開の安心感
   ========================================================================== */

.preview {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-bottom: 72px;
}

.preview-visual {
  width: min(78%, 340px);
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
}

.preview-copy {
  text-align: center;
}

.preview-copy p:last-child {
  margin: 0 auto;
  max-width: 30em;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

@media (min-width: 620px) {
  .preview {
    grid-template-columns: 5fr 6fr;
  }
  .preview-copy {
    text-align: left;
  }
  .preview-copy p:last-child {
    margin: 0;
  }
}

/* ==========================================================================
   Waitlist — コーラルカード + スタンプ
   ========================================================================== */

.waitlist {
  padding: 0 20px;
}

.waitlist-card {
  position: relative;
  background: linear-gradient(150deg, var(--coral), var(--coral-deep));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 26px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(221, 67, 39, 0.4);
}

/* 方眼を白でうっすら */
.waitlist-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.waitlist-stamp {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.12em;
  transform: rotate(10deg);
  opacity: 0.9;
}

.waitlist-sub {
  position: relative;
  margin: 0 auto 26px;
  max-width: 30em;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.waitlist-form {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.waitlist-form label span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.waitlist-form input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
}

.waitlist-form input[type="email"]:focus {
  outline: 3px solid rgba(255, 255, 255, 0.6);
}

.form-button {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.form-button:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.form-status {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  min-height: 1.5em;
}

.form-status.is-error {
  color: #ffe1d9;
}

.form-note {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.form-note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  padding-bottom: 72px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 14.5px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 20px;
  color: var(--coral);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq p {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.faq-cta {
  display: grid;
  place-items: center;
  margin-top: 32px;
}

/* ==========================================================================
   About (SEO向けの静かな紹介文)
   ========================================================================== */

.about-app {
  padding-top: 0;
  padding-bottom: 64px;
}

.about-app h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.about-app p {
  margin: 0 auto 10px;
  max-width: 38em;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  font-weight: 500;
}

/* ==========================================================================
   Footer — 湾曲遷移
   ========================================================================== */

.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

.footer-curve {
  height: 30px;
  background: var(--paper);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.footer-inner {
  display: grid;
  gap: 12px;
  place-items: center;
  text-align: center;
  padding: 40px 20px 46px;
}

.footer-brand .brand-name {
  color: var(--paper);
}

.footer-tagline {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.footer-x {
  font-size: 14px;
  font-weight: 900;
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  margin: 4px 0 0;
  font-size: 12px;
}

.footer-legal a {
  color: rgba(255, 250, 246, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 250, 246, 0.5);
}

/* ==========================================================================
   Sticky CTA (モバイル)
   ========================================================================== */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.sticky-cta[hidden] {
  display: block;
  transform: translateY(110%);
  pointer-events: none;
}

.sticky-cta .button {
  width: 100%;
  min-height: 50px;
}

@media (min-width: 760px) {
  .sticky-cta {
    display: none;
  }
}

/* ==========================================================================
   Reveal animations (控えめに)
   ========================================================================== */

.reveal-load {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 100ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-load,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  .eyebrow-dot {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
