:root {
    --bg: #F4F9FC;
    --surface: #FFFFFF;
    --surface-alt: #EAF4FA;
    --ink: #10222F;
    --ink-soft: #526A80;
    --line: #DCEAF2;
    --navy: #0A4E78;
    --navy-deep: #073A5A;
    --sky: #29B6F6;
    --sky-deep: #0288D1;
    --sun: #F0A93C;
    --sun-deep: #C96A28;
    --shadow: 0 20px 44px -22px rgba(9, 40, 65, 0.35);
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0B1720; --surface: #122430; --surface-alt: #16303F; --ink: #EDF4F9;
      --ink-soft: #9AB2C4; --line: #223A48; --navy: #3FA4E8; --navy-deep: #7FC4F2;
      --sky: #35D2E8; --sky-deep: #8CE6F2; --sun: #FFC862; --sun-deep: #FFD98A;
      --shadow: 0 20px 48px -22px rgba(0, 0, 0, 0.6); color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0B1720; --surface: #122430; --surface-alt: #16303F; --ink: #EDF4F9;
    --ink-soft: #9AB2C4; --line: #223A48; --navy: #3FA4E8; --navy-deep: #7FC4F2;
    --sky: #35D2E8; --sky-deep: #8CE6F2; --sun: #FFC862; --sun-deep: #FFD98A;
    --shadow: 0 20px 48px -22px rgba(0, 0, 0, 0.6); color-scheme: dark;
  }
  :root[data-theme="light"] {
    --bg: #F4F9FC; --surface: #FFFFFF; --surface-alt: #EAF4FA; --ink: #10222F;
    --ink-soft: #526A80; --line: #DCEAF2; --navy: #0A4E78; --navy-deep: #073A5A;
    --sky: #29B6F6; --sky-deep: #0288D1; --sun: #F0A93C; --sun-deep: #C96A28;
    --shadow: 0 20px 44px -22px rgba(9, 40, 65, 0.35); color-scheme: light;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg); color: var(--ink);
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
    line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }
  .font-display { font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
  .font-mincho { font-family: "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", "Noto Serif JP", serif; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; }

  /* ---------- Back to top ---------- */
  .back-to-top {
    position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 60;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--surface); color: var(--navy); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .back-to-top svg { width: 20px; height: 20px; }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
  .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .brand img { height: 40px; width: auto; flex: none; }
  .brand .cross { color: var(--ink-soft); font-size: 1rem; flex: none; }
  .brand-text { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
  .brand-text strong { font-size: 0.92rem; letter-spacing: 0.02em; }
  .brand-text span { font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.06em; }
  .tel-pill {
    display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: var(--navy); color: #fff; font-size: 0.85rem; white-space: nowrap; box-shadow: var(--shadow); flex: none;
  }
  .tel-pill svg { width: 16px; height: 16px; flex: none; }
  .tel-pill strong { font-size: 0.95rem; }
  @media (max-width: 700px) {
    .brand-text { display: none; }
    .brand img { height: 30px; }
    .brand .cross { font-size: 0.85rem; }
    .tel-pill { padding: 8px 12px; font-size: 0; }
    .tel-pill strong { font-size: 0.82rem; }
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative; min-height: min(86vh, 680px); display: flex; align-items: center;
    overflow: hidden; background: var(--navy-deep); border-bottom: 1px solid var(--line);
  }
  .hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .hero-slide {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(190deg, rgba(6, 20, 36, 0.35) 0%, rgba(6, 20, 36, 0.72) 65%, var(--navy-deep) 100%),
      linear-gradient(150deg, rgba(16, 111, 168, 0.45), rgba(9, 60, 92, 0.5)),
      var(--slide-img);
    background-size: cover; background-position: center;
    opacity: 0;
    animation: heroFade 25s infinite, heroZoom 25s infinite;
    animation-timing-function: ease-in-out, linear;
  }
  .hero-slide:nth-child(1) { --slide-img: url("../images/exterior-building.jpg"); animation-delay: 0s, 0s; }
  .hero-slide:nth-child(2) { --slide-img: url("../images/kids-poolside-group.jpg"); animation-delay: -20s, -20s; }
  .hero-slide:nth-child(3) { --slide-img: url("../images/fb8372c19ba0.jpg"); animation-delay: -15s, -15s; }
  .hero-slide:nth-child(4) { --slide-img: url("../images/kids-dive-jump.jpg"); animation-delay: -10s, -10s; }
  .hero-slide:nth-child(5) { --slide-img: url("../images/0bb316c3aa0f.jpg"); animation-delay: -5s, -5s; }
  @keyframes heroFade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    16% { opacity: 1; }
    20% { opacity: 0; }
    100% { opacity: 0; }
  }
  @keyframes heroZoom {
    0% { transform: scale(1); }
    4% { transform: scale(1); }
    20% { transform: scale(1.09); }
    100% { transform: scale(1.09); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-slide { animation-name: heroFade; animation-duration: 25s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
  }
  .hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); text-align: center; width: 100%; color: #fff; }
  .eyebrow { font-size: 0.78rem; letter-spacing: 0.32em; font-weight: 600; margin: 0 0 18px; color: #BEE3FA; }
  .hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); font-weight: 700; margin: 0 0 20px; letter-spacing: 0.02em; }
  .hero-lead { font-size: clamp(0.95rem, 1.6vw, 1.08rem); color: #E4F1FA; max-width: 560px; margin: 0 auto 34px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
  .hero-cta {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
    font-size: 0.92rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.4); transition: transform 0.25s ease, background 0.25s ease;
  }
  .hero-cta.sky { background: var(--sky); color: #06202E; }
  .hero-cta.navy { background: rgba(255,255,255,0.08); color: #fff; }
  .hero-cta:hover { transform: translateY(-2px); }

  /* ---------- Section shared ---------- */
  .block { padding-block: clamp(56px, 9vw, 96px); }
  .block-alt { background: var(--surface-alt); }
  .section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
  .section-head .eyebrow { color: var(--sky-deep); }
  .section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 12px; }
  .section-head p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

  /* ---------- Site selector ---------- */
  .site-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
  @media (max-width: 800px) { .site-grid { grid-template-columns: 1fr; } }
  .site-card {
    position: relative; border-radius: 22px; overflow: hidden; background: var(--surface);
    box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  .site-card:hover { transform: translateY(-6px); }
  .site-card .photo-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
  .site-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
  .site-card:hover .photo-wrap img { transform: scale(1.06); }
  .site-card .accent-bar { height: 5px; width: 100%; }
  .site-card.fss .accent-bar { background: linear-gradient(90deg, var(--sky), var(--sun)); }
  .site-card.ases .accent-bar { background: linear-gradient(90deg, var(--navy), var(--sky-deep)); }
  .site-card .card-body { padding: 26px clamp(20px, 4vw, 32px) 30px; flex: 1; display: flex; flex-direction: column; }
  .card-kicker { font-size: 0.72rem; letter-spacing: 0.24em; font-weight: 700; margin-bottom: 10px; }
  .site-card.fss .card-kicker { color: var(--sky-deep); }
  .site-card.ases .card-kicker { color: var(--navy); }
  .site-card h3 { font-size: 1.4rem; margin: 0 0 12px; }
  .site-card.fss h3 { font-weight: 900; }
  .site-card p.desc { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 22px; flex: 1; }
  .card-cta {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem;
    padding: 12px 22px; border-radius: 999px; align-self: flex-start; transition: transform 0.25s ease;
  }
  .site-card.fss .card-cta { background: var(--sky); color: #06202E; }
  .site-card.ases .card-cta { background: var(--navy); color: #fff; }
  .card-cta:hover { transform: translateX(4px); }

  /* ---------- WordPress news ---------- */
  #information { scroll-margin-top: 90px; padding-top: 24px; }
  .news-panel { padding: clamp(24px, 4vw, 44px); border: 2px solid color-mix(in srgb, var(--navy) 30%, var(--line));
    border-radius: 24px; background: var(--surface-alt); box-shadow: var(--shadow); }
  .news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
  .news-link { display: grid; grid-template-columns: 105px 112px minmax(0, 1fr) 80px 20px; gap: 16px;
    align-items: center; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--navy) 24%, var(--line));
    border-left: 4px solid var(--sky); border-radius: 14px; background: var(--surface);
    box-shadow: 0 5px 16px rgba(9, 40, 65, .05); transition: background .2s, border-color .2s; }
  .news-link:hover { background: var(--surface-alt); border-color: var(--sky-deep); }
  .news-link:hover .news-title { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 4px; }
  .news-date { color: var(--ink-soft); font-size: .85rem; font-variant-numeric: tabular-nums; }
  .news-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; text-align: center;
    background: var(--surface-alt); color: var(--navy); font-size: .73rem; font-weight: 700; line-height: 1.8; }
  .news-tag.fss { color: var(--sky-deep); }
  .news-tag.common { color: var(--sun-deep); }
  .news-title { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
  .news-thumbnail { width: 80px; height: 80px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--surface); overflow: hidden; }
  .news-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
  .news-thumbnail.empty { visibility: hidden; }
  .news-arrow { color: var(--sky-deep); }
  .news-status { color: var(--ink-soft); text-align: center; font-size: .82rem; }
  .news-status:empty { display: none; }
  .news-actions { text-align: center; margin-top: 28px; }
  .news-more { font: inherit; font-size: .88rem; font-weight: 700; border: 1px solid var(--line);
    border-radius: 999px; padding: 12px 32px; color: var(--navy); background: var(--surface); cursor: pointer; }
  .news-more:hover { background: var(--surface-alt); }
  .news-more[hidden] { display: none; }
  @media (max-width: 640px) {
    .news-link { grid-template-columns: auto minmax(0, 1fr) 64px; gap: 8px 10px; padding: 16px 12px; }
    .news-tag { justify-self: start; }
    .news-title { grid-column: 1 / 3; }
    .news-thumbnail { grid-column: 3; grid-row: 1 / 3; width: 64px; height: 72px; }
    .news-arrow { display: none; }
  }

  /* ---------- Quick links ---------- */
  .menu-table { display: flex; flex-direction: column; gap: 10px; }
  .menu-row {
    display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px;
  }
  @media (max-width: 640px) { .menu-row { grid-template-columns: 1fr; text-align: center; } }
  .menu-row .label { font-weight: 700; font-size: 0.95rem; }
  .menu-row a {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px;
    border-radius: 999px; font-size: 0.85rem; border: 1px solid var(--line); transition: background 0.2s ease, color 0.2s ease;
  }
  .menu-row a.fss:hover { background: var(--sky); color: #06202E; border-color: var(--sky); }
  .menu-row a.ases:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
  .menu-row a .tag { font-size: 0.68rem; opacity: 0.7; }

  /* ---------- About / company ---------- */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
  @media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
  .about-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
  .about-copy .eyebrow { color: var(--sky-deep); }
  .about-copy h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 16px; }
  .about-copy p { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 20px; }
  .profile-spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 0.9rem; margin: 0 0 24px; }
  .profile-spec dt { color: var(--ink-soft); font-weight: 600; }
  .profile-spec dd { margin: 0; }
  .division-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  @media (max-width: 640px) { .division-grid { grid-template-columns: 1fr; } }
  .division-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
  .division-card svg { width: 26px; height: 26px; color: var(--sky-deep); margin-bottom: 8px; }
  .division-kicker { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink-soft); font-weight: 700; margin-bottom: 4px; }
  .division-card h4 { font-size: 0.92rem; margin: 0 0 4px; }
  .division-card p { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

  /* ---------- Access ---------- */
  .access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 48px); align-items: center; }
  @media (max-width: 800px) { .access-grid { grid-template-columns: 1fr; } }
  .access-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
  .access-photo img { width: 100%; height: 100%; object-fit: cover; }
  .access-info h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 16px; }
  .access-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .access-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; }
  .access-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--sky-deep); }
  .access-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: var(--sun); color: #3A2205; font-weight: 700; font-size: 0.9rem; }

  /* ---------- Footer ---------- */
  .site-footer { background: var(--navy-deep); color: #EAF3FA; padding-block: 52px 28px; }
  .footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 36px; }
  @media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
  .footer-col h4 { font-size: 0.85rem; letter-spacing: 0.1em; color: #8CC4EA; margin: 0 0 14px; }
  .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .footer-col a { font-size: 0.88rem; opacity: 0.9; }
  .footer-col a:hover { opacity: 1; text-decoration: underline; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.78rem; opacity: 0.75; }
