:root {
    --bg: #EAF4FB;
    --surface: #FFFFFF;
    --surface-alt: #DBEAF7;
    --ink: #0B2740;
    --ink-soft: #48647D;
    --line: #C3DBF0;
    --accent: #106FA8;
    --accent-deep: #0A4E78;
    --accent-soft: #D2E7F8;
    --sun: #E8863F;
    --sun-deep: #C96A28;
    --shadow: 0 18px 40px -22px rgba(10, 40, 65, 0.4);
    color-scheme: light;
  }

@media (prefers-color-scheme: dark) {
    :root {
      --bg: #061729; --surface: #0D2740; --surface-alt: #10304F; --ink: #E8F1FB;
      --ink-soft: #93B3D1; --line: #1C3A57; --accent: #3FA4E8; --accent-deep: #7FC4F2;
      --accent-soft: #11304E; --sun: #FFA766; --sun-deep: #FFC08F;
      --shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.6); color-scheme: dark;
    }
  }

:root[data-theme="dark"] {
    --bg: #061729; --surface: #0D2740; --surface-alt: #10304F; --ink: #E8F1FB;
    --ink-soft: #93B3D1; --line: #1C3A57; --accent: #3FA4E8; --accent-deep: #7FC4F2;
    --accent-soft: #11304E; --sun: #FFA766; --sun-deep: #FFC08F;
    --shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.6); color-scheme: dark;
  }

:root[data-theme="light"] {
    --bg: #EAF4FB; --surface: #FFFFFF; --surface-alt: #DBEAF7; --ink: #0B2740;
    --ink-soft: #48647D; --line: #C3DBF0; --accent: #106FA8; --accent-deep: #0A4E78;
    --accent-soft: #D2E7F8; --sun: #E8863F; --sun-deep: #C96A28;
    --shadow: 0 18px 40px -22px rgba(10, 40, 65, 0.4); 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;
  }

.font-display { font-family: "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", "Noto Serif JP", serif; }

a { color: inherit; }

/* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--surface) 88%, 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: 14px;
  }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { font-size: 1rem; letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand-text { font-size: .8rem; letter-spacing: .03em; }
}

.brand img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(10, 40, 65, 0.18));
    transition: transform 0.2s ease;
  }

.brand:hover img { transform: scale(1.05); }

.tel-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }

.tel-pill svg { width: 15px; height: 15px; flex: none; }

.tel-pill strong {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }

.tel-pill:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

#ripple { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.7; mix-blend-mode: screen; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }

.contact-facility h3 { margin: 0 0 8px; font-size: 1.3rem; }

.contact-facility p { margin: 0 0 6px; color: var(--ink-soft); font-size: 0.9rem; }

.contact-facility .tel-big { font-size: 1.4rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 10px; }

.contact-links { display: flex; flex-direction: column; gap: 10px; justify-content: center; }

.contact-links a {
    text-decoration: none; font-size: 0.88rem; padding: 12px 16px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center;
    justify-content: space-between; transition: border-color 0.15s ease;
  }

.contact-links a:hover { border-color: var(--accent); }

.copyright { text-align: center; font-size: 0.74rem; color: var(--ink-soft); padding-top: 40px; letter-spacing: 0.03em; }

/* ---------- Back to top ---------- */
  .back-to-top {
    position: fixed;
    right: clamp(16px, 4vw, 28px);
    bottom: clamp(16px, 4vw, 28px);
    z-index: 70;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
  }

.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.back-to-top:hover { background: var(--accent-deep); transform: translateY(-3px) scale(1); }

.back-to-top svg { width: 20px; height: 20px; }

/* Shared navigation remains visible with the sticky header on every ASES page. */
.site-header .header-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px 10px;
  border-top: 1px solid var(--line);
}
.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}
.header-nav a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
@media (max-width: 480px) {
  .site-header .header-nav { gap: 5px; padding: 7px 10px; }
  .header-nav a { flex: 1; padding: 7px 5px; font-size: .72rem; }
}
.site-header .header-nav { flex-wrap: wrap; }
.header-nav a.line-pill { gap: 5px; background: #06C755; color: #fff; }
.header-nav a.line-pill:hover { background: #05a648; }
.header-nav .line-pill svg { width: 14px; height: 14px; }
@media (max-width: 480px) {
  .header-nav a { flex: 0 1 auto; padding-inline: 9px; }
}