:root {
  --bg: #F1FBF9;
  --bg-2: #CFF1EB;
  --brand: #00827C;
  --brand-dark: #005C58;
  --accent: #FF5A4E;
  --ink: #0F2A2E;
  --muted: #3D5A5E;
  --line: rgba(15, 42, 46, 0.12);
  --footer: #0F2A2E;
  --ease: cubic-bezier(.45, .05, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3 {
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.wrap { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 80;
  background: var(--ink); color: var(--bg); padding: 0.5rem 0.8rem; border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  padding: 0.9rem 0;
  transition: padding 250ms ease, translate 320ms cubic-bezier(.2, .8, .2, 1);
  overflow-anchor: none;
}
.site-header .bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 0.8rem;
  border-radius: 1.55rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: border-color 250ms ease, box-shadow 250ms ease, background-color 250ms ease, padding 500ms var(--ease);
}
.site-header.is-scrolled { padding: 0.55rem 0; }
.site-header.is-scrolled .bar {
  padding: 0.4rem 0.65rem 0.4rem 0.7rem;
  border-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}
.logo { display: block; text-decoration: none; margin-right: auto; }
.logo-img {
  display: block; height: 56px; width: auto; max-width: min(44vw, 220px); object-fit: contain;
}
.site-header .logo-img { transition: height 500ms var(--ease), max-width 500ms var(--ease); }
.site-header:not(.is-scrolled) .logo-img { height: 102px; max-width: min(58vw, 320px); }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a.link {
  text-decoration: none; font-weight: 600; font-size: 0.97rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
}
.nav a.link:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.nav a.link[aria-current="page"] { color: var(--brand-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  border-radius: 999px; padding: 0.9rem 1.35rem;
  border: 1.5px solid transparent;
  transition: transform 350ms var(--ease), background-color 350ms var(--ease), border-color 350ms var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -14px var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-soft { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.95rem; }

.page {
  width: min(44rem, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 1.25rem 0 0;
}
.page-intro { padding: 1.6rem 0 0; }
.kicker {
  display: inline-block; margin: 0 0 0.7rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand);
}
.page-intro h1 {
  font-size: clamp(2.7rem, 6vw, 4.2rem);
  font-weight: 800;
  max-width: 12ch;
}
.lede {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.updated {
  display: inline-flex; align-items: center;
  margin: 1.15rem 0 0;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.sheet {
  margin-top: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px -42px rgba(15, 42, 46, 0.55);
  padding: clamp(1.35rem, 3vw, 2.15rem) clamp(1.35rem, 3vw, 2.15rem) 0;
}
.prose > * + * { margin-top: 0.9rem; }
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 800;
  margin-top: 1.7rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6.5rem;
}
.prose h2:first-child { margin-top: 0.15rem; padding-top: 0; border-top: 0; }
.prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 1.2rem;
}
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a:not(.btn) { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 0.16em; }
.prose ul, .prose ol { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.prose li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.15rem;
  border-radius: 0.9rem;
  background: var(--bg);
}
.prose li::before {
  content: "";
  position: absolute; left: 0.9rem; top: 1.05rem;
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--brand);
}

.notice {
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 1rem;
  padding: 0.95rem 1.05rem;
}
.notice p { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 1.5rem calc(clamp(1.35rem, 3vw, 2.15rem) * -1) 0;
  padding: 1.2rem clamp(1.35rem, 3vw, 2.15rem);
  border-radius: 0 0 1.7rem 1.7rem;
  background: var(--brand);
  color: #fff;
}
.contact-card p { margin: 0.25rem 0 0; color: rgba(255, 255, 255, 0.88); }
.contact-card strong { color: #fff; }
.contact-card .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: none; }

.site-footer {
  background: var(--footer); color: rgba(255, 255, 255, 0.9);
  margin-top: clamp(4rem, 8vw, 6rem); padding: 4rem 0 5rem;
}
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-top h4 { margin: 0 0 0.8rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.footer-top a, .footer-top p { display: block; margin: 0 0 0.45rem; text-decoration: none; color: rgba(255, 255, 255, 0.88); }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-top a.logo { display: flex; }
.footer-top a.logo:hover { text-decoration: none; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); max-width: 20rem; }
.footer-brand .logo-img {
  height: 92px; max-width: 240px; background: #fff; border-radius: 1rem; padding: 0.4rem 0.55rem;
}
.site-footer .wrap { container-type: inline-size; }
.giant {
  margin-top: 3rem; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: min(13.2cqi, 11rem); letter-spacing: -0.06em; line-height: 0.85;
  padding-bottom: 0.08em; color: rgba(255, 255, 255, 0.08); white-space: nowrap; text-align: center;
}
.legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.6);
}
.legal a { color: inherit; }
.legal a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 0.18em; }

.tabbar { display: none; }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes fab-ripple { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(1.35); opacity: 0; } }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav a.link { display: none; }
}
@media (max-width: 760px) {
  .site-header { padding: calc(0.5rem + env(safe-area-inset-top)) 0 0.5rem; }
  .site-header.is-scrolled { padding: calc(0.4rem + env(safe-area-inset-top)) 0 0.4rem; }
  .site-header.hide { translate: 0 -120%; }
  .site-header .bar, .site-header.is-scrolled .bar { padding: 0.35rem 0.45rem 0.35rem 0.55rem; }
  .logo-img { height: 46px; max-width: 44vw; }
  .site-header:not(.is-scrolled) .logo-img { height: 64px; max-width: 48vw; }
  .nav .btn { white-space: nowrap; padding: 0.55rem 0.9rem; font-size: 0.9rem; }
  .nav .btn-primary { display: none; }
  body { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0.75rem; right: 0.75rem; z-index: 55;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    padding: 0.4rem 0.3rem;
    border-radius: 1.6rem;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.4);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; gap: 0.12rem;
    padding: 0.4rem 0 0.3rem; border-radius: 1.1rem;
    text-decoration: none; color: var(--muted);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.6;
    transition: color 200ms ease, background-color 200ms ease, scale 150ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .tab:active { scale: 0.96; }
  .tab svg { width: 22px; height: 22px; }
  .tab.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
  .tab.active svg { animation: pop 420ms cubic-bezier(.3,1.6,.5,1); }
  .tab-call { color: var(--brand); padding-top: 0; }
  .tab-call:active { scale: 0.92; }
  .fab {
    position: relative;
    width: 54px; height: 54px; margin-top: -1.75rem; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: var(--brand); border: 4px solid var(--bg);
    box-shadow: 0 12px 24px -10px var(--brand);
  }
  .fab svg { width: 22px; height: 22px; }
  .fab::after {
    content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%;
    border: 1.5px solid var(--brand); opacity: 0; animation: fab-ripple 3.2s ease-out infinite;
  }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-header, .site-header .bar, .site-header .logo-img, .tab { transition: none; }
  .tab.active svg, .fab::after { animation: none; }
}
