/*
Theme Name: 時國司法書士事務所
Theme URI: https://round-saga-0574.under.jp/wordpress/
Author: 時國司法書士事務所
Description: 時國司法書士事務所のオリジナルWordPressテーマ。カスタマイザーから主要コンテンツを編集可能。
Version: 1.0.0
Text Domain: tokikuni
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========== CSS Reset & Custom Properties ========== */
:root {
  --bg: #F0F7FC;
  --surface: #ffffff;
  --ink: #1A2530;
  --primary: #1A5276;
  --secondary: #2E86C1;
  --accent: #2E86C1;
  --accent-soft: color-mix(in srgb, #2E86C1 15%, #F0F7FC);
  --line: rgba(33, 44, 51, 0.10);
  --ink-soft: rgba(33, 44, 51, 0.68);
  --gold: #D4A017;
  --gold-soft: #F5E6B8;

  --shadow-card: 0 2px 16px rgba(45, 41, 38, 0.10);
  --shadow-card-hover: 0 8px 28px rgba(45, 41, 38, 0.16);
  --shadow-lg: 0 24px 64px rgba(33, 44, 51, 0.10);
  --shadow-sticky: 0 -2px 12px rgba(45, 41, 38, 0.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --max: 960px;

  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", "MS PMincho", serif;

  --header-h: 56px;
  --header-h-lg: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

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

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

p, li, span {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========== Focus States ========== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ========== Container ========== */
.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ========== Section Backgrounds ========== */
.section {
  padding: 48px 0;
}
.section-alt {
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--secondary) 20%, var(--surface)) 100%);
}
.section-warm {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 30%, var(--bg)) 0%, var(--bg) 100%);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.35;
  font-family: var(--font-serif);
}

/* ========== Eyebrow Pattern ========== */
.eyebrow,
.section-eyebrow,
.mini-eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 11px;
  line-height: 1.5;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-1px);
}

.mini-eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 8px;
}

/* ========== Sticky Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 76%, black));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-logo {
  flex: 0 0 auto;
}
.brand-logo img,
.brand-logo .custom-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: contain;
  display: block;
}

.site-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-meta {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}


.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
}

.menu-bars {
  position: relative;
  width: 16px;
  height: 12px;
}
.menu-bars span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 5px; }
.menu-bars span:nth-child(3) { top: 10px; }

body.nav-open .menu-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.nav-open .menu-bars span:nth-child(2) { opacity: 0; }
body.nav-open .menu-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link,
.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.nav-link {
  color: var(--ink);
}
.nav-link:hover, .nav-link:focus-visible {
  background: color-mix(in srgb, var(--secondary) 50%, transparent);
  color: var(--ink);
}

.nav-call {
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 76%, black));
  color: white;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 24%, transparent);
  gap: 6px;
}
.nav-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.nav-call:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 20%, transparent);
}

.nav-backdrop {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(33, 44, 51, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 90;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ========== Buttons ========== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 200ms ease, background-color 200ms ease;
  text-decoration: none;
}
.button.primary {
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 76%, black));
  color: white;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 30%, transparent);
}
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 40%, transparent);
}
.button.primary:active {
  transform: scale(0.97);
}

.button.secondary {
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}
.button.secondary:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--secondary) 40%, white);
  border-color: color-mix(in srgb, var(--primary) 20%, var(--line));
}
.button.secondary:active {
  transform: scale(0.97);
}

.button.large {
  min-width: 200px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero .button-row {
  flex-wrap: nowrap;
}
.hero .button-row .button {
  flex: 1 1 0;
  min-width: 0;
}

/* ========== Hero Section ========== */
.hero {
  padding: 24px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--bg)) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  pointer-events: none;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 16px 0 32px;
}

.hero-copy h1 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.3;
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

.lead {
  margin: 0;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36em;
}

.fact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.fact-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-visual {
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
  z-index: 2;
}

.media-card {
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

@media (hover: hover) {
  .media-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
  }
}

.media-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--secondary);
}

.media-caption strong,
.media-card-note h3,
.feature-card h3,
.care-card h3,
.panel h2,
.notice-card h3,
.hours-card strong,
.photo-card strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.media-caption span,
.media-card-note p,
.feature-card p,
.care-card p,
.panel-copy,
.notice-card p,
.panel-note,
.photo-card span,
.detail-list li,
.access-list li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* ========== Quick Info Bar ========== */
.quick-info {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.quick-info-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.quick-info-icon {
  color: var(--primary);
  display: flex;
  align-items: center;
}
.quick-info-label {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.quick-info-value {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* ========== Profile Section ========== */
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.profile-photo {
  width: 200px;
  flex-shrink: 0;
}
.profile-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--line);
}
.profile-body {
  display: grid;
  gap: 16px;
  align-content: start;
}
.profile-name-block {
  display: grid;
  gap: 4px;
}
.profile-title-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}
.profile-name {
  font-size: clamp(22px, 4vw, 28px);
  font-family: var(--font-serif);
  line-height: 1.3;
}
.profile-greeting {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}
.profile-details {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.profile-details li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.profile-details li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ========== Feature Cards ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.care-card,
.panel,
.hours-card,
.notice-card,
.photo-card,
.access-card {
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

@media (hover: hover) {
  .feature-card:hover, .care-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
  }
}

.feature-card,
.care-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-content: start;
}

.feature-card-icon,
.care-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  grid-row: 1;
  grid-column: 1;
  align-self: center;
}

.feature-card h3,
.care-card h3 {
  grid-row: 1;
  grid-column: 2;
  align-self: center;
}

.feature-card p,
.care-card p,
.care-card .mini-eyebrow {
  grid-column: 1 / -1;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  grid-auto-rows: 1fr;
}

/* ========== Stacked Panel Layout ========== */
.split-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.panel {
  padding: 32px;
  display: grid;
  gap: 20px;
  align-content: start;
}
.panel .section-head {
  margin-bottom: 0;
}

/* ========== Hours Cards ========== */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hours-card {
  padding: 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.hours-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.panel-copy {
  margin: 0;
}
.panel-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ========== Map ========== */
.map-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--secondary);
  min-height: 240px;
  box-shadow: var(--shadow-card);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

.access-card {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.access-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
  list-style: disc;
}
.access-list li::marker {
  color: var(--primary);
}

/* ========== Case Study Cards ========== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.case-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
@media (hover: hover) {
  .case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
  }
}
.case-card-header {
  padding: 20px 24px 16px;
  border-bottom: 2px solid var(--primary);
}
.case-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.case-card-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.case-table td {
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.case-label {
  color: var(--ink-soft);
  white-space: nowrap;
}
.case-value {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.case-total td {
  border-bottom: none;
  border-top: 2px solid var(--primary);
  padding-top: 12px;
  padding-bottom: 16px;
}
.case-total .case-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.case-total .case-value {
  font-size: 16px;
  color: var(--primary);
}
.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.gallery-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.gallery-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 180ms ease;
}
.gallery-dot.is-active {
  background: var(--primary);
}

/* ========== FAQ Section ========== */
.faq-list {
  display: grid;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 200ms ease;
}
.faq-item[open] {
  box-shadow: var(--shadow-card);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::marker {
  content: "";
}
.faq-toggle {
  display: flex;
  align-items: center;
  color: var(--primary);
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-toggle {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ========== Contact Section ========== */
.contact-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 72%, black));
  color: white;
  box-shadow: 0 16px 48px color-mix(in srgb, var(--primary) 30%, transparent);
}
.contact-shell h2,
.contact-shell p {
  margin: 0;
}
.contact-shell p {
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.contact-shell .button.primary {
  background: white;
  color: var(--primary);
  box-shadow: none;
}
.contact-shell .button.primary:hover {
  background: rgba(255, 255, 255, 0.92);
}
.contact-shell .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
}
.contact-shell .button.secondary:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* ========== Footer ========== */
.site-footer {
  background: color-mix(in srgb, var(--ink) 95%, black);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 120px;
}
.footer-inner {
  display: grid;
  gap: 16px;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.footer-info {
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
}
.footer-info a {
  color: rgba(255, 255, 255, 0.8);
}
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* ========== Sticky Mobile CTA ========== */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-sticky);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.mobile-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: transform 100ms ease;
}
.mobile-cta-btn:active {
  transform: scale(0.97);
}
.mobile-cta-phone {
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
}
.mobile-cta-book {
  background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 76%, black));
  color: white;
}

/* ========== Scroll Animations ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.is-visible:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll.is-visible:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll.is-visible:nth-child(4) { transition-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ========== Desktop (960px+) ========== */
@media (min-width: 960px) {
  :root {
    --header-h: var(--header-h-lg);
  }
  html {
    scroll-padding-top: calc(var(--header-h-lg) + 16px);
  }
  .container {
    width: min(calc(100% - 48px), var(--max));
  }
  .site-header {
    height: var(--header-h-lg);
  }
  .section {
    padding: 80px 0;
  }
  .section-head h2 {
    font-size: clamp(26px, 3vw, 32px);
  }
  .hero-copy h1 {
    font-size: clamp(28px, 4vw, 40px);
  }
  .hero-copy {
    padding: 32px 0 48px;
  }
  .map-frame {
    min-height: 360px;
  }
  .map-frame iframe {
    min-height: 360px;
  }
}

/* ========== Tablet (max 960px) ========== */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 12px;
    left: 12px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 96%, white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 95;
  }
  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link, .nav-call {
    width: 100%;
    justify-content: flex-start;
    height: 44px;
  }

  .hero-shell,
  .split-shell,
  .contact-shell,
  .profile-card {
    grid-template-columns: 1fr;
  }
  .profile-photo {
    width: 160px;
    margin: 0 auto;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .care-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .contact-actions {
    justify-content: flex-start;
  }
}

/* ========== Mobile (max 720px) ========== */
@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }
  .hero {
    padding: 0;
  }
  .hero::before, .hero::after {
    display: none;
  }
  .hero-visual {
    display: block;
    order: -1;
    margin: 0 -12px;
  }
  .hero-visual .media-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .hero-visual .media-card-image {
    border-radius: 0 !important;
    aspect-ratio: 16 / 9;
  }
  .hero-copy {
    padding: 20px 0 28px;
  }
  .hero-copy h1 {
    font-size: clamp(22px, 7vw, 30px);
  }
  .hero-visual {
    display: none;
  }
  .hours-grid,
  .feature-grid,
  .care-grid {
    grid-template-columns: 1fr;
  }
  .case-table td {
    padding: 8px 16px;
  }
  .quick-info-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quick-info-item {
    flex-direction: row;
    text-align: left;
    gap: 10px;
    padding: 6px 0;
  }
  .quick-info-icon {
    width: 32px;
    flex-shrink: 0;
    justify-content: center;
  }
  .quick-info-label {
    min-width: 56px;
  }
  .button.large,
  .contact-actions .button {
    width: 100%;
  }
  .site-footer {
    padding-bottom: 48px;
  }
  .contact-shell {
    padding: 20px;
  }
}

/* ========== Print Styles ========== */
@media print {
  .site-header,
  .mobile-cta,
  .nav-backdrop,
  .contact-shell,
  .map-frame,
  .button-row {
    display: none !important;
  }
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  .section {
    padding: 24px 0;
    break-inside: avoid;
  }
  .hours-card, .access-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .hero {
    background: none;
    padding: 12px 0;
  }
  .hero::before, .hero::after {
    display: none;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
