/* =========================================================
   デジタル保健室 — Landing Page Styles
   ========================================================= */

:root {
  --navy-dark: #0c0f26;
  --navy-mid: #201232;
  --red-deep: #6e1f2b;
  --red-mid: #c3462f;
  --coral: #ff6f4d;
  --coral-light: #ff9a7a;
  --cream: #fff6ee;
  --ink: #1c1a24;
  --ink-soft: #4a4656;
  --line: #ece3da;
  --surface: #ffffff;
  --surface-alt: #fbf3ea;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px -20px rgba(28, 15, 10, 0.35);
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1040px, 92%);
  margin: 0 auto;
}

.br-sp { display: none; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: #0a0d24;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header .header-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.scrolled {
  background: rgba(10, 13, 36, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--coral);
  filter: drop-shadow(0 0 6px rgba(255, 111, 77, 0.7));
}
.brand-mark svg { width: 100%; height: 100%; fill: currentColor; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.88rem;
  font-weight: 500;
}
.main-nav a {
  color: rgba(255,255,255,0.88);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--coral);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(255,111,77,0.7);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 90px;
  background: linear-gradient(180deg, #0a0d24 0%, #1c1030 32%, #6e1f2b 68%, #e07a52 100%);
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.glow-a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,111,77,0.55), transparent 70%);
  top: 30%; left: 50%; transform: translateX(-50%);
}
.glow-b {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(120,70,200,0.35), transparent 70%);
  top: 5%; right: 8%;
}

.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater {
  position: absolute;
  width: 46px;
  will-change: transform;
}
.floater img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(10, 6, 20, 0.35));
}
.f1 { top: 20%; left: 8%;  width: 40px; opacity: 0.92; animation: drift-a 14s ease-in-out infinite; animation-delay: 0s; }
.f2 { top: 62%; left: 10%; width: 36px; opacity: 0.9;  animation: drift-b 16.5s ease-in-out infinite; animation-delay: 1.2s; }
.f3 { top: 12%; left: 18%; width: 28px; opacity: 0.65; animation: drift-c 12s ease-in-out infinite; animation-delay: 2.1s; }
.f4 { top: 16%; right: 10%; width: 42px; opacity: 0.92; animation: drift-b 15s ease-in-out infinite reverse; animation-delay: 0.6s; }
.f5 { top: 58%; right: 8%;  width: 40px; opacity: 0.9;  animation: drift-a 17.5s ease-in-out infinite reverse; animation-delay: 1.8s; }
.f6 { top: 78%; right: 20%; width: 32px; opacity: 0.75; animation: drift-c 13.5s ease-in-out infinite; animation-delay: 2.6s; }

/* Gentle multi-directional drifting ("ふよふよ") — each keyframe wanders
   through a different, slightly irregular path so the icons never feel
   like they're moving in lockstep. */
@keyframes drift-a {
  0%   { transform: translate(0, 0) rotate(0deg); }
  22%  { transform: translate(16px, -22px) rotate(5deg); }
  46%  { transform: translate(-8px, -36px) rotate(-4deg); }
  70%  { transform: translate(-20px, -10px) rotate(3deg); }
  88%  { transform: translate(6px, 10px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-18px, 14px) rotate(-5deg); }
  50%  { transform: translate(4px, 30px) rotate(3deg); }
  75%  { transform: translate(20px, 6px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(22px, 8px) rotate(4deg); }
  58%  { transform: translate(6px, -24px) rotate(-5deg); }
  82%  { transform: translate(-18px, -6px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.eyebrow {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: #fff;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(255,138,101,0.45);
}

.hero-subtitle {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  margin: 0 0 26px;
  letter-spacing: 0.04em;
}

.cross-wrap {
  width: min(230px, 55vw);
  margin: 0 auto 22px;
}
.cross-image {
  width: 100%;
  height: auto;
  animation: cross-pulse 3.2s ease-in-out infinite;
}
@keyframes cross-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(255, 111, 77, 0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255, 111, 77, 0.8));
  }
}

.hero-catch {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--coral-light);
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin: 0 0 22px;
  text-shadow: 0 0 18px rgba(255,111,77,0.55);
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
}
.hero-badges li {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.hero-quickinfo {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}
.qi-date {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}
.qi-num { font-size: 1.8rem; font-weight: 900; color: var(--red-mid); }
.qi-tag {
  font-size: 0.7rem;
  font-weight: 700;
  border: 1.5px solid var(--red-mid);
  color: var(--red-mid);
  padding: 2px 6px;
  border-radius: 6px;
}
.qi-divider { width: 1px; height: 26px; background: var(--line); }
.qi-time { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }

.hero-cta {
  display: block;
  width: fit-content;
  margin: 6px auto 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 3px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-cta:hover { opacity: 0.75; transform: translateY(2px); }

/* ---------- Generic Section ---------- */
.section { padding: 136px 0; }
.section-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 10px;
  text-align: center;
}
.section-kicker--light { color: var(--coral-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  text-align: center;
  margin: 0 0 26px;
  color: var(--ink);
}
.section-title--light { color: #fff; }

.section-lead {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- About ---------- */
.about { background: var(--surface); }

/* ---------- Worries ---------- */
.worries {
  background: linear-gradient(160deg, #1a1230 0%, #4a1c33 55%, #b04a3a 100%);
}
.bubble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.bubble-card {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.bubble-card:hover { transform: translateY(-6px); }
.bubble-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  color: var(--red-mid);
  margin-bottom: 16px;
}
.bubble-card p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}
.worries-note {
  text-align: center;
  color: rgba(255,255,255,0.85);
  margin: 44px 0 0;
  font-size: 0.92rem;
}

/* ---------- Detail ---------- */
.detail { background: var(--surface-alt); padding: 96px 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
.detail-list { margin: 0; }
.detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.detail-row:first-child { padding-top: 0; }
.detail-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red-mid);
  font-size: 0.92rem;
}
.detail-row .ic { width: 18px; height: 18px; flex-shrink: 0; }
.detail-row dd { margin: 0; color: var(--ink); font-size: 0.96rem; }
.detail-row .sub { color: var(--ink-soft); font-size: 0.86rem; }

.detail-cardvisual {
  position: relative;
  background: linear-gradient(160deg, #1a1230, #7a2a2e 60%, #d8734d);
  border-radius: var(--radius-lg);
  padding: 40px 26px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.mini-cross { width: 60px; margin: 0 auto 18px; opacity: 0.85; }
.mini-date {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  margin: 0;
}
.mini-date span {
  display: inline-block;
  font-size: 0.7rem;
  border: 1.5px solid #fff;
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.mini-time { font-weight: 700; margin: 6px 0 16px; }
.mini-place { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.6; }

/* ---------- Access ---------- */
.access { background: var(--surface); }
.access-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  margin-top: 52px;
  align-items: stretch;
}
.access-info {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 30px 28px;
}
.access-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.access-info p { margin: 0 0 10px; color: var(--ink-soft); }
.access-tip { color: var(--red-mid) !important; font-weight: 700; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--red-mid);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.map-link svg { width: 16px; height: 16px; }
.access-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-soft);
}
.access-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface-alt); }
.faq-list { max-width: 680px; margin: 52px auto 0; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
  box-shadow: 0 8px 24px -18px rgba(0,0,0,0.3);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.2rem;
  color: var(--coral);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: "−"; transform: none; }
.faq-item p { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, #0a0d24 0%, #1c1030 32%, #6e1f2b 68%, #e07a52 100%);
  text-align: center;
}
.contact-lead { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 40px; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 34px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.contact-link svg { width: 18px; height: 18px; }
.contact-link:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.organizer { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0d24;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 26px 20px;
  font-size: 0.82rem;
}
.site-footer p { margin: 4px 0; }
.copyright { color: rgba(255,255,255,0.4); }

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 26px -10px rgba(255,111,77,0.7);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- Noise overlay (subtle texture) ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 680px) {
  .floaters { display: none; }
}

@media (max-width: 880px) {
  .br-sp { display: inline; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(280px, 78vw);
    background: rgba(10, 13, 36, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1rem; }
  .nav-toggle { display: flex; }

  .bubble-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .access-map { min-height: 240px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 120px; }
  .hero-quickinfo { flex-direction: column; gap: 8px; padding: 16px 26px; width: 70%; }
  .qi-divider { width: 60%; height: 1px; }
  .section { padding: 96px 0; }
  .detail { padding: 72px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floater, .cross-image { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
