:root {
  --accent: #518e90;
  --accent-bright: #3a7375;
  --accent-soft: #e3f2f2;
  --ink: #0f1719;
  --text: #152022;
  --text-muted: #3d5154;
  --paper: #f6f4ef;
  --muted: #5a6d70;
  --panel: #e8f2f3;
  --panel-2: #dcecee;
  --surface: #ffffff;
  --danger: #c45c42;
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 12px 36px rgba(15, 23, 28, 0.08);
  --shadow-hover: 0 18px 44px rgba(15, 23, 28, 0.12);
  --border-subtle: rgba(81, 142, 144, 0.28);
  font-size: clamp(15px, 0.35vw + 14px, 17px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  min-width: 320px;
}

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

a {
  color: var(--accent-bright);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 2000;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.nav-toggle i {
  font-size: 1.5rem;
  vertical-align: middle;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

.disclaimer-bar {
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.disclaimer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.55rem 1rem;
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: stretch;
  color: var(--text);
  isolation: isolate;
}

.hero--sub {
  min-height: min(56vh, 520px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #eef4f5 url("../image/picture.jpg") center/cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(246, 250, 251, 0.88) 40%,
    rgba(232, 242, 243, 0.85) 100%
  );
  z-index: -1;
}

.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 1vw + 1.6rem, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero .section-kicker {
  color: var(--accent-bright);
}

.hero-copy p {
  color: var(--text-muted);
  max-width: 46ch;
}

/* Decorative rhythm SVG (home hero) */
.hero-copy {
  position: relative;
}

.hero-art-wrap {
  width: min(100%, 20rem);
  margin: 0 0 1.15rem;
  pointer-events: none;
  animation: hero-art-float 6s ease-in-out infinite;
}

.hero-rhythm-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-orbit {
  transform-origin: 0 0;
  animation: hero-orbit-spin 48s linear infinite;
}

.hero-wave-bg {
  animation: hero-wave-pulse 5s ease-in-out infinite;
}

.hero-wave-line {
  stroke-dasharray: 18 14;
  stroke-dashoffset: 0;
  animation: hero-wave-dash 3.2s linear infinite;
}

.hero-anchor {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-anchor-pulse 2.4s ease-in-out infinite;
}

.hero-anchor--a {
  animation-delay: 0s;
}

.hero-anchor--b {
  animation-delay: 0.35s;
}

.hero-anchor--c {
  animation-delay: 0.7s;
}

@keyframes hero-art-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes hero-orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-wave-pulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes hero-wave-dash {
  to {
    stroke-dashoffset: -128;
  }
}

@keyframes hero-anchor-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.22);
  }
}

@media (min-width: 880px) {
  .hero-art-wrap {
    position: absolute;
    top: 0.15rem;
    right: 0;
    width: 11.5rem;
    margin: 0;
    z-index: 0;
  }

  .hero-copy > *:not(.hero-art-wrap) {
    position: relative;
    z-index: 1;
  }

  .hero-copy .section-kicker {
    padding-right: 8.5rem;
  }

  .hero-copy h1 {
    padding-right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art-wrap,
  .hero-orbit,
  .hero-wave-bg,
  .hero-wave-line,
  .hero-anchor {
    animation: none !important;
  }

  .hero-art-wrap {
    transform: none;
  }

  @media (min-width: 880px) {
    .hero-copy .section-kicker {
      padding-right: 0;
    }
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.hero-form {
  display: grid;
  gap: 0.75rem;
}

.hero-form label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #c5d4d5;
  background: var(--surface);
  color: var(--text);
}

.hero-form .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.hero-tags span {
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
}

.hero-card-lede {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

input[type="submit"].btn {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #3f7577;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.hero .btn-ghost {
  color: var(--text);
  border-color: var(--border-subtle);
}

.hero .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(81, 142, 144, 0.06);
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-bright);
  margin: 0 0 0.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 0.6vw + 1.2rem, 2rem);
}

.bg-dark {
  background: var(--panel);
  color: var(--text);
}

.bg-dark a {
  color: var(--accent-bright);
}

.bg-darker {
  background: var(--panel-2);
  color: var(--text);
}

.bg-darker a {
  color: var(--accent-bright);
}

.bg-light {
  background: var(--surface);
  color: var(--text);
}

.bg-light .section-kicker {
  color: var(--accent-bright);
}

.bg-light a {
  color: var(--accent-bright);
}

.bg-accent {
  background: linear-gradient(135deg, #d4ecee 0%, #e8f4f4 50%, #cfe4e6 100%);
  color: var(--text);
}

.bg-accent a {
  color: var(--accent-bright);
}

.bg-accent .section-kicker {
  color: var(--accent-bright);
}

.bg-accent .callout {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-left-color: var(--accent);
}

.bg-dark .callout,
.bg-darker .callout {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-left-color: var(--accent);
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.prose li {
  margin-bottom: 0.45rem;
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.bg-light .callout {
  background: var(--accent-soft);
  color: var(--text);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.pill-list li {
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
}

.bg-light .pill-list li {
  background: var(--accent-soft);
  border-color: var(--border-subtle);
  color: var(--text);
}

.grid-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid-cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  color: var(--text);
}

.bg-light .card {
  background: var(--surface);
  border-color: var(--border-subtle);
  color: var(--text);
}

.bg-accent .card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(81, 142, 144, 0.22);
}

.card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card i {
  color: var(--accent);
  font-size: 1.35rem;
}

.bg-light .card i {
  color: var(--accent);
}

.bg-accent .card i {
  color: var(--accent);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.bg-light .faq details {
  background: var(--surface);
  border-color: var(--border-subtle);
  color: var(--text);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid var(--border-subtle);
  padding: 0.65rem;
  text-align: left;
}

.bg-light .calendar-table th,
.bg-light .calendar-table td {
  border-color: var(--border-subtle);
}

.calendar-table th {
  background: var(--accent-soft);
}

.site-footer {
  background: #e2edef;
  color: var(--text);
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--accent-bright);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -8px 32px rgba(15, 23, 28, 0.1);
  padding: 1rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-panel {
  display: none;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  background: var(--paper);
}

.cookie-panel.is-open {
  display: block;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(15, 23, 28, 0.08);
}

.switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #b8c9cb;
  border-radius: 999px;
  transition: 0.2s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: var(--accent);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.switch input:disabled + .slider {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  color: var(--text);
}

.form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #c5d4d5;
  background: #f8fafb;
  color: var(--text);
  margin-bottom: 1rem;
}

.form-card textarea {
  min-height: 160px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.map-wrap iframe {
  width: 100%;
  height: min(420px, 60vw);
  border: 0;
  display: block;
}

.policy-page h2 {
  margin-top: 2rem;
}

.policy-page h3 {
  margin-top: 1.25rem;
}

.success-panel {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
  color: var(--text);
}

.success-panel p {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 1.5rem;
}

.success-panel .section-kicker {
  color: var(--accent-bright);
}

.success-panel .btn-ghost {
  color: var(--text);
  border-color: var(--border-subtle);
}

.success-panel .section-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.success-panel h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.4rem, 0.5vw + 1.2rem, 1.85rem);
}

.success-panel i {
  display: block;
  margin-top: 0.25rem;
  font-size: 3.5rem;
  color: var(--accent);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border-subtle);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 480px;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(15, 23, 28, 0.06);
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding: 0.55rem 0.65rem;
  }

  .hero-form .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    flex-direction: column;
  }
}
