/* HERBCELL コンポーネント別スタイル（v2：Apple / Aesop方向の落ち着いたブランドデザイン） */

/* ==========================================================
   ファーストビュー（ヒーロー）
   ・ベタ塗りグリーンは廃止。アクセントカラーの薄いティントのみ使用
   ========================================================== */
.hc-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--hc-accent-05);
  color: var(--hc-ink);
  padding: clamp(72px, 10vw, 140px) 24px;
  text-align: center;
}
.hc-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}
.hc-hero__logo {
  max-width: 180px;
  margin-bottom: 40px;
  opacity: 1;
}
.hc-hero__title {
  font-family: var(--hc-font-sans);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.65;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
  color: var(--hc-ink);
}
.hc-hero__lead {
  font-size: 16px;
  line-height: 2.2;
  color: var(--hc-muted);
}
.hc-hero--sub {
  padding: clamp(72px, 10vw, 130px) 24px;
}
.hc-hero--sub .hc-hero__title {
  font-size: clamp(24px, 3.6vw, 34px);
}

/* 写真ヒーロー：background-imageが設定された場合に適用
   （外観 > カスタマイズ > ヘッダー画像 から設定） */
.hc-hero--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--hc-white);
}
.hc-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.45));
}
.hc-hero--photo .hc-hero__inner {
  position: relative;
  z-index: 1;
}
.hc-hero--photo .hc-hero__title {
  color: var(--hc-white);
}
.hc-hero--photo .hc-hero__lead {
  color: rgba(255, 255, 255, 0.88);
}
.hc-hero--photo .hc-cta-btn {
  border-color: var(--hc-white);
  color: var(--hc-white);
}
.hc-hero--photo .hc-cta-btn:hover {
  background: var(--hc-white);
  color: var(--hc-ink);
}
.hc-hero--photo .hc-cta-btn--primary {
  background: var(--hc-white);
  color: var(--hc-ink);
  border-color: var(--hc-white);
}
.hc-hero--photo .hc-cta-btn--primary:hover {
  background: transparent;
  color: var(--hc-white);
}

/* ==========================================================
   ティザーセクション（画像＋テキストの2カラム。写真を主役にする）
   ========================================================== */
.hc-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}
.hc-teaser__grid--reverse .hc-teaser__visual {
  order: 2;
}
.hc-teaser__visual {
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--hc-accent-05), var(--hc-accent-12));
  overflow: hidden;
  /* 実写真に差し替え前提のプレースホルダー。角は最小限の処理に留める */
}
.hc-teaser__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hc-teaser__eyebrow {
  font-family: var(--hc-font-serif);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hc-accent);
  margin-bottom: 20px;
}
.hc-teaser__eyebrow--center {
  text-align: center;
}
.hc-teaser__title {
  font-family: var(--hc-font-sans);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.75;
  color: var(--hc-ink);
  margin-bottom: 28px;
}
.hc-teaser__lead {
  line-height: 2.1;
  color: var(--hc-muted);
  margin-bottom: 32px;
}
.hc-teaser__link {
  color: var(--hc-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hc-ink);
  padding-bottom: 3px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.hc-teaser__link:hover {
  color: var(--hc-accent);
  border-color: var(--hc-accent);
}
.hc-teaser__center-link {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================
   選ばれる理由（3本柱）
   ========================================================== */
.hc-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 56px;
}
.hc-pillar__title {
  font-weight: 600;
  color: var(--hc-ink);
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.7;
}
.hc-pillar__text {
  font-size: 14px;
  color: var(--hc-muted);
  text-align: center;
  line-height: 2;
}

/* ==========================================================
   導入の流れ（番号リスト）
   ========================================================== */
.hc-flow-list {
  max-width: 480px;
  margin: 0 auto;
  counter-reset: flow;
  list-style: none;
  padding: 0;
}
.hc-flow-list li {
  counter-increment: flow;
  position: relative;
  padding: 24px 0 24px 52px;
  border-bottom: 1px solid var(--hc-line);
  line-height: 1.8;
}
.hc-flow-list li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 20px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--hc-accent);
  color: var(--hc-accent);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   課題提起カード
   ========================================================== */
.hc-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  margin-bottom: 56px;
}
.hc-pain-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  padding: 64px 48px;
  text-align: center;
}
.hc-pain-card__num {
  display: block;
  font-family: var(--hc-font-sans);
  font-weight: 700;
  font-size: 24px;
  color: var(--hc-accent);
  margin-bottom: 16px;
}
.hc-pain-card__title {
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.7;
}
.hc-pain-card__text {
  font-size: 14px;
  color: var(--hc-muted);
  line-height: 1.9;
}
.hc-pain-conclusion {
  text-align: center;
  background: var(--hc-accent-08);
  color: var(--hc-ink);
  padding: 64px;
  line-height: 2.1;
}

/* ==========================================================
   HERBCELLで叶うことカード
   ========================================================== */
.hc-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px;
}
.hc-benefit-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  padding: 56px 40px;
  text-align: center;
}
.hc-benefit-card__title {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--hc-ink);
  line-height: 1.7;
}
.hc-benefit-card__text {
  font-size: 14px;
  color: var(--hc-muted);
  line-height: 1.9;
}

/* ==========================================================
   数字バッジ（市場データ／実績数値 共通）
   ========================================================== */
.hc-stat-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
  margin-bottom: 56px;
}
.hc-stat-badge {
  text-align: center;
}
.hc-stat-badge__value {
  display: block;
  font-family: var(--hc-font-sans);
  font-weight: 700;
  font-size: 36px;
  color: var(--hc-accent);
  line-height: 1.4;
}
.hc-stat-badge__suffix {
  font-size: 15px;
  margin-left: 2px;
}
.hc-stat-badge__label {
  font-size: 13px;
  color: var(--hc-muted);
  letter-spacing: 0.04em;
}
.hc-stat-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  line-height: 2.1;
  color: var(--hc-muted);
}

/* ==========================================================
   肌悩みリスト
   ========================================================== */
.hc-concern-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}
.hc-concern-item__title {
  font-weight: 600;
  color: var(--hc-ink);
  margin-bottom: 12px;
  line-height: 1.7;
}
.hc-concern-item__text {
  font-size: 14px;
  color: var(--hc-muted);
  line-height: 2;
}

/* ==========================================================
   テーブル（比較表・利益シミュレーション表）
   ・ベタ塗りヘッダーではなく、細い罫線＋ティント背景に変更
   ========================================================== */
.hc-table-scroll {
  overflow-x: auto;
  margin-bottom: 56px;
}
.hc-compare-table {
  min-width: 560px;
  width: 100%;
  border-collapse: collapse;
}
.hc-compare-table th,
.hc-compare-table td {
  border-bottom: 1px solid var(--hc-line);
  padding: 20px;
  text-align: center;
}
.hc-compare-table th {
  background: var(--hc-accent-05);
  color: var(--hc-ink);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ==========================================================
   コンテンツ内の表（WordPress標準のテーブルブロック等）：
   スマホでは列が潰れて崩れるため、横スクロールで対応する。
   ・SWELL本体が本文を出力する実際のラッパークラスは「.post_content」
     （SWELL公式マニュアル・カスタマイズ事例で確認済み）。
     前回誤って「.entry-content」を指定しており、実際のDOMと
     一致せず何も適用されていなかった。これが根本原因。
   ・.entry-content / .wp-block-table table は保険として残す
     （将来的な構造変化・別テンプレートへの耐性のため）。
   ・.hc-compare-table（独自の比較表）は上ですでに対応済みのため対象外。
   ========================================================== */
.post_content table:not(.hc-compare-table),
.entry-content table:not(.hc-compare-table),
.wp-block-table:not(.hc-compare-table) table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hc-line);
}
.post_content table:not(.hc-compare-table) tbody,
.entry-content table:not(.hc-compare-table) tbody,
.wp-block-table:not(.hc-compare-table) table tbody {
  display: table;
  width: 100%;
}
@media (max-width: 768px) {
  .post_content table:not(.hc-compare-table) th,
  .post_content table:not(.hc-compare-table) td,
  .entry-content table:not(.hc-compare-table) th,
  .entry-content table:not(.hc-compare-table) td,
  .wp-block-table:not(.hc-compare-table) table th,
  .wp-block-table:not(.hc-compare-table) table td {
    white-space: nowrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hc-line);
  }
}

/* ==========================================================
   ステップ（スピキュール／LTV／シンプル技術 共通）
   ========================================================== */
.hc-tech-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}
.hc-tech-steps--six {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.hc-tech-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
}
.hc-tech-step__num {
  display: block;
  font-family: var(--hc-font-sans);
  font-weight: 700;
  color: var(--hc-accent);
  font-size: 18px;
  margin-bottom: 12px;
}
.hc-tech-step p {
  font-size: 13px;
  color: var(--hc-muted);
  line-height: 1.9;
}

/* ==========================================================
   美容成分グリッド
   ========================================================== */
.hc-ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 56px;
}
.hc-ingredient-item__title {
  font-weight: 600;
  color: var(--hc-ink);
  margin-bottom: 10px;
  line-height: 1.7;
}
.hc-ingredient-item p:last-child {
  font-size: 13px;
  color: var(--hc-muted);
  line-height: 1.9;
}

/* ==========================================================
   利益シミュレーター
   ========================================================== */
.hc-simulator {
  background: var(--hc-accent-05);
  padding: 64px;
  text-align: center;
}
.hc-simulator__title {
  font-weight: 600;
  margin-bottom: 24px;
}
.hc-simulator form {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: center;
  margin-bottom: 24px;
}
.hc-simulator label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--hc-muted);
  gap: 8px;
}
.hc-simulator input {
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--hc-ink);
  background: transparent;
  font-family: var(--hc-font-sans);
}
.hc-simulator__result {
  font-family: var(--hc-font-sans);
  font-weight: 700;
  font-size: 28px;
  color: var(--hc-accent);
}

/* ==========================================================
   導入セットカード
   ========================================================== */
.hc-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  margin-bottom: 32px;
}
.hc-plan-card {
  border: 1px solid var(--hc-line);
  padding: 64px 48px;
  text-align: center;
}
.hc-plan-card--featured {
  border-color: var(--hc-accent);
  background: var(--hc-accent-05);
  position: relative;
}
.hc-plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hc-accent);
  color: var(--hc-white);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 16px;
}
.hc-plan-card__name {
  font-weight: 600;
  color: var(--hc-ink);
  margin-bottom: 12px;
  line-height: 1.7;
}
.hc-plan-card__desc {
  font-size: 13px;
  color: var(--hc-muted);
  margin-bottom: 24px;
  line-height: 1.9;
}
.hc-plan-card__price {
  font-family: var(--hc-font-sans);
  font-weight: 700;
  font-size: 32px;
  color: var(--hc-accent);
}
.hc-plan-card__price span {
  font-size: 13px;
  color: var(--hc-muted);
  margin-left: 4px;
  font-weight: 400;
}
.hc-plan-note {
  text-align: center;
  font-size: 13px;
  color: var(--hc-muted);
  margin-bottom: 16px;
}

/* 商品カード */
.hc-product-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hc-product-card--framed {
  border: 1px solid var(--hc-line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.hc-product-card--framed:hover {
  border-color: var(--hc-accent-30);
  transform: translateY(-4px);
}
.hc-product-card__body {
  padding: 24px;
}
.hc-product-card__copy {
  font-size: 13px;
  color: var(--hc-muted);
  line-height: 1.8;
  margin: 8px 0 12px;
}
.hc-product-card__more {
  display: block;
  margin-top: 16px;
  font-size: 12px;
}
.hc-product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: var(--hc-accent-05);
  margin-bottom: 16px;
}

/* 導入サロンカード */
.hc-salon-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  padding: 24px;
}
.hc-salon-card__name {
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.7;
}
.hc-salon-card__area {
  font-size: 13px;
  color: var(--hc-muted);
}

/* 導入サロンの声カード */
.hc-voice-card {
  background: var(--hc-accent-05);
  padding: 56px;
}
.hc-voice-card__title {
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.7;
}
.hc-voice-card__stats {
  display: flex;
  gap: 48px;
  margin: 16px 0 24px;
}
.hc-voice-card__stat-value {
  font-family: var(--hc-font-sans);
  font-weight: 700;
  font-size: 26px;
  color: var(--hc-accent);
  line-height: 1.5;
}
.hc-voice-card__stat-value small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--hc-muted);
}

/* ==========================================================
   最終CTAセクション
   ========================================================== */
.hc-cta-final {
  background: var(--hc-accent-05);
  text-align: center;
}

/* ==========================================================
   ブランドストーリー（縦型ナラティブ）
   ========================================================== */
.hc-story {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--hc-line);
}
.hc-story li {
  position: relative;
  padding: 8px 0 32px 36px;
  line-height: 2;
}
.hc-story li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hc-accent);
}
.hc-story__label {
  display: inline-block;
  font-family: var(--hc-font-sans);
  font-weight: 700;
  color: var(--hc-ink);
  margin-right: 12px;
}

/* ==========================================================
   フローティングCTA（控えめな薄い枠のピル）
   ========================================================== */
.hc-floating-cta {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 999;
}
.hc-floating-cta.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.hc-floating-cta__close {
  border: none;
  background: none;
  color: var(--hc-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 10px;
}
@media (max-width: 640px) {
  .hc-floating-cta {
    left: 12px;
    right: 12px;
    transform: translateY(24px);
    flex-wrap: wrap;
    justify-content: center;
  }
  .hc-floating-cta.is-visible {
    transform: translateY(0);
  }
}

/* ==========================================================
   SWELLヘッダー／グローバルナビ：静かな高級ブランドサイト仕様
   実際のマークアップ（.l-header / .c-headLogo / .c-gnav）に
   ピンポイントで指定し、SWELLの既存デザインを完全に置き換える
   ========================================================== */

/* ヘッダー全体：常に画面上部に追従（sticky）。
   初期表示（ファーストビュー）ではほぼ透明にしてヒーローを主役にし、
   スクロール後は白の半透明＋ぼかし（ガラス質感）に切り替える。
   高さは常に一定（76px）とし、切り替わるのは背景のみ。
   （main.js が .hc-header--scrolled クラスを付け外しする） */
#header.l-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  overflow: visible !important;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
#header.l-header.hc-header--scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 24px rgba(43, 43, 38, 0.05);
}

/* 上部の細いバー（RSSアイコンのみ）は非表示 */
.l-header__bar {
  display: none;
}

/* ヘッダー内側：ロゴ・ナビ・CTAを1行でflex中央揃え。高さは常に一定 */
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  height: 84px;
  padding: 0 40px;
  max-width: 1360px;
  box-sizing: border-box;
  overflow: visible !important;
}
@media (max-width: 600px) {
  .l-header__inner {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }
  .c-headLogo__link .hc-header-logo-img {
    height: 18px;
  }
}
/* PC用ナビ（7項目）は、SWELL側の制御に加えて確実にスマホでは非表示にする
   （SWELL側のsp_/pc_切り替えが効かない場合の保険） */
@media (max-width: 959px) {
  #gnav.l-header__gnav {
    display: none !important;
  }
}

/* ロゴ：flexで完全に垂直中央揃え */
.l-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}
.c-headLogo.-txt {
  margin: 0;
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
.c-headLogo__link {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1;
  text-decoration: none;
}
.c-headLogo__link .hc-header-logo-img {
  height: 22px;
  width: auto;
  display: block;
}
/* 画像挿入前・JS無効時のフォールバック用テキスト */
.c-headLogo__link .hc-header-logo-fallback {
  font-family: var(--hc-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hc-ink);
  white-space: nowrap;
}
.c-headLogo__link:has(.hc-header-logo-img) .hc-header-logo-fallback {
  display: none;
}

/* グローバルナビ：ロゴの隣から右詰めで配置。すべてflex中央揃え */
.l-header__gnav {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible !important;
}
.c-gnav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible !important;
}
.c-gnav .menu-item {
  display: flex;
  align-items: center;
  height: 100%;
}
.c-gnav .menu-item > a {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  text-decoration: none;
}
.c-gnav .menu-item .ttl {
  font-family: var(--hc-font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--hc-ink);
  transition: color 0.3s ease;
}
/* ホバー時：文字色だけが静かに変わる。線・下線は使わない */
.c-gnav .menu-item > a:hover .ttl,
.hc-drop-trigger.is-open > a .ttl {
  color: var(--hc-accent);
}

/* ==========================================================
   ドロップダウン付きナビ項目（HERBCELLについて／ガイド／導入事例）
   静かで小さなパネル。ホバー（PC）／タップ（SP）でフェード＋わずかに下から表示。
   ========================================================== */
.hc-drop-trigger {
  position: relative;
}
.hc-drop-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  margin-top: 14px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  will-change: opacity, transform;
  z-index: 600;
}
.hc-drop-trigger.is-open .hc-drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.hc-drop-panel ul {
  list-style: none;
  margin: 0;
  padding: 34px 40px;
  background: var(--hc-white);
  border-radius: 4px;
  box-shadow: 0 24px 56px rgba(20, 20, 18, 0.12);
  white-space: nowrap;
}
.hc-drop-panel li:not(:last-child) {
  margin-bottom: 22px;
}
.hc-drop-panel a {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--hc-muted);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.hc-drop-panel a:hover {
  color: var(--hc-accent);
  padding-left: 4px;
}

/* ==========================================================
   CTA（資料をダウンロード／導入相談する）
   高さ・横幅の考え方・角丸・余白をすべて統一
   ========================================================== */
.c-gnav .hc-nav-cta {
  height: auto;
}
.c-gnav .hc-nav-cta:first-of-type {
  margin-left: 16px;
}
.c-gnav .hc-nav-cta > a {
  height: 42px;
  padding: 0 24px;
  border-radius: 3px;
  border: 1px solid var(--hc-ink);
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.c-gnav .hc-nav-cta > a::after {
  display: none;
}
.c-gnav .hc-nav-cta .ttl {
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.c-gnav .hc-nav-cta--outline > a {
  border-color: var(--hc-line);
  background: transparent;
}
.c-gnav .hc-nav-cta--outline > a:hover {
  border-color: var(--hc-ink);
  background: var(--hc-ink);
}
.c-gnav .hc-nav-cta--outline > a:hover .ttl {
  color: var(--hc-white);
}
/* 導入相談する：唯一の塗りつぶしボタン＝最優先CTA。ホバーでわずかに浮き上がる */
.c-gnav .hc-nav-cta--primary > a {
  background: var(--hc-accent);
  border-color: var(--hc-accent);
  box-shadow: 0 1px 2px rgba(74, 92, 58, 0.15);
}
.c-gnav .hc-nav-cta--primary .ttl {
  color: var(--hc-white);
}
.c-gnav .hc-nav-cta--primary > a:hover {
  background: var(--hc-accent-dark, var(--hc-accent));
  box-shadow: 0 8px 20px rgba(74, 92, 58, 0.28);
  transform: translateY(-1px);
}

/* モバイル：検索ボタンのアイコン色をブランドカラーに統一 */
.l-header__customBtn .c-iconBtn {
  color: var(--hc-ink);
}
.l-header__customBtn .c-iconBtn:hover {
  color: var(--hc-accent);
}

/* ==========================================================
   スマホ：SWELL純正の開閉メニュー（#sp_menu / .l-header__menuBtn）は
   使用しない。完全に独立したカスタムドロワーを新規実装するため、
   SWELL側のUIはここで非表示にする（SWELL本体のJSには一切触れない）。
   ========================================================== */
.l-header__menuBtn,
#sp_menu {
  display: none !important;
}

/* カスタム：ハンバーガーボタン（PCでは非表示） */
.hc-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 959px) {
  .hc-menu-trigger {
    display: inline-flex;
  }
}
.hc-menu-trigger__icon {
  position: relative;
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--hc-ink);
  border-radius: 1px;
  transition: background-color 0.25s ease;
}
.hc-menu-trigger__icon::before,
.hc-menu-trigger__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--hc-ink);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hc-menu-trigger__icon::before { top: -6px; }
.hc-menu-trigger__icon::after { top: 6px; }
body.hc-drawer-open .hc-menu-trigger__icon {
  background: transparent;
}
body.hc-drawer-open .hc-menu-trigger__icon::before {
  top: 0;
  transform: rotate(45deg);
}
body.hc-drawer-open .hc-menu-trigger__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ==========================================================
   スマホ：カスタム開閉ドロワー（新規実装）
   ・左からスライドイン／白背景／画面いっぱい／本文スクロール可能
   ・開閉ロジックはmain.js内で完結し、SWELL本体とは無関係
   ========================================================== */
.hc-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  z-index: 900;
}
body.hc-drawer-open .hc-drawer-overlay {
  opacity: 1;
  visibility: visible;
}

.hc-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(86vw, 400px);
  height: 100vh;
  height: 100dvh;
  background: var(--hc-white);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  z-index: 901;
  box-shadow: none;
}
body.hc-drawer-open .hc-drawer {
  transform: translateX(0);
  box-shadow: 12px 0 48px rgba(20, 20, 18, 0.14);
}
body.hc-drawer-open {
  overflow: hidden;
}

.hc-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 72px;
  padding: 0 12px 0 28px;
  border-bottom: 1px solid var(--hc-line);
}
.hc-drawer__logo img {
  height: 20px;
  width: auto;
  display: block;
}
.hc-drawer__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hc-drawer__close::before,
.hc-drawer__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--hc-ink);
  transition: background-color 0.2s ease;
}
.hc-drawer__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.hc-drawer__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.hc-drawer__close:hover::before,
.hc-drawer__close:hover::after {
  background: var(--hc-accent);
}

.hc-drawer__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 28px 28px;
}

.hc-drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-drawer-nav .menu-item {
  border-bottom: 1px solid var(--hc-line);
}
.hc-drawer-nav .menu-item > a,
.hc-drawer-nav__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 17px 2px;
  border: none;
  background: transparent;
  font-family: var(--hc-font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hc-ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hc-drawer-nav .menu-item > a:active,
.hc-drawer-nav__trigger:active {
  opacity: 0.6;
}
.hc-drawer-nav__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--hc-muted);
  border-bottom: 1.5px solid var(--hc-muted);
  transform: rotate(45deg);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}
.hc-drawer-accordion.is-open .hc-drawer-nav__chevron {
  transform: rotate(-135deg);
}
.hc-drawer-nav__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.hc-drawer-nav__panel > div {
  overflow: hidden;
}
.hc-drawer-accordion.is-open .hc-drawer-nav__panel {
  grid-template-rows: 1fr;
}
.hc-drawer-nav__panel ul {
  list-style: none;
  margin: 0;
  padding: 4px 0 18px 16px;
  border-left: 1px solid var(--hc-line);
}
.hc-drawer-nav__panel a {
  display: block;
  min-height: 44px;
  padding: 13px 0;
  font-size: 14.5px;
  color: var(--hc-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.hc-drawer-nav__panel a:active {
  color: var(--hc-accent);
}

.hc-drawer__foot {
  flex-shrink: 0;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hc-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--hc-white);
}
.hc-drawer__foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.hc-drawer__foot a:active {
  opacity: 0.75;
  transform: scale(0.98);
}
.hc-drawer__foot-outline {
  border: 1px solid var(--hc-ink);
  color: var(--hc-ink);
  background: transparent;
}
.hc-drawer__foot-primary {
  background: var(--hc-accent);
  border: 1px solid var(--hc-accent);
  color: var(--hc-white);
  box-shadow: 0 8px 20px rgba(74, 92, 58, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .hc-drawer,
  .hc-drawer-overlay,
  .hc-menu-trigger__icon,
  .hc-menu-trigger__icon::before,
  .hc-menu-trigger__icon::after,
  .hc-drawer-nav__panel,
  .hc-drawer-nav__chevron {
    transition: none !important;
  }
}

/* ==========================================================
   フルワイド画像ブレイク
   ・文章と文章の間に挟み、スクロールに「画像→余白→文章」のリズムを作る
   ・実写真が入るまでは、アクセントカラーの穏やかなグラデーションで代替
   ========================================================== */
.hc-image-break {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(280px, 32vw, 420px);
  overflow: hidden;
}
.hc-image-break--tall {
  height: clamp(360px, 44vw, 560px);
}
.hc-image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 小型写真枠（プラン・施術ステップ用。正方形・注釈なし） */
.hc-photo-frame {
  aspect-ratio: 1/1;
  overflow: hidden;
  margin-bottom: 16px;
}
.hc-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   SWELL本体のフッター・サイドバーを無効化
   （HERBCELL独自の共通フッター .hc-site-footer が完全に代替するため）
   ========================================================== */
#footer.l-footer {
  display: none !important;
}
#sidebar.l-sidebar {
  display: none !important;
}
body.-sidebar-on #content.l-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
/* ヘッダー直後・フッター直前の余分な余白を除去 */
#content.l-content.l-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
#body_wrap {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ==========================================================
   サイト共通フッター
   ========================================================== */
.hc-site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--hc-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 24px 32px;
}
.hc-site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.hc-site-footer a:hover {
  color: var(--hc-white);
}
.hc-site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hc-site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hc-site-footer__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
.hc-site-footer__tagline {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 320px;
}
.hc-site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.hc-site-footer__heading {
  color: var(--hc-white);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.hc-site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hc-site-footer__col a {
  font-size: 13px;
}
.hc-site-footer__bottom {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hc-site-footer__bottom .hc-company-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-bottom: 4px;
}
.hc-site-footer__bottom .hc-company-info__name {
  color: rgba(255, 255, 255, 0.85);
}
.hc-site-footer__bottom .hc-company-info a {
  color: rgba(255, 255, 255, 0.75);
}
.hc-site-footer__copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 780px) {
  .hc-site-footer__top {
    grid-template-columns: 1fr;
  }
  .hc-site-footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================
   お問い合わせページ
   ========================================================== */
.hc-contact__lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 2.1;
  color: var(--hc-muted);
}
.hc-contact__message {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 20px 28px;
  text-align: center;
  border: 1px solid var(--hc-line);
}
.hc-contact__message--success {
  background: var(--hc-accent-05);
  color: var(--hc-ink);
}
.hc-contact__message--error {
  background: #FBEAEA;
  color: #A33;
  border-color: #f0c9c9;
}
.hc-contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}
.hc-contact__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hc-contact__form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--hc-muted);
}
.hc-contact__form input,
.hc-contact__form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--hc-line);
  background: transparent;
  font-family: var(--hc-font-sans);
  font-size: 15px;
  color: var(--hc-ink);
}
.hc-contact__form textarea {
  resize: vertical;
  min-height: 140px;
}
.hc-contact__form button[type="submit"] {
  align-self: flex-start;
  margin-top: 8px;
}
.hc-contact__form input:focus,
.hc-contact__form textarea:focus {
  border-color: var(--hc-accent);
  outline: none;
}
.hc-required {
  color: #A33;
  font-size: 11px;
  margin-left: 6px;
}
.hc-contact__side {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.hc-contact__side-block {
  border: 1px solid var(--hc-line);
  padding: 32px;
}
.hc-contact__side-title {
  font-weight: 600;
  margin-bottom: 16px;
}

/* 会社情報ブロック */
.hc-company-info p {
  margin: 0 0 8px;
  font-size: 14px;
}
.hc-company-info__name {
  font-weight: 600;
}

@media (max-width: 780px) {
  .hc-teaser__grid,
  .hc-teaser__grid--reverse {
    grid-template-columns: 1fr;
  }
  .hc-teaser__grid--reverse .hc-teaser__visual {
    order: 0;
  }
  .hc-contact__grid {
    grid-template-columns: 1fr;
  }
}

.hc-muted-text {
  color: var(--hc-muted);
  font-size: 14px;
}

/* ピラーページ：比較表の補足解説 */
.hc-guide-note {
  font-size: 14px;
  color: var(--hc-muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

/* ピラーページ：オリジナルデータ掲載用プレースホルダー */
.hc-data-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.hc-data-block {
  border: 1px dashed var(--hc-line);
  padding: 24px 16px;
  text-align: center;
}
.hc-data-block__label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.hc-data-block__placeholder {
  font-size: 12px;
  color: var(--hc-muted);
}

/* ピラーページ：E-E-A-T表示 */
.hc-guide-eeat {
  text-align: center;
  font-size: 12px;
  color: var(--hc-muted);
}
.hc-guide-eeat p {
  margin: 4px 0;
}


/* ==========================================================
   汎用アイコン（成分・特徴カード共通）
   ========================================================== */
.hc-icon {
  width: 30px;
  height: 30px;
  color: var(--hc-accent);
  display: block;
  margin: 0 auto 20px;
}
.hc-icon--sm {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
}
.hc-concern-item .hc-icon,
.hc-ingredient-item .hc-icon {
  margin: 0 0 16px;
}

/* ステップ・タイムライン系コンポーネントに矢印でつながりを持たせる（デスクトップのみ） */
@media (min-width: 780px) {
  .hc-tech-steps > .hc-tech-step {
    position: relative;
  }
  .hc-tech-steps > .hc-tech-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 22px;
    height: 1px;
    background: var(--hc-line);
  }
  .hc-tech-steps > .hc-tech-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -34px;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--hc-accent);
    border-right: 1px solid var(--hc-accent);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }
}

/* ピラーページ：3分でわかる要約ボックス */
.hc-guide-summary {
  border: 1px solid var(--hc-accent);
  padding: 32px;
}
.hc-guide-summary__title {
  font-weight: 600;
  color: var(--hc-accent);
  margin-bottom: 16px;
}
.hc-guide-summary ul {
  margin: 0;
  padding-left: 20px;
}
.hc-guide-summary li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* ピラーページ：各見出し直後の結論リード文（AEO用） */
.hc-guide-lead {
  background: var(--hc-accent-05);
  padding: 20px 24px;
  border-left: 3px solid var(--hc-accent);
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 24px;
}

/* ピラーページ：本文中インラインCTA */
.hc-guide-inline-cta {
  text-align: center;
  margin: 32px 0;
}

/* ピラーページ：導入前チェックリスト */
.hc-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hc-checklist li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--hc-line);
  line-height: 1.8;
}
.hc-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--hc-accent);
  border-radius: 2px;
}

/* ピラーページ：目次 */
.hc-guide-toc {
  background: var(--hc-accent-05);
  padding: 32px;
}
.hc-guide-toc__title {
  font-weight: 600;
  margin-bottom: 16px;
}
.hc-guide-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 48px;
}
.hc-guide-toc li {
  margin-bottom: 10px;
  break-inside: avoid;
}
.hc-guide-toc a {
  color: var(--hc-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hc-line);
}
.hc-guide-toc a:hover {
  color: var(--hc-accent);
  border-color: var(--hc-accent);
}
@media (max-width: 600px) {
  .hc-guide-toc ol {
    columns: 1;
  }
}

/* お知らせ一覧 */
.hc-news-list {
  max-width: 800px;
  margin: 0 auto;
}
.hc-news-item {
  display: flex;
  gap: 48px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hc-line);
  text-decoration: none;
  color: var(--hc-ink);
}
.hc-news-item__date {
  color: var(--hc-muted);
  font-size: 13px;
  flex-shrink: 0;
}
.hc-news-item:hover .hc-news-item__title {
  color: var(--hc-accent);
}

/* ==========================================================
   FAQアコーディオン
   ========================================================== */
.hc-faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.hc-faq-item {
  border-bottom: 1px solid var(--hc-line);
  padding: 24px 0;
}
.hc-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.hc-faq-item summary::-webkit-details-marker {
  display: none;
}
.hc-faq-item summary::after {
  content: '+';
  float: right;
  color: var(--hc-accent);
}
.hc-faq-item[open] summary::after {
  content: '−';
}
.hc-faq-item div {
  margin-top: 16px;
  color: var(--hc-muted);
  line-height: 2;
}

/* 一覧ページのページネーション */
.hc-pagination {
  text-align: center;
  margin-top: 56px;
}
.hc-pagination a,
.hc-pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid var(--hc-line);
  color: var(--hc-ink);
  text-decoration: none;
}
.hc-pagination .current {
  background: var(--hc-accent);
  border-color: var(--hc-accent);
  color: var(--hc-white);
}

/* サロン詳細のGoogleMap埋め込み */
.hc-salon-map {
  margin: 32px 0;
}
.hc-salon-map iframe {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--hc-line);
}

/* 空表示メッセージ */
.hc-case-empty {
  text-align: center;
  color: var(--hc-muted);
  padding: 40px 0;
}
