/* =========================================================
   用語解説（glossary）共通スタイル — 13語で共有
   tosa-jiro の作法を継承。文章主体・写真なしの記事テンプレ
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #faf8f5; --bg-deep: #f3efe8;
  --ink: #333333; --ink-2: #444444; --ink-3: #6b6b6b;
  --green: #4a6741; --gold: #80610f; --gold-soft: #c4a35a; --gold-pale: #d9c08a;
  --border: #e0dbd3;
  --serif: 'Noto Serif JP', serif; --sans: 'Noto Sans JP', sans-serif;
}
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.9; font-weight: 300; font-size: 18px; letter-spacing: 0.04em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ヘッダー */
header { position: sticky; top: 0; z-index: 100; background: rgba(250,248,245,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); height: 72px; }
nav { max-width: 1200px; margin: 0 auto; padding: 0 40px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: 0.15em; color: #2c2c2c; text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 400; letter-spacing: 0.08em; color: #444; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: #2c2c2c; }
.menu-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; background: none; border: none; min-width: 44px; min-height: 44px; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: #2c2c2c; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: rgba(250,248,245,0.98); backdrop-filter: blur(10px); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.mobile-menu.active { display: flex; }
.mobile-menu a { font-family: var(--serif); font-size: 20px; color: #2c2c2c; text-decoration: none; letter-spacing: 0.1em; }

/* 記事本体 */
main { max-width: 1200px; margin: 0 auto; }
.breadcrumb-wrap { padding: 24px 40px 0; }
.breadcrumb { font-size: 13px; color: var(--ink-3); }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { color: #2c2c2c; }

.page-header { max-width: 820px; margin: 0 auto; padding: 56px 20px 0; }
.page-label { font-size: 11px; letter-spacing: 0.25em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.page-header h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); font-weight: 400; letter-spacing: 0.08em; line-height: 1.4; margin-bottom: 10px; }
.page-header .subtitle { font-size: 15px; color: var(--ink-3); letter-spacing: 0.1em; }

.article { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.lead { font-size: 19px; color: var(--ink-2); line-height: 2.1; border-left: 3px solid var(--green); padding-left: 24px; margin: 48px 0 0; }
.article h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: 0.08em; line-height: 1.5; margin-top: 72px; margin-bottom: 24px; }
.article h2::after { content: ''; display: block; width: 2.5em; height: 1px; background: var(--gold); margin-top: 14px; }
.article h3 { font-size: 18px; font-weight: 500; color: var(--green); margin-top: 40px; margin-bottom: 12px; letter-spacing: 0.06em; }
.article p { font-size: 18px; color: var(--ink-2); margin-bottom: 1.5em; }
.article p:last-child { margin-bottom: 0; }
.article a.inline { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* 罫線だけの特徴表（tosa-jiro と共通） */
.spec-rows { margin-top: 40px; border-top: 1px solid var(--border); }
.spec-rows .row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--border); }
.spec-rows dt { font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: 0.08em; color: var(--green); }
.spec-rows dd { font-size: 17px; color: var(--ink-2); }

/* 写真（該当ページのみ・横長写真） */
.article figure { margin: 52px auto 0; max-width: 720px; }
.article figure img { width: 100%; height: auto; border-radius: 8px; }
.article figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; letter-spacing: 0.06em; line-height: 1.8; }

/* 三大地鶏 比較表（jidori-comparison） */
.cmp-wrap { margin-top: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 15px 12px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; line-height: 1.6; }
.cmp thead th { font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--ink); border-bottom: 2px solid var(--border); }
.cmp tbody th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.cmp td.hl, .cmp thead th.hl { background: rgba(74,103,65,0.06); }
.cmp thead th.hl { color: var(--green); border-bottom-color: var(--green); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp .badge { display: inline-block; font-size: 12px; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 12px; }
.cmp .badge-em { background: var(--green); color: #fff; }
.cmp .badge-meat { background: #efe9e0; color: var(--ink-3); }
.article p.cmp-note { font-size: 11px; color: #6b6b6b; line-height: 1.8; margin-top: 14px; }

/* とさやまの結び（淡い囲み） */
.practice { background: var(--bg-deep); border-radius: 8px; padding: 32px 36px; margin-top: 48px; }
.practice p { font-size: 17px; color: var(--ink-2); margin: 0; }

/* 文中の独立リンク行は中央（一貫性の規格） */
.term-link { display: inline-block; font-size: 14px; letter-spacing: 0.08em; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 3px; }
.term-link:hover { opacity: 0.65; }
.link-row { text-align: center; margin-top: 40px; }

/* 関連用語 */
.related-terms { max-width: 820px; margin: 80px auto 0; padding: 0 20px; }
.related-terms h2 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0.08em; margin-bottom: 24px; }
.related-terms h2::after { content: ''; display: block; width: 2.5em; height: 1px; background: var(--gold); margin-top: 12px; }
.related-terms ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.related-terms a { display: inline-block; padding: 8px 20px; background: #fff; border: 1px solid var(--border); border-radius: 24px; font-size: 13px; color: #444; text-decoration: none; transition: all 0.3s; }
.related-terms a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* 用語解説 一覧（glossary.html） */
.term-index { max-width: 820px; margin: 0 auto; padding: 0 20px 88px; }
.term-intro { font-size: 16px; color: var(--ink-3); line-height: 2; margin: 40px 0 8px; }
.term-group { margin-top: 60px; }
.term-group > h2 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0.08em; }
.term-group > h2::after { content: ''; display: block; width: 2.5em; height: 1px; background: var(--gold); margin-top: 12px; }
.term-list { margin-top: 14px; border-top: 1px solid var(--border); }
.term-card { display: block; padding: 22px 8px 20px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background 0.25s, padding-left 0.25s; }
.term-card:hover { background: var(--bg-deep); padding-left: 16px; }
.term-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.term-card-name { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); letter-spacing: 0.06em; }
.term-card-arrow { color: var(--gold-soft); font-size: 15px; flex-shrink: 0; transition: transform 0.25s; }
.term-card:hover .term-card-arrow { transform: translateX(4px); color: var(--gold); }
.term-card-desc { display: block; font-size: 15px; color: var(--ink-3); line-height: 1.85; margin-top: 8px; }

.back-wrap { text-align: center; padding: 56px 20px 104px; }
.back-link { display: inline-block; font-size: 14px; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; }
.back-link:hover { color: #2c2c2c; border-color: #2c2c2c; }

/* フッター */
footer { background: #2c2c2c; color: rgba(255,255,255,0.6); padding: 80px 40px 40px; font-size: 16px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 2; }
.footer-links h4 { color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-contact { font-size: 13px; line-height: 2; color: rgba(255,255,255,0.7); }
.footer-contact a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom { max-width: 1200px; margin: 60px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 12px; }

/* フローティングCTA */
.floating-cta { position: fixed; bottom: 24px; right: 24px; z-index: 80; }
.floating-cta a { display: flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--green); color: #fff; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; border-radius: 40px; box-shadow: 0 4px 20px rgba(74,103,65,0.3); transition: all 0.3s; }
.floating-cta a:hover { background: #3a5433; }
.back-to-top { position: fixed; bottom: 32px; left: 32px; width: 44px; height: 44px; background: rgba(44,44,44,0.7); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 50; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* スクロール出現（1種のみ・初回のみ） */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  body { font-size: 16px; padding-bottom: 64px; }
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .breadcrumb-wrap { padding: 16px 20px 0; }
  .page-header { padding: 40px 20px 0; }
  .article p, .lead { font-size: 16px; }
  .article h2 { font-size: 21px; margin-top: 56px; }
  .spec-rows .row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .spec-rows dd { font-size: 16px; }
  .practice { padding: 24px 22px; }
  .related-terms { margin-top: 60px; }
  footer { padding: 60px 20px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { margin-top: 32px; padding-top: 16px; font-size: 11px; line-height: 1.8; }
  .floating-cta { left: 0; right: 0; bottom: 0; }
  .floating-cta a { border-radius: 0; justify-content: center; padding: 18px 16px; font-size: 14px; }
  .floating-cta a svg { display: none; }
  .back-to-top { left: auto; right: 16px; bottom: 96px; }
}
