/* ============================================================
   Friendly Civic — Design System for P・SPO CHITACOH
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700;900&family=Manrope:ital,wght@0,400;0,500;0,700;1,400;1,500&display=swap');

:root {
  /* Brand palette */
  --brand-navy: #152340;
  --brand-coral: #E5654A;
  --brand-coral-soft: #FAD9CD;
  --brand-peach: #F5A878;
  --brand-sand: #FCC890;
  --brand-sand-soft: #FEF3E2;
  --brand-mint: #7BC4B5;
  --brand-mint-pale: #C8E5DD;
  --brand-mint-soft: #E8F2EE;

  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #2A2F40;
  --text-muted: #6B7280;
  --text-soft: #8B92A3;
  --hairline: rgba(21,35,64,0.08);

  --gradient-soft: linear-gradient(180deg, #E8F2EE 0%, #FEF3E2 50%, #FAD9CD 100%);
  --gradient-soft-h: linear-gradient(90deg, #E8F2EE 0%, #FEF3E2 50%, #FAD9CD 100%);
  --gradient-brand: linear-gradient(90deg, #7BC4B5 0%, #FCC890 50%, #E5654A 100%);

  --shadow-soft: 0 4px 24px rgba(15,23,38,0.06);
  --shadow-soft-lg: 0 10px 40px rgba(15,23,38,0.08);
  --shadow-coral: 0 6px 18px rgba(229,101,74,0.28);

  --radius-card: 16px;
  --radius-lg: 24px;
  --radius-chip: 6px;
  --radius-pill: 9999px;

  --font-heading: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --font-tag: "Manrope", "Helvetica Neue", sans-serif;

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

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

/* ----- typography helpers ----- */
.h-jp { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.01em; line-height: 1.45; color: var(--brand-navy); }
.h-jp-900 { font-family: var(--font-heading); font-weight: 900; letter-spacing: 0.005em; line-height: 1.4; color: var(--brand-navy); }
.h-en { font-family: var(--font-tag); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-coral); font-size: 12px; }
.h-en-italic { font-family: var(--font-tag); font-weight: 500; font-style: italic; letter-spacing: 0.04em; color: var(--brand-coral); }

.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }

/* ----- containers ----- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; }

.section { position: relative; padding: 120px 0; }
.section--sm { padding: 80px 0; }

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section--sm { padding: 56px 0; }
  .wrap { padding: 0 20px; }
}

/* ----- chip ----- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  background: #EEF1F4;
  color: var(--brand-navy);
  letter-spacing: 0.04em;
}
.chip--coral { background: var(--brand-coral); color: #fff; }
.chip--coral-soft { background: var(--brand-coral-soft); color: #B23E26; }
.chip--mint { background: var(--brand-mint-pale); color: #295F54; }
.chip--sand { background: var(--brand-sand-soft); color: #8B5E2A; }
.chip--new { background: var(--brand-coral); color: #fff; }
.chip--en { font-family: var(--font-tag); letter-spacing: 0.16em; }

/* ----- buttons ----- */
.btn {
  display: inline-block;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
  text-align: center;
}
.btn--primary { background: var(--brand-coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(229,101,74,0.36); }
.btn--ghost { background: #fff; color: var(--brand-coral); border-color: var(--brand-coral); }
.btn--ghost:hover { background: var(--brand-coral-soft); }
.btn--navy { background: var(--brand-navy); color: #fff; }
.btn--navy:hover { transform: translateY(-2px); }
.btn .arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ----- card ----- */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
.card--lg { border-radius: var(--radius-lg); padding: 36px; }

/* ----- watermark big text ----- */
.watermark {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--brand-mint-pale);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  z-index: 0;
  white-space: nowrap;
}
.watermark--sand { color: var(--brand-sand-soft); }
.watermark--coral { color: var(--brand-coral-soft); }

/* ----- section header (double stack) ----- */
.sechead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.sechead .en {
  font-family: var(--font-tag);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brand-coral);
}
.sechead .jp {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--brand-navy);
  line-height: 1.4;
}
.sechead .jp .accent { color: var(--brand-coral); }
.sechead .underline {
  width: 56px; height: 4px;
  border-radius: 4px;
  background: var(--gradient-brand);
  margin-top: 4px;
}
.sechead .sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  line-height: 1.9;
}

/* center variant */
.sechead--center { align-items: center; text-align: center; }

/* ----- ruby (furigana) ----- */
ruby rt {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.55em;
  color: var(--text-muted);
  letter-spacing: 0;
  line-height: 1;
  display: none; /* hidden by default; preserves base text width */
}
body.furigana-on ruby rt { display: revert; }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.nav__brand-divider {
  width: 1px;
  height: 28px;
  background: var(--hairline);
}
.nav__brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.nav__brand-text .name {
  font-family: var(--font-tag);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 16px;
  color: var(--brand-navy);
}
.nav__brand-text .sub {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.nav__menu { display: flex; gap: 6px; align-items: center; }
.nav__menu a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-navy);
}
.nav__menu a:hover { background: var(--brand-mint-soft); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.toggle-rb {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-mint);
  background: #fff;
  color: var(--brand-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s ease;
}
.toggle-rb.active { background: var(--brand-mint-pale); }
.toggle-rb .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-mint);
  margin-right: 8px;
  flex-shrink: 0;
}
.toggle-rb .label { margin-right: 8px; }
.toggle-rb.active .dot { background: var(--brand-coral); }

@media (max-width: 880px) {
  .nav__menu { display: none; }
}

/* ----- floating CTA ----- */
.float-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 60;
  width: 168px; height: 168px;
  border-radius: 50%;
  background: var(--brand-coral-soft);
  color: #B23E26;
  box-shadow: 0 14px 36px rgba(229,101,74,0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 18px;
  cursor: pointer;
  border: 3px solid #fff;
  transition: transform .25s ease;
  font-family: var(--font-heading);
}
.float-cta:hover { transform: scale(1.04) rotate(-2deg); }
.float-cta .lead {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-family: var(--font-tag);
  font-weight: 700;
  margin-bottom: 6px;
  color: #B23E26;
}
.float-cta .text {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}
.float-cta .arrow {
  margin-top: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-coral);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
@media (max-width: 760px) {
  .float-cta { width: 130px; height: 130px; bottom: 16px; right: 16px; padding: 12px; }
  .float-cta .text { font-size: 11px; }
}

/* ----- photo (Midjourney-generated imagery) ----- */
.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(15,23,38,0.10);
}
.photo--hero {
  aspect-ratio: 16 / 9;
  border-radius: 24px;
}
.photo--places {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
}
.photo--facility {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  margin: -4px -4px 4px;
  width: calc(100% + 8px);
  max-width: none;
}
.photo--parents {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

/* ----- divider waves ----- */
.wave { display: block; width: 100%; height: 70px; }

/* ----- grid helpers ----- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 28px; }
}

/* ----- scroll-margin so anchor jumps clear sticky nav ----- */
section[id] { scroll-margin-top: 84px; }

/* ============================================================
   Responsive — comprehensive tablet/mobile polish
   ============================================================ */

/* tablet (≤1024px) */
@media (max-width: 1024px) {
  .wrap { padding: 0 24px; }
  .section { padding: 96px 0; }
}

/* phablet (≤880px) */
@media (max-width: 880px) {
  /* nav: hide menu items, keep only brand + main CTA */
  .nav__menu { display: none; }
  .nav__brand-text .name { font-size: 14px; }
  .nav__brand-text .sub { font-size: 10px; margin-top: 2px; }
  .nav__brand-logo { height: 32px !important; }
  .nav__actions .btn { padding: 10px 14px !important; font-size: 12px !important; }

  /* sechead */
  .sechead { margin-bottom: 36px; }
  .sechead .jp { font-size: clamp(24px, 6vw, 36px); }
  .sechead .sub { font-size: 14px; }

  /* watermark scaling */
  .watermark { font-size: clamp(64px, 18vw, 140px) !important; }

  /* section padding */
  .section { padding: 72px 0; }

  /* card */
  .card { padding: 22px; }
  .card--lg { padding: 24px; border-radius: 16px; }

  /* photos */
  .photo--hero { aspect-ratio: 4 / 3; border-radius: 18px; }
  .photo--places { aspect-ratio: 4 / 3; }

  /* pricing card scale */
  .pricing-amount { font-size: clamp(40px, 11vw, 64px) !important; }
  .pricing-perday { font-size: clamp(20px, 5vw, 28px) !important; }

  /* floating CTA position so it doesn't overlap CTAs */
  .float-cta { width: 116px !important; height: 116px !important; bottom: 12px !important; right: 12px !important; padding: 10px !important; }
  .float-cta .text { font-size: 10px !important; line-height: 1.4 !important; }
  .float-cta .lead { font-size: 9px !important; margin-bottom: 4px !important; }

  /* inline-style heading overrides via attribute selectors */
  .h-jp-900[style*="font-size: 30px"],
  .h-jp-900[style*="fontSize: 30"] { font-size: clamp(22px, 6vw, 30px) !important; }
  .h-jp-900[style*="font-size: 28px"] { font-size: clamp(22px, 5.5vw, 28px) !important; }
  .h-jp-900[style*="font-size: 24px"] { font-size: clamp(20px, 4.6vw, 24px) !important; }
  .h-jp-900[style*="font-size: 22px"] { font-size: clamp(19px, 4.4vw, 22px) !important; }
  .h-jp-900[style*="font-size: 20px"] { font-size: clamp(18px, 4.2vw, 20px) !important; }

  /* grid 2 stacking spacing */
  .grid-2, .grid-3, .grid-4 { gap: 20px; }
}

/* small phone (≤480px) */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .card { padding: 18px; border-radius: 14px; }
  .btn { padding: 14px 20px; font-size: 14px; }
  .chip { font-size: 11px; padding: 4px 8px; }
  .photo--hero { aspect-ratio: 4 / 3; border-radius: 14px; }
  .photo--facility { border-radius: 12px; }
}
