/* ==========================================================
   マーケティング現場の用語集（glossary/ 内のページ専用）
   ・共通のデザイン（css/style.css）に追加して読み込む
   ========================================================== */

/* 読みやすい本文の幅 */
.gl-container { max-width: 880px; }

/* --- 見出しの帯（紺） --- */
.gl-hero { padding: 160px 0 64px; }
.gl-kicker { font-size: 0.9rem; letter-spacing: 0.06em; margin-bottom: 12px; }
.gl-kicker a { color: var(--color-accent); text-decoration: none; }
.gl-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gl-kicker__sep { margin: 0 8px; opacity: 0.6; }
.gl-title { font-size: 2.6rem; line-height: 1.35; }
.gl-sub { line-height: 1.8; }

/* --- 本文 --- */
.gl-detail { padding: 64px 0 80px; }
.gl-detail .detail-block { margin-bottom: 48px; }
.gl-detail .detail-card { margin-bottom: 24px; }
.gl-text { margin: 0; font-size: 1.05rem; line-height: 2; color: var(--color-text); }
.gl-detail .detail-lead.gl-text { font-size: 1.1rem; }

/* ひとことで言うと（要約） */
.gl-summary { margin: 0 0 48px; padding: 24px 28px; background: var(--color-bg-gray); border-left: 6px solid var(--color-accent); border-radius: 0 10px 10px 0; }
.gl-summary__label { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: #8C6A2A; }
.gl-summary__text { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.9; color: var(--color-primary); }

/* 計算式 */
.gl-formula { margin: 0; padding: 14px 18px; background: var(--color-bg-gray); border-radius: 8px; font-weight: 700; line-height: 1.9; color: var(--color-primary); }

/* 関連する用語（丸いボタン） */
.gl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gl-chip { display: inline-block; padding: 8px 16px; border: 1px solid rgba(11,21,67,0.25); border-radius: 999px; font-size: 0.95rem; line-height: 1.5; color: var(--color-primary); text-decoration: none; transition: background 0.2s, color 0.2s; }
a.gl-chip:hover { background: var(--color-primary); color: #fff; }
.gl-chip--plain { color: var(--color-text-light); border-style: dashed; }

/* この用語を学べる講座 */
.gl-courses { margin: 0; padding: 0; list-style: none; }
.gl-courses li + li { border-top: 1px solid #eee; }
.gl-courses a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--color-primary); text-decoration: none; }
.gl-courses a:hover .gl-course__name { text-decoration: underline; text-underline-offset: 3px; }
.gl-course__no { flex-shrink: 0; padding: 2px 10px; border-radius: 4px; background: var(--color-primary); color: #fff; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; }
.gl-course__name { flex: 1; min-width: 0; font-weight: 700; }
.gl-courses .material-icons-outlined { color: var(--color-accent); }

/* 前後の用語 */
.gl-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 0; padding-top: 32px; border-top: 1px solid #eee; }
.gl-pager a { display: block; padding: 14px 18px; border: 1px solid #eee; border-radius: 10px; color: var(--color-primary); text-decoration: none; transition: border-color 0.2s; }
.gl-pager a:hover { border-color: var(--color-accent); }
.gl-pager__next { text-align: right; }
.gl-pager__dir { display: block; font-size: 0.8rem; font-weight: 700; color: #8C6A2A; margin-bottom: 4px; }
.gl-pager__name { display: block; font-weight: 700; line-height: 1.6; }

/* 一覧・トップへのリンク */
.gl-back { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 40px; }

/* --- 一覧ページ --- */
.gl-catnav { margin: 0 0 48px; }
.gl-catnav ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gl-catnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(11,21,67,0.2); border-radius: 999px; font-size: 0.9rem; color: var(--color-primary); text-decoration: none; }
.gl-catnav a:hover { border-color: var(--color-accent); }
.gl-count { padding: 0 8px; border-radius: 999px; background: var(--color-bg-gray); font-size: 0.8rem; font-weight: 700; color: #8C6A2A; }
.gl-cat { scroll-margin-top: 110px; }
.gl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.gl-list a { display: block; height: 100%; padding: 10px 14px; border-bottom: 1px solid #eee; color: var(--color-primary); text-decoration: none; }
.gl-list a:hover .gl-list__term { text-decoration: underline; text-underline-offset: 3px; }
.gl-list__term { display: block; font-weight: 700; line-height: 1.6; }
.gl-list__ja { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.6; color: var(--color-text-light); }

@media screen and (max-width: 767px) {
  .gl-hero { padding: 140px 0 40px; }
  .gl-hero .container { text-align: left; }
  .gl-title { font-size: 1.8rem; }
  .gl-sub { font-size: 1rem; }
  .gl-detail { padding: 40px 0 56px; }
  .gl-summary { padding: 18px 20px; }
  .gl-summary__text { font-size: 1.05rem; }
  .gl-text, .gl-detail .detail-lead.gl-text { font-size: 1rem; line-height: 1.95; }
  .gl-detail .detail-card { padding: 22px 20px; }
  .gl-pager { grid-template-columns: 1fr; }
  .gl-list { grid-template-columns: 1fr; }
}
