@charset "UTF-8";
/* ==========================================================
   用語集（/glossary/）の見た目：YLP（brand/lp-design/LP-DESIGN.md）の値だけで組み直したもの
   ・プラグイン yadokari-glossary の glossary.css の代わりに読む（mu-plugins/yadokari-glossary-ylp.php）
   ・色は tokens.css の9色だけ。影・グラデーション・浮き上がりは使わない。角丸はカード4px・ボタン999px
   ・ボタンは YLP の中（.btn--md：高さ48px・右に24pxの丸＋矢印）。暗い面の上は白いボタン
========================================================== */

.products_navi { margin-bottom: 0 !important; }

.gl-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 72px; color: var(--text); font-family: var(--font); letter-spacing: var(--ls-body); }
.gl-wrap *, .gl-wrap *::before, .gl-wrap *::after { box-sizing: border-box; }
.gl-wrap a:focus-visible, .gl-wrap button:focus-visible, .gl-wrap input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ── ヒーロー（白・左寄せ。英字の飾りラベル → H1 → リード → 検索） ── */
.gl-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.gl-hero__inner { max-width: 720px; }
.gl-hero__label { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--en); font-size: 13px; letter-spacing: var(--ls-head); color: var(--mute); }
.gl-hero__label::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.gl-hero__title { margin: 0 0 16px; font-size: clamp(28px, 6vw, 40px); font-weight: 700; line-height: 1.4; letter-spacing: var(--ls-head); font-feature-settings: "palt"; color: var(--ink); }
.gl-hero__sub { margin: 0 0 32px; font-size: 16px; line-height: 1.8; color: var(--text); }
.gl-hero__sub-count { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.gl-hero__sub-count + br { display: none; } /* 語数は block にしたので、後ろの改行は要らない */

/* ── 検索（角丸4px・1px の線。文字は16px＝iPhone で拡大されない大きさ） ── */
.gl-search { position: relative; max-width: 560px; }
.gl-search__input { width: 100%; height: 56px; padding: 0 56px 0 20px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; box-shadow: none; appearance: none; }
.gl-search__input::placeholder { color: var(--sub); }
.gl-search__input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.gl-search__icon { position: absolute; right: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--text); pointer-events: none; }
.gl-search__icon svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ── ボタン（YLP の中ボタン .btn--md と同じ形） ── */
.gl-cta__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 48px 0 24px; border-radius: 999px; background: var(--ink); color: var(--white) !important; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease); }
.gl-cta__btn .arr { position: absolute; top: 50%; right: 12px; width: 24px; height: 24px; margin-top: -12px; padding: 4px; border-radius: 50%; background: var(--white); color: var(--ink); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gl-cta--banner .gl-cta__btn, .gl-sidebar-cta .gl-cta__btn { background: var(--white); color: var(--ink) !important; }
.gl-cta--banner .gl-cta__btn .arr, .gl-sidebar-cta .gl-cta__btn .arr { background: var(--ink); color: var(--white); }
@media (hover: hover) {
  .gl-cta__btn:hover { background: var(--text); }
  .gl-cta--banner .gl-cta__btn:hover, .gl-sidebar-cta .gl-cta__btn:hover { background: var(--surface); }
}
.gl-cta__btn--full { display: flex; width: 100%; }

/* ── 相談の案内（グレーの面） ── */
.gl-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 24px; border-radius: var(--r); }
.gl-cta--top, .gl-cta--inline { margin: 32px 0; background: var(--paper); border: 0; }
.gl-cta__text { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.8; color: var(--text); }

/* 一覧の下の写真の案内：写真＋暗幕（YLP の最終CTA と同じ考え方）。白い文字・白いボタン */
.gl-cta--banner { position: relative; margin-top: 64px; padding: 72px 40px; overflow: hidden; color: var(--white); cursor: pointer; background: var(--ink) url("../../../../plugins/yadokari-glossary/assets/cta-bg.jpg") center 33% / cover no-repeat; } /* 女性の顔（写真の横58%・縦38%）が枠の縦の真ん中に来る位置 */
.gl-cta--banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); pointer-events: none; } /* 暗幕は一色（グラデーションは使わない） */
.gl-cta__cover-link { position: absolute; inset: 0; z-index: 1; }
.gl-cta__banner-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; width: 100%; pointer-events: none; }
.gl-cta__banner-inner a { pointer-events: auto; }
.gl-cta__banner-text strong { display: block; margin-bottom: 8px; font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; line-height: 1.5; letter-spacing: var(--ls-head); font-feature-settings: "palt"; color: var(--white); }
.gl-cta__banner-text p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--line); }

/* ── カテゴリーの絞り込み（44px の丸い枠。選んでいるものは黒） ── */
.gl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.gl-tab { min-height: 44px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--text); font: inherit; font-size: 14px; line-height: 1.3; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
@media (hover: hover) { .gl-tab:hover { border-color: var(--ink); color: var(--ink); } }
.gl-tab--active, .gl-tab--active:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gl-count { margin: 0 0 16px; font-size: 14px; letter-spacing: var(--ls-small); color: var(--sub); }

/* ── 言葉のカード（白・1px の線・角丸4px。影と浮き上がりなし、ホバーは線の色だけ） ── */
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gl-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--text); text-decoration: none; box-shadow: none; transition: border-color .2s var(--ease); }
@media (hover: hover) { .gl-card:hover { border-color: var(--ink); } }
.gl-card--hidden { display: none; }
.gl-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; line-height: 1.6; letter-spacing: var(--ls-small); color: var(--sub); }
.gl-card__cat, .gl-card__subcat { padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; color: var(--sub); }
.gl-card__cat { display: inline-flex; align-items: center; gap: 10px; }
.gl-card__cat::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.gl-card__subcat::before { content: "／"; margin-right: 8px; }
.gl-card__term { margin: 8px 0 0; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: var(--ls-head); font-feature-settings: "palt"; color: var(--ink); }
.gl-card__def { flex: 1; margin: 0; font-size: 14px; line-height: 1.7; letter-spacing: var(--ls-small); color: var(--sub); }
/* 「詳しく見る」は YLP の小さいテキストリンク（.tlink--sm：14px 太字・下線2px・矢印） */
.gl-card__more { position: relative; align-self: flex-start; display: inline-flex; align-items: baseline; gap: 8px; margin-top: 8px; padding: 6px 0 4px; font-size: 14px; font-weight: 700; line-height: 1.9; letter-spacing: var(--ls-small); color: var(--ink); }
.gl-card__more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; }
.gl-card__more svg, .yd-guide-link a svg { position: relative; top: calc(7px - .38em); width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
@media (hover: hover) { .gl-card:hover .gl-card__more svg, .yd-guide-link a:hover svg { transform: translateX(3px); } }

/* ── ページ送り（英字の数字・44px 角。今のページは黒の太字＋下線） ── */
.gl-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin: 40px 0 16px; }
.gl-page-btn { position: relative; min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; background: none; font-family: var(--en); font-size: 16px; font-weight: 400; line-height: 1; color: var(--sub); cursor: pointer; transition: color .2s var(--ease); }
@media (hover: hover) { .gl-page-btn:hover:not(:disabled) { color: var(--ink); } }
.gl-page-btn--active { color: var(--ink) !important; font-weight: 700; }
.gl-page-btn--active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: currentColor; }
.gl-page-btn:disabled { opacity: .35; cursor: default; }
.gl-page-ellipsis { padding: 0 4px; font-family: var(--en); font-size: 16px; color: var(--sub); }

.gl-empty { padding: 40px 0; text-align: center; font-size: 16px; color: var(--sub); }

/* ==========================================================
   言葉のページ
========================================================== */

/* パンくず（YLP の .crumb と同じ形：12px・間に短い線・今のページは黒の太字） */
.gl-breadcrumb { margin: 16px 0 8px; font-size: 12px; letter-spacing: var(--ls-small); color: var(--sub); }
.gl-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; padding: 0; list-style: none; }
.gl-breadcrumb__list li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.gl-breadcrumb__list li + li::before { content: ""; width: 16px; height: 1px; margin: 0; background: currentColor; opacity: .35; }
.gl-breadcrumb__list a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
@media (hover: hover) { .gl-breadcrumb__list a:hover { color: var(--ink); } }
.gl-breadcrumb__list [aria-current] { color: var(--ink); font-weight: 700; }

.gl-single { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }

/* 分類のラベル（YLP の .lbl：枠なし・頭に短い線） */
.gl-single__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 16px; }
.gl-badge { padding: 0; border: 0 !important; border-radius: 0; background: none !important; font-size: 13px; line-height: 1.6; letter-spacing: var(--ls-small); color: var(--sub) !important; text-decoration: none; }
.gl-badge--cat { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; }
.gl-badge--cat::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.gl-badge--subcat::before { content: "／"; margin-right: 8px; }
@media (hover: hover) { .gl-badge:hover { color: var(--ink) !important; text-decoration: underline; } }

.gl-single__title { margin: 0 0 24px; font-size: clamp(28px, 6vw, 40px); font-weight: 700; line-height: 1.4; letter-spacing: var(--ls-head); font-feature-settings: "palt"; color: var(--ink); }
.gl-single__def { padding: 32px; border: 0; border-radius: var(--r); background: var(--paper); box-shadow: none; font-size: 16px; line-height: 1.8; color: var(--text); }
.gl-single__def p { margin: 0; }

/* 総合ガイドへの案内（mu-plugins/yadokari-glossary-seo.php が出す）：補足の文字＋小さいテキストリンク */
/* リンクは YLP の小さいテキストリンク（.tlink--sm）と同じ形：文字と矢印の下に2pxの下線を1本。文字は1行に収まる長さにしてある */
.gl-wrap .yd-guide-link { margin: 24px 0 0; font-size: 14px; line-height: 1.8; letter-spacing: var(--ls-small); color: var(--sub); }
.yd-guide-link a { position: relative; display: inline-flex; align-items: baseline; align-items: last baseline; gap: 8px; margin-top: 4px; padding: 6px 0 4px; font-weight: 700; line-height: 1.9; color: var(--ink); text-decoration: none; }
.yd-guide-link a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; }
.gl-wrap .yd-guide-link a, .gl-wrap .yd-guide-link a:hover { text-decoration: none; } /* 本体テーマのリンクの下線と二重にしない */

/* 関連の言葉 */
.gl-related { margin: 48px 0; padding: 0; background: none; border-radius: 0; }
.gl-related__title { margin: 0 0 16px; font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; line-height: 1.5; letter-spacing: var(--ls-head); font-feature-settings: "palt"; color: var(--ink); }
.gl-related__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gl-related__list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; text-decoration: none; transition: border-color .2s var(--ease); }
@media (hover: hover) { .gl-related__list a:hover { border-color: var(--ink); } }
.gl-related__def { font-size: 14px; font-weight: 400; line-height: 1.7; letter-spacing: var(--ls-small); color: var(--sub); }

/* 前後の言葉 */
.gl-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.gl-nav__prev { text-align: left; }
.gl-nav__next { text-align: right; }
.gl-nav a { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; height: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease); }
@media (hover: hover) { .gl-nav a:hover { border-color: var(--ink); } }
.gl-nav__label { display: flex; align-items: baseline; gap: 6px; font-size: 13px; letter-spacing: var(--ls-small); color: var(--sub); }
.gl-nav__next .gl-nav__label { justify-content: flex-end; }
/* 矢印は YLP のアイコン（14px・線2px）。文字のベースライン基準で中央にそろえる */
.gl-nav__label svg { position: relative; top: calc(7px - .38em); flex-shrink: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
@media (hover: hover) { .gl-nav__prev a:hover .gl-nav__label svg { transform: translateX(-3px); } .gl-nav__next a:hover .gl-nav__label svg { transform: translateX(3px); } }
.gl-nav__term { font-size: 15px; font-weight: 700; line-height: 1.5; }
.gl-nav__index a { align-items: center; padding: 12px 20px; font-size: 14px; font-weight: 700; white-space: nowrap; }

/* 右の列（PC）：黒い面の相談の案内＋分類 */
.gl-single__sidebar { position: sticky; top: 100px; }
.gl-sidebar-cta { margin-bottom: 24px; padding: 32px 24px; border-radius: var(--r); background: var(--ink); color: var(--white); text-align: left; }
.gl-sidebar-cta__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: var(--ls-head); font-feature-settings: "palt"; color: var(--white); }
.gl-sidebar-cta__sub { margin: 0 0 24px; font-size: 14px; line-height: 1.8; color: var(--line); opacity: 1; }
.gl-sidebar-cta .gl-cta__btn { display: flex; width: 100%; }
.gl-sidebar-cats { padding: 24px; border-radius: var(--r); background: var(--paper); }
.gl-sidebar-cats__title { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: var(--ls-small); text-transform: none; color: var(--text); }
.gl-sidebar-cats ul { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.gl-sidebar-cats a { display: flex; align-items: center; min-height: 44px; padding: 0; border-radius: 0; font-size: 14px; color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
@media (hover: hover) { .gl-sidebar-cats a:hover { background: none; color: var(--ink); text-decoration: underline; } }

/* ==========================================================
   スマホ・タブレット
========================================================== */
@media (min-width: 768px) {
  .gl-wrap { padding: 0 40px 96px; }
  .gl-hero { padding: 72px 0 48px; }
  .gl-hero__label, .gl-card__meta, .gl-card__cat, .gl-card__subcat, .gl-badge { font-size: 14px; }
}
@media (max-width: 767px) {
  .gl-grid { grid-template-columns: 1fr 1fr; }
  .gl-cta { flex-direction: column; align-items: stretch; }
  .gl-cta__btn { width: 100%; }
  .gl-cta--banner { padding: 48px 20px; background-position: 80% 33%; }
  .gl-cta__banner-inner { flex-direction: column; align-items: stretch; }
  .gl-single { grid-template-columns: 1fr; }
  .gl-single__sidebar { position: static; }
  .gl-sidebar-cta { display: none; } /* スマホは下の写真の案内を使う（プラグインと同じ） */
  .gl-nav { grid-template-columns: 1fr 1fr; }
  .gl-nav__index { grid-column: 1 / -1; order: -1; }
  .gl-nav__index a { justify-content: center; min-height: 44px; }
}
@media (max-width: 480px) {
  .gl-grid { grid-template-columns: 1fr; }
  .gl-single__def { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-wrap *, .gl-wrap *::before, .gl-wrap *::after { transition: none !important; }
}
