/* トップの読者別案内とテーマページの共通意匠。カタログの配色設定と連動する。 */
.tg-page, .tg-landing {
  --tg-paper: #faf8f1;
  --tg-ink: #202e2b;
  --tg-pine: #16493b;
  --tg-muted: #505e57;
  --tg-line: #cccfc3;
  --tg-panel: #fffefa;
  --tg-leaf: #e7efdf;
  --tg-mineral: #dfefec;
  --tg-serif: "Yu Mincho", "Hiragino Mincho ProN", "BIZ UDPMincho", "Noto Serif CJK JP", "Noto Serif JP", Georgia, serif;
  --tg-sans: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  color: var(--tg-ink);
  font: 1rem/1.65 var(--tg-sans);
  overflow-wrap: anywhere;
  line-break: strict;
}
.tg-page { margin: 0; background: var(--tg-paper) }
.tg-page *, .tg-landing * { box-sizing: border-box }
:is(.tg-page,.tg-landing) :is(h1,h2,h3,figure,p,ul) { margin: 0 }
:is(.tg-page,.tg-landing) :is(h1,h2,h3) { line-height: 1.38; text-wrap: pretty }
:is(.tg-page,.tg-landing) a { color: var(--tg-pine); text-decoration: underline; text-underline-offset: .23em; text-decoration-thickness: 1px }
:is(.tg-page,.tg-landing) a:hover { text-decoration-thickness: 2px }
:is(.tg-page,.tg-landing) :focus-visible { outline: 3px solid #a76812; outline-offset: 3px }
.tg-page img, .tg-landing img { display: block; max-width: 100% }
.tg-wrap { width: min(1120px, calc(100% - clamp(32px, 8vw, 112px))); margin-inline: auto }
.tg-skip { position: absolute; z-index: 9; left: 1rem; top: -5rem; background: var(--tg-panel); padding: .65rem 1rem }
.tg-skip:focus { top: .5rem }
.tg-mast { border-bottom: 1px solid var(--tg-line) }
.tg-mast-inner, .tg-end-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem }
.tg-mast-inner { min-height: 76px }
.tg-page .tg-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--tg-ink); white-space: nowrap }
.tg-brand span { font: 700 1.3rem/1.22 var(--tg-serif); letter-spacing: .045em }
.tg-brand small { display: block; font: 600 .76rem/1.3 Georgia, serif; letter-spacing: .1em; margin-top: .19rem; color: var(--tg-pine) }
.tg-mast nav, .tg-end nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem }
.tg-mast nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; text-decoration: none; font-size: .95rem; font-weight: 650; color: var(--tg-muted) }
.tg-mast nav a.tg-here { border-color: currentColor; color: var(--tg-pine) }
.tg-mast nav a:hover { text-decoration: underline }
.tg-hero { display: grid; grid-template-columns: 1.05fr .94fr; gap: 1.1rem clamp(2rem,5vw,5.3rem); align-items: center; margin-block: clamp(2rem,4.5vw,4.3rem) 2rem }
.tg-hero-text { align-self: end }
.tg-hero h1 { font: 650 clamp(2.65rem,4.7vw,4.55rem)/1.18 var(--tg-serif); letter-spacing: .015em; color: var(--tg-pine) }
.tg-hero-text p { margin-top: .95rem; color: var(--tg-muted); line-height: 1.75 }
.tg-cover { grid-column: 2; grid-row: 1 / 3; align-self: stretch; min-height: 250px; position: relative; overflow: hidden; border-radius: .4rem 3.5rem .4rem .4rem; background: #e1d4b1 }
.tg-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54% }
.tg-search-zone { align-self: start; min-width: 0 }
.tg-search-zone label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .4rem }
.tg-search-field { border: 1.5px solid #708278; border-radius: .45rem; background: var(--tg-panel); display: flex; align-items: center; padding: 4px; gap: .55rem; min-height: 52px }
.tg-search-field:focus-within { border-color: var(--tg-pine) }
.tg-glass { width: 15px; height: 15px; flex: none; border: 2px solid var(--tg-muted); border-radius: 50%; position: relative; margin-left: 12px }
.tg-glass::after { content: ""; position: absolute; height: 7px; width: 2px; background: var(--tg-muted); right: -3px; bottom: -5px; transform: rotate(-42deg) }
.tg-search-field input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--tg-ink); padding: .35rem .15rem; font: inherit }
.tg-search-field input::placeholder { color: var(--tg-muted); opacity: 1 }
.tg-search-field button, .tg-feature a.tg-solid { background: #16493b; color: white; border: 1px solid #739185; font-weight: 700; border-radius: .3rem; padding: .45rem 1.25rem; min-height: 44px }
.tg-search-field button:hover, .tg-feature a.tg-solid:hover { background: #0e372c }
.tg-topic-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .9rem; font-size: .88rem; margin-top: .25rem }
.tg-topic-links span { color: var(--tg-muted) }
.tg-topic-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700 }
.tg-topic-links a.tg-editorial { margin-left: auto; font-size: .83rem; color: var(--tg-muted); font-weight: 550 }
.tg-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: clamp(2.1rem,4.5vw,4rem) }
.tg-family { --tg-tint: var(--tg-leaf); --tg-edge: #748c56; --tg-shelf-ink: #2b4c30 }
.tg-clinical { --tg-tint: var(--tg-mineral); --tg-edge: #478278; --tg-shelf-ink: #174c48 }
.tg-route { border-radius: .45rem; background: var(--tg-tint); border-left: 4px solid var(--tg-edge); padding: 1.28rem 1.45rem .95rem }
.tg-route h2, .tg-shelf h2 { font: 650 clamp(1.35rem,2vw,1.72rem)/1.45 var(--tg-serif); color: var(--tg-shelf-ink) }
.tg-route a.tg-route-heading { display: block; text-decoration: none }
.tg-route-heading p { font-size: .96rem; color: var(--tg-muted); margin-top: .2rem; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--tg-edge) }
.tg-route-heading:hover p { text-decoration-thickness: 2px }
.tg-route-links, .tg-feature-links, .tg-jump { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem }
.tg-route-links { margin-top: .55rem }
.tg-route-links a { font-size: .92rem; font-weight: 700; color: var(--tg-shelf-ink); display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: var(--tg-edge) }
.tg-feature { display: grid; grid-template-columns: .83fr 1fr; gap: clamp(1.4rem,4.5vw,4.7rem); align-items: center; padding-block: clamp(1.8rem,3.8vw,3.4rem); border-block: 1px solid var(--tg-line) }
p.tg-section-tag { color: var(--tg-muted); font-size: .9rem; font-weight: 750; letter-spacing: .045em; margin-bottom: .4rem }
.tg-feature h2 { font: 650 clamp(2rem,3.65vw,3.35rem)/1.28 var(--tg-serif); color: var(--tg-pine) }
.tg-feature-copy > p:not(.tg-section-tag) { margin: .8rem 0 1.15rem; color: var(--tg-muted); max-width: 30em }
.tg-feature-links a, .tg-topic-end a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: .94rem; font-weight: 650 }
.tg-feature-links :is(a.tg-solid,a.tg-outlined) { text-decoration: none; border-radius: .35rem; padding: .52rem .95rem }
.tg-outlined { border: 1px solid #83988c }
.tg-outlined:hover { background: var(--tg-leaf) }
.tg-feature-image { display: block; overflow: hidden; border: 1px solid var(--tg-line); border-radius: .4rem }
.tg-feature-image img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain }
.tg-end { background: #16493b; color: #fff; padding: 1.1rem 0 }
.tg-end strong { font: 700 1.13rem var(--tg-serif); letter-spacing: .045em }
.tg-end a { color: #f8f9ef; font-size: .86rem; display: inline-flex; min-height: 44px; align-items: center }
.tg-crumbs { display: flex; gap: .65rem; align-items: center; margin-top: .8rem; font-size: .88rem; color: var(--tg-muted) }
.tg-crumbs a { min-height: 44px; display: inline-flex; align-items: center }
.tg-topic-intro { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2rem; align-items: center; padding: 1.45rem 0 2.15rem }
.tg-topic-intro h1 { font: 650 clamp(2.8rem,5.1vw,4.5rem)/1.16 var(--tg-serif); color: var(--tg-pine); letter-spacing: .045em }
.tg-topic-intro .tg-intro-line { max-width: 32em; margin-top: .8rem; color: var(--tg-muted) }
.tg-topic-intro figure { height: clamp(150px,15vw,200px); border-radius: 2.6rem .4rem .4rem .4rem; overflow: hidden }
.tg-topic-intro img { width: 100%; height: 100%; object-fit: cover }
.tg-jump { margin-top: .9rem }
.tg-jump a { display: inline-flex; min-height: 44px; align-items: center; font-size: .92rem; font-weight: 650; border-bottom: 1px solid var(--tg-line); text-decoration: none }
.tg-jump a:hover { border-color: var(--tg-pine) }
.tg-shelves { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,3vw,2.5rem); align-items: start }
.tg-shelf { border: 1px solid var(--tg-line); border-top: 3px solid var(--tg-edge); border-radius: .45rem; overflow: hidden; background: var(--tg-panel); scroll-margin-top: 12px }
.tg-shelf-cap { background: var(--tg-tint); padding: 1rem 1.3rem .95rem }
.tg-shelf-cap > p { font-size: .86rem; color: var(--tg-shelf-ink); font-weight: 700; margin-bottom: .25rem }
.tg-resources { padding: 0 1.3rem; list-style: none }
.tg-resources li + li { border-top: 1px solid var(--tg-line) }
.tg-resources a { display: block; text-decoration: none; padding: .9rem .1rem; color: var(--tg-ink) }
.tg-kind { color: var(--tg-muted); font-size: .79rem; font-weight: 650 }
.tg-resources h3 { font-size: 1.12rem; margin: .15rem 0 .25rem; color: var(--tg-pine); text-decoration: underline; text-decoration-color: #a1afa4; text-underline-offset: .28em }
.tg-resources a:is(:hover,:focus-visible) h3 { text-decoration-thickness: 2px }
.tg-resources p, .tg-shelf-note { font-size: .92rem; color: var(--tg-muted) }
.tg-shelf-note { border-top: 1px solid var(--tg-line); padding: .8rem 1.3rem; font-size: .84rem }
.tg-topic-end { display: grid; grid-template-columns: 1fr auto; gap: 1.3rem; align-items: center; padding: 2.2rem 0 2.7rem }
.tg-topic-end h2 { font: 650 clamp(1.4rem,2.3vw,1.9rem)/1.5 var(--tg-serif); color: var(--tg-pine) }
.tg-suggestions { margin-bottom: 1rem; scroll-margin-top: 6rem }
.tg-suggestions a { display: flex; gap: .3rem 1rem; flex-wrap: wrap; align-items: baseline; padding: .85rem 1rem; background: var(--accent-soft); color: var(--accent); border-left: 3px solid currentColor; border-radius: .3rem; font-weight: 700; text-decoration: underline }
.tg-suggestions span { font-size: .9rem; font-weight: 500 }
:root[data-theme="dark"] :is(.tg-page,.tg-landing) { color-scheme: dark; --tg-paper: #1c211f; --tg-ink: #eff3ea; --tg-muted: #c4d1c7; --tg-pine: #b7dfca; --tg-line: #536559; --tg-panel: #28332e; --tg-leaf: #2a3d30; --tg-mineral: #253f3b }
:root[data-theme="dark"] .tg-family { --tg-shelf-ink: #d3e8cc; --tg-edge: #94ae80 }
:root[data-theme="dark"] .tg-clinical { --tg-shelf-ink: #c3eae1; --tg-edge: #7aaaa1 }
@media (max-width: 720px) {
  .tg-wrap { width: calc(100% - 32px) }
  .tg-mast-inner { min-height: 62px }
  .tg-page .tg-brand { gap: .4rem }
  .tg-brand img { width: 33px; height: 33px }
  .tg-brand span { font-size: 1.03rem }
  .tg-brand small { font-size: .71rem }
  .tg-mast nav, .tg-end nav { gap: .85rem }
  .tg-mast nav a { font-size: .88rem }
  .tg-hero { grid-template-columns: minmax(0,1fr) 102px; align-items: start; gap: 1rem .7rem; margin: 1.65rem 0 1.1rem }
  .tg-hero-text { align-self: start }
  .tg-hero h1 { font-size: clamp(2.05rem,7vw,2.8rem) }
  .tg-hero-text p { font-size: .93rem; margin-top: .62rem; line-height: 1.65 }
  .tg-cover { grid-row: 1; min-height: 0; align-self: start; height: 110px; border-radius: .25rem 1.5rem .25rem .25rem }
  .tg-cover img { object-position: 64% 52% }
  .tg-search-zone { grid-column: 1/-1 }
  .tg-topic-links { gap: 0 .7rem }
  .tg-routes { grid-template-columns: 1fr; gap: .65rem; margin-bottom: 1.8rem }
  .tg-route { padding: .8rem .95rem .58rem }
  .tg-route h2 { font-size: 1.28rem }
  .tg-route p { font-size: .91rem }
  .tg-route-links { margin-top: .12rem; column-gap: 1rem }
  .tg-route-links a { font-size: .89rem }
  .tg-feature { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.5rem }
  .tg-feature h2 { font-size: clamp(1.65rem,6.6vw,2.6rem) }
  .tg-wide-only { display: none }
  .tg-feature-copy > p:not(.tg-section-tag) { margin: .6rem 0 .75rem }
  .tg-end-inner { align-items: flex-start; flex-direction: column; gap: .3rem }
  .tg-crumbs { margin-top: .35rem }
  .tg-topic-intro { grid-template-columns: minmax(0,1fr) 96px; gap: .65rem; padding: .8rem 0 1.3rem }
  .tg-topic-intro > div { display: contents }
  .tg-topic-intro .tg-section-tag, .tg-topic-intro h1 { grid-column: 1 }
  .tg-topic-intro .tg-section-tag { margin: 0; align-self: end }
  .tg-topic-intro h1 { align-self: start; font-size: 2.65rem }
  .tg-topic-intro figure { grid-column: 2; grid-row: 1/3; height: 85px; border-radius: 1.4rem .3rem .3rem .3rem }
  .tg-topic-intro .tg-intro-line, .tg-jump { grid-column: 1/-1; margin: 0 }
  .tg-shelves { grid-template-columns: 1fr; gap: 1.2rem }
  .tg-shelf-cap { padding: .8rem 1rem }
  .tg-resources { padding: 0 1rem }
  .tg-topic-end { grid-template-columns: 1fr; gap: .4rem; padding: 1.5rem 0 }
  .tg-topic-end .tg-other-topic { justify-self: start }
}
@media (max-width: 360px) {
  .tg-mast nav { gap: .6rem }
  .tg-mast nav a { font-size: .82rem }
  .tg-hero { grid-template-columns: minmax(0,1fr) 76px }
  .tg-cover { height: 88px }
  .tg-topic-links { gap: 0 .5rem }
  .tg-topic-links a.tg-editorial { margin-left: 0 }
  .tg-search-field { gap: .35rem }
  .tg-search-field button { padding-inline: .85rem }
}
@media print {
  .tg-skip, .tg-mast nav, .tg-end nav, .tg-search-zone, .tg-jump { display: none }
  .tg-wrap { width: 95% }
  .tg-shelf, .tg-feature, .tg-route { break-inside: avoid }
}
