/* =====================================================
   カスタムプロパティ（テーマカラー・共通変数）
===================================================== */
:root {
  /* メインのグラデーション背景 */
  --primary-gradient: linear-gradient(to right, #8bb3d9, #b3a4d6);
  --primary-bg: #8bb3d9;
  --main-text: #282828; /* メインテキスト色 */
  --card-bg: rgba(255,255,255,0.97); /* カード背景 */
  --card-radius: 16px; /* カード角丸 */
  --card-shadow: 0 4px 16px rgba(120, 120, 180, 0.08); /* カード影 */
  --font-weight: bold;
  --font-size: 16px;
  --letter-spacing: 0.1em;
  --input-bg: #f7f8fa; /* 入力欄背景 */
  --input-border: #bfc2d9; /* 入力欄枠 */
  --input-radius: 8px; /* 入力欄角丸 */
  --input-text: #333; /* 入力欄テキスト */
  --accent-blue: #5b8ecb; /* アクセント青 */
  --accent-blue-bg: #b2d0ee; /* アクセント青背景 */
  --accent-red: #d48a9c; /* アクセント赤 */
  --accent-red-bg: #f3c3c9; /* アクセント赤背景 */
  --title-gray: #6d6e71; /* タイトル用グレー */
  --border-gray: #e5e6ea; /* 枠線グレー */
  --btn-bg: var(--accent-blue); /* ボタン背景 */
  --btn-bg-hover: #80a7c3; /* ボタンhover */
  --btn-text: #fff; /* ボタン文字 */
}

/* =====================================================
   共通
===================================================== */
.c{
 text-align:center;
}
.l{
 text-align:left !important;
}
.ws-n{
 white-space: nowrap
}

/* =====================================================
   全体レイアウト・ベース
===================================================== */
body {
  background: var(--primary-gradient);
  background-color: var(--primary-bg);
  color: var(--main-text);
  font-weight: var(--font-weight);
  font-size: 15px;
  letter-spacing: var(--letter-spacing);
  font-family: "游ゴシック Medium","Yu Gothic Medium","游ゴシック体",YuGothic,"ヒラギノ角ゴ Pro","Hiragino Kaku Gothic Pro","メイリオ","Meiryo",Osaka,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
  padding: 10px 0 0;
}

.main-content {
  background: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 40px 32px;
}

/* =====================================================
   カード・パネル
===================================================== */
.card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1.5px solid var(--border-gray);
  color: #333;
  margin-bottom: 40px;
  padding: 32px 32px 24px 32px;
}
.results-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(120,120,120,0.06);
  padding: 1em;
  margin: 24px auto 2em;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* scrollIntoView({block:"start"}) で sticky な v2-topbar (57px) と
     重ならないように、anchor scroll の到達位置を topbar 下にオフセット */
  scroll-margin-top: 72px;
}
/* 本文内のアンカーリンク（例: #hayami-hyou）も sticky topbar に隠れないように */
.tool-description :is(h2, h3, h4)[id]{
  scroll-margin-top: 72px;
}
.card-header {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 8px !important;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 0.06em;
  padding: 1.1em 2em 1.1em 2em;
  margin-bottom: 1rem;
  box-shadow: none;
  border: none;
  text-align: left;
}
.card-header * {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.card h2 {
  font-size: 1.35em;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  padding-bottom:0.5em;
  color: #5B8ECB;
  font-weight: bold;
  border-image: linear-gradient(
      to right,
      #8bb3d9,
      #b3a4d6
    ) 1 / 0 0 4px;
  border-style: solid;
  line-height:1.5em;
}
.card ul li::marker{
  color: #5B8ECB;
}
.card ul li a{
  color:#2161a5;
  font-weight:normal;
}
.card ul li a:hover{
  color:#2161a5;
  text-decoration:none;
}

/* =====================================================
   ボタン
===================================================== */
.btn-primary, .btn-outline-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 8px;
  transition: background 0.2s;
  font-weight: bold;
  font-size: 1em;
  letter-spacing: 0.08em;
  padding: 0.6em;
  box-shadow: 0 2px 8px rgba(128, 167, 195, 0.08);
}
.btn-primary:hover, .btn-outline-primary:hover {
  background: var(--accent-blue-bg);
  color: var(--btn-text);
}

/* =====================================================
   サイドバー・ロゴ・パンくず
===================================================== */
.sidebar {
  background: rgba(255,255,255,0.7);
  border: none;
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
  color: #333;
  margin: 0 32px 0 32px;
  padding: 32px 24px;
  width: 300px;
  height: calc(100vh - 4rem);
  height: calc(100dvh - 4rem);
  min-width: 300px;
}

.breadcrumbs {
  background: transparent;
  color: #fff;
  font-size: 0.95em;
  /* margin-top:1.5em; */
  margin-bottom: 1.5em;
}

.logo {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--btn-bg);
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: 0.08em;
}
.logo-icon {
  font-size: 1.8rem;
  margin-right: 8px;
}

.logo-margin { margin-bottom: 0.5em; }
@media (min-width: 768px) {
  .logo-margin { margin-bottom: 1.5em; }
}

/* =====================================================
   結果カード・グラフ
===================================================== */
.graph-container {
  height: 140px;
  position: relative;
  margin: 15px 0 25px 0;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
}
.graph-container.total {
  height: 200px;
}
.graph-container.sub {
  height: 120px;
  width: 48%;
  display: inline-block;
  margin: 0 1%;
}
.graph-title {
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
  color: var(--title-gray);
}
.bar-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100px;
  padding: 0 10px;
}
.bar-container.total {
  height: 160px;
}
.bar {
  width: 8px;
  background-color: #dee2e6;
  border-radius: 3px 3px 0 0;
  position: relative;
}
.graph-container.total .bar {
  width: 8px;
}
.bar.active.total {
  background: var(--accent-blue);
}
.bar.active.length {
  background: var(--accent-blue-bg);
  opacity: 0.8;
}
.bar.active.girth {
  background: var(--accent-red-bg);
  opacity: 0.7;
}
.bar-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #6c757d;
}
.bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1px 4px;
  border-radius: 3px;
  display: none;
}
.bar.active .bar-value {
  display: block;
}
.bar.active.total .bar-value,
.bar.active.length .bar-value {
  color: var(--accent-blue);
}
.bar.active.girth .bar-value {
  color: var(--accent-red);
}
.citation {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 20px;
  text-align: center;
}
.invalid-feedback {
  display: block;
  color: #e74c3c;
  font-size: 0.95em;
  margin-top: 0.2em;
}
input[type="number"], input[type="text"], select, textarea, .form-control {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--input-radius);
  color: var(--input-text);
  font-size: 16px !important;
  padding: 0.7em 1em;
  margin-bottom: 0.5em;
  box-shadow: none;
  outline: none;
  transition: border 0.2s;
}
input[type="number"]::placeholder, input[type="text"]::placeholder, select::placeholder, textarea::placeholder, .form-control::placeholder {
  color: #aaa;
  opacity: 1; /* Firefox用 */
}
input[type="number"]:-ms-input-placeholder, input[type="text"]:-ms-input-placeholder, select:-ms-input-placeholder, textarea:-ms-input-placeholder, .form-control:-ms-input-placeholder {
  color: #aaa; /* IE用 */
}
input[type="number"]::-ms-input-placeholder, input[type="text"]::-ms-input-placeholder, select::-ms-input-placeholder, textarea::-ms-input-placeholder, .form-control::-ms-input-placeholder {
  color: #aaa; /* Edge用 */
}
input[type="number"]:focus, input[type="text"]:focus, select:focus, textarea:focus {
  border-color: var(--btn-bg);
}
.list-group-item {
  border-radius: 6px !important;
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  margin-bottom: 0.5em;
  white-space: nowrap;
}
.sub-graphs-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* =====================================================
   Twitterカード・グラフ・サブグラフ
===================================================== */
.twitter-card {
  width: 1200px;
  height: 630px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(120, 120, 180, 0.08);
  padding: 40px;
  margin: 20px auto;
  display: none;
  position: relative;
}
.twitter-card .result-text {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 24px;
  line-height: 1.6;
  white-space: pre;
  text-align: center;
  margin: 40px 0;
}
.twitter-card .result-text .highlight {
  color: var(--btn-bg);
  font-weight: bold;
}
.twitter-card .citation {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 16px;
}

/* =====================================================
   パンくずリスト
===================================================== */
.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs ul:not(:last-of-type){
  margin-bottom: 4px;
}
.breadcrumbs ul li {
  display: flex;
  align-items: center;
}
.breadcrumbs ul li:not(:last-child):after {
  content: '›';
  margin: 0 8px;
}
.breadcrumbs,
.breadcrumbs li a { text-decoration: none; color: #fff; }
.breadcrumbs li a:hover { text-decoration: underline; }

/* =====================================================
   レスポンシブ（900px以下）
===================================================== */
@media (max-width: 900px) {
  .main-content { padding: 24px 8px; }
  .sidebar { margin: 0 0 24px 0; padding: 24px 12px; min-width: unset; }
  .card, .results-card { padding: 16px 8px; }
}

/* =====================================================
   ラベル・フォーム装飾
===================================================== */
.label-before {
  color: var(--accent-blue);
  background: var(--accent-blue-bg);
  border-radius: 6px;
  padding: 0.1em 0.6em;
  font-weight: bold;
  font-size: 0.95em;
}
.label-after {
  color: var(--accent-red);
  background: var(--accent-red-bg);
  border-radius: 6px;
  padding: 0.1em 0.6em;
  font-weight: bold;
  font-size: 0.95em;
}
.required-label {
  color: #e74c3c;
  font-size: 0.6em;
  font-weight: bold;
  margin-left: 0.5em;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* セクションタイトル・フォーム構造 */
.section-title {
  font-size: 1.35em;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #222;
  letter-spacing: 0.04em;
}
.form-section { margin-bottom: 1.5em; }
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.8em;
  gap: 1.2em;
}
.form-label {
  min-width: 6em;
  font-weight: bold;
  color: #222;
  margin-bottom: 0;
}
.form-control:focus { border-color: var(--accent-blue); }
.section-divider {
  border: none;
  border-top: 2px dotted #ccc;
  margin: 1em 0 0.75em 0;
}
.form-note {
  font-size: 0.98em;
  color: #333;
  margin-bottom: 0.7em;
  font-weight: normal;
}
/* 「小数点第一位までご入力ください。」等の注釈テキストは太字にしない */
.v2-content #app .card-body .text-muted {
  font-weight: normal;
}
/* 性別ラジオボタンの男性／女性ラベル間隔 */
.form-radio-group {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.form-radio-group label {
  margin: 0;
  font-weight: normal;
}

/* グラデーションボタン */
.btn-gradient {
  background: linear-gradient(270deg, #f7b36a 0%, #e7a3c7 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
  border: none;
  border-radius: 100px;
  padding: 0.9em 2.4em;
  box-shadow: 0 2px 8px rgba(212, 138, 156, 0.08);
  letter-spacing: 0.08em;
  transition: background 0.2s, box-shadow 0.2s;
  /* Bootstrap の .w-100 を打ち消し、文字長に応じた幅にする。
     親に対して中央寄せ。SP で画面幅を超えないよう max-width:100% */
  width: auto !important;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn-gradient:hover {
  background: linear-gradient(270deg, #e7a3c7 0%, #f7b36a 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 138, 156, 0.15);
}
.btn-gradient:active {
  color: #fff !important;
}
.btn.disabled, .btn:disabled, fieldset:disabled .btn {
  color: #fff !important;
}

/* =====================================================
   レスポンシブ（767px以下）
===================================================== */
@media (max-width: 767px) {
  .d-flex.flex-column.flex-md-row { flex-direction: column !important; }
  .sidebar {
    width: 100%;
    min-width: unset;
    margin: 0 0 1.2em 0;
    padding: 1.2em 0.8em;
    border-radius: 8px;
    box-shadow: none;
    background: none;
    height: auto;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0;
  }
  .logo { font-size: 0.95em; color: #fff; }
  .logo-br { display: none; }
  .main-content { padding: 0.2em 0.5em; }
  .card-header {
    font-size: 1.1em;
    padding: 0.7em 0.8em;
    border-radius: 8px;
    margin-bottom: 0.8em;
  }
  .breadcrumbs {
    font-size: 0.7em;
    margin: 0.2em 0 0.5em 0;
    padding: 0 0.3em;
    word-break: break-all;
  }
  .breadcrumbs ul{ margin-bottom: 16px; }
  .section-title {
    font-size: 1.05em;
    margin-top: 1.1em;
    margin-bottom: 0.3em;
  }
  .form-section { margin-bottom: 0.7em; }
  .form-row { margin-bottom: 0.4em; gap: 0.7em; }
  .form-label {
    font-size: 0.9em;
    min-width: 5em;
    white-space: nowrap;
  }
  .form-note{ font-size: 0.9em; }
  .form-control {
    font-size: 0.98em !important;
    padding: 0.5em 0.7em;
    margin-bottom: 0.2em;
  }
  .section-divider { margin: 0.5em 0 0.3em 0; }
  .btn-gradient { font-size: 1em; padding: 0.8em 2em; }
  .spec-table,
  .spec-table--compare {
    min-width: 100%;
  }
}

/* =====================================================
   サイドバーメニュー（SP用）
===================================================== */
.sidebar-menu-sp { display: none; }
@media (max-width: 767px) {
  .sidebar-menu { display: none !important; }
  .sidebar-menu-sp { display: block !important; margin-top: 2em; }
  .sidebar { padding: 0 1em !important; }
}

@media (min-width: 768px) {
  .sidebar {
    position: sticky;
    top: 32px;
    align-self: flex-start;
    overflow-y: scroll;
  }
}

/* =====================================================
   ツールトップ 説明
===================================================== */
.tool-index{
  font-weight:normal;
  margin-bottom:4em !important;
}
.tool-index h2 {
  font-size: 1.35em;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  padding-bottom:0.5em;
  color: #5B8ECB;
  font-weight: bold;
  border-image: linear-gradient(
      to right,
      #8bb3d9,
      #b3a4d6
    ) 1 / 0 0 4px;
  border-style: solid;
  line-height:1.5em;
}
.tool-index ul li{
  margin-bottom: 1em;
}
.tool-index ul li::marker{
  color: #5B8ECB;
}
.tool-index ul li a{
  color:#2161a5;
}
.tool-index ul li a:hover{
  color:#2161a5;
  text-decoration:none;
}

/* =====================================================
   ツール説明・ノート・タイトル
===================================================== */
.tool-description a{
  color:#2161a5;
}
.tool-description a:hover{
  color:#2161a5;
  text-decoration:none;
}
.tool-description h2 {
  font-size: 1.35em;
  margin-top: 2.2em;
  margin-bottom: 20px;
  padding-bottom:0.5em;
  color: #5B8ECB;
  font-weight: bold;
  border-image: linear-gradient(
      to right,
      #8bb3d9,
      #b3a4d6
    ) 1 / 0 0 4px;
  border-style: solid;
  line-height:1.5em;
}
.tool-description h3 {
  font-size: 1.15em;
  margin-top: 2em;
  margin-bottom: 20px;
  padding: 0.5em 0.5em 0.5em 0.5em;
  font-weight: bold;
  color: #254E72;
  line-height:1.5em;
  background: linear-gradient(
    to right,
      #DCE8F4,
      #E8E4F3
  );
 border-radius: 6px;
}
.tool-description h4{
  font-size: 1.15em;
  margin-top: 1.5em;
  margin-bottom: 20px;
  padding-bottom:0.5em;
  font-weight: bold;
  color: #254E72;
  width: fit-content;
  border-bottom: 2px dotted #8bb3d9;
}
/* .tool-description 配下の字間を 0.01em に統一。
   palt は body から外したので tool-description 個別指定は不要。 */
.tool-description{
  letter-spacing: 0.01em;
}

/* メドノア原稿の装飾クラス（/kizi スキル準拠）
   - sbd-text-bg-yellow: 黄色マーカー（結論・要点・3〜5 箇所/記事）
   - sbd-text-red: 赤太字（特に強調したいポイント、任意）
   どちらも <span class="..."> で囲んで使う。<strong> は別途「一般的な強調」用。 */
.tool-description .sbd-text-bg-yellow,
.sbd-text-bg-yellow{
  background: linear-gradient(rgba(255,255,255,0) 62%, #ffefa8 62%);
  padding: 0 2px;
  font-weight: 700;
}
.tool-description .sbd-text-red,
.sbd-text-red{
  color: #d33232;
  font-weight: 700;
}
.tool-description p,
.tool-description ul,
.tool-description li,
.tool-description table{
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 400; /* 游ゴシック Medium(500) ではなく Noto Sans JP の Regular */
  font-size: 14.5px;
  line-height: 1.95;
  color: #282828;
  letter-spacing: 0.01em;
}

/* ツール本文の <ul> をカードスタイルで表示 */
.tool-description ul {
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(24, 24, 24, 0.05), 0 4px 12px rgba(24, 24, 24, 0.04);
}
.tool-description ul li {
  color: #282828;
  letter-spacing: 0.01em;
  border-top: 1px solid #f3f3f3;
  padding: 14px 20px 14px 38px; /* 左 dot 分のスペース */
  font-size: 14px;
  line-height: 1.85;
  transition: background 0.15s;
  margin-bottom: 0;
  list-style: none;
  position: relative;
}
.tool-description ul li:first-child { border-top: none; }
.tool-description ul li:hover { background: #fafaf8; }
.tool-description ul li::marker { content: ""; }
.tool-description ul li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v2-brand);
}

/* 指標バー（基礎代謝量ツール等、青グラデ背景＋白文字） */
.tool-description .index-box,
.index-box {
  display: inline-block;
  padding: 4px 12px;
  border: solid 1px #8bb3d9;
  border-radius: 4px;
  background: linear-gradient(to right, #8bb3d9, #b3a4d6);
  font-weight: 700 !important;
  color: #fff !important;
}
.tool-description .index-box small,
.index-box small {
  color: #fff;
  opacity: 0.85;
}
.tool-description li{
  margin-bottom: 0.75em;
}
.tool-description li::marker{
  color: #5B8ECB;
}
/* edsnv.com 商品ページ（WP flexible-table-block + l-first-td-th）と統一
   Bootstrap の .table-bordered を !important で打ち消す（border 重なりで線が太く見えるのを防ぐ） */
.tool-description table{
  margin: 1em 0 2em 0 !important;
  margin-right: auto !important;
  border: 1px solid #ddd !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 0px 15px -5px #ccc;
}
.tool-description table *{
  border: none !important;
}
.tool-description table th,
.tool-description table td{
  font-size: 0.9em;
  padding: 8px;
  border-bottom: 1px solid #ddd !important;
  box-shadow: none !important;
}
.tool-description table th{
  background-color: #8bb3d9 !important;
  color: #fff !important;
  text-align: center;
  vertical-align: middle !important;
  border: 1px solid #ddd !important;
  border-top: none !important;
  border-right: none !important;
}
.tool-description table th:first-child{
  border-left: none !important;
}
.tool-description table td{
  border-left: 1px solid #e5e6ea !important;
  background-color: #fff;
}
.tool-description table tr td:first-child{
  background-color: #ECF2F9;
  font-weight: bold;
  color: #355B95;
  text-align: center;
  border-left: none !important;
}
.tool-description table tr:last-child td,
.tool-description table tr:last-child th{
  border-bottom: none !important;
}
.c-balloon__iconImg{
  margin: 0.5em 0px;
  border-radius:8px;
}
.c-balloon__iconName{
  display: block;
  margin-left:1.5em;
  font-weight:normal;
}
.c-balloon__text{
  margin-top:0.5em;
}
.results-note {
  color: #888;
  font-size: 0.98em;
  margin: 1.2em auto 0.5em auto;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.7em 1em;
  max-width: 520px;
  box-shadow: 0 2px 8px rgba(120,120,180,0.04);
  letter-spacing: 0.01em;
}
.results-main-title {
  background: linear-gradient(90deg, #8bb3d9 0%, #b3a4d6 100%);
  color: #fff;
  border-radius: 14px;
  font-size: 1.35em;
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 0.5em;
  margin: 0 auto 1.5em auto;
  text-align: center;
  box-shadow: 0 2px 8px rgba(120, 120, 180, 0.08);
  width: 90%;
  max-width: 420px;
}

.tool-description .card-body a.btn{
  color:#fff;
}

/* =====================================================
   結果表示2カラム
===================================================== */
.results-2col {
  display: flex;
  gap: 2.5em;
  margin-top: 2.5em;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.98em;
}
.result-col {
  flex: 1 1 340px;
  min-width: 300px;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(120,120,120,0.06);
  padding: 1em;
  margin-bottom: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.92em;
}
.result-section-title {
  font-size: 1.15em;
  font-weight: bold;
  color: #111;
  margin-bottom: 1.2em;
  letter-spacing: 0.04em;
}
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25em;
  font-size: 0.96em;
  margin-bottom: 0.7em;
  white-space: nowrap;
}
.result-label {
  display: inline-block;
  background: linear-gradient(90deg, #5b8ecb 0%, #8bb3d9 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1.05em;
  border-radius: 8px;
  padding: 0.18em 1.1em 0.18em 1.1em;
  margin-right: 0.7em;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: none;
}
.result-score {
  font-size: 2.5em;
  font-weight: 900;
  color: #e96b8a;
  letter-spacing: 0.04em;
}
.result-percentile {
  font-size: 1.02em;
}
.result-graph {
  width: 100%;
  height: 105px;
  background: #f7f7f7;
  border-radius: 8px;
  margin-bottom: 1.2em;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.result-judgement {
  font-size: 1.05em;
  color: #222;
  text-align: center;
  margin: 1.5em 0 0.7em 0;
}
.result-comment {
  background: #ffe3ea;
  color: #e96b8a;
  font-size: 1.75em;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  padding: 0.3em 0.5em;
  margin-top: 0.5em;
  margin-bottom: 0.2em;
  letter-spacing: 0.04em;
}

/* =====================================================
   アクセント
===================================================== */
.accent-number {
  font-size: 1.6em;
  font-weight: 900;
  color: #8b86b6;
}

/* =====================================================
   上に戻るボタン
===================================================== */
#backToTop {
  position: fixed;
  right: 12px;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #8bb3d9; /* ブランド主色（青）。ブログ #pagetop の hov-bg-main と統一 */
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20%);
  transition: opacity .3s, visibility .3s, transform .3s;
  z-index: 999;
}
#backToTop .arrow {
  width: 12px;
  height: 12px;
  border-left: 3px solid #8bb3d9;
  border-bottom: 3px solid #8bb3d9;
  transform: translate(0%, 20%) rotate(135deg);
}
#backToTop:hover {
  background: #8bb3d9;
  border-color: #8bb3d9;
}
#backToTop:hover .arrow {
  border-color: #fff;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =====================================================
   table th 固定
===================================================== */
/* 早見表（sticky thead が必要なため overflow:visible 必須。
   border-radius + clip-path で角丸を実現しつつ sticky と両立。
   .tool-description table (overflow:hidden + border-radius:8px) と
   見た目を揃えるが、clip-path はレンダリング上やや角丸が小さく見えるため
   実装値を 10px に増やして視覚的に同じ大きさに見えるよう調整 */
.quick-reference-table{
  border: 1px solid #ddd !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 10px !important;
  overflow: visible !important;
  -webkit-clip-path: inset(0 round 10px);
  clip-path: inset(0 round 10px);
  box-shadow: 0px 0px 15px -5px #ccc;
}
.quick-reference-table *{
  border: none !important;
}
.quick-reference-table th,
.quick-reference-table td{
  font-size: 0.9em;
  padding: 8px;
  border-bottom: 1px solid #ddd !important;
  border-left: 1px solid #e5e6ea !important;
  text-align: center;
  box-shadow: none !important;
}
.quick-reference-table th{
  background-color: #8bb3d9 !important;
  color: #fff !important;
  border-left: 1px solid #ddd !important;
}
.quick-reference-table th:first-child{
  border-left: none !important;
}
.quick-reference-table tr th:first-child,
.quick-reference-table tr td:first-child{
  border-left: none !important;
}
.quick-reference-table tr td:first-child{
  background-color: #ECF2F9;
  font-weight: bold;
  color: #355B95;
}
.quick-reference-table tr:last-child td,
.quick-reference-table tr:last-child th{
  border-bottom: none !important;
}
.quick-reference-table th.fixed-th{
  position: sticky;
  /* topbar (57px) の下に表ヘッダーが固定されるようオフセット。
     さらに 1px 上方向にオフセットしてサブピクセル隙間を消す */
  top: 56px;
  z-index: 2;
  /* sticky 時のサブピクセルスクロールで th と次行の間に 1px の隙間ができ、
     下の行がチラチラ透けるのを box-shadow で物理的に塞ぐ。
     #8bb3d9 (th の background-color) と同色を 2px 下方向に描画して隙間を埋める */
  box-shadow: 0 2px 0 #8bb3d9, inset 0 -1px 0 #ddd;
}
.quick-reference-table th.fixed-th::before{
  content: none;
}
/* 早見表の行 hover（長い表で読み取り行を見失わないため） */
.quick-reference-table tbody tr:hover td,
.quick-reference-table tr:hover td{
  background-color: #FEF2E4 !important;
}
.quick-reference-table tr:hover td:first-child{
  background-color: #FDE9C8 !important;
}
/* ========================================
   v2 リニューアルレイアウト
   既存色（#8bb3d9 / #5b8ecb / グラデーション）を継承
   既存 .sidebar / .breadcrumbs / Vue 計算機 UI には影響しない
======================================== */
:root {
  --v2-brand: #5b8ecb;
  --v2-brand-deep: #2161a5;
  --v2-brand-soft: #eaf2fb;
  --v2-ink: #282828;
  --v2-ink-2: #555;
  --v2-ink-3: #858585;
  --v2-line: #ececec;
  --v2-line-soft: #f3f3f3;
  --v2-bg-soft: #fafaf8;
  --v2-r: 12px;
  --v2-r-lg: 16px;
  --v2-shadow-sm: 0 1px 2px rgba(40,40,40,0.04);
  --v2-shadow: 0 4px 14px rgba(40,40,40,0.06);
  --v2-shadow-lg: 0 12px 36px rgba(40,40,40,0.10);
  --v2-font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
}

/* v2 共通フォント（main-content配下の v2-* 要素のみ） */
.main-content [class^="v2-"],
.main-content [class*=" v2-"] {
  font-family: var(--v2-font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.015em;
}

/* === ヒーロー === */
.v2-hero {
  margin: 8px 0 56px;
  padding: 0 4px;
}
.v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.v2-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--v2-brand);
}
.v2-eyebrow-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  /* メドノア無料ヘルスケアツール（h1）と同じ青→紫グラデ */
  background: linear-gradient(135deg, #5b8ecb 0%, #8e7ac6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: none;
}
.v2-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--v2-ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.v2-hero-sub {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--v2-ink);
  margin: 0 0 22px;
}
.v2-accent {
  color: var(--v2-brand);
}
.v2-hero-lead {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--v2-ink-2);
  margin: 0 0 28px;
  max-width: 640px;
}
.v2-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 100px;
  border: none; /* button 要素のデフォルト枠線をリセット */
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.v2-btn-primary {
  background: linear-gradient(270deg, #f7b36a 0%, #e7a3c7 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(212, 138, 156, 0.25);
}
.v2-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 138, 156, 0.40);
}
.v2-btn-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--v2-ink-2);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.v2-btn-link:hover {
  color: var(--v2-brand);
}

/* === スタッツ帯 === */
.v2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 0;
  margin: 0 0 56px;
  border-top: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
}
.v2-stat {
  padding: 0 20px;
  border-right: 1px solid var(--v2-line);
}
.v2-stat:last-child {
  border-right: none;
}
.v2-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--v2-brand-deep);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.v2-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--v2-ink);
  margin-bottom: 4px;
}
.v2-stat-sub {
  font-size: 11px;
  color: var(--v2-ink-3);
  letter-spacing: 0.05em;
}

/* === セクション共通 === */
.v2-section {
  margin: 0 0 56px;
}
.v2-section-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.v2-section-rule-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--v2-brand);
  text-transform: uppercase;
}
.v2-section-rule-line {
  flex: 1;
  height: 1px;
  background: var(--v2-line);
}
.v2-section-title {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #5b8ecb 0%, #8e7ac6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.v2-section-lead {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--v2-ink-2);
  margin: 0 0 24px;
  max-width: 720px;
}

/* === カテゴリ === */
.v2-cat {
  margin-bottom: 40px;
}
.v2-cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v2-line);
}
.v2-cat-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--v2-brand);
  font-family: 'Inter', monospace;
  letter-spacing: 0.1em;
}
.v2-cat-title {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--v2-ink);
  margin: 0;
}
.v2-cat-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--v2-ink-3);
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-line);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'Inter', monospace;
}

/* === ツールカード === */
.v2-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.v2-tool-card {
  display: block;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-r);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.v2-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v2-shadow);
  border-color: var(--v2-brand);
  text-decoration: none;
}
.v2-tool-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--v2-ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.v2-tool-card-desc {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--v2-ink-2);
  margin-bottom: 16px;
  min-height: 42px;
}
.v2-tool-card-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--v2-brand);
  letter-spacing: 0.05em;
}

/* === 専門家カード === */
.v2-expert-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-r);
}
.v2-expert-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.v2-expert-body {
  flex: 1;
}
.v2-expert-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--v2-ink);
  margin-bottom: 4px;
}
.v2-expert-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--v2-ink-2);
  margin: 0;
}

/* === 関連記事リスト === */
.v2-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.v2-related-list li {
  border-bottom: 1px solid var(--v2-line);
}
.v2-related-list li:first-child {
  border-top: 1px solid var(--v2-line);
}
.v2-related-list a {
  display: block;
  padding: 14px 4px;
  font-size: 13.5px;
  color: var(--v2-ink);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.v2-related-list a:hover {
  color: var(--v2-brand);
  padding-left: 8px;
}

/* === レスポンシブ === */
.v2-br-mobile { display: none; }
.v2-br-pc { display: inline; }

@media (max-width: 768px) {
  .v2-hero { margin: 4px 0 36px; }
  .v2-hero-title { font-size: 28px; }
  .v2-hero-sub { font-size: 17px; }
  .v2-hero-lead { font-size: 13px; }
  .v2-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
    padding: 22px 0;
    margin-bottom: 40px;
  }
  .v2-stat {
    padding: 0 12px;
    border-right: 1px solid var(--v2-line);
  }
  .v2-stat:nth-child(2n) { border-right: none; }
  .v2-stat-num { font-size: 26px; }
  .v2-section-title { font-size: 21px; }
  .v2-tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v2-tool-card { padding: 18px 16px 16px; }
  .v2-tool-card-desc { min-height: 0; }
  /* ヒーローのCTAボタン群をスマホでフル幅縦並びに */
  .v2-hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .v2-btn-primary { justify-content: center; height: 52px; font-size: 14px; }
  .v2-btn-link { text-align: center; padding: 6px; }
  /* セクション見出しの装飾余白調整 */
  .v2-section { margin: 0 0 40px; }
  .v2-section-tight { margin-top: 40px; }
  /* breadcrumbs を小さめに */
  .v2-breadcrumbs { font-size: 11px; margin-bottom: 18px; }
  /* タッチターゲットを44px以上に */
  .v2-sidebar-link { padding: 12px; font-size: 14px; }
  /* カードのグリッド余白 */
  .v2-section-rule { gap: 10px; margin-bottom: 12px; }
  .v2-expert-card { padding: 16px; gap: 14px; }
  .v2-expert-avatar { width: 52px; height: 52px; }
  .v2-br-mobile { display: inline; }
  .v2-br-pc { display: none; }
}

/* ========================================
   v2 レイアウト（サイドバー＋メイン）
======================================== */
.v2-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--v2-font);
  background: #fff;
  color: var(--v2-ink);
}

/* === v2 サイドバー === */
.v2-sidebar {
  width: 252px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--v2-line);
  padding: 24px 0;
  position: sticky;
  /* topbar (height 56px + border-bottom 1px = 57px) の下に出るようオフセット */
  top: 57px;
  height: calc(100vh - 57px);
  height: calc(100dvh - 57px);
  overflow-y: auto;
  font-family: var(--v2-font);
}
.v2-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--v2-line);
  margin-bottom: 18px;
  text-decoration: none;
  color: inherit;
}
.v2-sidebar-logo:hover {
  text-decoration: none;
  color: inherit;
}
.v2-sidebar-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8bb3d9, #b3a4d6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(91, 142, 203, 0.25);
}
.v2-sidebar-logo-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--v2-ink);
}
.v2-sidebar-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--v2-ink-3);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.v2-sidebar-home {
  padding: 0 12px;
  margin-bottom: 14px;
}
.v2-sidebar-link,
.v2-sidebar-tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-weight: 400;
  font-size: 13px;
  color: var(--v2-ink-2);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
/* サイドバーのツールリンク左の丸印（検索モーダルと配色を揃える） */
.v2-sidebar-tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8ecb, #b3a4d6); /* デフォルト=カロリー: 青→紫 */
  box-shadow: 0 0 0 3px rgba(91, 142, 203, 0.10);
  flex-shrink: 0;
}
.v2-sidebar-tool-link[data-cat="体重・体型計算"] .v2-sidebar-tool-dot {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.v2-sidebar-tool-link[data-cat="その他のチェック"] .v2-sidebar-tool-dot {
  background: linear-gradient(135deg, #b3a4d6, #d4b3e8);
  box-shadow: 0 0 0 3px rgba(179, 164, 214, 0.12);
}
.v2-sidebar-tool-label { flex: 1; min-width: 0; }
.v2-sidebar-link:hover,
.v2-sidebar-tool-link:hover {
  background: var(--v2-bg-soft);
  color: var(--v2-ink);
  text-decoration: none;
}
.v2-sidebar-link.is-active,
.v2-sidebar-tool-link.is-active {
  background: var(--v2-brand-soft);
  color: var(--v2-brand-deep);
  font-weight: 500;
}
.v2-sidebar-link.is-active::before,
.v2-sidebar-tool-link.is-active::before {
  display: none;
}
.v2-sidebar-cats {
  padding: 0 12px;
}
.v2-sidebar-cat {
  margin-bottom: 18px;
}
.v2-sidebar-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--v2-ink-3);
  text-transform: uppercase;
}
.v2-sidebar-cat-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--v2-ink-3);
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-line);
  padding: 1px 7px;
  border-radius: 100px;
  font-family: 'Inter', monospace;
}
.v2-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.v2-sidebar-list li {
  margin-bottom: 1px;
}
.v2-sidebar-tool-link {
  font-size: 12.5px;
  padding: 7px 12px;
}

/* === v2 メイン === */
.v2-main {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 0;
  max-width: calc(100% - 252px);
}
.v2-content {
  max-width: 880px;
  margin: 0 auto; /* メイン領域内で中央寄せ */
}
.v2-breadcrumbs {
  /* HTML 側で .v2-content の中に配置することで本文と左端を揃える */
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--v2-ink-3);
}
.v2-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.v2-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.v2-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--v2-ink-3);
  margin-left: 6px;
  opacity: 0.5;
}
.v2-breadcrumbs a {
  color: var(--v2-ink-2);
  text-decoration: none;
}
.v2-breadcrumbs a:hover {
  color: var(--v2-brand);
}

/* === v2 セクション内インデント調整 === */
.v2-section-tight {
  margin-top: 56px;
}

/* === v2 フッター（layout の外で全幅固定、メドノアブログ準拠の濃グレー） === */
.v2-footer {
  margin: 0;
  padding: 40px 36px 28px;
  background: #3b464a; /* メドノアブログ --color_footer_bg と完全一致 */
  color: #fff;
  border-top: none;
  font-family: var(--v2-font);
}
.v2-footer-inner {
  max-width: 1280px;
  margin: 0 auto; /* 中央寄せ */
}
.v2-footer-brand {
  margin-bottom: 24px;
}
.v2-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.v2-footer-logo:hover { text-decoration: none; color: inherit; }
.v2-footer-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--v2-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(91, 142, 203, 0.10);
  padding: 3px;
}
.v2-footer-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v2-footer-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.v2-footer-tagline {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin: 2px 0 0 44px; /* ロゴマーク幅 + gap 分インデント、上余白は最小限 */
  line-height: 1.4;
}
/* PC では正式名称を 1 行で表示、モバイル時のみ折り返しを許容 */
.v2-footer-col a {
  display: inline-block;
  line-height: 1.5;
  font-weight: 400;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .v2-footer-col a { white-space: normal; }
}
.v2-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--v2-line);
}
.v2-footer-col-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}
.v2-footer-col ul {
  list-style: disc;
  list-style-position: outside;
  /* 列タイトル (.v2-footer-col-title) の左端よりリストマーカーが
     少し右にくるよう padding-left を増やす */
  padding: 0 0 0 22px;
  margin: 0;
}
.v2-footer-col li {
  margin-bottom: 6px;
}
/* リストマーカーはダーク背景 (#3b464a) と調和する控えめな青みグレー */
.v2-footer-col li::marker {
  color: #6c7d8f;
  font-size: 0.85em;
}
.v2-footer-col a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.12s;
}
.v2-footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}
.v2-footer-bottom {
  padding-top: 18px;
  text-align: center;
}
.v2-footer-bottom small {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}
.v2-footer-cols {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important; /* デフォルトで定義された薄線も白系に */
}

/* === v2 ツール本体（id="app"）周りの最低限調整 === */
.v2-content #app {
  margin-bottom: 32px;
}
.v2-content #app .card {
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-r);
  box-shadow: none;
}
.v2-content #app .card-header {
  background: var(--primary-gradient); /* 青→紫の既存グラデ帯（旧tools踏襲） */
  color: #fff;
  border: none;
  border-bottom: none;
  border-radius: 12px;
  padding: 20px 28px;
  margin: 0 0 20px;
  box-shadow: 0 4px 14px rgba(120, 120, 180, 0.10);
}
.v2-content #app .card-header h1 {
  font-family: var(--v2-font);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .v2-content #app .card-header { padding: 16px 18px; border-radius: 10px; }
  .v2-content #app .card-header h1 { font-size: 18px; letter-spacing: 0.02em; }
}
.v2-content #app .card-body {
  padding: 22px;
}
/* 計算サブミットボタンの上下マージンを card-body の padding-bottom と揃える。
   Bootstrap .mt-4 (1.5rem) では PC 下=22px / SP 下=16px と非対称になるため上書き。 */
.v2-content #app .btn-gradient.mt-4 { margin-top: 22px !important; }
@media (max-width: 768px) {
  .v2-content #app .btn-gradient.mt-4 { margin-top: 16px !important; }
}
/* hensachi: ボタン直後の results-note 上余白を button の mt-4 と揃える（視覚対称）。
   Bootstrap .mt-2 (!important) を上書きするため !important 必須。 */
.v2-content #app .results-note { margin-top: 22px !important; }
@media (max-width: 768px) {
  .v2-content #app .results-note { margin-top: 16px !important; }
}

/* === レスポンシブ: タブレット以下でサイドバーを上部に === */
@media (max-width: 980px) {
  .v2-layout {
    flex-direction: column;
  }
  .v2-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--v2-line);
    padding: 16px 0;
  }
  .v2-sidebar-logo {
    padding: 0 16px 16px;
  }
  .v2-sidebar-cats {
    display: none; /* モバイルではホームリンクのみ表示。ツール一覧は本文内のカードで提供 */
  }
  /* スマホでは cta-sidebar も非表示（モバイル下端固定CTAと重複） */
  .cta-sidebar { display: none; }
  .v2-sidebar-home {
    margin-bottom: 0;
  }
  .v2-main {
    /* SP の左右 padding はトップページの All Tools 等の余白を確保するため
       元の 16px を維持。詳細ページの計算カードだけ後述の negative margin で
       画面端まで拡張する */
    padding: 20px 16px 0;
    max-width: 100%;
  }
  /* SP: ツール詳細ページの計算カード (#app .card) のみ画面端まで拡張。
     親 (.v2-main) の左右 16px padding を negative margin で打ち消す */
  .v2-content #app .card {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0;
  }
  .v2-content #app .card-header {
    border-radius: 0 !important;
    margin: 0 0 16px;
  }
  .v2-content #app .card-header h1 {
    /* SP は h1 が 1 行に収まることが多いので min-height を解除 */
    min-height: 0;
  }
  .v2-content #app .card-body {
    padding: 16px;
  }
  .v2-footer {
    margin: 0;
    padding: 28px 16px 20px;
  }
  .v2-footer-cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}


/* ========================================
   v2 商品CTA系（売上導線）
   - cta-result: ツール本体直後の3商品レコメンド
   - cta-sidebar: サイドバー固定の人気商品
   - cta-banner: フッター上部の大型キャンペーンバナー
   - cta-mobile-fixed: モバイル下端固定CTA
   配色: 既存青系（信頼）＋ オレンジCTA色（行動誘発）
======================================== */
:root {
  --cta-orange: #FFAA00;
  --cta-orange-deep: #FF8800;
  --cta-orange-soft: #FFF4D6;
  --cta-grad: linear-gradient(135deg, #FFAA00 0%, #FF8800 100%);
}

/* === 1. ツール直後の3商品レコメンド === */
.cta-result {
  margin: 28px 0 36px;
  padding: 24px 22px;
  background: linear-gradient(180deg, #fffefa 0%, #fff8e6 100%);
  border: 1px solid #ffe9b3;
  border-radius: 14px;
  font-family: var(--v2-font);
}
.cta-result-head { margin-bottom: 18px; text-align: center; }
.cta-result-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cta-orange-deep);
  background: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid #ffd980;
  margin-bottom: 10px;
}
.cta-result-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--v2-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cta-result-lead { font-size: 13px; color: var(--v2-ink-2); margin: 0; line-height: 1.7; }
.cta-result-lead strong { color: var(--cta-orange-deep); font-weight: 700; }
.cta-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.cta-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 170, 0, 0.22);
  border-color: var(--cta-orange);
  text-decoration: none;
  color: inherit;
}
.cta-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fafafa;
  overflow: hidden;
}
.cta-card-img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.cta-card-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--cta-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(255, 136, 0, 0.3);
}
.cta-card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.cta-card-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--v2-ink-3);
  margin-bottom: 4px;
}
.cta-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--v2-ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.cta-card-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--v2-ink-2);
  margin-bottom: 10px;
  flex: 1;
}
.cta-card-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 12px;
  color: var(--cta-orange-deep);
}
.cta-card-price-label { font-size: 10px; font-weight: 700; color: var(--v2-ink-3); margin-right: 4px; }
.cta-card-price-num {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}
.cta-card-price-yen { font-size: 12px; font-weight: 700; }
.cta-card-btn {
  display: block;
  text-align: center;
  background: var(--cta-grad);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: auto;
  box-shadow: 0 2px 6px rgba(255, 136, 0, 0.25);
}

/* === 2. サイドバー人気商品 === */
.cta-sidebar {
  margin: 18px 12px 12px;
  padding: 14px 12px 12px;
  background: var(--cta-orange-soft);
  border: 1px solid #ffe5a8;
  border-radius: 10px;
}
.cta-sidebar-head { margin-bottom: 10px; }
.cta-sidebar-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cta-orange-deep);
}
.cta-sidebar-list { list-style: none; padding: 0; margin: 0 0 10px; }
.cta-sidebar-list li { margin-bottom: 6px; }
.cta-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cta-sidebar-item:hover {
  border-color: var(--cta-orange);
  box-shadow: 0 2px 8px rgba(255, 170, 0, 0.15);
  text-decoration: none;
  color: inherit;
}
.cta-sidebar-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 6px;
  flex-shrink: 0;
}
.cta-sidebar-meta { min-width: 0; flex: 1; }
.cta-sidebar-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--v2-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cta-sidebar-price {
  font-size: 11px;
  color: var(--cta-orange-deep);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-top: 2px;
}
.cta-sidebar-more {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--cta-orange-deep);
  text-decoration: none;
  padding: 4px;
}
.cta-sidebar-more:hover { text-decoration: underline; color: var(--cta-orange-deep); }

/* === 3. フッター上部キャンペーンバナー === */
.cta-banner {
  margin: 40px 0 0;
  padding: 22px 24px;
  background: var(--cta-grad);
  border-radius: 14px;
  color: #fff;
  font-family: var(--v2-font);
  box-shadow: 0 8px 24px rgba(255, 136, 0, 0.25);
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cta-banner-text { flex: 1; min-width: 220px; }
.cta-banner-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.9;
  margin-bottom: 4px;
}
.cta-banner-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.cta-banner-sub { font-size: 13px; opacity: 0.95; }
.cta-banner-em {
  background: #fff;
  color: var(--cta-orange-deep);
  padding: 0 8px;
  border-radius: 4px;
  font-weight: 700;
}
.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--cta-orange-deep);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-banner-btn:hover {
  transform: translateY(-1px);
  color: var(--cta-orange-deep);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* === 4. モバイル下端固定CTA === */
/* フッター全面を広告サーフェスにする（枠の中の枠デザインを廃止）。
   将来的に画像バナーへ差し替えできるよう、構造化コンテンツとフル画像の
   2モードに対応した CSS にしてある。
   フル画像化したいときは:
     <div class="cta-mobile-fixed cta-mobile-fixed--banner">
       <a href="..."><img src="banner.jpg" class="cta-mobile-fixed-banner-img" alt=""></a>
       <button class="cta-mobile-fixed-close" ...>×</button>
     </div>
   で .cta-mobile-fixed--banner クラスを付与すれば padding 0 + 画像100%幅でフルバナー化。 */
.cta-mobile-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--cta-orange-soft);
  border: none;
  outline: none;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  padding: 10px 12px;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--v2-font);
}
/* バナーモード: 画像 100% 幅のフル広告枠 */
.cta-mobile-fixed--banner { padding: 0; background: transparent; }
.cta-mobile-fixed-banner-img { display: block; width: 100%; height: auto; }
.cta-mobile-fixed-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-radius: 0;
  padding: 0;
  min-width: 0;
}
.cta-mobile-fixed-link:hover { text-decoration: none; color: inherit; }
.cta-mobile-fixed-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
/* 上ブロック (badges + benefit) — 改行禁止・はみ出しは省略表示 */
.cta-mobile-fixed-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
/* 下行 (商品名 + ボタン) — 同じ行 */
.cta-mobile-fixed-bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  min-width: 0;
}
/* 補助テキスト（商品名右に小さく表示） */
.cta-mobile-fixed-sub {
  font-size: 10px;
  font-weight: 400;
  color: #404040; /* ink-2 (#555) より少し濃く */
  margin-left: 6px;
  letter-spacing: 0;
}
/* 矢印円ボタン → 文言入りのピル型 CTA ボタン */
.cta-mobile-fixed-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;       /* 行内右寄せ */
  margin-right: -4px;      /* バー右パディング内側にめり込む形で 4px 右に */
  padding: 6px 14px;
  background: linear-gradient(270deg, #f7b36a 0%, #e7a3c7 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 100px;    /* 両サイド丸 pill */
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(212, 138, 156, 0.20);
  flex-shrink: 0;
}
.cta-mobile-fixed-text { flex: 1; min-width: 0; }
.cta-mobile-fixed-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--cta-orange-deep);
  letter-spacing: 0.05em;
  white-space: nowrap;       /* 改行禁止 */
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ベネフィット行: フック文。最も目立たせる */
.cta-mobile-fixed-benefit {
  font-size: 13px;
  font-weight: 700;
  color: var(--v2-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
/* 商品名行: 2行目（太字） */
.cta-mobile-fixed-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--v2-ink); /* 訴求文と同じ黒 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.cta-mobile-fixed-arrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--cta-orange-deep);
  margin-left: auto;
  padding-right: 4px;
}
.cta-mobile-fixed-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--v2-line);
  border-radius: 50%;
  background: #fff;
  color: var(--v2-ink-2);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.cta-mobile-fixed-close:hover {
  background: var(--v2-bg-soft);
  color: var(--v2-ink);
}

/* === レスポンシブ === */
@media (max-width: 768px) {
  .cta-result { padding: 18px 14px; margin: 22px 0 28px; }
  .cta-result-title { font-size: 18px; }
  .cta-result-lead { font-size: 12px; }
  .cta-result-grid { grid-template-columns: 1fr; gap: 10px; }
  .cta-card-img-wrap { aspect-ratio: 16 / 9; }
  .cta-card-body { padding: 12px 14px 14px; }
  .cta-card-name { font-size: 14px; }
  .cta-card-desc { font-size: 11.5px; }
  .cta-card-price-num { font-size: 20px; }
  .cta-banner { padding: 18px 16px; margin-top: 32px; }
  .cta-banner-inner { gap: 14px; flex-direction: column; align-items: flex-start; }
  .cta-banner-title { font-size: 18px; }
  .cta-banner-sub { font-size: 12.5px; }
  .cta-banner-btn { padding: 10px 18px; font-size: 13px; align-self: stretch; justify-content: center; }
  .cta-mobile-fixed { display: flex; }
  /* モバイル固定 CTA 表示時のクリアランス。
     フッター自身の padding-bottom を伸ばすことで、フッターの濃グレー背景を
     CTA バーの直上まで延長する（body 余白だと青紫グラデが透けるため）。
     上に戻るボタンも CTA バーの上に移動。 */
  body:has(.cta-mobile-fixed) .v2-footer { padding-bottom: calc(20px + 96px); }
  body:has(.cta-mobile-fixed) #backToTop {
    bottom: calc(1.25rem + 96px);
  }
}

/* v-cloak: Vueマウント前の一瞬の表示を防ぐ */
[v-cloak] { display: none !important; }


/* === press モード時: コラム記事カード（控えめ・通常UIに溶け込む） === */
.cta-result-articles {
  background: #fafbfc;
  border: 1px solid var(--v2-line);
}
.cta-result-articles .cta-result-eyebrow {
  background: #fff;
  color: var(--v2-ink-2);
  border-color: var(--v2-line);
}
.cta-card-article {
  /* 商品カード(.cta-card)を継承しつつ、ホバー色を青系に */
}
.cta-card-article:hover {
  border-color: var(--v2-brand);
  box-shadow: 0 6px 20px rgba(91, 142, 203, 0.15);
}
.cta-card-btn-article {
  background: var(--v2-brand);
  box-shadow: 0 2px 6px rgba(91, 142, 203, 0.2);
}
.cta-sidebar-articles {
  background: #fafbfc;
  border-color: var(--v2-line);
}
.cta-sidebar-articles .cta-sidebar-eyebrow {
  color: var(--v2-ink-2);
}
.cta-sidebar-item-article:hover {
  border-color: var(--v2-brand);
  box-shadow: 0 2px 8px rgba(91, 142, 203, 0.12);
}

/* ========================================
   v2 トップヘッダーバー（全幅）+ 検索モーダル
======================================== */
.v2-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--v2-line);
  font-family: var(--v2-font);
}
.v2-topbar-inner {
  display: flex;
  align-items: center;
  height: 56px;
  /* viewport-fit=cover に伴う safe-area-inset 対応（iPhone ノッチ機種で
     横画面時に左右コンテンツが見切れないよう、max() で通常 padding 22px と
     env(safe-area-inset-*) の大きい方を採用） */
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
  gap: 16px;
}
.v2-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.v2-topbar-logo:hover { text-decoration: none; color: inherit; }
.v2-topbar-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--v2-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(91, 142, 203, 0.10);
  padding: 3px;
}
.v2-topbar-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v2-topbar-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #3b464a;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.v2-topbar-logo-text-l1,
.v2-topbar-logo-text-l2 { display: inline; }
.v2-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.v2-topbar-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  color: var(--v2-ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  transition: background 0.12s, border-color 0.12s;
}
.v2-topbar-search:hover {
  background: #f0f4f8;
  border-color: #cbd5e1;
  color: var(--v2-ink);
}
.v2-kbd {
  font-size: 10px;
  font-family: 'Inter', monospace;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 4px;
  color: var(--v2-ink-3);
  font-weight: 500;
}
.v2-topbar-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  background: linear-gradient(270deg, #f7b36a 0%, #e7a3c7 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(212, 138, 156, 0.30);
}
.v2-topbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 138, 156, 0.45);
  color: #fff;
  text-decoration: none;
}
/* モバイルでは「メドノア TOP →」の "→" を非表示
   ハンバーガーメニューに向かう矢印に見える誤認を防ぐ */
@media (max-width: 980px) {
  .v2-topbar-cta-arrow { display: none; }
}

/* === サイドバーの検索ボタン === */
.v2-sidebar-search-wrap {
  padding: 16px 12px 12px;
  border-bottom: 1px solid var(--v2-line);
  margin-bottom: 12px;
}
.v2-sidebar-search-btn {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 8px 12px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  color: var(--v2-ink-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  transition: background 0.12s, border-color 0.12s;
}
.v2-sidebar-search-btn:hover {
  background: #f0f4f8;
  border-color: #cbd5e1;
}
.v2-sidebar-search-btn span:not(.v2-kbd) {
  flex: 1;
  text-align: left;
}

/* サイドバーの padding 上を縮小（topbar導入で旧ロゴ部分の余白不要） */
.v2-sidebar { padding-top: 12px; }

/* === 検索モーダル === */
.v2-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  font-family: var(--v2-font);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.v2-search-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.18s ease;
}
.v2-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.v2-search-modal-panel {
  position: relative;
  width: min(560px, 92vw);
  max-height: 70vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.v2-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--v2-line);
}
.v2-search-input-wrap svg { color: var(--v2-ink-3); flex-shrink: 0; }
.v2-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--v2-ink);
  background: transparent;
}
.v2-search-input::placeholder { color: var(--v2-ink-3); }
.v2-search-esc {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-line);
  border-radius: 4px;
  color: var(--v2-ink-3);
  font-family: 'Inter', monospace;
}
.v2-search-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--v2-line);
  border-radius: 50%;
  background: var(--v2-bg-soft);
  color: var(--v2-ink-3);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.v2-search-close:hover {
  background: #eef1f8;
  color: var(--v2-ink);
  border-color: var(--v2-ink-3);
}
.v2-search-close:focus-visible {
  outline: 2px solid var(--v2-accent, #5b8ecb);
  outline-offset: 2px;
}

/* SPでのみ改行（PCでは1行のまま） */
.v2-br-sp { display: none; }
@media (max-width: 768px) {
  .v2-br-sp { display: inline; }
}
.v2-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.v2-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--v2-ink);
  cursor: pointer;
  transition: background 0.1s;
}
.v2-search-result:hover,
.v2-search-result.is-active {
  background: var(--v2-brand-soft);
  color: var(--v2-brand-deep);
  text-decoration: none;
}
/* 左端の色付きドット（トップのツールカード実配色に合わせる、カテゴリ別色分け）
   トップは v2-cat:nth-of-type を使った結果、実際の配色が:
   - 体重・体型 = アンバー (#f59e0b → #fbbf24)
   - カロリー  = 紫 (#b3a4d6 → #d4b3e8)
   - その他    = デフォルト 青→紫 (#5b8ecb → #b3a4d6)
   この実装に検索モーダル側を合わせる */
.v2-search-result-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8ecb, #b3a4d6); /* デフォルト = その他: 青→紫 */
  box-shadow: 0 0 0 3px rgba(91, 142, 203, 0.10);
  flex-shrink: 0;
}
.v2-search-result[data-cat="体重・体型"] .v2-search-result-dot {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.v2-search-result[data-cat="その他"] .v2-search-result-dot {
  background: linear-gradient(135deg, #b3a4d6, #d4b3e8);
  box-shadow: 0 0 0 3px rgba(179, 164, 214, 0.12);
}
.v2-search-result-label {
  font-size: 14px;
  font-weight: 400;
  flex: 1;
  min-width: 0;
}
.v2-search-result-cat {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--v2-ink-3);
  background: var(--v2-bg-soft);
  padding: 2px 10px;
  border-radius: 100px;
  /* PC/SP 共通でバッジを縮小/折り返しさせず一行表示で整列 */
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 76px;
  text-align: center;
}
.v2-search-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--v2-ink-3);
  font-size: 13px;
}
.v2-search-footer {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--v2-line);
  background: var(--v2-bg-soft);
  font-size: 11px;
  font-weight: 400;
  color: var(--v2-ink-2); /* 「移動」「開く」「閉じる」が薄すぎないように */
}
.v2-search-footer kbd {
  font-family: 'Inter', monospace;
  padding: 2px 7px;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 4px;
  margin-right: 4px;
  color: var(--v2-ink); /* キーの文字をはっきり見える色に */
  font-size: 10.5px;
  font-weight: 600;
}

/* topbar スマホ対応 */
@media (max-width: 768px) {
  .v2-topbar-inner { padding: 0 12px; height: 56px; gap: 8px; }
  .v2-topbar-logo-mark { width: 32px; height: 32px; }
  .v2-topbar-logo-text {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    display: flex;
    flex-direction: column;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
  .v2-topbar-logo-text-l1,
  .v2-topbar-logo-text-l2 { display: block; }
  .v2-topbar-search { display: none; } /* 検索はサイドバー内ボタン優先（モバイル） */
  .v2-kbd { display: none; }
  .v2-topbar-cta { font-size: 11px; padding: 0 10px; height: 30px; letter-spacing: 0; }
  .v2-search-modal { padding-top: 56px; }
  .v2-search-modal-panel { width: 94vw; max-height: 80vh; }
  .v2-search-footer { display: none; }
  .v2-search-esc { display: none; } /* モバイルでは物理 esc キーがないため非表示 */
  .v2-sidebar { padding-top: 10px; }
}

/* ========================================
   v2 デザイン強化: 旧UIの柔らかさ・グラデ・角丸を統合
======================================== */

/* 全体の背景は薄いブルーグレー単色（トップ・ツール完全一致のため） */
.v2-layout {
  background: #eef1f8;
  min-height: 100vh;
  min-height: 100dvh;
}

/* topbar は完全な白 */
.v2-topbar {
  background: #fff;
  backdrop-filter: none;
}

/* サイドバーも半透明感を持たせる */
.v2-sidebar {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

/* ヒーロー: 背景・角丸・影を撤去してツールページのメインと同じ素地に */
.v2-hero {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 8px 0 24px;
  margin: 0 0 32px;
  overflow: visible;
  box-shadow: none;
}
.v2-hero::before {
  display: none;
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: transparent;
  pointer-events: none;
}
.v2-hero-title {
  font-size: 38px;
  background: linear-gradient(135deg, #5b8ecb 0%, #8e7ac6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}
.v2-hero-sub { font-size: 21px; }
.v2-accent {
  background: linear-gradient(120deg, #5b8ecb 0%, #b3a4d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* スタッツ: 大きい白カード + 影 */
.v2-stats {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 120, 180, 0.08);
  border-radius: 20px;
  padding: 26px 12px;
  box-shadow: 0 4px 18px rgba(120, 120, 180, 0.06);
}

/* ツールカード: 角丸大きく、ホバーで枠線フェード */
.v2-tool-card {
  border-radius: 18px;
  border: 2px solid rgba(120, 120, 180, 0.10);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(120, 120, 180, 0.04);
  padding: 24px 22px 22px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.30s ease 0.10s; /* 枠線だけ少し遅れてはっきり */
}
.v2-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(91, 142, 203, 0.16);
  border-color: #5b8ecb;
}
/* カテゴリ別ホバー枠線色（旧 左バー時代の色彩設計を踏襲） */
.v2-cat:nth-of-type(1) .v2-tool-card:hover { border-color: #5b8ecb; } /* 体型 = 青 */
.v2-cat:nth-of-type(2) .v2-tool-card:hover { border-color: #f59e0b; } /* カロリー = アンバー */
.v2-cat:nth-of-type(4) .v2-tool-card:hover { border-color: #b3a4d6; } /* その他 = 紫 */
.v2-tool-card-cta {
  color: #5b8ecb;
  font-weight: 700;
}

/* セクションタイトル（ヒーロー h1 と同じ明るい青→紫グラデで統一） */
.v2-section-title {
  font-size: 28px;
  background: linear-gradient(135deg, #5b8ecb 0%, #8e7ac6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2-section-rule-label {
  background: linear-gradient(120deg, #5b8ecb, #b3a4d6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2-cat-num {
  background: linear-gradient(120deg, #5b8ecb, #b3a4d6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* カテゴリヘッダーの下線をグラデに */
.v2-cat-head {
  border-bottom: none;
  padding-bottom: 14px;
  position: relative;
}
.v2-cat-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(91, 142, 203, 0.3), rgba(179, 164, 214, 0.3) 50%, transparent 100%);
}

/* breadcrumbs 装飾 */
.v2-breadcrumbs {
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 14px;
  border-radius: 100px;
  display: inline-block;
  border: 1px solid rgba(120, 120, 180, 0.08);
  /* 1px の border 分だけ視覚的に右にずれて見えるので 1px 左に補正
     して、下の .v2-eyebrow pill（border なし）と左端が揃うようにする */
  margin-left: -1px;
  margin-bottom: 24px;
}
.v2-breadcrumbs ol { display: inline-flex; }

/* 専門家カード: 角丸大きく */
.v2-expert-card {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 179, 217, 0.06), rgba(179, 164, 214, 0.06));
  border: 1px solid rgba(120, 120, 180, 0.10);
}

/* フッター上部の境界（濃グレー背景なので装飾は控えめ） */
.v2-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* topbar CTA (オレンジ) は変更なし、CTAレコメンドのオレンジも維持 */

/* スマホで角丸を少し小さく */
@media (max-width: 768px) {
  .v2-hero { padding: 24px 18px; border-radius: 18px; margin-bottom: 20px; }
  .v2-hero-title { font-size: 27px; }
  .v2-hero-sub { font-size: 17px; }
  .v2-stats { border-radius: 16px; padding: 18px 8px; }
  .v2-tool-card { border-radius: 14px; padding: 18px 16px 16px; }
  .v2-section-title { font-size: 22px; }
}

/* ========================================
   v2 ブラッシュアップ Pass 2
   - カテゴリ色分け / アイコン代替 / シマーボタン
   - スタッツ強調 / hover洗練 / scroll-fade
======================================== */

/* === スタッツの数値を更に大きく・強調 === */
.v2-stat-num {
  font-size: 38px;
  font-weight: 800;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #2161a5 0%, #6f5fa8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.v2-stat-label { font-size: 13px; color: var(--v2-ink); }
.v2-stat-sub { font-size: 11px; letter-spacing: 0.04em; }

/* === ツールカード: 左カラーバー + アクセント === */
.v2-tool-card {
  position: relative;
  overflow: hidden;
}
/* 旧: 左縦バー。カード全体の枠線フェードに置き換えたため非表示 */
.v2-tool-card::before { display: none; }

/* カテゴリ番号バッジ風 */
.v2-cat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(91, 142, 203, 0.10), rgba(179, 164, 214, 0.10));
  border-radius: 8px;
  font-size: 13px;
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: #5b8ecb;
  font-family: 'Inter', monospace;
  font-weight: 700;
  letter-spacing: 0;
}
.v2-cat:nth-of-type(2) .v2-cat-num { color: #d97706; background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(251, 191, 36, 0.10)); }
.v2-cat:nth-of-type(4) .v2-cat-num { color: #8e7ac6; background: linear-gradient(135deg, rgba(179, 164, 214, 0.10), rgba(212, 179, 232, 0.10)); }

.v2-cat-count {
  background: rgba(91, 142, 203, 0.08);
  border-color: rgba(91, 142, 203, 0.15);
  color: #5b8ecb;
}
.v2-cat:nth-of-type(2) .v2-cat-count { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.20); color: #d97706; }
.v2-cat:nth-of-type(4) .v2-cat-count { background: rgba(179, 164, 214, 0.12); border-color: rgba(179, 164, 214, 0.25); color: #8e7ac6; }

/* ツールカードのCTA矢印アニメ */
.v2-tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s, color 0.2s;
}
.v2-tool-card:hover .v2-tool-card-cta { gap: 8px; }

/* === ヒーロー装飾 (multiple blur orbs) === */
.v2-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 179, 217, 0.20) 0%, transparent 70%);
  pointer-events: none;
}

/* ヒーローボタンのシマーエフェクト */
.v2-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(270deg, #f7b36a 0%, #e7a3c7 100%);
  letter-spacing: 0.05em;
  font-weight: 700;
}
.v2-btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s;
}
.v2-btn-primary:hover::after { left: 100%; }
.v2-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 138, 156, 0.40);
}

/* topbar CTA も同じシマー */
.v2-topbar-cta { position: relative; overflow: hidden; }
.v2-topbar-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s;
}
.v2-topbar-cta:hover::after { left: 100%; }

/* === セクションタイトルの装飾を強化 === */
.v2-section-rule { gap: 16px; }
.v2-section-rule-line {
  background: linear-gradient(to right, rgba(91, 142, 203, 0.4), transparent);
}
.v2-section-rule-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 800;
}

/* === scroll fade-in (CSS only via @starting-style fallback) === */
.v2-cat, .v2-section { animation: v2FadeUp 0.5s ease-out backwards; }
.v2-cat:nth-of-type(2) { animation-delay: 0.06s; }
.v2-cat:nth-of-type(3) { animation-delay: 0.12s; }
@keyframes v2FadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-cat, .v2-section { animation: none; }
  .v2-btn-primary::after, .v2-topbar-cta::after { display: none; }
}

/* === CTAレコメンドカードのアニメーション === */
.cta-card {
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 100, 0.18), transparent);
  transition: left 0.6s;
  pointer-events: none;
}
.cta-card:hover::after { left: 150%; }

/* === タイポグラフィ微調整 === */
.v2-hero-lead { line-height: 1.95; max-width: 580px; }
.v2-section-title { line-height: 1.35; }
.v2-tool-card-title { letter-spacing: 0.02em; line-height: 1.45; }

/* === breadcrumbs SVG区切り風 === */
.v2-breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: rgba(91, 142, 203, 0.5);
  font-size: 14px;
  margin-left: 4px;
  opacity: 1;
}

/* ツール詳細ページのパンくず最後の項目（現在ページ名）は、直下に h1 があり
   重複するため視覚的に非表示。HTML/aria-current は残して SEO/a11y を維持。
   li 2 末尾の › 区切りはそのまま表示される。 */
.v2-breadcrumbs li:has(> span[aria-current="page"]) {
  width: 0;
  overflow: hidden;
}
.v2-breadcrumbs span[aria-current="page"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === 関連記事リストの装飾強化 === */
.v2-related-list a {
  position: relative;
  padding-left: 16px;
}
.v2-related-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8bb3d9, #b3a4d6);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.v2-related-list a:hover::before { opacity: 1; }
.v2-related-list a:hover { padding-left: 22px; }

/* === スマホ最終調整 === */
@media (max-width: 768px) {
  .v2-stat-num { font-size: 28px; }
  .v2-cat-num { width: 26px; height: 26px; font-size: 11px; }
  .v2-section-rule-label { font-size: 10px; letter-spacing: 0.18em; }
}

/* ========================================
   v2 ブラッシュアップ Pass 3: 上質感・微細演出
======================================== */

/* === スキップリンク（キーボード利用者向け a11y） === */
.v2-skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  background: #5b8ecb;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: top 0.18s ease;
}
.v2-skip-link:focus {
  top: 8px;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* === スムーススクロール & テキスト選択色 === */
html { scroll-behavior: smooth; }
::selection { background: rgba(91, 142, 203, 0.25); color: var(--v2-ink); }

/* === focus-visible（キーボード操作時のアクセシビリティ） === */
:focus-visible {
  outline: 2px solid #5b8ecb;
  outline-offset: 2px;
  border-radius: 4px;
}
.v2-btn-primary:focus-visible,
.v2-topbar-cta:focus-visible,
.cta-card-btn:focus-visible {
  outline-offset: 4px;
}

/* === フォント高度化（数字を等幅化、文字レンダリング向上） ===
   palt は日本語の全角文字を字面幅に詰めて表示するため、
   詰まって見える原因になるので OFF。
   kern のみ有効にして欧文ペアカーニングは残す。 */
body {
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}
.v2-stat-num,
.v2-cat-num,
.v2-cat-count,
.cta-card-price-num,
.cta-card-rank,
.v2-section-rule-label,
.v2-eyebrow-label {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* === ヒーロー 球状ぼかし: 撤去（ツールページのメインと統一） === */
.v2-hero {
  background: transparent;
}

/* === ツールカード: 3D tilt 風の微妙な hover === */
.v2-tool-card {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.2s ease;
  will-change: transform;
}
.v2-tool-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(120, 120, 180, 0.06),
    0 16px 36px rgba(91, 142, 203, 0.18),
    0 2px 6px rgba(91, 142, 203, 0.08);
}
.v2-tool-card:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

/* === ツールカードに上品な装飾アイコン枠 (タイトル左に色付き丸) === */
.v2-tool-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.v2-tool-card-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8ecb, #b3a4d6);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(91, 142, 203, 0.10);
  transition: transform 0.25s, box-shadow 0.25s;
}
.v2-tool-card:hover .v2-tool-card-title::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(91, 142, 203, 0.18);
}
.v2-cat:nth-of-type(2) .v2-tool-card-title::before {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.v2-cat:nth-of-type(2) .v2-tool-card:hover .v2-tool-card-title::before {
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.20);
}
.v2-cat:nth-of-type(4) .v2-tool-card-title::before {
  background: linear-gradient(135deg, #b3a4d6, #d4b3e8);
  box-shadow: 0 0 0 3px rgba(179, 164, 214, 0.12);
}

/* === ヒーローボタンに微細なふわつき === */
.v2-btn-primary {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}

/* === スタッツの一個ずつに薄いcard感 === */
.v2-stat {
  transition: transform 0.2s ease;
}
.v2-stat:hover { transform: translateY(-2px); }

/* === breadcrumbs hover の手応え === */
.v2-breadcrumbs a {
  transition: color 0.15s, background 0.15s;
  padding: 2px 6px;
  border-radius: 4px;
  margin: -2px -6px;
}
.v2-breadcrumbs a:hover {
  color: var(--v2-brand-deep);
  background: rgba(91, 142, 203, 0.08);
}

/* === CTAレコメンド全体に上品な額縁 === */
.cta-result {
  box-shadow:
    0 0 0 1px rgba(255, 200, 100, 0.10),
    0 6px 20px rgba(255, 170, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.cta-card {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cta-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* === CTAカードの No.バッジに動き === */
.cta-card-rank {
  animation: ctaRankBounce 2.5s ease-in-out infinite;
}
@keyframes ctaRankBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* === footer の境界（濃グレー背景に薄い白線） === */
.v2-footer {
  position: relative;
}
.v2-footer::before {
  display: none;
}

/* === サイドバーのactiveインジケーターを magnetism === */
.v2-sidebar-tool-link {
  transition: padding-left 0.18s ease, background 0.15s, color 0.15s;
}
.v2-sidebar-tool-link:hover {
  padding-left: 16px;
}
.v2-sidebar-tool-link.is-active {
  background: linear-gradient(90deg, rgba(91, 142, 203, 0.12), rgba(179, 164, 214, 0.04));
}

/* === ヒーローのeyebrowに装飾 === */
.v2-eyebrow {
  background: linear-gradient(135deg, rgba(91, 142, 203, 0.08), rgba(179, 164, 214, 0.08));
  padding: 4px 14px; /* 左右対称に */
  border-radius: 100px;
  margin-left: 0;
}
.v2-eyebrow-line {
  width: 24px;
  background: linear-gradient(to right, #5b8ecb, #b3a4d6);
  height: 2px;
  border-radius: 2px;
}

/* === 検索モーダルにフェード+スケールイン === */
.v2-search-modal-panel {
  transform: scale(0.96) translateY(-8px);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s;
}
.v2-search-modal[aria-hidden="false"] .v2-search-modal-panel {
  transform: scale(1) translateY(0);
}

/* === 確認者の avatar をハイライト === */
.v2-expert-avatar {
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(91, 142, 203, 0.15), 0 0 0 1px rgba(91, 142, 203, 0.08);
}

/* === touch device の hover は軽めに === */
@media (hover: none) {
  .v2-tool-card:hover { transform: none; }
  .cta-card:hover { transform: none; }
  .v2-sidebar-tool-link:hover { padding-left: 12px; }
}

/* ========================================
   v2 ハンバーガーメニュー / モバイルサイドバー
======================================== */

/* サイドバー内「閉じる」ボタン: デフォルト（PC）非表示 */
.v2-sidebar-close {
  display: none;
}

/* デフォルト（PC）: ハンバーガー非表示、backdropなし */
.v2-topbar-menu {
  display: none;
  background: transparent;
  border: none;
  padding: 11px; /* SVG 22x22 + padding で WCAG 推奨タップターゲット 44x44 を確保 */
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--v2-ink);
  flex-shrink: 0;
}
.v2-topbar-menu:hover {
  background: var(--v2-bg-soft);
}
/* オープン時の閉じるアイコンはデフォルト非表示 */
.v2-topbar-menu-icon-close { display: none; }
.v2-topbar-menu.is-open .v2-topbar-menu-icon-open { display: none; }
.v2-topbar-menu.is-open .v2-topbar-menu-icon-close { display: inline-block; }
.v2-sidebar-backdrop {
  display: none;
}

/* モバイル: ハンバーガーは右端 + ドロワーは全画面 */
@media (max-width: 980px) {
  .v2-topbar-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1101; /* サイドバー(1100)より上に置いて常にタップ可能に */
  }

  /* サイドバー内「閉じる」ボタンを表示 */
  .v2-sidebar-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--v2-bg-soft);
    border: 1px solid var(--v2-line);
    color: var(--v2-ink);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
  }
  .v2-sidebar-close:hover {
    background: #fff;
    border-color: #cbd5e1;
  }
  .v2-sidebar-close svg { display: block; }

  /* サイドバーは画面外に配置、is-open で右からスライドイン（全画面） */
  .v2-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1100;
    background: #fff !important;
    backdrop-filter: none;
    box-shadow: none;
    border-right: none;
    border-left: none;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    /* topbar の下に表示開始（ハンバーガーボタンが上に被さる構造） */
    padding-top: 64px;
    padding-bottom: 32px;
    border-bottom: none;
  }
  .v2-sidebar.is-open { transform: translateX(0); }

  /* ドロワー時はカテゴリも復活させる（PC用ドロワーで閉じてた display:none を打消し） */
  .v2-sidebar-cats { display: block !important; }
  .cta-sidebar { display: block !important; }

  /* バックドロップ（全画面ドロワー時は半透明背景は不要だが念のため白で残す） */
  .v2-sidebar-backdrop {
    display: none;
  }

  /* メイン領域は左マージンなし（サイドバーはオーバーレイなので） */
  .v2-main { margin-left: 0; max-width: 100%; }
  .v2-layout { flex-direction: column; }
}

/* ========================================
   v2 サイドバー: 人気ツールTOP3 + 折りたたみカテゴリ
======================================== */

/* === 人気ツールTOP3（常時表示） === */
.v2-sidebar-popular {
  margin: 14px 12px 18px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 213, 130, 0.12), rgba(255, 170, 0, 0.05));
  border: 1px solid rgba(255, 170, 0, 0.18);
  border-radius: 12px;
}
.v2-sidebar-popular-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d97706;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}
.v2-sidebar-popular-head svg { color: #f59e0b; }
.v2-sidebar-popular-suffix {
  margin-left: auto;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--v2-ink-3);
  text-transform: none;
}
.v2-sidebar-popular .v2-sidebar-list { margin-bottom: 0; }
.v2-sidebar-popular-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.v2-sidebar-popular-link:hover {
  background: #fff;
  border-color: rgba(255, 170, 0, 0.4);
  transform: translateX(2px);
}
.v2-sidebar-popular-rank {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FFAA00, #FF8800);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Inter', monospace;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-top: 1px;
}
.v2-sidebar-popular-rank--mute {
  background: var(--v2-bg-soft);
  color: var(--v2-ink-3);
  border: 1px solid var(--v2-line);
}
.v2-sidebar-popular-name {
  font-size: 12px;
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  color: var(--v2-ink);
}

/* 人気ツール active 配色 (オレンジ系で枠全体のテーマと統一)
   .v2-sidebar-tool-link.is-active の青系を上書きする */
.v2-sidebar-popular-link.is-active {
  background: linear-gradient(90deg, rgba(255, 170, 0, 0.18), rgba(255, 213, 130, 0.08));
  border-color: rgba(255, 170, 0, 0.55);
  color: #b45309;
  box-shadow: 0 1px 3px rgba(255, 170, 0, 0.18);
}
.v2-sidebar-popular-link.is-active .v2-sidebar-popular-name {
  color: #92400e;
  font-weight: 600;
}

/* 4位以下を見る details */
.v2-sidebar-popular-more {
  margin-top: 4px;
}
.v2-sidebar-popular-more > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b45309;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(255, 170, 0, 0.35);
  user-select: none;
  transition: background 0.12s, border-color 0.12s;
}
.v2-sidebar-popular-more > summary::-webkit-details-marker { display: none; }
.v2-sidebar-popular-more > summary:hover {
  background: #fff;
  border-color: rgba(255, 170, 0, 0.5);
}
.v2-sidebar-popular-more-chevron {
  color: #d97706;
  transition: transform 0.2s ease;
}
.v2-sidebar-popular-more[open] > summary > .v2-sidebar-popular-more-chevron {
  transform: rotate(90deg);
}
.v2-sidebar-popular-more[open] > summary {
  margin-bottom: 6px;
}

/* === 折りたたみカテゴリ === */
.v2-sidebar-cat {
  margin-bottom: 4px;
}
.v2-sidebar-cat[open] { margin-bottom: 14px; }

/* details>summary のデフォルト矢印を消す */
.v2-sidebar-cat > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.12s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--v2-ink-3);
  text-transform: uppercase;
  user-select: none;
}
.v2-sidebar-cat > summary::-webkit-details-marker { display: none; }
.v2-sidebar-cat > summary:hover { background: var(--v2-bg-soft); }
.v2-sidebar-cat-chevron {
  flex-shrink: 0;
  color: var(--v2-ink-3);
  transition: transform 0.2s ease;
}
.v2-sidebar-cat[open] > summary > .v2-sidebar-cat-chevron {
  transform: rotate(90deg);
}
.v2-sidebar-cat-title { flex: 1; }
.v2-sidebar-cat-count {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', monospace;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-line);
  padding: 1px 6px;
  border-radius: 100px;
  color: var(--v2-ink-3);
  letter-spacing: 0;
}

/* details展開アニメ */
.v2-sidebar-cat > .v2-sidebar-list {
  animation: v2CatExpand 0.2s ease-out;
  margin-top: 4px;
}
@keyframes v2CatExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-sidebar-cat > .v2-sidebar-list { animation: none; }
}

/* ========================================
   v2 売上導線強化: 信頼バッジ・モバイルCTA強化
======================================== */

/* === 商品カードの信頼バッジ === */
.cta-card-trust {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 10.5px;
  color: #d97706;
  font-weight: 600;
}
.cta-card-trust li {
  padding: 2px 8px;
  background: rgba(255, 220, 130, 0.18);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* === モバイル下端CTA強化 === */
.cta-mobile-fixed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cta-mobile-fixed-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  background: #FF8800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.cta-mobile-fixed-no {
  font-size: 10px;
  font-weight: 700;
  color: #d97706;
  letter-spacing: 0.04em;
}
.cta-mobile-fixed-price {
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
  margin-left: 4px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}
/* 旧: .cta-mobile-fixed-link にオレンジグラデ背景＋薄オレンジ枠線を付与していたが
   バー全体（.cta-mobile-fixed）と色が二重になり「枠の中に枠」のように見えるため削除。
.cta-mobile-fixed-link {
  background: linear-gradient(135deg, #FFF4D6, #FFE5A8);
  border: 1px solid rgba(255, 170, 0, 0.3);
}
*/
/* 旧: 矢印を丸ボタンにするスタイル。ピル型 CTA ボタン (.cta-mobile-fixed-cta-btn) に置換のため無効化。
.cta-mobile-fixed-arrow {
  background: linear-gradient(135deg, #FFAA00, #FF8800);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-right: 0;
  margin-right: 24px;
  box-shadow: 0 2px 6px rgba(255, 136, 0, 0.3);
}
*/

/* === ヒーロー右上のキャンペーンバッジ === */
.v2-hero-campaign {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #FFAA00, #FF8800);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(255, 136, 0, 0.30);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 2;
}
.v2-hero-campaign:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 136, 0, 0.40);
  color: #fff;
  text-decoration: none;
}
.v2-hero-campaign-emoji { font-size: 13px; }

@media (max-width: 768px) {
  .v2-hero-campaign {
    position: relative;
    top: auto; right: auto;
    margin-bottom: 14px;
    font-size: 11px;
    padding: 7px 12px;
  }
  .cta-card-trust { font-size: 10px; gap: 3px 6px; }
}

/* ========================================
   v2 専門家確認カード（各ツールページ）
   旧 SWELL の swell-block-capbox を置き換え
======================================== */
.v2-expert {
  border: 1px solid var(--v2-line);
  border-radius: 14px;
  margin: 24px 0 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(120, 120, 180, 0.04);
}
.v2-expert-head {
  display: block;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  font-family: var(--v2-font);
}
.v2-expert-body {
  /* 左列 .v2-expert-profile (avatar + Ray 縦並び) と
     右列 .v2-expert-content (看護師バッジ + bio 縦並び) を flex で並べ、
     align-items:center で両列とも縦中央揃え */
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}
.v2-expert-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.v2-expert-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(91, 142, 203, 0.18);
  display: block;
}
.v2-expert-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.v2-expert-name {
  font-size: 12px; /* 1px 小さく */
  font-weight: 400; /* 太字解除 */
  color: var(--v2-ink-3); /* やや薄く */
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
}
.v2-expert-title {
  font-size: 10.5px;
  color: var(--v2-ink-2);
  padding: 2px 10px;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-line);
  border-radius: 100px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.v2-expert-bio {
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--v2-ink);
}
@media (max-width: 600px) {
  .v2-expert-body { padding: 16px; gap: 14px; }
  .v2-expert-avatar { width: 48px; height: 48px; }
  .v2-expert-name { font-size: 13px; }
  .v2-expert-bio { font-size: 12.5px; }
}

