/* ============================================================
   川口脳神経外科リハビリクリニック - スタイルシート
   ============================================================ */

/* --- CSS変数 --- */
:root {
  /* メインカラー（医療系ブルー） */
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-200: #BFDBFE;
  --primary-500: #1E6BB0;
  --primary-600: #185A94;
  --primary-700: #134B7D;
  --primary-800: #0F3D66;
  --primary-900: #0B2F50;

  /* アクセント（ティール系） */
  --accent-500: #0D9488;
  --accent-600: #0F766E;

  /* ニュートラル */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* テキスト */
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;

  /* ボーダー */
  --border: #E5E7EB;

  /* 背景 */
  --bg-light: #F8FAFC;

  /* フォント */
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  /* トランジション */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- リセット --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover {
  color: var(--primary-700);
}

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

ul {
  list-style: none;
}

/* --- ユーティリティ --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: none;
}

/* --- フォーカスインジケーター --- */
:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

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

.btn--primary:hover {
  background: var(--primary-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 107, 176, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* --- ヘッダー --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-700);
  flex-shrink: 0;
}

.header__logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.2;
}

.header__logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.header__logo-main {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: all 0.3s var(--ease);
}

.nav {
  margin-left: auto;
}

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

.nav__link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--primary-500);
  background: var(--primary-50);
}

.header__tel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-500);
  border: 2px solid var(--primary-500);
  border-radius: 50px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.header__tel:hover {
  background: var(--primary-500);
  color: var(--white);
}

/* --- ヒーロー --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0B2F50 0%, #1E6BB0 50%, #0D9488 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(30, 107, 176, 0.2) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 60px 24px;
  max-width: 800px;
}

.hero__catch {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.hero__clinic {
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__desc {
  font-size: clamp(18px, 2.5vw, 24px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- お知らせバー --- */
.notice {
  background: var(--primary-50);
  border-bottom: 1px solid var(--primary-100);
  padding: 12px 0;
}

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

.notice__badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--primary-500);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}

.notice__text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- セクション共通 --- */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.section__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- クリニックが行う健康経営とは？ --- */
.about-kenkou__body {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.about-kenkou__lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 24px;
}

.about-kenkou__sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-secondary);
  line-height: 2;
}

.about-kenkou__message {
  text-align: center;
  padding: 32px 24px;
  margin-bottom: 48px;
  border-top: 2px solid var(--primary-500);
  border-bottom: 2px solid var(--primary-500);
}

.about-kenkou__msg-main {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1.8;
}

/* 売り文句カード */
.about-kenkou__appeal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.appeal-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.appeal-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.appeal-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-500);
}

.appeal-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.appeal-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- フッター --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}


.footer__logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__address {
  font-size: 13px;
  margin-bottom: 4px;
}

.footer__phone a {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__col li a {
  font-size: 13px;
  color: var(--gray-400);
  transition: color 0.3s var(--ease);
}

.footer__col li a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid var(--gray-700);
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--gray-500);
}

/* --- 健康経営サービス --- */
.kenkou__services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.kenkou-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.kenkou-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.kenkou-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-500);
}

.kenkou-card__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.kenkou-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.kenkou__section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}

/* ご利用プラン */
.kenkou__plans {
  margin-bottom: 64px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.plan-card {
  border-radius: 12px;
  padding: 24px 20px;
  color: var(--white);
  text-align: center;
}

.plan-card--a {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.plan-card--b {
  background: linear-gradient(135deg, #EF4444, #DC2626);
}

.plan-card--c {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-800));
}

.plan-card__header {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.plan-card__goal {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.plan-card__outcome {
  font-size: 13px;
  margin-bottom: 16px;
  opacity: 0.9;
  line-height: 1.5;
}

.plan-card__list {
  text-align: left;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-card__list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}

.plan-card__list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.kenkou__plans-note {
  text-align: center;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.8;
}

/* ご利用の流れ */
.kenkou__flow {
  margin-bottom: 0;
}

.flow-steps {
  max-width: 600px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.flow-step__number {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-500);
  padding: 4px 12px;
  border: 2px solid var(--primary-500);
  border-radius: 6px;
}

.flow-step__content {
  flex: 1;
}

.flow-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.flow-step__desc {
  font-size: 13px;
  color: var(--text-muted);
}

.flow-step__badge {
  flex-shrink: 0;
  padding: 3px 12px;
  background: #FEF9C3;
  color: #A16207;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}

.kenkou__flow-note {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-500);
}

/* --- お問い合わせ --- */
.contact__intro {
  text-align: center;
  margin-bottom: 40px;
}

.contact__intro p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact__form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-required {
  font-size: 12px;
  color: #B91C1C;
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-ja);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(30, 107, 176, 0.15);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-privacy {
  margin-bottom: 24px;
}

.form-privacy p {
  font-size: 13px;
  color: var(--text-muted);
}

.form-submit {
  text-align: center;
}

.btn--submit {
  min-width: 200px;
}

/* --- フッター SNS --- */
.footer__sns-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- ページトップ --- */
.page-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-500);
  color: var(--white);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
  z-index: 999;
  box-shadow: 0 2px 12px rgba(30, 107, 176, 0.3);
}

.page-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top:hover {
  background: var(--primary-700);
  color: var(--white);
  transform: translateY(-2px);
}

.page-top svg {
  width: 24px;
  height: 24px;
}

/* --- アニメーション --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .scroll-fade {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hero__scroll-line {
    animation: none;
  }
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット */
@media (max-width: 1024px) {
  .about-kenkou__appeal {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .footer__col--main {
    grid-column: 1 / -1;
  }
}

/* モバイル */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .header__inner {
    height: 60px;
  }

  .header__logo-main {
    font-size: 13px;
  }

  .header__toggle {
    display: flex;
  }

  .header__tel {
    display: none;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 80px 24px 40px;
    transition: right 0.3s var(--ease);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .hero {
    min-height: 80vh;
    padding-top: 60px;
  }

  .hero__content {
    padding: 40px 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .notice__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section {
    padding: 56px 0;
  }

  .kenkou__services {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

/* 小型モバイル */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}
