/* ============================================
   Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ja);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
ul, ol { list-style: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 8px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================
   Logo
   ============================================ */

.header-logo__img {
  display: block;
  width: 200px;
  height: auto;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 0 var(--color-blue-100);
  height: 100px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: calc(var(--max-width) + 80px);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  gap: 40px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav__list a {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-primary);
  transition: color var(--transition);
}

.header-nav__list a:hover {
  opacity: 1;
  color: var(--color-blue-300);
}

/* ============================================
   Button
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 28px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-ja);
  font-size: var(--fs-btn);
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn--lg {
  font-size: 18px;
  padding: 14px 40px;
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  flex-shrink: 0;
}

.btn__icon--primary {
  background: rgba(11,88,133,0.12);
}

/* ============================================
   Wave Dividers
   ============================================ */

.wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: block;
}

.wave img {
  width: 100%;
  height: auto;
  display: block;
}

/* wave--enter: between white and blue sections
   Container is white → #f1f6f8 wave shape is visible */
.wave--enter {
  background: var(--color-white);
}

/* wave--exit: after a blue section, before white
   Container is white → shows the exit wave from blue */
.wave--exit {
  background: var(--color-white);
}

/* ============================================
   Section Base
   ============================================ */

.section {
  padding: var(--sp-xl) 0;
}

.section--white { background: var(--color-white); }
.section--blue  { background: var(--color-blue-bg); }
.section--green { background: var(--color-green-bg); }

.section__header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.section__lead {
  margin-top: var(--sp-sm);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-light);
  font-size: 15px;
}

/* ============================================
   Heading Components (from Figma)
   ============================================ */

/* Heading-LL */
.heading-ll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
}

.heading-ll__en {
  font-family: var(--font-en);
  font-size: var(--fs-en-xl);
  font-weight: 400;
  color: var(--color-blue-300);
  line-height: 1;
  letter-spacing: 0.02em;
}

.heading-ll__en--green {
  color: var(--color-green-300);
}

.heading-ll__ja {
  font-family: var(--font-ja);
  font-size: var(--fs-heading-ll);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.heading-ll__ja--green {
  color: var(--color-teal);
}

/* Heading-M */
.heading-m {
  font-family: var(--font-ja);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}

/* Heading-S */
.heading-s {
  display: flex;
  align-items: center;
  gap: var(--gap-heading-s, 12px);
  font-family: var(--font-ja);
  font-size: var(--fs-heading-s);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}

.heading-s::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--color-blue-200) 0%, var(--color-primary) 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: var(--sp-xl) 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 背景写真 */
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
}

/* プライマリカラーのオーバーレイ（可読性確保） */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 41, 68, 0.80) 0%,
    rgba(11, 88, 133, 0.65) 55%,
    rgba(11, 88, 133, 0.30) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

.hero__content {
  max-width: 620px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-blue-bg);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--color-blue-200);
  white-space: nowrap;
}

.badge--white {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--sp-md);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
  margin-bottom: var(--sp-lg);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  transition: opacity var(--transition);
}
.hero__tel:hover { opacity: 0.75; }

.hero__tel--white {
  color: var(--color-white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.hero__tel--white:hover { opacity: 0.8; }

/* ============================================
   Checkup Menu
   ============================================ */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.menu-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(11,88,133,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(11,88,133,0.12);
}

.menu-card__label {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-blue-bg);
  color: var(--color-blue-300);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.menu-card__title {
  margin-bottom: 12px;
}

.menu-card__body {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.menu-card__cost {
  font-size: var(--fs-sm);
  color: var(--color-text);
  padding: 12px 16px;
  background: var(--color-blue-bg);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.menu-card__note {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

/* ============================================
   Flow
   ============================================ */

.flow-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  counter-reset: flow;
}

.flow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.flow-step__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
  border-radius: 50%;
}

.flow-step__content {}

.flow-step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.flow-step__body {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.flow-step__body a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================
   365 Days Features
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: var(--sp-md);
}

.feature-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(11,88,133,0.08);
}

.feature-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-bg);
  border-radius: 50%;
}

.feature-item__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.feature-item__body {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.days-note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-top: var(--sp-sm);
}

/* ============================================
   Why
   ============================================ */

.why-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.why-photo {
  flex-shrink: 0;
}

.why-photo__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(11,88,133,0.12);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-blue-100);
}

.why-item:last-child {
  border-bottom: none;
}

.why-item__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
  border-radius: 50%;
}

.why-item__content {}

.why-item__title {
  margin-bottom: 8px;
}

.why-item__body {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-left: calc(4px + 12px); /* matches heading-s::before width + gap */
}

/* ============================================
   Doctor
   ============================================ */

.doctor-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 48px;
  box-shadow: 0 2px 12px rgba(42,139,137,0.08);
}

.doctor-card__photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-green-200);
  overflow: hidden;
}

.doctor-card__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-card__info {}

.doctor-card__role {
  font-size: var(--fs-sm);
  color: var(--color-teal);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.doctor-card__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

.doctor-card__read {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-text-light);
  margin-left: 8px;
}

.doctor-card__quote {
  border-left: 3px solid var(--color-green-200);
  padding-left: 20px;
}

.doctor-card__quote p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  font-style: normal;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-blue-100);
  padding: 24px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-blue-100);
}

.faq-item__q,
.faq-item__a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.faq-item__q {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.faq-item__a {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-item__label {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
}

.faq-item__q .faq-item__label {
  background: var(--color-primary);
  color: var(--color-white);
}

.faq-item__a .faq-item__label {
  background: var(--color-blue-bg);
  color: var(--color-primary);
  border: 1.5px solid var(--color-blue-200);
}

/* ============================================
   Access
   ============================================ */

.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.access-table {
  width: 100%;
  border-collapse: collapse;
}

.access-table th,
.access-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-blue-200);
  font-size: 15px;
  line-height: 1.6;
  vertical-align: top;
}

.access-table th {
  width: 120px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.access-table td {
  color: var(--color-text);
}

.access-table td a {
  color: var(--color-primary);
  text-decoration: underline;
}

.access-table tr:first-child th,
.access-table tr:first-child td {
  border-top: 1px solid var(--color-blue-200);
}

.access-map__placeholder {
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.access-map__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-btn);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: opacity var(--transition);
}
.access-map__link:hover { opacity: 0.85; }

/* ============================================
   CTA
   ============================================ */

.section--cta {
  background: var(--color-primary);
  padding: var(--sp-xl) 0;
}

.cta__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--sp-sm);
  line-height: 1.4;
}

.cta__lead {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: var(--sp-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta__tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  transition: opacity var(--transition);
}
.cta__tel:hover { opacity: 0.8; }

.cta__tel-note {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
}

.footer-inner {
  max-width: calc(var(--max-width) + 80px);
  margin: 0 auto;
  padding: var(--sp-lg) var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-brand__address,
.footer-brand__tel {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.footer-brand__tel a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-nav a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-nav a:hover {
  opacity: 1;
  color: var(--color-white);
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: var(--sp-sm) var(--container-pad);
  text-align: center;
  max-width: calc(var(--max-width) + 80px);
  margin: 0 auto;
}

.footer-copy small {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --container-pad: 24px;
    --sp-xl: 72px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-inner {
    grid-template-columns: 1fr;
  }

  .why-photo {
    order: -1;
  }

  .why-photo__img {
    height: 320px;
  }

  .access-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --sp-xl: 56px;
    --sp-lg: 40px;
    --fs-en-xl: 52px;
    --fs-heading-ll: 22px;
  }

  .site-header {
    height: 64px;
  }

  .header-logo__img {
    width: 160px;
  }

  .header-nav__list {
    display: none;
  }

  .hero { padding: var(--sp-lg) 0; min-height: 500px; }
  .hero__title { font-size: 26px; }
  .hero__cta { flex-direction: column; align-items: flex-start; }

  .why-inner { gap: 32px; }
  .why-photo__img { height: 240px; }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .doctor-card__quote {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
    padding: var(--sp-md) var(--container-pad);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .btn--lg {
    font-size: 16px;
    padding: 12px 28px;
  }
}
