/* THE TIDE — shared styles */
:root {
  --navy: #0e3a5a;
  --navy-deep: #0b2233;
  --teal: #1f6f6a;
  --coral: #e2735a;
  --sand: #c7a06a;
  --gold: #d8b46a;
  --sky: #a9c9d6;
  --sage: #93a693;
  --bg: #f8f6f1;
  --paper: #fbf8f0;
  --card: #ffffff;
  --ink: #1d2a33;
  --muted: #5d6b74;
  --line: #e4e0d6;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --display: "Playfair Display", "Noto Serif JP", serif;
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.95; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, box-shadow .3s; }
.site-header.is-solid, .site-header.is-light { background: rgba(11,34,51,.94); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .wrap { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--display); color: #fff; letter-spacing: .22em; font-size: 18px; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255,255,255,.82); font-size: 13px; letter-spacing: .1em; text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--coral); }
.nav .nav-cta { border: 1px solid rgba(255,255,255,.6); padding: 6px 16px; border-radius: 999px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: #fff; color: var(--navy-deep); border-color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--navy-deep) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,34,51,.92) 0%, rgba(11,34,51,.55) 55%, rgba(11,34,51,.1) 100%); }
.hero > .wrap { position: relative; padding-block: 140px 96px; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .24em; color: #fff; border: 1px solid rgba(255,255,255,.5); padding: 6px 16px; border-radius: 999px; margin: 0 0 28px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(52px, 10vw, 120px); letter-spacing: .12em; line-height: 1.05; margin: 0 0 14px; }
.hero .place { font-size: 13px; letter-spacing: .16em; color: rgba(255,255,255,.75); margin: 0 0 40px; }
.hero .catch { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 36px); margin: 0 0 18px; letter-spacing: .06em; line-height: 1.6; }
.hero .lead { margin: 0; color: rgba(255,255,255,.88); font-size: 15px; line-height: 2.2; max-width: 620px; }
.hero .rule { width: 80px; height: 2px; background: var(--coral); margin: 32px 0; border: 0; }
.scroll-cue { position: absolute; right: 32px; bottom: 32px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(rgba(255,255,255,.8), transparent); }

/* Sub page hero */
.page-hero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; color: #fff; background: var(--navy-deep) center/cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,34,51,.35) 0%, rgba(11,34,51,.85) 100%); }
.page-hero > .wrap { position: relative; padding-block: 140px 64px; }
.page-hero .en { font-family: var(--display); letter-spacing: .3em; font-size: 13px; color: var(--sky); margin: 0 0 12px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 52px); margin: 0 0 12px; line-height: 1.4; letter-spacing: .05em; word-break: auto-phrase; }
.page-hero p.sub { margin: 0; color: rgba(255,255,255,.85); max-width: 640px; }

/* ---------- Sections ---------- */
section { padding-block: clamp(72px, 10vw, 128px); }
.sec-white { background: var(--card); }
.sec-sand { background: #efe9de; }
.sec-mist { background: #eef2f3; }
.sec-navy { background: var(--navy); color: #e6edf1; }
.label { display: inline-flex; gap: 12px; align-items: center; font-size: 12px; letter-spacing: .25em; color: var(--teal); margin: 0 0 16px; font-weight: 500; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-navy .label { color: var(--sky); }
h2 { word-break: auto-phrase; text-wrap: balance; font-family: var(--serif); color: var(--navy); font-size: clamp(24px, 3.4vw, 38px); line-height: 1.55; margin: 0 0 24px; letter-spacing: .04em; border-left: 4px solid var(--teal); padding-left: 18px; }
.sec-navy h2 { color: #fff; border-left-color: var(--coral); }
h2.center { border: 0; padding: 0; text-align: center; }
.intro { color: var(--muted); max-width: 720px; margin: 0 0 48px; }
.sec-navy .intro { color: rgba(230,237,241,.8); }
.statement { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); line-height: 2.1; color: var(--navy); text-align: center; margin: 0; word-break: auto-phrase; }
.statement em { font-style: normal; color: var(--coral); }
.note { font-size: 12px; color: var(--muted); margin-top: 20px; }
.sec-navy .note { color: rgba(230,237,241,.65); }

/* Buttons / links */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; text-decoration: none; font-size: 14px; letter-spacing: .08em; border: 1px solid var(--navy); color: var(--navy); transition: background .2s, color .2s; }
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn:hover::after { transform: translateX(4px); }
.btn.light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.light:hover { background: #fff; color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split .text p { margin: 0 0 1.2em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: 28px 24px; }
.card.coral { border-top-color: var(--coral); }
.card.gold { border-top-color: var(--gold); }
.card .num { font-family: var(--display); font-size: 32px; color: var(--teal); line-height: 1; margin: 0 0 14px; }
.card.coral .num { color: var(--coral); }
.card.gold .num { color: var(--sand); }
.card h3 { font-size: 16px; color: var(--navy); margin: 0 0 12px; line-height: 1.6; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Link cards (top page) */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card { position: relative; display: block; color: #fff; text-decoration: none; overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy-deep); }
.link-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.link-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,34,51,0) 35%, rgba(11,34,51,.88) 100%); }
.link-card:hover img { transform: scale(1.05); }
.link-card .body { position: absolute; z-index: 2; inset: auto 0 0; padding: 28px; }
.link-card .en { font-family: var(--display); letter-spacing: .25em; font-size: 12px; color: var(--sky); }
.link-card h3 { font-family: var(--serif); font-size: 22px; margin: 6px 0 8px; }
.link-card p { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.8; }

/* Points list */
.points { display: grid; gap: 16px; }
.point { display: grid; grid-template-columns: 56px 1fr; gap: 8px; background: var(--bg); padding: 24px; border-left: 4px solid var(--navy); }
.sec-white .point { background: var(--bg); }
.point:nth-child(2) { border-left-color: var(--sand); }
.point:nth-child(3) { border-left-color: var(--sky); }
.point .n { font-family: var(--display); font-size: 26px; color: #b9c2c8; line-height: 1.2; }
.point h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.point p { margin: 0; font-size: 14px; color: var(--muted); }

/* Moon phases */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); }
.phase { padding: 28px 24px; color: #fff; }
.phase:nth-child(1) { background: #152a40; }
.phase:nth-child(2) { background: #a9c3cf; color: var(--navy-deep); }
.phase:nth-child(3) { background: #ddb977; color: var(--navy-deep); }
.phase:nth-child(4) { background: #93a693; color: var(--navy-deep); }
.phase .day { font-size: 11px; letter-spacing: .2em; opacity: .75; }
.phase h3 { font-family: var(--serif); font-size: 20px; margin: 4px 0 10px; }
.phase p { margin: 0; font-size: 14px; line-height: 1.85; }
.moon { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -2px; margin-right: 8px; border: 1.5px solid currentColor; }
.moon.new { background: transparent; }
.moon.full { background: currentColor; }
.moon.first { background: linear-gradient(90deg, transparent 50%, currentColor 50%); }
.moon.last { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* Tide wave */
.tide-wave { width: 100%; height: auto; display: block; }
.tide-legend { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.big-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.figure-box { background: var(--card); border: 1px solid var(--line); padding: 32px; text-align: center; }
.figure-box .v { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); color: var(--navy); line-height: 1.1; }
.figure-box .v small { font-family: var(--serif); font-size: .4em; margin-left: 4px; }
.figure-box p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Rules list */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--display); color: var(--teal); }
.rules.coral li::before { color: var(--coral); }
.rules strong { color: var(--navy); margin-right: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.two-col h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery figure { margin: 0; grid-column: span 3; }
.gallery figure.sm { grid-column: span 2; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 9em; color: var(--navy); font-weight: 700; white-space: nowrap; }
.spec td { color: var(--muted); }

/* Letter */
.letter { background: var(--paper); max-width: 820px; margin-inline: auto; padding: clamp(32px, 6vw, 64px);
  box-shadow: 0 8px 30px rgba(60,45,20,.08); font-family: var(--serif); color: #2b3a55; font-size: clamp(15px, 1.8vw, 17px); line-height: 2.3;
  background-image: repeating-linear-gradient(transparent 0 calc(2.3em - 1px), rgba(199,160,106,.55) calc(2.3em - 1px) 2.3em); background-position: 0 1.6em; }
.letter p { margin: 0 0 2.3em; }
.letter .sign { text-align: right; margin: 0; }
.letter .sign small { display: block; font-size: 14px; }
.letter .sign strong { font-size: 24px; letter-spacing: .1em; }

/* Activities */
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.act { background: var(--card); padding: 20px 22px; border: 1px solid var(--line); }
.act .name { font-family: var(--display); letter-spacing: .12em; color: var(--navy); font-size: 17px; }
.act .season { display: inline-block; font-size: 11px; color: var(--sand); font-weight: 700; margin-left: 8px; letter-spacing: .05em; }
.act p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.sub-h { font-size: 15px; color: var(--navy); margin: 48px 0 14px; font-weight: 700; }
.sub-h.first { margin-top: 0; }

/* Flow (guest → islanders → villa) */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; margin-bottom: 48px; }
.flow .box { background: var(--card); border: 1px solid var(--line); padding: 20px 22px; }
.flow .box b { display: block; color: var(--navy); margin-bottom: 4px; }
.flow .box span { font-size: 14px; color: var(--muted); }
.flow .arrow { align-self: center; color: var(--teal); font-size: 20px; }

/* Roadmap / timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), var(--sky)); }
.timeline li { position: relative; padding: 0 0 40px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--teal); }
.timeline li.now::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 6px rgba(226,115,90,.2); }
.timeline li.goal::before { background: var(--gold); border-color: var(--gold); }
.sec-white .timeline li::before { background: var(--card); }
.sec-white .timeline li.now::before { background: var(--coral); }
.sec-white .timeline li.goal::before { background: var(--gold); }
.timeline .when { font-family: var(--display); letter-spacing: .12em; font-size: 14px; color: var(--teal); }
.timeline .tag { display: inline-block; font-size: 11px; background: var(--coral); color: #fff; padding: 1px 10px; border-radius: 999px; margin-left: 10px; letter-spacing: .1em; vertical-align: 2px; }
.timeline h3 { font-family: var(--serif); color: var(--navy); font-size: 20px; margin: 4px 0 6px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* Coming soon block */
.coming { text-align: center; }
.coming .big { font-family: var(--display); font-size: clamp(44px, 8vw, 96px); letter-spacing: .14em; color: #fff; line-height: 1.1; margin: 0 0 16px; }
.coming .date { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 24px); color: var(--gold); margin: 0 0 24px; }
.coming p { color: rgba(230,237,241,.85); margin: 0 auto; max-width: 640px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; text-align: left; }
.status { border: 1px solid rgba(255,255,255,.2); padding: 24px; }
.status .k { font-size: 12px; letter-spacing: .2em; color: var(--sky); }
.status h3 { font-family: var(--serif); color: #fff; font-size: 18px; margin: 6px 0 8px; }
.status p { margin: 0; font-size: 14px; color: rgba(230,237,241,.8); max-width: none; }
.status .pill { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); margin-top: 12px; letter-spacing: .1em; }

/* Footer */
footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding-block: 64px 40px; font-size: 13px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
footer .logo { display: inline-block; margin-bottom: 12px; font-size: 22px; }
footer p { margin: 0 0 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { text-decoration: none; color: rgba(255,255,255,.8); }
footer nav a:hover { color: #fff; }
footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 12px; color: rgba(255,255,255,.5); }

/* Reveal on scroll (enhancement only; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: 1fr; }
  .link-card { aspect-ratio: 16 / 9; }
  .split, .two-col { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: rgba(11,34,51,.98); padding: 8px 16px 24px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-radius: 999px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .hero::before { background: linear-gradient(180deg, rgba(11,34,51,.55), rgba(11,34,51,.9)); }
  .hero .lead br { display: none; }
  .scroll-cue { display: none; }
  .cards, .cards.three, .phases, .big-figures { grid-template-columns: 1fr; }
  .gallery figure, .gallery figure.sm { grid-column: span 6; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
  .spec th { width: auto; white-space: normal; }
  .letter { background-image: none; line-height: 2; }
  .letter p { margin-bottom: 1.5em; }
  .letter p:not(.sign) br { display: none; }
}
