/* ===== Cosmo Parking リニューアルデモ 共通スタイル ===== */
:root {
  --navy: #0f2a4a;
  --navy-deep: #081a2e;
  --navy-soft: #1d3f66;
  --gold: #c9a227;
  --gold-light: #e4c565;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c2733;
  --muted: #5b6b7c;
  --border: #e3e7ec;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: "Shippori Mincho", serif; }

h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: #ffffff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; flex-direction: column; color: #fff; line-height: 1.1; }
.logo strong { font-family: "Shippori Mincho", serif; font-size: 21px; letter-spacing: .04em; }
.logo span { font-size: 10px; letter-spacing: .28em; color: var(--gold-light); margin-top: 3px; }
.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-desktop a { color: #dfe6ee; font-size: 14.5px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .nav-desktop a.is-active { color: #fff; border-color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.tel-badge { color: #fff; font-size: 13px; text-align: right; line-height: 1.3; display: none; }
.tel-badge strong { display: block; font-size: 17px; font-family: "Shippori Mincho", serif; color: var(--gold-light); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-deep); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--outline:hover { border-color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; inset: 76px 0 0 0;
  background: var(--navy-deep);
  z-index: 998;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  will-change: transform;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  overflow-y: auto;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile .wrap { padding-top: 28px; padding-bottom: 40px; }
.nav-mobile a {
  display: block; color: #fff; font-size: 17px; font-weight: 600;
  padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-mobile .tel-badge { display: block; margin-top: 24px; color: #cfd9e3; }

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff;
  min-height: 560px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,46,.55) 0%, rgba(8,26,46,.72) 55%, rgba(8,26,46,.92) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 90px 0 56px; width: 100%; }
.hero h1 { font-family: "Shippori Mincho", serif; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.45; margin-bottom: 18px; }
.hero p.lead { color: #dbe4ec; font-size: 16.5px; max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.trust-bar { background: var(--navy); }
.trust-bar ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 20px; }
.trust-bar li { display: flex; align-items: center; gap: 10px; color: #eef2f6; font-size: 13.5px; font-weight: 600; }
.trust-bar svg { flex: none; color: var(--gold-light); }

/* ---- Small page hero (subpages) ---- */
.page-hero {
  position: relative; color: #fff; background-size: cover; background-position: center;
  min-height: 280px; display: flex; align-items: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,26,46,.88), rgba(15,42,74,.72)); }
.page-hero-inner { position: relative; z-index: 1; }
.crumb { font-size: 13px; color: var(--gold-light); margin-bottom: 10px; }
.page-hero h1 { font-family: "Shippori Mincho", serif; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.page-hero p { color: #dbe4ec; max-width: 560px; }

/* ---- Cards / grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: left;
}
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; color: var(--gold-light);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17.5px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.class-card {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  position: relative;
}
.class-card.is-featured { border: 2px solid var(--gold); box-shadow: 0 18px 40px rgba(201,162,39,.18); }
.class-card .badge {
  position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--navy-deep);
  font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em;
}
.class-card .photo { height: 160px; background-size: cover; background-position: center; }
.class-card .body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.class-card .tag { color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; margin-bottom: 6px; }
.class-card h3 { font-family: "Shippori Mincho", serif; font-size: 22px; margin-bottom: 8px; }
.class-card .price { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.class-card .price strong { font-size: 26px; color: var(--navy); font-family: "Shippori Mincho", serif; }
.class-card ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.class-card li { font-size: 13.8px; color: var(--text); padding: 7px 0 7px 24px; position: relative; border-top: 1px dashed var(--border); }
.class-card li:first-child { border-top: none; }
.class-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---- Terminal cards ---- */
.terminal-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 210px;
  background-size: cover; background-position: center; color: #fff;
  display: flex; align-items: flex-end; padding: 22px;
}
.terminal-card::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(8,26,46,.15), rgba(8,26,46,.85)); }
.terminal-card .t-inner { position: relative; z-index: 1; }
.terminal-card .t-no { font-size: 12px; color: var(--gold-light); font-weight: 700; letter-spacing: .1em; }
.terminal-card h3 { font-family: "Shippori Mincho", serif; font-size: 19px; margin: 4px 0 4px; }
.terminal-card .t-link { font-size: 12.5px; color: #dbe4ec; }

/* ---- Calendar ---- */
.avail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.avail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.avail-head h3 { margin: 0; font-size: 16.5px; }
.avail-nav { display: flex; gap: 8px; }
.avail-nav button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer;
  font-size: 14px; color: var(--navy);
}
.avail-nav button:hover { background: var(--bg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--muted); font-weight: 700; padding-bottom: 6px; }
.cal-grid .cell {
  aspect-ratio: 1/1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12.5px; background: var(--bg); color: var(--text); gap: 2px;
}
.cal-grid .cell.blank { background: transparent; }
.cal-grid .cell .mark { font-size: 13px; font-weight: 800; }
.cell.ok .mark { color: #2f8f5b; }
.cell.few .mark { color: var(--gold); }
.cell.ng .mark { color: #c04b3d; }
.cal-legend { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.cal-legend span { font-weight: 800; margin-right: 4px; }
.cal-legend .ok { color: #2f8f5b; } .cal-legend .few { color: var(--gold); } .cal-legend .ng { color: #c04b3d; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---- Calculator ---- */
.calc-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; }
.calc-card h3 { font-family: "Shippori Mincho", serif; }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: #cfd9e3; }
.field select, .field input {
  padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: #fff; font-size: 14.5px; font-family: inherit;
}
.field select option { color: #111; }
.calc-result { background: rgba(255,255,255,.08); border-radius: 10px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.calc-result .amount { font-family: "Shippori Mincho", serif; font-size: 30px; color: var(--gold-light); }
.calc-result .sub { font-size: 12.5px; color: #cfd9e3; }
.calc-disclaimer { font-size: 12px; color: #a9b7c4; margin-top: 14px; }

/* ---- Steps / timeline ---- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.step .num {
  counter-increment: step; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 18px;
}
.step .num::before { content: counter(step); }
.step h4 { margin: 0 0 6px; font-size: 15.5px; }
.step p { margin: 0; color: var(--muted); font-size: 13.8px; }

/* ---- Timetable ---- */
.timetable { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.timetable th, .timetable td { padding: 12px 16px; text-align: left; font-size: 13.8px; border-bottom: 1px solid var(--border); }
.timetable th { background: var(--navy); color: #fff; font-weight: 600; }
.timetable tr:last-child td { border-bottom: none; }

/* ---- Map placeholder ---- */
.map-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; gap: 20px; align-items: flex-start; }
.map-visual {
  flex: none; width: 180px; height: 140px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #e9edf1, #e9edf1 10px, #f3f5f7 10px, #f3f5f7 20px);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.map-visual svg { color: var(--gold); }

/* ---- FAQ ---- */
.faq { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 20px; font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: 13.8px; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-family: "Shippori Mincho", serif; font-size: 28px; }
.cta-band p { color: #cfd9e3; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: #b9c4cf; padding: 56px 0 26px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid a { display: block; color: #b9c4cf; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-logo { color: #fff; font-family: "Shippori Mincho", serif; font-size: 19px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8593a1; font-size: 12px; }

@media (max-width: 860px) {
  .nav-desktop, .header-cta .btn--gold, .tel-badge { display: none; }
  .burger { display: flex; }
  .nav-mobile { display: block; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .trust-bar ul { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .map-card { flex-direction: column; }
  .map-visual { width: 100%; }
}
