/* ===============================================
   Therapeutic Program Page CSS - セラピューティックプログラム専用スタイル
   =============================================== */

/* ===============================================
   ページヒーロー（セラピューティック用）
   =============================================== */
.page-hero--therapeutic {
  height: 35vh;
  min-height: 280px;
}

        /* ===============================================
           プロセスタイムライン（カードレス版）
           =============================================== */
        .section--process .section__title {
            margin-bottom: var(--spacing-2xl);
        }

        .process-timeline--cardless {
            display: flex;
            flex-direction: column;
            gap: 0;
            max-width: 100%;
            margin: 0 auto;
        }

        .process-timeline--cardless .process-phase {
            background-color: transparent;
            border-radius: 0;
            overflow: visible;
            box-shadow: none;
            padding-bottom: var(--spacing-2xl);
            margin-bottom: var(--spacing-2xl);
            border-bottom: 1px solid var(--color-border);
            transition: none;
        }

        .process-timeline--cardless .process-phase:last-child {
            padding-bottom: 0;
            margin-bottom: 0;
            border-bottom: none;
        }

        .process-timeline--cardless .process-phase:hover {
            box-shadow: none;
            transform: none;
        }

        .process-timeline--cardless .process-phase__header {
            background-color: transparent;
            color: var(--color-text);
            padding: 0 0 var(--spacing-md) 0;
            display: flex;
            flex-direction: column;
            gap: var(--spacing-xs);
            border-bottom: 2px solid var(--color-primary);
            margin-bottom: var(--spacing-lg);
        }

        .process-timeline--cardless .process-phase__period {
            font-size: var(--font-size-sm);
            color: var(--color-text-light);
        }

        .process-timeline--cardless .process-phase__title {
            font-size: var(--font-size-xl);
            font-weight: 600;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
            color: var(--color-primary);
        }

        .process-timeline--cardless .phase-number {
            font-size: var(--font-size-sm);
            font-weight: 400;
            color: var(--color-secondary);
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        /* 画像スタイル */
        .process-phase__image {
            width: 100%;
            max-width: 400px;
            aspect-ratio: 2 / 1;
            object-fit: cover;
            border-radius: 8px;
            background-color: #e2e8f0;
        }

        .process-timeline--cardless .process-phase__content {
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: var(--spacing-lg);
        }

        .process-phase__description {
            font-size: var(--font-size-sm);
            line-height: var(--line-height-loose);
            color: var(--color-text);
        }

/* ===============================================
   基本セットセクション - 1カラムレイアウト
   =============================================== */
.section--basic-set {
  padding: var(--spacing-3xl) 0;
}

.basic-set-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.basic-set__image {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 600 / 176;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.basic-set__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.basic-set__details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.basic-set__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.basic-set__list li {
  padding-left: var(--spacing-lg);
  position: relative;
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.basic-set__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.price-label {
  background-color: var(--color-secondary);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.price-amount {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.price-shipping {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.basic-set__cta {
  display: flex;
  justify-content: center;
}

/* ===============================================
   サポートセクション
   =============================================== */
.section--support {
  background-color: #F0F0F0;
  padding: var(--spacing-3xl) 0;
}

.bg-light-gray {
  background-color: #F0F0F0;
}

.support-intro {
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
  text-align: left;
}

.support-intro p {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text);
}

.support-subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xl);
  color: var(--color-primary);
}

/* 横スクロールコンテナ */
.support-cases {
  position: relative;
  margin: 0 calc(-1 * var(--spacing-md));
  padding: 0 var(--spacing-md);
}

.support-cases__scroll {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--spacing-md);
  scroll-snap-type: x mandatory;
}

/* スクロールバーのスタイリング */
.support-cases__scroll::-webkit-scrollbar {
  height: 6px;
}

.support-cases__scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.support-cases__scroll::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

.support-case {
  flex: 0 0 240px;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
}

.support-case__image {
  width: 100%;
  aspect-ratio: 7 / 12;
  overflow: hidden;
  background-color: #f5f5f5;
}

.support-case__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.support-case h4 {
  padding: var(--spacing-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}

/* 横スクロールのインジケーター */
.support-cases::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: var(--spacing-md);
  width: 40px;
  background: linear-gradient(to right, transparent, #F0F0F0);
  pointer-events: none;
}

.support-cases.scroll-end::after,
.support-cases.no-scroll::after {
  display: none;
}

/* ===============================================
   プロセスフェーズの色分け（オプション）
   =============================================== */
.process-phase--reaction .process-phase__header {
  border-bottom-color: #E53E3E;
}

.process-phase--reaction .process-phase__title {
  color: #E53E3E;
}

.process-phase--tolerance .process-phase__header {
  border-bottom-color: #38B2AC;
}

.process-phase--tolerance .process-phase__title {
  color: #38B2AC;
}

.process-phase--completion .process-phase__header {
  border-bottom-color: #48BB78;
}

.process-phase--completion .process-phase__title {
  color: #48BB78;
}

/* ===============================================
   セクション余白の統一
   =============================================== */
.section--process,
.section--basic-set,
.section--support,
.section--faq {
  padding: var(--spacing-3xl) 0;
}

/* aspect-ratioのフォールバック */
@supports not (aspect-ratio: 1 / 1) {
  .support-case__image {
    position: relative;
    height: 0;
    padding-bottom: 171.43%; /* 12/7 * 100% */
  }
  
  .support-case__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .basic-set__image {
    position: relative;
    height: 0;
    padding-bottom: 29.33%; /* 176/600 * 100% */
  }
  
  .basic-set__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
