/* =========================================
   Base CSS (Clean / Minimal)
   - Layout, Reset, Skeleton
   - Header + Mobile Nav
   - Mobile Responsive Logic
   ========================================= */

:root {
  --container-width: 1000px;
  --padding-side: 20px;
}

/* Reset & Basics */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
ul, ol { list-style: none; padding: 0; margin: 0; }
a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s, background-color 0.25s, border-color 0.25s;
}
a:hover { opacity: 0.88; }

/* Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: #fff;
  padding: 1rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--padding-side);
}
.section { padding-block: 60px; }
@media (min-width: 768px) {
  .section { padding-block: 100px; }
}

/* =========================================
   Header (Slim)
========================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

/* Logo */
.logo { margin: 0; font-size: 20px; line-height: 1; }
.logo a { display: inline-flex; align-items: center; gap: 10px; }
.logo-text { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; }
.logo-sub { display: none; }

/* PC Nav */
.header-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 24px; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  line-height: 1;
  padding: 8px 2px;
}

/* Mobile Hamburger button (hidden on PC) */
.nav-toggle {
  display: none; /* Default hidden */
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle__bars {
  width: 18px;
  height: 2px;
  background: #111827;
  position: relative;
  display: block;
}
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #111827;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Overlay + Drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  z-index: 950;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(92vw, 360px);
  height: 100dvh;
  background: #fff;
  z-index: 1000;
  border-left: 1px solid #e5e7eb;
  transform: translateX(101%);
  transition: transform 0.25s ease;
}
.mobile-nav__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 12px;
  border-bottom: 1px solid #eef2f7;
}
.mobile-nav__title { font-weight: 700; font-size: 14px; color: #111827; }
.mobile-nav__close {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 20px; line-height: 1;
}
.mobile-nav__list { padding: 14px 4px; display: grid; gap: 8px; }
.mobile-nav__list a {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  background: #fafafa;
  font-weight: 600;
}
.mobile-nav__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}
.mobile-nav__phone {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-weight: 700;
}
.mobile-nav__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

/* Open state */
body.is-nav-open { overflow: hidden; }
body.is-nav-open .nav-overlay { display: block; }
body.is-nav-open .mobile-nav { display: block; transform: translateX(0); }

/* =========================================
   Hero (Wave / Amoeba)
========================================= */
.hero { position: relative; overflow: hidden; }
.hero-title { font-size: 40px; font-weight: 600; line-height: 1.5; margin: 0; }
.hero-lead { font-size: 16px; line-height: 1.8; color: #666; margin: 18px 0 0; }
.hero::before, .hero::after {
  content: ""; position: absolute;
  border-radius: 60% 40% 70% 30% / 60% 70% 30% 40%;
  background: #cfe7da;
}
.hero::after { width: 420px; height: 420px; top: -15%; right: -15%; opacity: 1; }
.hero::before { width: 260px; height: 260px; bottom: -20%; left: -15%; opacity: 0.35; filter: blur(2px); }

.hero--wave { position: relative; overflow: hidden; padding-block: 86px; }
.hero--wave .hero-inner { position: relative; z-index: 3; max-width: 760px; }
.hero--wave .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* SVG blobs */
.hero-blob {
  position: absolute; left: 50%; top: 56%;
  width: min(1600px, 180vw); height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 1; opacity: 0.95;
}
.hero-blob--front { transform: translate(-50%, -50%) rotate(-9deg); filter: blur(0px); }
.hero-blob--back { top: 62%; transform: translate(-50%, -50%) rotate(10deg); filter: blur(2px); opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .hero-blob animate { display: none; } }

/* =========================================
   Components
========================================= */
.card-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.card { flex: 1 1 300px; display: flex; flex-direction: column; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  padding: 18px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.info-table th { width: 30%; }

/* PDF Links (PC Default) */
.pdf-links { display: flex; gap: 16px; flex-wrap: wrap; }
.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-weight: 700;
  gap: 8px; /* アイコンとの距離 */
}

/* Footer Default */
.site-footer { padding-bottom: 20px; }

/* Mobile Fixed CTA (Default hidden) */
.mobile-cta { display: none; }

/* =========================================
   Responsive (Mobile: < 768px)
========================================= */
@media (max-width: 768px) {
  /* Header Nav switch */
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Hero adjustments */
  .hero::before { width: 180px; height: 180px; opacity: 0.25; }
  .hero::after { width: 300px; height: 300px; }
  .hero-title { font-size: 28px; line-height: 1.6; }

  /* Hide TEL button in Hero on mobile (redundant with fixed CTA) */
  .cta-actions .btn-primary[href^="tel:"] { display: none; }

  /* Table adjustments */
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 6px; }
  .info-table td { padding-top: 0; }

  /* PDF Links: Stack vertically */
  .pdf-links {
    flex-direction: column; /* 縦並び */
    gap: 12px;
    align-items: stretch; /* 横幅いっぱいに */
  }
  .pdf-link {
    width: 100%;
    justify-content: space-between; /* テキスト左、アイコン右 */
    padding: 16px 20px;
  }

  /* Footer spacer for fixed CTA */
  .site-footer { padding-bottom: 80px; }

  /* Show Mobile Fixed CTA */
  .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    z-index: 800;
    padding: 0 16px;
    height: 60px; /* 少し高さを確保 */
  }
}