/* ===========================
   Home Page (index.html)
   =========================== */

/* ── Hero Section — 日本物流施設風：左寄せ＋右イラスト ── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background-color: var(--bg-primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ヒーロー背景プレースホルダー */
.hero__img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #D6CFC4;
  background-image:
    /* 右下に和の抽象的なグラデーション */
    radial-gradient(ellipse at 70% 60%, rgba(139, 115, 85, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 40%, rgba(91, 127, 110, 0.06) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img-placeholder span {
  display: none; /* 写真差し替え前のプレースホルダーテキストは非表示 */
}

/* ダークオーバーレイ — より深い信頼感のある暗さ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(26, 25, 22, 0.68) 0%,
    rgba(26, 25, 22, 0.48) 45%,
    rgba(26, 25, 22, 0.28) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  width: 100%;
  /* イラストの高さ分を確保しつつ、コンテンツを中央付近に */
  padding-top: clamp(4rem, 12vh, 7rem);
  padding-bottom: clamp(5rem, 15vh, 9rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
  }
}

/* ヒーロー等角投影イラスト（右側） */
.hero__illust {
  position: absolute;
  right: -1%;
  top: 50%;
  transform: translateY(-46%);
  width: min(52%, 520px);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 899px) {
  .hero__illust {
    width: min(80%, 360px);
    right: -5%;
    opacity: 0.15;
    top: 55%;
  }
}

.hero__illust-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  /* 画像の白背景をヒーロー背景色(#F5F4F0)に近づけるため明度調整 */
  filter: brightness(0.97) saturate(0.95);
}

.hero__text {
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.hero__label {
  font-family: var(--font-latin);
  font-size: var(--fs-label);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-md);
}

.hero__catch {
  font-family: var(--font-mincho);
  font-size: clamp(1.875rem, 5.5vw, 3rem);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero__catch em {
  font-style: normal;
  display: block;
}

.hero__sub {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: var(--text-secondary);
  line-height: 2.0;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.03em;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

@media (min-width: 480px) {
  .hero__cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__cta-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  letter-spacing: 0.06em;
  width: 100%;
}

/* ── Hero Badges（3つの円形バッジ） ── */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .hero__badges {
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
    flex-shrink: 0;
  }
}

.hero-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--accent-subtle);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) ease, border-color var(--duration-base) ease;
}

.hero-badge:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

@media (min-width: 900px) {
  .hero-badge {
    width: 100px;
    height: 100px;
  }
}

.hero-badge__main {
  font-family: var(--font-mincho);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-align: center;
}

.hero-badge__accent {
  font-family: var(--font-mincho);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Hero Stagger Animation */
.hero-stagger {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.hero-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: calc(var(--mobile-cta-height) + var(--space-lg));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: scrollHintFade 1s ease 2.5s forwards;
}

@media (min-width: 768px) {
  .hero__scroll-hint {
    bottom: var(--space-xl);
  }
}

@keyframes scrollHintFade {
  to { opacity: 0.5; }
}

.hero__scroll-hint span {
  font-family: var(--font-latin);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-subtle), transparent);
  animation: scrollLinePulse 2s ease-in-out 2.5s infinite;
}

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

/* ── Symptoms Section — カードグリッド ── */
.symptoms {
  background-color: var(--bg-secondary);
  /* 薄いドットテクスチャ */
  background-image:
    radial-gradient(circle, rgba(200, 184, 154, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* 3列カードグリッド */
.symptoms__card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-block: var(--space-xl);
}

@media (min-width: 640px) {
  .symptoms__card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

/* 症状カード：イラスト上部＋テキスト下部の2段構成 */
.card--symptom {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}

.symptom-illust {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.symptom-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply;
}

/* 画像未設定時のプレースホルダー表示 */
.symptom-illust img[src=""] ,
.symptom-illust img:not([src]) {
  display: none;
}

.symptom-card__text {
  font-family: var(--font-gothic);
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  flex: 1;
  font-weight: 500;
}

.symptoms__footer {
  background-color: var(--bg-card);
  border: 1.5px solid var(--accent-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-top: var(--space-sm);
}

.symptoms__footer p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.symptoms__footer strong {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mincho);
}

/* ── Why Acupuncture Section ── */
.why {
  background-color: var(--bg-secondary);
}

.why__body {
  max-width: var(--text-max);
}

.why__body p {
  color: var(--text-secondary);
}

.why__body p + p {
  margin-top: 1.4em;
}

.why__highlight {
  font-family: var(--font-mincho);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-primary) !important;
  letter-spacing: 0.04em;
  padding: var(--space-lg) var(--space-xl);
  border-left: 3px solid var(--accent);
  background-color: var(--bg-primary);
  margin-block: var(--space-xl) !important;
  line-height: var(--lh-heading);
  box-shadow: var(--shadow-sm);
}

/* ── Features Section — タブUI ── */
.features {
  background-color: var(--bg-primary);
}

/* タブレイアウト: 左メニュー + 右コンテンツ */
.features__tab-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .features__tab-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

/* 左：番号タブナビゲーション */
.features__tab-nav {
  display: flex;
  flex-direction: row;
  gap: 0;
  border-bottom: 2px solid var(--border);
}

@media (min-width: 768px) {
  .features__tab-nav {
    flex-direction: column;
    border-bottom: none;
    border-right: 2px solid var(--border);
  }
}

.features__tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease,
              color var(--duration-fast) ease;
  position: relative;
  border-bottom: 3px solid transparent;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .features__tab-btn {
    border-bottom: none;
    border-right: 3px solid transparent;
    flex: none;
    padding: var(--space-lg) var(--space-xl);
  }
}

.features__tab-btn:hover {
  background-color: var(--bg-secondary);
}

.features__tab-btn.is-active {
  background-color: var(--accent-faint);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(139, 115, 85, 0.08);
}

@media (max-width: 767px) {
  .features__tab-btn.is-active {
    border-bottom-color: var(--accent);
    border-right: none;
  }
}

.features__tab-num {
  font-family: var(--font-latin);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-subtle);
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--duration-fast) ease;
}

.features__tab-btn.is-active .features__tab-num {
  color: var(--accent);
}

.features__tab-label {
  font-family: var(--font-mincho);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  line-height: 1.5;
  transition: color var(--duration-fast) ease;
}

@media (max-width: 767px) {
  .features__tab-label {
    display: none;
  }
}

.features__tab-btn.is-active .features__tab-label {
  color: var(--text-primary);
}

/* 右：パネルコンテンツ */
.features__tab-panels {
  min-height: 320px;
}

.features__tab-panel {
  animation: tabFadeIn 0.4s var(--ease-out);
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* パネル内イラスト */
.features__panel-illust {
  margin-bottom: var(--space-lg);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.features__panel-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.features__panel-illust svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: auto;
  display: block;
  padding: var(--space-lg);
}

/* パネル本文 */
.features__panel-body h3 {
  font-family: var(--font-mincho);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-heading);
}

.features__panel-body p {
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.features__panel-body p + p {
  margin-top: 1.2em;
}

.features__panel-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* 引用スタイル */
.features__quote {
  font-family: var(--font-mincho);
  font-size: 1.0625rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-subtle);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-body);
  letter-spacing: 0.03em;
}

/* ── Room Section — 院内紹介 ── */
.room {
  background-color: var(--bg-secondary);
}

.room__lead {
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin-top: var(--space-sm);
  max-width: 680px;
}

/* 各アイテム: 左写真/右テキスト */
.room__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.room__item:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .room__item {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  /* 偶数アイテム: 右写真/左テキスト — 写真を2列目へ */
  .room__item--reverse .room__photo {
    order: 2;
  }

  .room__item--reverse .room__body {
    order: 1;
  }
}

.room__photo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  filter: saturate(0.85) brightness(1.03);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.room__photo:hover .room__photo-img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.room__body h3 {
  font-family: var(--font-mincho);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: var(--lh-heading);
}

.room__body p {
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

/* ── Doctor Section ── */
.doctor {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.doctor__inner {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

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

.doctor__photo {
  max-width: 280px;
}

@media (min-width: 768px) {
  .doctor__photo {
    max-width: 100%;
  }
}

.doctor__photo .img-placeholder--portrait {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
}

.doctor__photo .img-placeholder__label {
  color: var(--text-muted);
}

.doctor__photo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
  filter: saturate(0.88) brightness(1.02);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.doctor__photo:hover .doctor__photo-img {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32), 0 4px 16px rgba(0, 0, 0, 0.20);
}

.doctor__content .section-label {
  color: var(--accent);
}

.doctor__content h2 {
  color: var(--text-light);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.doctor__content p {
  color: var(--text-light-secondary);
  line-height: var(--lh-body);
}

.doctor__content p + p {
  margin-top: 1.3em;
}

.doctor__content strong {
  color: var(--text-light);
  font-weight: 600;
}

.doctor__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-xl);
  font-size: var(--fs-body);
  color: var(--accent-subtle);
  letter-spacing: 0.04em;
  transition: color var(--duration-fast) ease, gap var(--duration-fast) ease;
}

.doctor__read-more:hover {
  color: var(--accent-hover);
  gap: 0.75rem;
}

.doctor__read-more::after {
  content: '→';
  font-family: var(--font-latin);
}

.doctor__profile {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-dark);
}

.doctor__name {
  font-family: var(--font-mincho);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.doctor__qualifications {
  font-size: var(--fs-small);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ── Honesty Section ── */
.honesty {
  background-color: var(--bg-secondary);
}

.honesty__content {
  max-width: var(--text-max);
}

.honesty__content h2 {
  font-size: clamp(1.375rem, 4vw, 2rem);
  margin-bottom: var(--space-xl);
}

.honesty__content p {
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.honesty__content p + p {
  margin-top: 1.4em;
}

.honesty__accent {
  font-family: var(--font-mincho);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-primary) !important;
  letter-spacing: 0.04em;
  margin-block: var(--space-xl) !important;
  line-height: var(--lh-heading);
}

/* ── Symptoms: ミニLINE CTA ── */
.symptoms__line-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
}

@media (min-width: 640px) {
  .symptoms__line-cta {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
}

.symptoms__line-cta-text {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

/* LINE インラインボタン */
.btn--line-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6875rem 1.5rem;
  background-color: #06C755;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color var(--duration-fast) ease, transform var(--duration-fast) ease;
  flex-shrink: 0;
}

.btn--line-inline:hover {
  background-color: #05a847;
  transform: translateY(-1px);
}

.btn--line-inline:active {
  transform: translateY(0);
}

/* ── LINE CTA Section (メイン) ── */
.line-cta {
  background-color: #F0F7F2;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(6, 199, 85, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 115, 99, 0.08) 0%, transparent 50%);
}

.line-cta__inner {
  max-width: var(--text-max);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.line-cta__heading .section-label {
  color: #3a8a56;
}

.line-cta__heading h2 {
  font-family: var(--font-mincho);
  font-size: clamp(1.375rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--lh-heading);
  letter-spacing: 0.04em;
  margin-top: var(--space-sm);
}

.line-cta__text {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

/* 特典バッジ */
.line-cta__gift {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: #fff;
  border: 1.5px solid #8fd4a8;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-small);
  font-weight: 600;
  color: #2d7a4a;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.10);
  align-self: flex-start;
}

.line-cta__gift-icon {
  flex-shrink: 0;
  color: #06C755;
}

/* LINE CTAメインボタン */
.btn--line-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background-color: #06C755;
  color: #fff;
  font-family: var(--font-gothic);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.30), 0 2px 6px rgba(6, 199, 85, 0.18);
  transition: background-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}

.btn--line-cta:hover {
  background-color: #05a847;
  box-shadow: 0 8px 28px rgba(6, 199, 85, 0.40);
  transform: translateY(-2px);
}

.btn--line-cta:active {
  transform: translateY(0);
}

.btn-line-icon {
  flex-shrink: 0;
}
