/* =========================================================
   Theme: Shiroma Dental Labo
   Colors: Gold #FFD700, Gray scale
   ========================================================= */
:root {
  --gold: #FFD700;
  --gold-20: rgba(255, 215, 0, 0.2);
  --bg: #0f1115;
  --panel: rgba(255,255,255,0.06);
  --text: #e9ecef;
  --muted: #b8c0cc;
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.14);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; background: var(--bg); color: var(--text); }
body { margin: 0; font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: 64px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events: none;
}
.site-header .brand { pointer-events: auto; display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--gold); box-shadow: inset 0 0 24px var(--gold-20), 0 0 8px rgba(255,215,0,0.3); }
.logo-text { letter-spacing: .06em; font-weight: 700; text-transform: lowercase; }

.dots { pointer-events: auto; display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; opacity: .6; cursor: pointer; transition: .2s; }
.dot:hover, .dot.active { opacity: 1; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* Footer */
.site-footer {
  position: fixed; inset: auto 0 8px 0; z-index: 10; text-align: center; pointer-events: none;
  color: var(--muted); font-size: 12px;
}

/* Snap vertical container */
.snap-container {
  scroll-snap-type: y mandatory;
  height: 100svh;
  overflow-y: scroll;
  scroll-behavior: smooth;
}
.section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 24px 40px;
  scroll-snap-align: start;
}

/* Shared components */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
}

.kicker {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text);
}

.h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .02em;
}
.lead {
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.8;
}

/* Gold underline animation */
.gold-underline {
  position: relative; display: inline-block;
}
.gold-underline::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), rgba(255,215,0,0.2));
  box-shadow: 0 0 12px var(--gold);
  transition: width 1s ease;
}
.revealed .gold-underline::after { width: 100%; }

/* CTA Button */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 100px; border: 1px solid var(--gold);
  text-decoration: none; color: #121212; background: var(--gold);
  font-weight: 700; letter-spacing: .04em; cursor: pointer;
  box-shadow: 0 10px 20px rgba(255,215,0,0.2);
  transition: transform .1s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(255,215,0,0.28); }
.button:active { transform: translateY(0); }

/* Slideshow */
.slideshow {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
  transform: scale(1.06);
  transition: opacity 1400ms ease, transform 6s ease;
}
.slide.active { opacity: 1; transform: scale(1.0); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 10%, rgba(0,0,0,.15), rgba(0,0,0,.75));
}

/* Content card */
.hero-card {
  position: relative; z-index: 1; padding: clamp(18px, 3vw, 28px);
  max-width: 980px; width: min(92vw, 980px);
}

/* Notice grid */
.notice-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px; width: min(1000px, 92vw);
}
.notice-item { padding: 18px 18px; }
.notice-item h3 { margin: 0 0 8px; font-size: 18px; }
.notice-item p { margin: 0; color: var(--muted); line-height: 1.8; }
.notice-item .icon { width: 18px; height: 18px; margin-right: 8px; color: var(--gold); }

@media (min-width: 860px) {
  .notice-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Form */
.form-card { width: min(980px, 92vw); padding: clamp(16px, 3vw, 26px); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
label { font-weight: 600; letter-spacing: .02em; }
input, textarea, select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; color: var(--text); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,0,0.16); }
textarea { min-height: 120px; resize: vertical; }

.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; user-select: none;
  transition: border-color .2s ease, background .2s ease;
}
.radio input { accent-color: var(--gold); }
.radio:hover { border-color: var(--gold); background: rgba(255,255,255,0.05); }

/* Agreement toggle */
.agreement {
  border: 1px dashed var(--border); border-radius: 14px; padding: 10px 12px; margin: 8px 0 14px;
}
.agreement header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
}
.agreement .policy {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 0;
}
.agreement.open .policy {
  max-height: 220px; padding-top: 8px;
}
.policy .scrollbox {
  max-height: 140px; overflow: auto; padding-right: 8px;
}

/* Toast */
.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: #101418; border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); display: none;
}
.toast.show { display: block; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

/* Entrance animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.revealed .reveal { opacity: 1; transform: translateY(0); }
