/* =========================================================
   BuildMate 公式刷新テーマ：案A改（シャープ建築・飾り線なし・大きめ文字）
   現行カラーコードのみ使用・全ページ共通スタイルシート
   ========================================================= */
:root {
  --brand: #24324A;
  --brand-hover: #1A2838;
  --dark: #1A2535;
  --bg: #F7F2EA;
  --light: #F0EBE0;
  --paper: #FFFFFF;
  --text: #1F2933;
  --gray: #6B7280;
  --border: #D4CAB8;
  --gold: #B99745;

  /* 既存モバイルメニュー互換変数 */
  --wa-mobile-menu-bg: #F7F2EA;
  --wa-mobile-menu-text: #1F2933;
  --wa-mobile-menu-muted: #6B7280;
  --wa-mobile-menu-border: #D4CAB8;
  --wa-mobile-menu-active: #24324A;

  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Noto Serif JP", Georgia, serif;
  --font-num: "Outfit", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans) !important;
  color: var(--text) !important;
  background-color: var(--bg) !important;
  background-image: none !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.9;
  font-size: 16.5px;
  overflow-x: clip;
}
.wrap > *, .grid-2 > *, .grid-3 > *, .split-hero > *, .profile-flex > * {
  min-width: 0;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

/* 改行位置の最適化（英語用のbalanceは日本語の途中切れを起こすため全ページで無効化） */
.text-balance {
  text-wrap: normal !important;
}
h1, h2, h3, h4 {
  line-break: strict;
  overflow-wrap: anywhere;
}
.jp-keep {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.nowrap-phrase {
  display: inline-block;
}
p, li, td, dd {
  line-break: strict;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   既存Tailwindページの案A改統一ルール（角丸ゼロ・飾り線排除・大きめ文字）
   ========================================================= */
.rounded-wa,
.rounded-2xl,
.rounded-xl,
.rounded-lg,
.rounded-md {
  border-radius: 0 !important;
}
/* バッジ等の丸みもシャープに統一（スピナー・ラジオボタン等は除外） */
.rounded-full:not(.spinner):not(input):not(.keep-round) {
  border-radius: 0 !important;
}

/* 既存ページの本文・説明文をご年配向けに底上げ */
main p,
main li {
  font-size: max(16px, 1em);
  line-height: 1.95;
}
main .text-sm {
  font-size: 15px !important;
  line-height: 1.85;
}
main .text-xs {
  font-size: 13.5px !important;
  line-height: 1.75;
}
main .text-base {
  font-size: 16.5px !important;
  line-height: 1.95;
}
main .text-lg {
  font-size: 18px !important;
  line-height: 1.85;
}

/* 既存カードの過剰な影・枠線を落ち着かせ、面と細い線で整える */
.shadow-lg,
.shadow-xl,
.shadow-md,
.shadow-sm {
  box-shadow: none !important;
}

/* stickyヘッダー化に伴う旧fixed用の過剰な上部余白を統一調整 */
main.pt-32,
main.pt-36,
main.pt-28 {
  padding-top: 48px !important;
}

/* 記事ページ（news/*.html）の案A改デザイン統一 */
body.bm-article-page main {
  max-width: 820px !important;
  margin: 0 auto;
  padding: 48px 24px 88px !important;
}
body.bm-article-page main h1 {
  font-family: var(--font-serif) !important;
  font-size: clamp(26px, 3.4vw, 38px) !important;
  line-height: 1.38 !important;
  color: var(--brand) !important;
  margin-bottom: 20px !important;
}
body.bm-article-page article {
  background: var(--paper) !important;
  padding: 52px 56px !important;
  border: none !important;
  box-shadow: none !important;
}
body.bm-article-page article p {
  font-size: 17.5px !important;
  line-height: 2.05 !important;
  color: var(--text) !important;
  margin-bottom: 22px !important;
}
body.bm-article-page article > p:first-child {
  font-size: 19.5px !important;
  color: var(--brand) !important;
  font-weight: 700 !important;
  margin-bottom: 26px !important;
}
body.bm-article-page article h2,
body.bm-article-page article h3,
body.bm-article-page article h4 {
  font-family: var(--font-serif) !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  color: var(--brand) !important;
  margin-top: 48px !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--border) !important;
  border-left: none !important;
}
body.bm-article-page article ul,
body.bm-article-page article ol {
  background: var(--bg) !important;
  padding: 24px 28px 24px 44px !important;
  margin: 24px 0 28px !important;
  border: none !important;
}
body.bm-article-page article li {
  font-size: 16.5px !important;
  line-height: 1.9 !important;
  margin-bottom: 8px !important;
}
body.bm-article-page article .border-wa-brand\/20 {
  border-color: var(--border) !important;
}

/* =========================================================
   共通ヘッダー（全ページ統一）
   ========================================================= */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--light);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.site-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--brand);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.site-nav a { transition: color 0.2s; white-space: nowrap; }
.site-nav a:hover { color: var(--gold); }
.site-nav a.is-active {
  color: var(--brand);
  font-weight: 700;
}
.nav-cta {
  background: var(--brand);
  color: var(--paper) !important;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-hover); }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--brand);
  padding: 8px;
}

/* モバイルメニュー */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  flex-direction: column;
  padding: 28px 24px;
  gap: 0;
  overflow-y: auto;
}
#mobile-menu .mm-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray);
  padding: 8px;
  margin-bottom: 12px;
}
#mobile-menu a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
}
#mobile-menu a.mm-cta {
  margin-top: 24px;
  background: var(--brand);
  color: var(--paper);
  text-align: center;
  border-bottom: none;
  padding: 18px;
}

/* =========================================================
   案A改 共通セクション・タイポグラフィ・部品
   ========================================================= */
.sec { padding: 96px 0; }
.sec-sm { padding: 64px 0; }
.sec-bg { background: var(--bg); }
.sec-paper { background: var(--paper); }
.sec-dark { background: var(--dark); color: var(--paper); }
.sec-brand { background: var(--brand); color: var(--paper); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.h1-hero {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: var(--brand);
  margin: 0 0 26px;
}
.h1-page {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}
.h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.44;
  color: var(--brand);
  margin: 0 0 18px;
}
.sec-dark .h2, .sec-brand .h2 { color: var(--paper); }
.h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 14px;
  line-height: 1.48;
}
.lead-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}
.body-text {
  font-size: 16.5px;
  color: var(--gray);
  line-height: 2;
  margin: 0;
}
.sec-dark .body-text, .sec-brand .body-text {
  color: rgba(247,242,234,0.84);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.sec-head-sub {
  max-width: 460px;
  font-size: 16px;
  color: var(--gray);
  margin: 0;
  line-height: 1.9;
}
.sec-dark .sec-head-sub, .sec-brand .sec-head-sub {
  color: rgba(247,242,234,0.8);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand);
  color: var(--paper);
  padding: 18px 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--brand-hover); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--paper);
  color: var(--brand);
  padding: 18px 30px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--light); }

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-dark:hover { background: var(--brand); color: var(--paper); }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(185,151,69,0.7);
  color: var(--paper);
  padding: 15px 28px;
  font-size: 15.5px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }

.page-hero {
  background: var(--brand);
  color: var(--paper);
  padding: 76px 0 80px;
}
.page-hero p {
  font-size: 17.5px;
  color: rgba(247,242,234,0.86);
  max-width: 740px;
  line-height: 2;
  margin: 0;
}

/* 細い横線リスト */
.h-list { border-bottom: 1px solid var(--border); }
.h-list-row {
  display: flex;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.h-list-row .num {
  font-family: var(--font-num);
  color: var(--gold);
  font-weight: 700;
  margin-right: 16px;
  flex-shrink: 0;
}
.h-list-row .txt {
  color: var(--brand);
  font-weight: 500;
}

/* 3列横線リスト */
.row-list-item {
  display: grid;
  grid-template-columns: 56px 260px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.row-list-item .num {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.row-list-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}
.row-list-item p {
  margin: 0;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.9;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.split-hero { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 56px; align-items: end; }

.surface-paper { background: var(--paper); padding: 36px 32px; }
.surface-bg { background: var(--bg); padding: 32px 28px; }
.surface-dark-tile { background: rgba(255,255,255,0.05); padding: 32px 28px; }

.num-big {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.num-label {
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

.note-bar {
  margin-top: 24px;
  background: var(--paper);
  padding: 28px 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.note-tag {
  background: var(--light);
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 700;
  padding: 9px 18px;
  white-space: nowrap;
}
.note-bar p { margin: 0; font-size: 16px; color: var(--gray); }

.profile-flex {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.profile-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark);
}
.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}
.profile-photo-wrap .img-hover { position: absolute; inset: 0; opacity: 0; }
.profile-photo-wrap:hover .img-default { opacity: 0; }
.profile-photo-wrap:hover .img-hover { opacity: 1; }
.profile-caption {
  background: var(--gold);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  display: inline-block;
  margin-top: 14px;
  letter-spacing: 0.08em;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--light);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.28s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(36, 50, 74, 0.08);
}
.news-thumb {
  height: 204px;
  background: var(--light);
  padding: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(36, 50, 74, 0.12);
}
.news-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  background: var(--brand);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  z-index: 2;
}
.news-body { padding: 24px; flex: 1; }
.news-date {
  font-family: var(--font-num);
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.news-body h3 { font-size: 17.5px; line-height: 1.55; color: var(--brand); margin: 0 0 10px; }
.news-body p { font-size: 15px; color: var(--gray); margin: 0; line-height: 1.8; }

.step-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 28px; }
.step-card { background: var(--paper); padding: 24px 14px; text-align: center; display: block; transition: background 0.2s; }
.step-card:hover { background: var(--light); }
.step-card.is-goal { background: var(--brand); color: var(--paper); }
.step-card.is-goal:hover { background: var(--brand-hover); }
.step-no { font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--gold); display: block; margin-bottom: 8px; }
.step-title { font-size: 14.5px; font-weight: 700; line-height: 1.45; color: var(--brand); }
.step-card.is-goal .step-title { color: var(--paper); }

.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; background: none; border: none; padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; font-size: 17.5px; font-weight: 700; color: var(--brand);
}
.faq-btn:hover { color: var(--gold); }
.faq-icon { color: var(--gold); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer { padding: 0 0 26px; font-size: 16.5px; color: var(--gray); line-height: 1.95; }

.clean-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.clean-table th, .clean-table td { padding: 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.clean-table thead th { font-size: 14.5px; font-weight: 700; color: var(--gray); border-bottom: 2px solid var(--brand); }
.clean-table tr.row-total td { background: var(--bg); font-weight: 700; }
.diff-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  width: 100%; justify-content: space-between;
}
.diff-before { font-size: 14.5px; color: var(--gray); }
.diff-after { font-family: var(--font-num); font-size: 22px; font-weight: 700; color: var(--brand); }

/* 共通フッター */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.82);
  padding: 56px 0;
  font-size: 15px;
}
.footer-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.55); }

/* スマホ下部固定CTAバー */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
}
.mobile-sticky-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mobile-sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; font-size: 14px; font-weight: 700;
}
.mobile-sticky-cta .m-sub { background: var(--bg); color: var(--brand); border: 1px solid var(--brand); }
.mobile-sticky-cta .m-main { background: var(--brand); color: var(--paper); }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .split-hero, .grid-2, .grid-3, .profile-flex { grid-template-columns: 1fr; gap: 28px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .row-list-item { grid-template-columns: 1fr; gap: 6px; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .note-bar { flex-direction: column; align-items: flex-start; }
  .sec { padding: 56px 0; }
  body.bm-article-page article { padding: 32px 22px !important; }
  .mobile-sticky-cta { display: block; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  .h1-hero { font-size: 26px; line-height: 1.35; }
  .h1-page { font-size: 24px; line-height: 1.38; }
  .h2 { font-size: 21px; line-height: 1.45; }
  .lead-text { font-size: 17px; }
  .btn-primary, .btn-secondary, .btn-outline-dark { width: 100%; padding: 15px 18px; font-size: 15px; }
  .surface-paper, .surface-bg, .surface-dark-tile { padding: 24px 20px; }
}

/* =========================================================
   軽量CSSモーション＆エフェクト（transform / opacity のみ使用）
   ========================================================= */

/* ① ファーストビュー：すっと順番に現れる */
@keyframes bmHeroIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.split-hero > div > *,
.split-hero > aside,
.page-hero .wrap > * {
  opacity: 0;
  animation: bmHeroIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.split-hero > div > :nth-child(1),
.page-hero .wrap > :nth-child(1) { animation-delay: 0.04s; }
.split-hero > div > :nth-child(2),
.page-hero .wrap > :nth-child(2) { animation-delay: 0.12s; }
.split-hero > div > :nth-child(3),
.page-hero .wrap > :nth-child(3) { animation-delay: 0.20s; }
.split-hero > div > :nth-child(4) { animation-delay: 0.28s; }
.split-hero > div > :nth-child(5) { animation-delay: 0.34s; }
.split-hero > aside { animation-delay: 0.24s; }

/* ② 伸びるゴールドの細い線（ナビゲーション・横線リスト） */
.site-nav a:not(.nav-cta) {
  position: relative;
  padding: 4px 0;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a.is-active:not(.nav-cta)::after {
  transform: scaleX(1);
}

.h-list-row,
.row-list-item {
  position: relative;
}
.h-list-row::after,
.row-list-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.h-list-row:hover::after,
.row-list-item:hover::after {
  transform: scaleX(1);
}

/* ③ ボタンの矢印スライド＋押し心地 */
.btn-primary,
.btn-secondary,
.btn-outline-dark,
.btn-outline-light,
.nav-cta,
a[href*="contact.html"].btn-accent,
main a[href*="diagnosis.html"][class*="inline-flex"],
main a[href*="contact.html"][class*="inline-flex"],
button[type="submit"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline-dark:hover,
.btn-outline-light:hover,
.nav-cta:hover,
main a[href*="diagnosis.html"][class*="inline-flex"]:hover,
main a[href*="contact.html"][class*="inline-flex"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
}
.btn-primary svg,
.btn-secondary svg,
.btn-outline-dark svg,
.btn-outline-light svg {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-primary:hover svg,
.btn-secondary:hover svg,
.btn-outline-dark:hover svg,
.btn-outline-light:hover svg {
  transform: translateX(5px);
}

/* ④ 問い合わせ・AI診断ボタン専用：左から右へ背景色がスッと塗り替わるスライド演出 */
.nav-cta::before,
.btn-primary::before,
a[href*="contact.html"].btn-secondary::before,
a[href*="contact.html"].btn-outline-dark::before,
a[href*="contact.html"].btn-accent::before,
main a[href*="diagnosis.html"][class*="inline-flex"]::before,
main a[href*="contact.html"][class*="inline-flex"]::before,
button[type="submit"]::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: -1 !important;
  background: var(--gold) !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none !important;
}
/* 白背景・枠線ボタンは紺色へ塗り替わる */
a[href*="contact.html"].btn-secondary::before,
a[href*="contact.html"].btn-outline-dark::before,
main a[href*="diagnosis.html"][class*="bg-white"]::before,
main a[href*="contact.html"][class*="bg-white"]::before {
  background: var(--brand) !important;
}
.nav-cta:hover::before,
.btn-primary:hover::before,
a[href*="contact.html"].btn-secondary:hover::before,
a[href*="contact.html"].btn-outline-dark:hover::before,
a[href*="contact.html"].btn-accent:hover::before,
main a[href*="diagnosis.html"][class*="inline-flex"]:hover::before,
main a[href*="contact.html"][class*="inline-flex"]:hover::before,
button[type="submit"]:hover::before {
  left: 0 !important;
  transform: scaleX(1) !important;
}
.nav-cta:hover,
.btn-primary:hover,
a[href*="contact.html"].btn-accent:hover,
main a[href*="diagnosis.html"][class*="bg-wa-brand"]:hover,
main a[href*="diagnosis.html"][class*="bg-wa-accent"]:hover,
main a[href*="contact.html"][class*="bg-wa-brand"]:hover,
main a[href*="contact.html"][class*="bg-wa-accent"]:hover,
button[type="submit"]:hover {
  background-color: var(--brand) !important;
  color: var(--paper) !important;
}
a[href*="contact.html"].btn-secondary:hover,
a[href*="contact.html"].btn-outline-dark:hover,
main a[href*="diagnosis.html"][class*="bg-white"]:hover,
main a[href*="contact.html"][class*="bg-white"]:hover {
  color: var(--paper) !important;
  border-color: var(--brand) !important;
}

/* ⑤ 記事カードのサムネイルだけわずかに拡大 */
.news-thumb {
  overflow: hidden;
}
.news-thumb img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-card:hover .news-thumb img {
  transform: scale(1.045);
}

/* ⑥ 記事ページの読了プログレスバー（2px極細ゴールド線） */
.bm-read-progress {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 890;
  pointer-events: none;
  will-change: transform;
}

/* モーション軽減設定への配慮（自動オフ） */
@media (prefers-reduced-motion: reduce) {
  .split-hero > div > *,
  .split-hero > aside,
  .page-hero .wrap > *,
  .bm-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .site-nav a::after,
  .h-list-row::after,
  .row-list-item::after,
  .btn-primary,
  .btn-secondary,
  .btn-outline-dark,
  .btn-outline-light,
  .nav-cta,
  .news-thumb img {
    transition: none !important;
    transform: none !important;
  }
  .bm-read-progress { display: none !important; }
}
