/* ============================================================
   treatment.css — 診療内容
   HIDAMARI DENTAL — DELTA アンカー（無彩色プレミアム）
   ============================================================ */

/* ============================ STICKY NAV ============================ */
.treatment-nav-sticky {
  position: sticky; top: 68px; z-index: 50;
  display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: rgba(245,243,242,0.92); border-bottom: 1px solid var(--line);
  padding: 12px clamp(16px, 4vw, 40px); scrollbar-width: none;
}
.treatment-nav-sticky::-webkit-scrollbar { display: none; }
.treatment-nav-sticky__item {
  flex: none; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2);
  padding: 9px 18px; border-radius: 100px; white-space: nowrap; transition: background 0.3s, color 0.3s;
}
.treatment-nav-sticky__item:hover { color: var(--ink); }
.treatment-nav-sticky__item.active { background: var(--ink); color: var(--bg); }

/* ============================ TREAT 共通 ============================ */
.treat { scroll-margin-top: 130px; }
.treat__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.treat--reverse .treat__media { order: 2; }
.treat__media { overflow: hidden; border-radius: 4px; }
.treat__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.treat__head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.treat__head .caption, .treat__body .caption { display: block; margin-bottom: 14px; }
.treat__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 22px; }
.treat__lead { font-size: 15px; line-height: 2.05; letter-spacing: 0.05em; color: var(--ink-2); margin-bottom: 26px; }

.treat__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.treat__list li { position: relative; padding-left: 22px; font-size: 14.5px; letter-spacing: 0.04em; color: var(--ink); }
.treat__list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; }

.treat__note { border-left: 2px solid var(--ink); padding: 4px 0 4px 22px; }
.treat__note-title { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 6px; }
.treat__note-desc { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }

.treat__sub-h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; margin: 26px 0 14px; }
.treat__steps { display: flex; flex-wrap: wrap; gap: 8px; }
.treat__steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.03em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; }
.treat__steps span { font-family: var(--font-en); font-size: 11px; font-weight: 600; color: var(--ink-3); }
.treat__freq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.treat__freq > div { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.treat__freq dt { font-size: 14px; font-weight: 500; }
.treat__freq dd { font-family: var(--font-en); font-size: 14px; color: var(--ink-2); letter-spacing: 0.02em; }

/* サブカード（審美・口腔外科） */
.sub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); }
.sub-cards--3 { grid-template-columns: repeat(3, 1fr); }
.sub-card__img { overflow: hidden; border-radius: 4px; margin-bottom: 22px; }
.sub-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.sub-card:hover .sub-card__img img { transform: scale(1.05); }
.sub-card__body .caption { display: block; margin-bottom: 10px; }
.sub-card__title { font-size: 20px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 12px; }
.sub-card__desc { font-size: 14px; line-height: 1.95; letter-spacing: 0.04em; color: var(--ink-2); }
.ceramic-table { width: 100%; margin-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.ceramic-table th, .ceramic-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.ceramic-table th { font-family: var(--font-en); font-weight: 600; color: var(--ink-2); letter-spacing: 0.04em; }
.ceramic-table td:first-child, .ceramic-table th:first-child { text-align: left; }

/* アコーディオン */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 14.5px; font-weight: 500; letter-spacing: 0.03em; cursor: pointer; }
.accordion__chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.4s var(--ease-out); color: var(--ink-2); }
.accordion__item.open .accordion__chevron { transform: rotate(180deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out); }
.accordion__body p { padding: 0 0 22px; font-size: 14px; line-height: 1.95; color: var(--ink-2); }

/* タイムライン */
.timeline { position: relative; margin-left: 6px; padding-left: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.timeline__item { position: relative; }
.timeline__item::before { content: ''; position: absolute; left: -33px; top: 5px; width: 9px; height: 9px; background: var(--ink); border-radius: 50%; }
.timeline__step { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.timeline__title { font-size: 15px; font-weight: 500; letter-spacing: 0.03em; margin-top: 3px; }
.timeline__note { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* ============================ 症例（ダーク・横スクロール） ============================ */
.cases__scroll { display: flex; gap: clamp(20px, 2.5vw, 32px); overflow-x: auto; padding-bottom: 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.case-card { flex: none; width: clamp(280px, 34vw, 380px); scroll-snap-align: start; }
.case__comparison { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 4px; overflow: hidden; }
.case__comparison img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.case__label { position: absolute; bottom: 10px; font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 100px; background: rgba(27,27,27,0.7); color: var(--on-dark); }
.case__label--before { left: 10px; }
.case__label--after { right: 10px; background: rgba(245,243,242,0.92); color: var(--dark); }
.case-card__body { padding-top: 18px; }
.case-card__cat { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 6px; }
.case-card__title { font-size: 16px; font-weight: 500; letter-spacing: 0.03em; color: var(--on-dark); margin-bottom: 8px; }
.case-card__dur { font-size: 13px; color: var(--on-dark-2); margin-bottom: 10px; }
.case__disc { font-size: 11px; line-height: 1.7; color: var(--on-dark-3); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1023px) {
  .sub-cards--3 { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .treatment-nav-sticky { top: 56px; }
  .treat__layout { grid-template-columns: 1fr; gap: 28px; }
  .treat--reverse .treat__media { order: 0; }
  .sub-cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .case-card { width: 78vw; }
}
