/* リハエール — チラシ準拠のスタイル */

:root {
  --color-bg-light: #e6f4f1;
  --color-bg-mid: #d1eaef;
  --color-primary: #ef857d;
  --color-heading: #2c507d;
  --color-brand: #6bb5c8;
  --color-highlight: #ffe100;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-muted: #5a6b7d;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --shadow-sm: 0 2px 8px rgba(44, 80, 125, 0.08);
  --shadow-md: 0 8px 24px rgba(44, 80, 125, 0.12);
  --radius: 12px;
  --header-h: 72px;
  --max-width: 1120px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  color: var(--color-heading);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-brand);
}

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--color-heading);
  color: var(--color-white);
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--color-bg-light);
}

.section--mid {
  background: var(--color-bg-mid);
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-brand);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-heading);
  line-height: 1.35;
}

.section__lead {
  margin: 0 0 2.5rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-bg-mid);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

.brand__logo {
  width: auto;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: var(--color-bg-light);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-heading);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  border-bottom-color: var(--color-primary);
  color: var(--color-heading);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-heading);
  border: 2px solid var(--color-brand);
}

.btn--outline:hover {
  background: var(--color-bg-light);
  color: var(--color-heading);
}

.header-cta {
  white-space: nowrap;
}

/* ヒーロー */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  background: url("../assets/hero-bg.png") center 30% / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 50%;
  max-width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(107, 181, 200, 0.25), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-highlight);
  font-weight: 800;
  font-size: 0.9375rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero__catch {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--color-heading);
  line-height: 1.3;
}

.hero__catch em {
  font-style: normal;
  color: var(--color-brand);
}

.hero__type {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__tel {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--color-heading);
  text-decoration: none;
}

.hero__tel:hover {
  color: var(--color-primary);
}

/* 5つの支援 */
.supports-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.support-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-bg-mid);
}

.support-card__num {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.support-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--color-heading);
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--color-primary);
}

.support-card__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* カード共通 */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  margin: 0 0 0.75rem;
  color: var(--color-heading);
}

/* 医師コメント */
.doctor-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.doctor-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.doctor-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.doctor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card__name {
  margin: 0;
  color: var(--color-heading);
  font-weight: 800;
  font-size: 1.0625rem;
}

.doctor-card__title {
  margin: 0.125rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.doctor-card__quote {
  margin: 0 0 1.25rem;
  color: var(--color-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.doctor-card__body p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.doctor-card__body p:last-child {
  margin-bottom: 0;
}

/* 料金プラン */
.plans-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plan-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 2px solid var(--color-bg-mid);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.plan-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

.plan-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-light) 100%);
}

.plan-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--color-heading);
}

.plan-card__price {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}

.plan-card__price small {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.plan-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.plan-card__note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* スタッフ */
.staff-card {
  display: grid;
  gap: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .staff-card {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.staff-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  font-weight: 700;
  font-size: 2rem;
  flex-shrink: 0;
}

/* 実写真の場合（divラッパー） */
.staff-card__avatar--photo {
  overflow: hidden;
  border: 3px solid var(--color-brand);
  box-shadow: var(--shadow-md);
  position: relative;
}

.staff-card__avatar--photo img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  object-fit: cover;
  object-position: center 20%;
}

.staff-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  color: var(--color-heading);
}

.staff-card__role {
  margin: 0 0 1rem;
  color: var(--color-brand);
  font-weight: 700;
}

.qual-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.qual-list li {
  margin-bottom: 0.35rem;
}

/* ご利用の流れ */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.step-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
  border-radius: 50%;
  font-size: 0.875rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-heading);
}

.step-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* 対象エリア */
.area-block {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.area-block:last-child {
  margin-bottom: 0;
}

.area-block h3 {
  margin: 0 0 0.75rem;
  color: var(--color-heading);
  font-size: 1.125rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--color-brand);
}

.area-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.area-block li {
  font-size: 0.9375rem;
  padding: 0.35rem 0.75rem;
  background: var(--color-bg-light);
  border-radius: 6px;
  color: var(--color-text);
}

/* 営業時間テーブル */
.hours-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
  background: var(--color-white);
}

.hours-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.hours-table th,
.hours-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border: 1px solid var(--color-bg-mid);
}

.hours-table tbody th {
  background: var(--color-bg-light);
  color: var(--color-heading);
  font-weight: 700;
}

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

.hours-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* アクセス・お問い合わせ */
.access-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list strong {
  display: block;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}

/* LINE QR コード */
.contact-list__line {
  margin-top: 0.5rem;
}

.line-qr-wrap {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 8px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 2px solid #06C755;
}

.line-qr-img {
  display: block;
  width: 130px;
  height: 130px;
  object-fit: contain;
}

/* お問合せボタングループ */
.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* LINEボタン */
.btn--line {
  background: #06C755;
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn--line:hover {
  background: #05b04c;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

/* フッター */
.site-footer {
  background: var(--color-heading);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 6rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 3rem;
  }
}

.site-footer a {
  color: var(--color-highlight);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--color-highlight);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* チャットボット用マウント（後日実装） */
#chatbot-mount {
  display: none;
}

/* ヒーロー波形区切り */
.hero {
  padding-bottom: 6rem;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.hero__wave svg {
  width: 100%;
  height: 72px;
  display: block;
}

/* ヒーロー右カラムのスタイル強化 */
.hero__contact-box {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(107, 181, 200, 0.2);
}

/* 支援カードアイコン */
.support-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.support-card__icon svg {
  width: 100%;
  height: 100%;
}

/* おすすめバッジ */
.plan-badge {
  display: inline-block;
  padding: 0.2rem 0.9rem;
  background: var(--color-highlight);
  color: var(--color-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

/* TOPへ戻るボタン */
.btn-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-heading);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition);
}

.btn-top:hover {
  background: var(--color-brand);
  transform: translateY(-3px);
}

.btn-top[hidden] {
  display: none;
}

.btn-top svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1024px) {
  .btn-top {
    bottom: 2rem;
    right: 2rem;
  }
}

/* スクロールフェードインアニメーション */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* アクティブナビリンク */
.site-nav__link.is-active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

/* モバイル固定CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0.65rem 1rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-bg-mid);
  box-shadow: 0 -4px 16px rgba(44, 80, 125, 0.12);
  gap: 0.5rem;
}

.mobile-cta .btn {
  flex: 1;
  font-size: 0.875rem;
  padding: 0.75rem;
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-white);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-bg-mid);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav[hidden] {
    display: none;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-bg-light);
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero__brand {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-brand);
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1.2;
}

.hero__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary), #f5a090);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero__badge-date {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-highlight);
}

.hero__badge-msg {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
}

.plans-subtitle {
  margin: 2rem 0 1rem;
  font-size: 1.15rem;
  color: var(--color-heading);
}

.plans-subtitle:first-of-type {
  margin-top: 0;
}

.plan-card__meta,
.plan-card__unit {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.staff-grid {
  display: grid;
  gap: 1.25rem;
}

.staff-card__ruby {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.hours-table thead th {
  background: var(--color-primary);
  color: var(--color-white);
}

.hours-table .is-open {
  font-weight: 700;
  color: var(--color-heading);
}

.hours-table .is-closed {
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}
