/* Izu Peninsula Companion — custom stylesheet
   Identity: Japanese indigo (ai) + vermilion (beni) on warm washi cream,
   Shippori Mincho display serif + Zen Kaku Gothic New body. Coastal onsen mood.
   Content is ALWAYS visible with CSS alone — no JS-gated visibility. */

:root {
  --ai-950: #10233b;
  --ai-900: #16304f;
  --ai-800: #1f3a5f;
  --ai-700: #274a74;
  --ai-600: #325f8f;
  --sea:    #2f7a9e;   /* nod to the original teal-blue #006CA8 */
  --sea-soft:#9fc0cf;
  --beni:   #c8503c;   /* vermilion accent */
  --beni-dark:#a83c2b;
  --beni-soft:#e08b78;
  --washi:  #f7f2e7;
  --washi-2:#fbf8f0;
  --card:   #ffffff;
  --sumi:   #23201b;   /* ink text */
  --sumi-soft:#5a544a;
  --line:   #e6ddca;
  --line-2: #ded3bb;
  --shadow: 0 14px 40px rgba(16, 35, 59, 0.12);
  --shadow-sm: 0 5px 18px rgba(16, 35, 59, 0.09);
  --maxw: 1140px;
  --read: 730px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--beni-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ai-700); }

h1, h2, h3, h4 {
  font-family: "Shippori Mincho", Georgia, "Times New Roman", serif;
  color: var(--ai-800);
  line-height: 1.24;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

/* AOS safeguard (no data-aos is used, but belt-and-suspenders per playbook) */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: calc(var(--read) + 44px); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--beni); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ai-900);
  border-bottom: 3px solid var(--beni);
  box-shadow: 0 2px 14px rgba(16,35,59,.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--washi); text-decoration: none; }
.brand:hover { color: #fff; }
.brand-text {
  font-family: "Shippori Mincho", Georgia, serif; font-weight: 600; font-size: 1.2rem; letter-spacing: .3px; line-height: 1.1;
}
.brand-text small {
  display: block; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500;
  font-size: .56rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--sea-soft); margin-top: 3px;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 34%, var(--beni) 0 30%, transparent 31%),
    linear-gradient(var(--ai-700), var(--ai-800));
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.14);
}
.brand .mark::after {
  content: ""; position: absolute; left: -6px; right: -6px; bottom: 5px; height: 12px;
  background:
    radial-gradient(circle at 6px 12px, transparent 5px, var(--washi) 5px 6px, transparent 6px) repeat-x;
  background-size: 12px 12px; opacity: .9;
}

.nav-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--washi); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 7px; display: block; letter-spacing: .2px;
}
.nav-menu a:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-menu a.active { color: #fff; background: rgba(200,80,60,.30); box-shadow: inset 0 -2px 0 var(--beni); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.35);
  color: var(--washi); font-size: 1.3rem; line-height: 1; padding: 6px 11px; border-radius: 8px; cursor: pointer;
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 74vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ai-900); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,35,59,.20) 0%, rgba(16,35,59,.30) 42%, rgba(16,35,59,.86) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 56px 22px 64px; max-width: 860px; }
.hero .eyebrow { color: var(--beni-soft); }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); margin: .1em 0 .35em; line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero .lede { font-size: 1.24rem; max-width: 40ch; color: #f3ede0; margin: 0 0 1.6em; line-height: 1.6; }

.eyebrow {
  font-family: "Zen Kaku Gothic New", sans-serif; text-transform: uppercase; letter-spacing: 3px;
  font-size: .72rem; font-weight: 700; color: var(--beni-dark); margin: 0 0 .2em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 10px;
  font-size: .98rem; letter-spacing: .3px; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--beni); color: #fff; box-shadow: 0 8px 22px rgba(200,80,60,.34); }
.btn-primary:hover { background: var(--beni-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--washi-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 1.9rem; text-align: center; margin-bottom: 1.2em; position: relative; }
.section-title::after {
  content: ""; display: block; width: 58px; height: 3px; background: var(--beni); margin: .5rem auto 0; border-radius: 2px;
}

/* ---------- Page head (inner pages) ---------- */
.page-head {
  background: linear-gradient(160deg, var(--ai-900), var(--ai-800) 60%, var(--sea));
  color: #fff; padding: 62px 0 52px; border-bottom: 3px solid var(--beni);
}
.page-head .eyebrow { color: var(--beni-soft); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); margin: .15em 0 .3em; }
.page-sub { color: #e7ddcb; font-size: 1.12rem; max-width: 62ch; margin: 0; line-height: 1.6; }

/* ---------- Article ---------- */
.lead-figure { margin: 0 0 34px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.lead-figure img { width: 100%; }

.article-body { max-width: var(--read); margin: 0 auto; }
.article-body > h2 {
  font-size: 1.66rem; margin-top: 1.7em; padding-top: .2em; position: relative;
}
.article-body > h2::before {
  content: ""; display: inline-block; width: 26px; height: 3px; background: var(--beni);
  vertical-align: middle; margin-right: 12px; border-radius: 2px;
}
.article-body h3 { font-size: 1.28rem; margin-top: 1.5em; color: var(--ai-700); }
.article-body p { margin: 0 0 1.15em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body strong { color: var(--ai-900); font-weight: 700; }
.article-body em { color: var(--sumi-soft); }
.article-body a { font-weight: 500; }

/* ---------- Home intro + cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px; text-decoration: none; color: var(--sumi);
  box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease;
  border-top: 4px solid var(--sea);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--beni); color: var(--sumi); }
.card h3 { font-size: 1.3rem; margin-bottom: .35em; }
.card p { margin: 0 0 1em; color: var(--sumi-soft); font-size: .98rem; line-height: 1.6; }
.card-go { margin-top: auto; color: var(--beni-dark); font-weight: 700; font-size: .92rem; letter-spacing: .3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ai-950); color: #cdd5e0; margin-top: 20px; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; padding: 56px 22px 34px;
}
.foot-brand .brand-text { font-family: "Shippori Mincho", serif; font-size: 1.35rem; color: #fff; display: block; margin-bottom: .5em; }
.foot-tag { color: #9fb0c4; font-size: .9rem; line-height: 1.65; max-width: 34ch; }
.foot-col h3 { color: var(--sea-soft); font-family: "Zen Kaku Gothic New", sans-serif; font-size: .74rem;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .55em; }
.foot-col a { color: #cdd5e0; text-decoration: none; font-size: .93rem; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 22px 30px; }
.foot-legal p { margin: 0; color: #8494a8; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--ai-900);
    flex-direction: column; gap: 0; padding: 8px 14px 16px; border-bottom: 3px solid var(--beni);
    display: none; box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 10px; border-radius: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero { min-height: 68vh; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero .lede { font-size: 1.1rem; }
}

/* Content-visible entrance: ends in visible state, safe if JS/anim never runs */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner { animation: rise .7s ease both; }
  .card { animation: rise .5s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
