/*! headspa-labo v7.0 - Pro-grade, persona-driven, mobile-first
 * Research-backed design tokens based on Japanese editorial best practices
 * Target persona: 由香里さん (30, mobile-first, commute reader, beauty industry)
 */

/* ============================================================
 *  1. デザイントークン
 * ============================================================ */
:root {
  /* カラー（2026 リサーチ反映：くすみグリーン×ウォームテラコッタ×紙白） */
  --hs-bg: #FAF7F1;              /* ウォームペーパーホワイト（維持） */
  --hs-surface: #FFFDF7;          /* カード・コンテナ背景 */
  --hs-paper: #EFE9DB;            /* ペーパーアクセント（少し深め） */
  --hs-ink: #2A2A28;              /* 本文テキスト（墨色／黒ではない） */
  --hs-ink-soft: #4B4B47;         /* セカンダリテキスト */
  --hs-muted: #6B6B63;             /* キャプション・メタ情報 */
  --hs-line: #DCD4BE;             /* ボーダー */
  --hs-primary: #2E5D45;          /* フォレストグリーン（1段明るく・夜OLED対応） */
  --hs-primary-soft: #8BA891;     /* セージグリーン（新設・背景/罫線/タグ用） */
  --hs-primary-ink: #1C3D2A;      /* プライマリダーク（見出し） */
  --hs-accent: #B87A4E;            /* テラコッタ（CTA用・押し色） */
  --hs-accent-soft: #C69A6F;       /* テラコッタ淡（装飾用） */
  --hs-highlight: rgba(184,122,78,0.18); /* マーカー色（控えめ） */

  /* タイポグラフィ */
  --hs-font-sans: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴシック", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hs-font-serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "ヒラギノ明朝 ProN", serif;
  --hs-font-mono: "SFMono-Regular", Consolas, monospace;

  /* スペーシング */
  --hs-space-xs: 0.5rem;
  --hs-space-sm: 1rem;
  --hs-space-md: 1.5rem;
  --hs-space-lg: 2.5rem;
  --hs-space-xl: 4rem;

  /* レイアウト */
  --hs-reading-width: 680px;
  --hs-radius-sm: 4px;
  --hs-radius-md: 8px;
  --hs-radius-lg: 8px;

  /* シャドウ */
  --hs-shadow-sm: 0 1px 3px rgba(28,77,51,0.06);
  --hs-shadow-md: 0 4px 16px rgba(28,77,51,0.08);
  --hs-shadow-lg: 0 12px 40px rgba(28,77,51,0.12);
  --hs-shadow-accent: 0 6px 20px rgba(200,144,96,0.25);

  /* モーション */
  --hs-ease: cubic-bezier(0.2, 0, 0, 1);
  --hs-dur-fast: 0.18s;
  --hs-dur-med: 0.32s;
}

/* ============================================================
 *  2. ベースタイポグラフィ
 * ============================================================ */
body {
  font-family: var(--hs-font-sans);
  font-feature-settings: "palt" 1, "pkna" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--hs-bg);
  color: var(--hs-ink);
  letter-spacing: 0.03em;
}

/* ============================================================
 *  3. 記事本文のプロ級スタイル
 * ============================================================ */
.post_content {
  font-size: 17px;            /* スマホ優先・30代女性・夜間閲覧で可読性確保 */
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--hs-ink);
  word-break: auto-phrase;    /* 意味単位で改行（モダンブラウザ） */
  line-break: strict;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .post_content {
    font-size: 18px;
    line-height: 1.95;
  }
}

.post_content > p:first-of-type {
  font-size: 1.05em;
  color: var(--hs-ink-soft);
  margin-bottom: 2em;
}

.post_content p {
  margin: 1.4em 0;
}

/* ---------- 見出し（シンプル、罫線＋余白で区切る） ---------- */
.post_content h2 {
  position: relative;
  margin: 3.5em 0 1.2em;
  padding: 0 0 0.5em;
  border-bottom: 1px solid var(--hs-line);
  font-family: var(--hs-font-sans);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--hs-primary-ink);
  background: none !important;
}
.post_content h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 3px;
  background: var(--hs-primary);
  border-radius: 2px;
}
@media (min-width: 768px) {
  .post_content h2 {
    font-size: 1.55em;
    margin-top: 4em;
  }
}

.post_content h3 {
  margin: 2.5em 0 1em;
  padding-left: 0.8em;
  border-left: 3px solid var(--hs-accent);
  font-size: 1.12em;
  font-weight: 700;
  line-height: 1.6;
  color: var(--hs-primary-ink);
}
@media (min-width: 768px) {
  .post_content h3 {
    font-size: 1.22em;
  }
}

.post_content h4 {
  margin: 2em 0 0.8em;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--hs-ink);
}

/* ---------- 強調・リンク ---------- */
.post_content strong,
.post_content b {
  background: linear-gradient(transparent 62%, var(--hs-highlight) 62%);
  padding: 0 2px;
  font-weight: 700;
  color: var(--hs-primary-ink);
}

.post_content a {
  color: var(--hs-primary);
  text-decoration: underline;
  text-decoration-color: var(--hs-line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color var(--hs-dur-fast) var(--hs-ease);
}
.post_content a:hover {
  color: var(--hs-accent);
  text-decoration-color: var(--hs-accent);
}

/* ---------- リスト ---------- */
.post_content ul,
.post_content ol {
  margin: 1.2em 0;
  padding-left: 0;
}
.post_content ul {
  list-style: none;
}
.post_content ul > li {
  position: relative;
  padding-left: 1.4em;
  margin: 0.6em 0;
  line-height: 1.9;
}
.post_content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hs-accent);
}
.post_content ol {
  padding-left: 1.6em;
}
.post_content ol > li {
  margin: 0.6em 0;
  line-height: 1.9;
  padding-left: 0.3em;
}
.post_content ol > li::marker {
  color: var(--hs-primary);
  font-weight: 700;
}

/* ---------- テーブル ---------- */
.post_content .wp-block-table,
.post_content table {
  margin: 2em 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: var(--hs-surface);
  border-radius: var(--hs-radius-md);
  overflow: hidden;
  box-shadow: var(--hs-shadow-sm);
  border: 1px solid var(--hs-line);
}
.post_content table thead {
  background: var(--hs-primary);
}
.post_content table th {
  padding: 0.85em 1em;
  text-align: left;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.04em;
}
.post_content table td {
  padding: 0.85em 1em;
  border-top: 1px solid var(--hs-line);
  line-height: 1.7;
}
.post_content table tr:nth-child(even) td {
  background: rgba(240,234,219,0.35);
}
@media (max-width: 640px) {
  .post_content .wp-block-table {
    font-size: 0.92em;
  }
  .post_content table th,
  .post_content table td {
    padding: 0.65em 0.75em;
  }
}

/* ---------- 画像 ---------- */
.post_content img {
  border-radius: var(--hs-radius-md);
  box-shadow: var(--hs-shadow-md);
  max-width: 100%;
  height: auto;
}
.post_content figure {
  margin: 2em 0;
}
.post_content figcaption {
  margin-top: 0.6em;
  font-size: 0.85em;
  color: var(--hs-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ---------- 引用 ---------- */
.post_content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 1.5em 1.5em 1.5em 3em;
  background: var(--hs-paper);
  border-radius: var(--hs-radius-md);
  font-family: var(--hs-font-serif);
  font-size: 1.05em;
  line-height: 1.9;
  color: var(--hs-ink-soft);
}
.post_content blockquote::before {
  content: """;
  position: absolute;
  left: 0.5em;
  top: 0.2em;
  font-size: 3.5em;
  line-height: 1;
  color: var(--hs-accent);
  font-family: var(--hs-font-serif);
}
.post_content blockquote p:first-child { margin-top: 0; }
.post_content blockquote p:last-child  { margin-bottom: 0; }

/* ---------- コード ---------- */
.post_content code {
  font-family: var(--hs-font-mono);
  background: var(--hs-paper);
  color: var(--hs-primary-ink);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ---------- セパレーター ---------- */
.post_content hr {
  margin: 3em auto;
  border: 0;
  text-align: center;
  overflow: visible;
  height: 1px;
  background: var(--hs-line);
  position: relative;
}
.post_content hr::after {
  content: "◆ ◇ ◆";
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hs-bg);
  padding: 0 1em;
  color: var(--hs-accent);
  font-size: 0.9em;
  letter-spacing: 0.3em;
}

/* ============================================================
 *  4. 結論ボックス（記事冒頭）
 * ============================================================ */
.hs-summary {
  position: relative;
  margin: 1.5em 0 2.5em;
  padding: 1.4em 1.6em 1.4em 1.8em;
  background: linear-gradient(135deg, var(--hs-paper) 0%, rgba(240,234,219,0.6) 100%);
  border-left: 4px solid var(--hs-primary);
  border-radius: 0 var(--hs-radius-md) var(--hs-radius-md) 0;
  font-size: 0.95em;
  line-height: 1.85;
  color: var(--hs-ink-soft);
  box-shadow: var(--hs-shadow-sm);
}
.hs-summary::before {
  content: "この記事の結論";
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hs-primary);
}

/* ============================================================
 *  5. 読了進捗バー（上品に細く）
 * ============================================================ */
.hs-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--hs-primary) 0%, var(--hs-accent) 100%);
  z-index: 10000;
  transition: width 0.12s linear;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(28,77,51,0.2);
}

/* ============================================================
 *  6. 読了時間インジケーター
 * ============================================================ */
.hs-meta-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.5em;
  padding: 0.45em 0.9em;
  background: var(--hs-paper);
  border-radius: 100px;
  font-size: 0.82em;
  color: var(--hs-muted);
  letter-spacing: 0.06em;
}
.hs-meta-bar::before {
  content: "⌚";
  font-size: 0.9em;
}

/* ============================================================
 *  7. CTA フローティングボタン（洗練デザイン）
 * ============================================================ */
.hs-cta-fab {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 1.3em;
  height: 48px;
  border-radius: 24px;
  background: var(--hs-accent);
  color: #FFFDF7 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--hs-shadow-md);
  transition: all var(--hs-dur-med) var(--hs-ease);
  border: 1px solid rgba(255,253,247,0.2);
  backdrop-filter: blur(6px);
}
.hs-cta-fab::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hs-accent-soft);
  box-shadow: 0 0 0 0 var(--hs-accent-soft);
  animation: hs-pulse 2.2s var(--hs-ease) infinite;
}
.hs-cta-fab:hover {
  transform: translateY(-2px);
  box-shadow: var(--hs-shadow-lg);
  background: #9E6540;
}

/* ============================================================
 *  15. トップページ イントロ（紙白・軽量）
 * ============================================================ */
.hs-intro {
  padding: 2.8rem 1.25rem 2rem;
  background: var(--hs-bg);
  border-bottom: 1px solid var(--hs-line);
}
.hs-intro__inner { max-width: 680px; margin: 0 auto; }
.hs-intro__kicker {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--hs-accent);
  margin-bottom: 0.9rem;
}
.hs-intro__title {
  font-family: var(--hs-font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 5.2vw, 2rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--hs-primary-ink);
  margin: 0 0 0.9em;
}
.hs-intro__lead {
  font-size: 0.95rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--hs-ink-soft);
  margin: 0;
}
.hs-intro__lead strong {
  color: var(--hs-primary);
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(184,122,78,0.18) 65%);
  padding: 0 2px;
}
@media (min-width: 768px) {
  .hs-intro { padding: 3.5rem 2rem 2.5rem; }
}

/* 旧ヒーローは完全無効化 */
.hs-hero, .p-mainVisual { display: none !important; }

/* ============================================================
 *  15b. インライン画像ブロック（AI画像差替予定）
 * ============================================================ */
.hs-img {
  position: relative;
  margin: 2.4em -1rem;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #F4EFDF 0%, #E8DFC6 50%, #D8CBB0 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--hs-radius-md);
  overflow: hidden;
  box-shadow: var(--hs-shadow-md);
}
.hs-img__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8em 1em;
  background: linear-gradient(transparent, rgba(28,61,42,0.55));
  color: #FAF7F1;
  font-size: 0.82em;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
/* 未差替：薄いプレースホルダー表示 */
.hs-img.is-placeholder::after {
  content: "画像予定地 — " attr(data-filename);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(28,61,42,0.4);
  font-family: var(--hs-font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 0 1em;
}
@media (min-width: 768px) {
  .hs-img { margin: 2.6em 0; }
}

/* ============================================================
 *  15c. 関連記事（内部リンク）
 * ============================================================ */
.hs-related {
  margin: 3em -1rem 2em;
  padding: 1.6em 1.2em;
  background: var(--hs-surface);
  border-top: 3px solid var(--hs-primary-soft);
  border-bottom: 1px solid var(--hs-line);
}
.hs-related__head {
  font-family: var(--hs-font-serif);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--hs-primary-ink);
  margin: 0 0 1em;
  letter-spacing: 0.04em;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.hs-related__list { list-style: none; padding: 0; margin: 0; }
.hs-related__item { margin-bottom: 0.6em; border-bottom: 1px dotted var(--hs-line); }
.hs-related__item:last-child { border-bottom: none; }
.hs-related__link {
  display: block;
  padding: 0.85em 0.4em;
  text-decoration: none;
  color: var(--hs-ink);
  transition: color .2s;
}
.hs-related__link:hover { color: var(--hs-primary); }
.hs-related__title {
  display: block;
  font-weight: 700;
  font-size: 0.98em;
  line-height: 1.55;
}
.hs-related__sub {
  display: block;
  font-size: 0.82em;
  color: var(--hs-muted);
  margin-top: 0.3em;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .hs-related { margin: 3em 0 2em; padding: 2em 2em; }
}

/* ============================================================
 *  15d. プロフィールページ
 * ============================================================ */
.hs-profile-hero {
  margin: 0 -1rem 2.4em;
  padding: 2.4em 1.4em;
  background: linear-gradient(180deg, var(--hs-surface) 0%, var(--hs-bg) 100%);
  border-left: 4px solid var(--hs-accent);
  text-align: left;
}
.hs-profile-hero__sig {
  font-family: var(--hs-font-serif);
  font-size: 1.3em;
  color: var(--hs-accent);
  letter-spacing: 0.2em;
  margin-bottom: 0.6em;
}
.hs-profile-hero__lead {
  font-family: var(--hs-font-serif);
  font-size: 1.05em;
  line-height: 1.9;
  color: var(--hs-ink);
  margin: 0;
}
.hs-profile-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}
.hs-profile-list li {
  padding: 0.6em 0 0.6em 1.4em;
  border-bottom: 1px dotted var(--hs-line);
  position: relative;
  line-height: 1.75;
}
.hs-profile-list li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 1.1em;
  width: 0.6em;
  height: 1px;
  background: var(--hs-primary);
}
.hs-profile-list li:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .hs-profile-hero { margin: 0 0 2.4em; padding: 3em 3em; }
}

/* ============================================================
 *  15e. アフィリエイト/PRラベル
 * ============================================================ */
.hs-pr-label {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  background: var(--hs-muted);
  color: #fff;
  margin-right: 0.4em;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.hs-affi-box {
  margin: 2em -0.5rem;
  padding: 1.5em 1.3em;
  background: linear-gradient(180deg, #FFFDF7 0%, #FAF6EA 100%);
  border: 1px solid var(--hs-line);
  border-left: 4px solid var(--hs-accent);
  border-radius: var(--hs-radius-md);
}
.hs-affi-box__head {
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--hs-accent);
  margin-bottom: 0.6em;
}
.hs-affi-box__title {
  font-family: var(--hs-font-serif);
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 0.6em;
  color: var(--hs-primary-ink);
}
.hs-affi-box__lead { font-size: 0.92em; line-height: 1.8; margin: 0 0 1em; }
.hs-affi-box__btn {
  display: block;
  text-align: center;
  background: var(--hs-accent);
  color: #fff !important;
  padding: 0.95em 1.2em;
  border-radius: var(--hs-radius-sm);
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(184,122,78,0.28);
  transition: transform .15s, box-shadow .2s;
}
.hs-affi-box__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(184,122,78,0.38); }
.hs-affi-box__note { font-size: 0.78em; color: var(--hs-muted); margin-top: 0.8em; text-align: center; }

/* ============================================================
 *  15g. トップ：プロフィールCTA
 * ============================================================ */
.hs-profile-cta {
  margin: 2em auto 2.4em;
  padding: 0 1rem;
  max-width: 760px;
}
.hs-profile-cta__inner {
  padding: 1.8em 1.4em;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  border-left: 4px solid var(--hs-accent);
  border-radius: var(--hs-radius-md);
}
.hs-profile-cta__sig {
  font-family: var(--hs-font-serif);
  font-size: 1.05em;
  color: var(--hs-accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.8em;
}
.hs-profile-cta__text {
  font-size: 0.95em;
  line-height: 1.85;
  margin: 0 0 1.2em;
  color: var(--hs-ink);
}
.hs-profile-cta__btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  background: var(--hs-primary);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: var(--hs-radius-sm);
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background .2s;
}
.hs-profile-cta__btn:hover { background: var(--hs-primary-ink); }
@media (min-width: 768px) {
  .hs-profile-cta__inner { padding: 2.4em 2.6em; }
}

/* ============================================================
 *  15f. PR表記・著者プロフィールBOX
 * ============================================================ */
.hs-pr-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin: 0 -1rem 1.8em;
  padding: 0.7em 1em;
  background: #F6F2E3;
  border-left: 3px solid var(--hs-muted);
  font-size: 0.78em;
  color: var(--hs-muted);
  line-height: 1.65;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .hs-pr-notice { margin: 0 0 1.8em; }
}

.hs-author {
  display: flex;
  gap: 1em;
  margin: 3em -1rem 2em;
  padding: 1.6em 1.2em;
  background: linear-gradient(180deg, var(--hs-surface) 0%, var(--hs-bg) 100%);
  border: 1px solid var(--hs-line);
  border-left: 4px solid var(--hs-primary);
  border-radius: var(--hs-radius-md);
  align-items: flex-start;
}
.hs-author__avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hs-accent-soft), var(--hs-accent));
  color: #fff;
  font-family: var(--hs-font-serif);
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.hs-author__body { flex: 1 1 auto; }
.hs-author__name {
  font-family: var(--hs-font-serif);
  font-weight: 700;
  font-size: 1.05em;
  color: var(--hs-primary-ink);
}
.hs-author__role {
  font-size: 0.75em;
  color: var(--hs-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.5em;
}
.hs-author__bio {
  font-size: 0.88em;
  line-height: 1.75;
  margin: 0;
  color: var(--hs-ink);
}
.hs-author__bio a { color: var(--hs-primary); font-weight: 700; text-decoration: underline; }
@media (min-width: 768px) {
  .hs-author { margin: 3em 0 2em; padding: 2em 2em; }
  .hs-author__avatar { width: 64px; height: 64px; flex-basis: 64px; }
}

/* イントロ登場アニメ */
.hs-intro__kicker, .hs-intro__title, .hs-intro__lead {
  opacity: 0;
  transform: translateY(10px);
  animation: hs-fade-up 0.8s var(--hs-ease) forwards;
}
.hs-intro__kicker { animation-delay: 0.05s; }
.hs-intro__title  { animation-delay: 0.2s; }
.hs-intro__lead   { animation-delay: 0.4s; }
@keyframes hs-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 *  16. トップページ セクション見出し
 * ============================================================ */
.hs-section-head {
  max-width: var(--hs-reading-width);
  margin: 2.8rem auto 1.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.hs-section-head__kicker {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--hs-accent);
  text-transform: uppercase;
}
.hs-section-head__title {
  font-family: var(--hs-font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--hs-primary-ink);
  letter-spacing: 0.04em;
  margin: 0;
  flex: 1;
}
.hs-section-head::after {
  content: "";
  flex: 0 0 60px;
  height: 1px;
  background: var(--hs-line);
  align-self: center;
}

/* ============================================================
 *  17. プロフィール シグネチャ
 * ============================================================ */
.hs-signature {
  display: block;
  max-width: 240px;
  margin: 2.5em 0 0.8em;
  opacity: 0.88;
}
.hs-signature + p {
  font-size: 0.85em;
  color: var(--hs-muted);
  letter-spacing: 0.08em;
}
@keyframes hs-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,184,150,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(212,184,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,184,150,0); }
}
@media (max-width: 480px) {
  .hs-cta-fab {
    right: 12px;
    bottom: 76px;
    height: 44px;
    font-size: 12px;
    padding: 0 1.1em;
  }
}

/* ============================================================
 *  8. フォーム
 * ============================================================ */
input, textarea, select, button {
  font-family: var(--hs-font-sans);
  font-size: 16px !important;
}
.headspa-contact-form input[type="text"],
.headspa-contact-form input[type="email"],
.headspa-contact-form select,
.headspa-contact-form textarea {
  background: var(--hs-surface) !important;
  border: 1px solid var(--hs-line) !important;
  border-radius: var(--hs-radius-sm) !important;
  transition: border-color var(--hs-dur-fast) var(--hs-ease), box-shadow var(--hs-dur-fast) var(--hs-ease);
}
.headspa-contact-form input:focus,
.headspa-contact-form select:focus,
.headspa-contact-form textarea:focus {
  outline: none !important;
  border-color: var(--hs-primary) !important;
  box-shadow: 0 0 0 3px rgba(28,77,51,0.1) !important;
}
.headspa-contact-form .cf-submit {
  background: var(--hs-primary) !important;
  letter-spacing: 0.1em !important;
  transition: all var(--hs-dur-med) var(--hs-ease);
}
.headspa-contact-form .cf-submit:hover {
  background: var(--hs-primary-ink) !important;
  transform: translateY(-1px);
  box-shadow: var(--hs-shadow-md);
}

/* ============================================================
 *  9. SWELL互換レイヤー（壊さず美しく）
 * ============================================================ */

/* 記事タイトル */
.p-articleHeader__title,
.c-pageTitle {
  font-family: var(--hs-font-sans);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--hs-primary-ink);
}

/* カテゴリラベル */
.c-categoryList__link,
.p-postList__cat,
.c-postMeta .c-postCategory {
  background: transparent !important;
  color: var(--hs-primary) !important;
  font-size: 0.72em !important;
  letter-spacing: 0.14em;
  border-radius: 2px !important;
  padding: 0.25em 0.75em !important;
  font-weight: 600;
  border: 1px solid var(--hs-primary-soft) !important;
  text-transform: uppercase;
}
.c-categoryList__link:hover {
  background: var(--hs-primary) !important;
  color: #fff !important;
  border-color: var(--hs-primary) !important;
}

/* 日付 */
.c-postTimes,
.c-postMeta time {
  font-size: 0.8em;
  color: var(--hs-muted);
  letter-spacing: 0.08em;
}

/* 記事カード */
.p-postList__item,
.p-blogPostList__item {
  border-radius: var(--hs-radius-md) !important;
  overflow: hidden;
  background: var(--hs-surface);
  border: 1px solid var(--hs-line);
  transition: all var(--hs-dur-med) var(--hs-ease);
}
/* 記事タイトルの折返し調整（短い語で切らない） */
.p-postList__title,
.p-blogPostList__title,
.p-postList__ttl,
.c-postList__title {
  word-break: auto-phrase !important;
  overflow-wrap: anywhere;
  line-break: strict;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-postList__item:hover,
.p-blogPostList__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--hs-shadow-md);
  border-color: var(--hs-accent-soft);
}
.p-postList__title,
.p-postList__ttl {
  font-weight: 700 !important;
  color: var(--hs-primary-ink) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.55 !important;
}

/* ヘッダー */
.l-header {
  background: var(--hs-surface) !important;
  border-bottom: 1px solid var(--hs-line);
  backdrop-filter: blur(8px);
}
.c-headLogo {
  font-family: var(--hs-font-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hs-primary-ink) !important;
}

/* グローバルナビ */
.c-gnav__item > a {
  font-size: 0.88em;
  letter-spacing: 0.1em;
  color: var(--hs-ink) !important;
}
.c-gnav__item > a:hover {
  color: var(--hs-accent) !important;
}

/* フッター */
.l-footer {
  background: var(--hs-primary-ink) !important;
  color: rgba(255,253,247,0.9) !important;
  padding-bottom: 100px !important;
}
.l-footer a {
  color: rgba(255,253,247,0.85) !important;
}
.l-footer a:hover {
  color: var(--hs-accent-soft) !important;
}

/* トップへ戻るボタン（SWELL） */
.c-fixBtn {
  background: var(--hs-primary) !important;
  box-shadow: var(--hs-shadow-md) !important;
  border: 1px solid rgba(255,253,247,0.2) !important;
}
.c-fixBtn:hover {
  background: var(--hs-primary-ink) !important;
}

/* キャッチフレーズ（SWELL） */
.c-catchphrase {
  font-family: var(--hs-font-serif);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--hs-ink-soft);
  font-size: 0.95em;
}

/* ============================================================
 *  10. アニメーション（控えめに）
 * ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .post_content > * {
    animation: hs-reveal 0.6s var(--hs-ease) both;
  }
  .post_content > *:nth-child(1) { animation-delay: 0.05s; }
  .post_content > *:nth-child(2) { animation-delay: 0.10s; }
  .post_content > *:nth-child(3) { animation-delay: 0.15s; }
}
@keyframes hs-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 *  11. 選択範囲
 * ============================================================ */
::selection {
  background: var(--hs-accent-soft);
  color: var(--hs-primary-ink);
}
::-moz-selection {
  background: var(--hs-accent-soft);
  color: var(--hs-primary-ink);
}

/* ============================================================
 *  12. スクロールバー（WebKit）
 * ============================================================ */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track { background: var(--hs-bg); }
  ::-webkit-scrollbar-thumb {
    background: var(--hs-line);
    border-radius: 5px;
    border: 2px solid var(--hs-bg);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--hs-accent-soft); }
}

/* ============================================================
 *  13. プリント用
 * ============================================================ */
@media print {
  .hs-progress, .hs-cta-fab, .c-fixBtn, .l-footer, header { display: none !important; }
  body { background: #fff; color: #000; }
  .post_content { font-size: 11pt; line-height: 1.7; }
}

/* ============================================================
 *  14. フォーカス可視化（アクセシビリティ）
 * ============================================================ */
:focus-visible {
  outline: 3px solid var(--hs-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
