/* ============================================================
   千年聖路 熊野古道・聖域巡禮 — Design v2
   コンセプト：「御朱印帳」巡礼スタンプ帳モチーフ
   ============================================================ */

:root {
  --paper: #f2e9d6;
  --paper-deep: #ead9b4;
  --paper-card: #faf3e3;
  --ink: #2a231c;
  --ink-soft: #5b5044;
  --navy: #004c77;
  --navy-deep: #00304d;
  --vermillion: #ad3223;
  --vermillion-bright: #c8452c;
  --vermillion-deep: #7c1f16;
  --gold: #a9793a;
  --gold-soft: #c9a35f;
  --line: #d8c69a;
  --shadow: 0 12px 30px rgba(42, 30, 12, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Noto Serif TC", "Shippori Mincho", "Songti TC", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  padding-bottom: 96px;
  position: relative;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* subtle washi paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(169,121,58,0.05) 1px, transparent 1px),
    radial-gradient(rgba(42,35,28,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 2px 2px;
}

.mincho { font-family: "Shippori Mincho", "Noto Serif TC", serif; }
.eng { font-family: "Cormorant Garamond", serif; letter-spacing: 0.14em; }

/* ============ vertical text utility ============ */
.vtext {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.32em;
}

/* ============ scallop / perforated edge (goshuin ticket look) ============ */
.perforate-bottom {
  position: relative;
}
.perforate-bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 14px;
  background-image: radial-gradient(circle at 10px 0, transparent 9px, var(--paper) 9.5px);
  background-size: 20px 14px;
  background-repeat: repeat-x;
  z-index: 3;
}
.perforate-top {
  position: relative;
}
.perforate-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 14px;
  background-image: radial-gradient(circle at 10px 14px, transparent 9px, var(--paper) 9.5px);
  background-size: 20px 14px;
  background-repeat: repeat-x;
  z-index: 3;
}

/* ============ Fixed header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 14px 16px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header .logo-badge {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: background 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}
.site-header .logo-badge img {
  width: 84%; height: 84%; object-fit: contain;
}
.site-header .logo-badge:active { transform: scale(0.93); }
.site-header.scrolled .logo-badge {
  background: rgba(255,255,255,0.9);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,20,30,0.55) 0%, rgba(0,20,30,0.15) 30%, rgba(0,20,30,0.25) 60%, rgba(15,10,5,0.92) 100%);
}
.hero__vertical {
  position: absolute;
  top: 90px; right: 20px;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero__seal {
  position: absolute;
  top: 96px; left: 24px;
  width: 74px; height: 74px;
  border: 2.5px solid var(--vermillion-bright);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: var(--vermillion-bright);
  background: rgba(20,14,8,0.28);
  z-index: 2;
  transform: rotate(-8deg);
}
.hero__seal strong { font-size: 19px; font-family: "Shippori Mincho", serif; line-height: 1; }
.hero__seal span { font-size: 6.5px; letter-spacing: 0.02em; margin-top: 3px; }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 24px 108px;
  color: #fff;
}
.hero__title-sub {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--gold-soft);
  margin-bottom: 10px;
}
.hero__title {
  font-family: "Shippori Mincho", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.hero__title small {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: var(--gold-soft);
  margin-top: 6px;
}
.hero__en {
  font-size: 13px;
  margin-top: 14px;
  color: rgba(255,255,255,0.75);
}
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.hero__tag {
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  background: rgba(0,0,0,0.18);
}
.hero__tag strong { color: var(--gold-soft); }

/* torn-paper transition at hero bottom */
.hero__edge {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 20px;
  z-index: 3;
  background-image: radial-gradient(circle at 12px 20px, var(--paper) 11px, transparent 11.5px);
  background-size: 24px 20px;
  background-repeat: repeat-x;
}

/* ============ Section shell ============ */
.section {
  padding: 68px 22px;
  position: relative;
  z-index: 2;
}
.section--paper { background: var(--paper); }
.section--deep { background: var(--paper-deep); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }

.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--vermillion);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold-soft);
}
.section--navy .eyebrow { color: var(--gold-soft); }
.section--navy .eyebrow::before, .section--navy .eyebrow::after { background: rgba(255,255,255,0.35); }

.section-title {
  font-family: "Shippori Mincho", serif;
  font-size: 27px;
  text-align: center;
  margin: 14px 0 10px;
  letter-spacing: 0.04em;
}
.section-title .accent { color: var(--vermillion); }
.section--navy .section-title .accent { color: var(--gold-soft); }
.section-lead {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.section--navy .section-lead { color: rgba(255,255,255,0.78); }

/* ============ Intro ============ */
.intro { text-align: center; }
.intro__quote {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin: 0 auto 26px;
  height: 190px;
  font-family: "Shippori Mincho", serif;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0.5em;
  border-right: 1px solid var(--line);
  padding-right: 14px;
  width: fit-content;
}
.intro .brush {
  width: 120px; height: 18px;
  margin: 20px auto 26px;
  opacity: 0.8;
}
.intro__lead {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
  max-width: 320px;
  margin: 18px auto 0;
}

/* ============ Stamp collection strip (9 goshuin) ============ */
.stampstrip {
  margin-top: 30px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 16px 16px;
  box-shadow: var(--shadow);
}
.stampstrip__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.stampstrip__head h4 { font-family: "Shippori Mincho", serif; font-size: 15px; color: var(--navy); }
.stampstrip__head span { font-size: 11px; color: var(--ink-soft); }
.stampstrip__row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
}
.stampstrip__dot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--vermillion);
  color: var(--vermillion);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-family: "Shippori Mincho", serif;
  background: rgba(173,50,35,0.06);
}

/* ============ Dual pilgrim badge ============ */
.dual { text-align: center; }
.dual__badge {
  width: 128px; margin: 22px auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.dual__desc { font-size: 13.5px; color: rgba(255,255,255,0.85); max-width: 300px; margin: 0 auto; }

/* ============ Feature stamps grid ============ */
.stamps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}
.stamp-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 12px 16px;
  text-align: center;
  position: relative;
}
.stamp-card__hanko {
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--vermillion-bright), var(--vermillion-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.stamp-card__hanko img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
.stamp-card__num {
  position: absolute; top: 10px; left: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 11px; color: var(--gold);
}
.stamp-card h5 { font-family: "Shippori Mincho", serif; font-size: 14.5px; color: var(--navy); margin-bottom: 6px; line-height: 1.5; }
.stamp-card p { font-size: 11.5px; color: var(--ink-soft); line-height: 1.65; }

/* ============ Map ============ */
.map-frame {
  margin-top: 24px;
  border: 1px solid var(--gold-soft);
  outline: 1px solid var(--paper);
  outline-offset: -6px;
  padding: 8px;
  background: var(--paper-card);
  box-shadow: var(--shadow);
}
.map-frame img { width: 100%; }
.map-caption {
  text-align: center; margin-top: 12px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--gold);
  font-family: "Cormorant Garamond", serif;
}

/* ============ Itinerary — goshuin-cho spread ============ */
.itinerary { background: var(--paper); }
.day {
  margin-top: 38px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.day::before {
  content: "";
  position: absolute; top: -14px; left: 20px; right: 20px;
  border-top: 1px dashed var(--gold-soft);
}
.day__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 0;
}
.day__hanko {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--vermillion-bright), var(--vermillion-deep));
  color: #fff; font-family: "Shippori Mincho", serif; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
}
.day__headtext { flex: 1; }
.day__date { font-size: 11px; letter-spacing: 0.1em; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.day__title { font-family: "Shippori Mincho", serif; font-size: 16px; color: var(--navy); line-height: 1.5; margin-top: 2px; }

.day__photo { margin: 14px 0; position: relative; }
.day__photo img { width: 100%; height: 200px; object-fit: cover; }
.day__photo-frame {
  position: absolute; inset: 8px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
}

.day__route {
  font-size: 12px; color: var(--ink-soft);
  padding: 0 16px 10px;
  border-bottom: 1px dotted var(--line);
  margin: 0 16px 14px;
}
.day__route .arr { color: var(--vermillion); padding: 0 3px; }

.day__spots { padding: 0 16px; }
.day__spots li {
  display: flex; gap: 10px;
  font-size: 13px; padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}
.day__spots li:last-child { border-bottom: none; }
.day__spots .time { color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 13px; flex-shrink: 0; width: 44px; }
.day__spots strong { color: var(--navy); }
.day__spots .stamp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--vermillion); color: var(--vermillion);
  font-size: 9px; margin-left: 6px; flex-shrink: 0;
}

.day__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 16px; margin-top: 12px; }
.day__gallery img { height: 92px; object-fit: cover; }

.day__foot {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 14px 16px; margin-top: 12px;
  background: var(--paper-deep);
  font-size: 11.5px;
}
.day__foot dt { color: var(--gold); font-size: 10px; letter-spacing: 0.1em; }
.day__foot dd { color: var(--ink); margin-top: 2px; }

.day__note {
  font-size: 11.5px; color: var(--vermillion-deep);
  padding: 12px 16px 18px;
  line-height: 1.8;
}

.pilgrimage-end {
  text-align: center; margin-top: 40px;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.3em; font-size: 12px; color: var(--gold);
}

/* ============ Lodging filmstrip ============ */
.filmstrip {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 26px 22px 10px;
  margin: 0 -22px;
  -webkit-overflow-scrolling: touch;
}
.filmstrip::-webkit-scrollbar { display: none; }
.film-card {
  flex: 0 0 76%;
  scroll-snap-align: start;
  background: var(--paper-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.film-card img { width: 100%; height: 170px; object-fit: cover; }
.film-card__body { padding: 12px 14px 16px; }
.film-card__tag { font-size: 10px; color: var(--vermillion); letter-spacing: 0.1em; }
.film-card h5 { font-family: "Shippori Mincho", serif; color: var(--navy); font-size: 15px; margin: 4px 0; }
.film-card p { font-size: 11.5px; color: var(--ink-soft); }
.filmstrip-hint { text-align: center; font-size: 10.5px; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.1em; }

/* ============ Guide ============ */
.guide-card {
  margin-top: 26px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  display: flex; gap: 18px;
}
.guide-card__mark {
  writing-mode: vertical-rl;
  flex-shrink: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 17px;
  color: var(--navy);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  letter-spacing: 0.2em;
}
.guide-card__mark small { font-size: 10px; color: var(--gold); letter-spacing: 0.15em; }
.guide-card__body p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; margin-bottom: 12px; }
.guide-card__body li { font-size: 12px; padding: 5px 0 5px 16px; position: relative; color: var(--ink); }
.guide-card__body li::before { content: "・"; position: absolute; left: 0; color: var(--vermillion); }

/* ============ Price — kakejiku scroll ============ */
.scroll-box {
  margin-top: 28px;
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
}
.scroll-box__rod {
  height: 14px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  position: relative;
}
.scroll-box__rod::before, .scroll-box__rod::after {
  content: "";
  position: absolute; top: -3px; width: 14px; height: 20px;
  border-radius: 40%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
.scroll-box__rod::before { left: -7px; }
.scroll-box__rod::after { right: -7px; }
.scroll-box__inner { padding: 26px 20px; }

.price-limit { text-align: center; font-size: 11px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 18px; }
.price-rows { display: flex; gap: 10px; }
.price-row { flex: 1; text-align: center; border: 1px solid var(--line); padding: 14px 8px; }
.price-row .label { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.1em; }
.price-row .amount { font-family: "Shippori Mincho", serif; font-size: 22px; color: var(--navy); margin: 4px 0; }
.price-row.discount { border-color: var(--vermillion); background: rgba(173,50,35,0.05); }
.price-row.discount .amount { color: var(--vermillion); }
.price-row .note { font-size: 10px; color: var(--ink-soft); }

.price-sub { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 16px 0; line-height: 1.9; }
.price-sub strong { color: var(--navy); }

.price-block { margin-top: 20px; }
.price-block h6 {
  font-size: 11px; letter-spacing: 0.2em; color: var(--vermillion);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.price-block h6::before { content: "印"; font-family: "Shippori Mincho", serif; font-size: 13px; color: var(--vermillion); border: 1px solid var(--vermillion); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.price-block li { font-size: 12px; padding: 5px 0 5px 14px; position: relative; color: var(--ink); line-height: 1.7; }
.price-block li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.price-block li a { color: var(--navy); text-decoration: underline; }

.flight-box {
  margin-top: 14px; background: var(--paper-deep); padding: 14px; border: 1px dashed var(--gold-soft);
}
.flight-box__tag { font-size: 10px; background: var(--vermillion); color: #fff; padding: 2px 8px; border-radius: 2px; }
.flight-box__title { font-size: 12px; color: var(--navy); margin: 8px 0 10px; }
.flight-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; padding: 6px 0; }
.flight-row + .flight-row { border-top: 1px dotted var(--line); }
.flight-row .city { text-align: center; }
.flight-row .city .t { font-family: "Cormorant Garamond", serif; font-size: 15px; color: var(--navy); }
.flight-row .arrow { color: var(--gold); font-size: 14px; }

/* ============ Steps ============ */
.steps-list { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.step-row { display: flex; gap: 16px; align-items: flex-start; }
.step-hanko {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--vermillion); color: var(--vermillion);
  display: flex; align-items: center; justify-content: center;
  font-family: "Shippori Mincho", serif; font-size: 17px;
}
.step-body h5 { font-family: "Shippori Mincho", serif; color: var(--navy); font-size: 14.5px; margin-bottom: 6px; }
.step-body p { font-size: 12px; color: var(--ink-soft); line-height: 1.8; }
.step-body strong { color: var(--vermillion-deep); }
.line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 9px 16px;
  border: 1px solid var(--navy); color: var(--navy);
  font-size: 12px; border-radius: 3px;
}

/* ============ Notes ============ */
.notes-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.notes-list li {
  background: var(--paper-card);
  border-left: 3px solid var(--vermillion);
  padding: 12px 14px;
  font-size: 12px; line-height: 1.85; color: var(--ink);
  box-shadow: 0 3px 10px rgba(42,30,12,0.06);
}
.notes-list strong { color: var(--vermillion-deep); }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 48px 24px 40px;
}
.site-footer .mark { width: 64px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; }
.site-footer h6 { font-family: "Shippori Mincho", serif; font-size: 17px; color: #fff; }
.site-footer .en { font-size: 11px; letter-spacing: 0.2em; color: var(--gold-soft); margin: 4px 0 16px; }
.site-footer p { font-size: 11.5px; line-height: 1.9; color: rgba(255,255,255,0.65); }
.site-footer .meta { margin-top: 18px; font-size: 11px; color: rgba(255,255,255,0.5); }
.site-footer .meta a { color: var(--gold-soft); }

/* ============ Fixed CTA ============ */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, rgba(242,233,214,0) 0%, rgba(242,233,214,0.96) 25%, var(--paper) 100%);
  backdrop-filter: blur(6px);
}
.cta-bar__info {
  display: flex; justify-content: space-between; font-size: 10.5px;
  color: var(--navy); margin-bottom: 8px; padding: 0 4px;
}
.cta-bar__info em { color: var(--vermillion); font-style: normal; }
.cta-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--vermillion-bright), var(--vermillion-deep));
  color: #fff;
  padding: 15px;
  font-size: 16px; letter-spacing: 0.15em;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 20px rgba(124,31,22,0.4);
  position: relative;
}
.cta-bar__btn .hanko-mini {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-family: "Shippori Mincho", serif;
}

/* ============ fade-in ============ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ desktop frame (mimic phone viewport on larger screens) ============ */
@media (min-width: 640px) {
  body { max-width: 480px; margin: 0 auto; box-shadow: 0 0 70px rgba(0,0,0,0.3); }
  .site-header, .cta-bar { max-width: 480px; left: 50%; transform: translateX(-50%); right: auto; }
}

.day__gallery img, .film-card img, .day__photo img { background: var(--paper-deep); }
