/* 天研工業 リニューアル案。色は data/ui/theme.css と同じ --repo-color-* の名前で、天研工業用に上書きする */
:root {
  --repo-color-primary: #16263A;      /* 鋼の濃紺 */
  --repo-color-primary-dark: #0D1826;
  --repo-color-primary-tint: rgba(22,38,58,.06);
  --repo-color-accent: #284E7E;       /* 藍 */
  --repo-color-gold: #9A5B22;         /* 火花の銅色（文字に使えるコントラスト） */
  --repo-color-bg: #FFFFFF;
  --repo-color-bg-beige: #F4F1EC;     /* 和紙 */
  --repo-color-text: #1F2933;
  --repo-color-text-light: #56606E;
  --repo-color-white: #FFFFFF;
  --repo-color-border: rgba(22,38,58,.14);
  --repo-color-warning: #B54708;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--repo-color-text); background: var(--repo-color-bg); font-size: 16px; line-height: 1.85; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--repo-color-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #F2A33A; outline-offset: 2px; }
svg { width: 1.1em; height: 1.1em; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow, .narrow { max-width: 820px; }
.center { text-align: center; }
.note { color: var(--repo-color-text-light); font-size: 14px; }

/* 確認用の帯と【要確認】 */
.mockbar { background: #FFF4E0; color: #6B3A00; font-size: 13px; padding: 6px 16px; text-align: center; }
.tbd, .tbd-sample { background: #FFF1D6; border-bottom: 2px dashed var(--repo-color-warning); }
.tbd em, .tbd-sample { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--repo-color-warning); padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 1px; }
.tbd-sample { border: 0; }

/* ヘッダー */
.gh { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--repo-color-border); }
.gh-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--repo-color-primary); }
/* ロゴは天研工業の正式ロゴ（現行サイトのテーマ画像）。2026-11-16 CHG-20261116-014 */
.logo { gap: 14px; flex: none; }
.logo-img { display: block; height: 40px; width: auto; }
.logo-sub { font-size: 11px; line-height: 1.4; color: var(--repo-color-text-light); padding-left: 14px; border-left: 1px solid var(--repo-color-border); white-space: nowrap; }
.gf-logo { margin: 0 0 14px; }
.gf-logo img { display: block; height: 44px; width: auto; padding: 8px 12px; background: #fff; border-radius: 6px; box-sizing: content-box; }
@media (max-width: 1100px) { .logo-sub { display: none; } }
@media (max-width: 600px) { .logo-img { height: 32px; } }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.gnav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.gnav ul a { color: var(--repo-color-text); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; }
.gnav ul a:hover, .gnav ul a[aria-current] { color: var(--repo-color-accent); box-shadow: inset 0 -2px var(--repo-color-accent); }
.gnav-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--repo-color-border); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; align-items: center; gap: 6px; color: var(--repo-color-primary); min-height: 44px; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--repo-color-border); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 12px; }
  .gnav.open { display: flex; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--repo-color-border); }
  .gnav-cta { flex-direction: column; }
}

/* ボタン */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.4; text-align: center; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--repo-color-gold); color: #fff; }
.btn-primary:hover { background: #7E4815; }
.btn-ghost { background: #fff; color: var(--repo-color-primary); border-color: var(--repo-color-primary); }
.btn-ghost:hover { background: var(--repo-color-primary-tint); }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost-inv:hover { background: rgba(255,255,255,.1); }
.btn-shop { background: var(--repo-color-accent); color: #fff; }
@media (max-width: 600px) { .btns .btn { width: 100%; } }

/* ヒーロー */
.hero { position: relative; color: #fff; background: var(--repo-color-primary-dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-in { position: relative; padding: 96px 16px 72px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--repo-color-gold); margin: 0 0 8px; }
.hero .eyebrow { color: #F7C68A; }
.hero h1 { font-family: var(--serif); font-size: clamp(28px, 5vw, 48px); line-height: 1.4; margin: 0 0 20px; }
.hero-lead { font-size: 17px; max-width: 640px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 0; margin: 36px 0 0; font-size: 14px; }
.hero-facts b { display: block; font-size: 22px; font-family: var(--serif); }

/* セクション */
.sec { padding: 72px 0; }
.sec.alt { background: var(--repo-color-bg-beige); }
.h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.45; margin: 0 0 16px; color: var(--repo-color-primary); }
.h3 { font-size: 20px; margin: 0 0 12px; color: var(--repo-color-primary); }
.lead { font-size: 17px; color: var(--repo-color-text-light); margin: 0 0 32px; }
.phead { background: var(--repo-color-bg-beige); padding: 56px 0 48px; border-bottom: 1px solid var(--repo-color-border); }
.phead h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); line-height: 1.45; margin: 0 0 16px; color: var(--repo-color-primary); }
.phead .lead { margin-bottom: 0; max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } .sec { padding: 56px 0; } }
.rounded { border-radius: var(--radius); }

/* パンくず */
.crumbs ol { max-width: var(--wrap); margin: 0 auto; padding: 10px 16px; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--repo-color-text-light); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.crumbs a { color: var(--repo-color-text-light); }

/* 用途別カード */
.biz-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .biz-grid { grid-template-columns: 1fr; } }
.biz-grid a { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 1px solid var(--repo-color-border); border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.biz-grid a:hover { border-color: var(--repo-color-accent); box-shadow: 0 6px 20px rgba(22,38,58,.08); }
.biz-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--repo-color-gold); }
.biz-grid h3 { font-size: 19px; line-height: 1.5; margin: 6px 0 8px; color: var(--repo-color-primary); }
.biz-who { margin: 0 0 16px; font-size: 14px; color: var(--repo-color-text-light); }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--repo-color-accent); }
.b2c-note { margin-top: 24px; font-size: 15px; }

.check { list-style: none; padding: 0; margin: 0; }
.check li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--repo-color-border); }
.check li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px; border-left: 3px solid var(--repo-color-gold); border-bottom: 3px solid var(--repo-color-gold); transform: rotate(-45deg); }
.answer { background: #fff; border-radius: var(--radius); padding: 28px; border-left: 4px solid var(--repo-color-gold); }
.sec:not(.alt) .answer { background: var(--repo-color-bg-beige); }
.answer h3 { margin-top: 0; color: var(--repo-color-primary); }
.feat4 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat4 li { background: #fff; border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--repo-color-accent); }
.feat4 h3 { margin: 0 0 8px; font-size: 18px; color: var(--repo-color-primary); }
.feat4 p { margin: 0; font-size: 15px; }

/* 工程 */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: p; }
.process.compact { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) { .process.compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .process { grid-template-columns: 1fr; } .process.compact { grid-template-columns: repeat(2, 1fr); } }
.process li { background: #fff; border: 1px solid var(--repo-color-border); border-radius: var(--radius); padding: 20px; }
.pnum { font-family: var(--serif); font-size: 28px; color: var(--repo-color-gold); line-height: 1; }
.process h3 { margin: 8px 0 4px; font-size: 18px; color: var(--repo-color-primary); }
.pcatch { margin: 0; font-weight: 700; font-size: 14px; }
.process p:not(.pcatch) { font-size: 15px; margin: 8px 0 0; }

/* 製品 */
.prod-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.prod-grid a { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--repo-color-border); height: 100%; }
.prod-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.prod-grid .kind { margin: 12px 14px 0; font-size: 12px; color: var(--repo-color-text-light); }
.prod-grid h3 { margin: 2px 14px 14px; font-size: 16px; line-height: 1.5; color: var(--repo-color-primary); }
.prod-grid .price { margin: -8px 14px 14px; font-size: 14px; }

/* 実績・代表 */
.works { list-style: none; padding: 0; margin: 0 0 24px; }
.works li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--repo-color-border); font-size: 15px; }
.works span { font-weight: 700; color: var(--repo-color-gold); }
.ceo img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ceo-msg { font-family: var(--serif); font-size: 17px; margin: 20px 0 8px; }
.ceo-name { font-size: 14px; color: var(--repo-color-text-light); text-align: right; }
.case-tpl { border: 2px dashed var(--repo-color-border); border-radius: var(--radius); padding: 20px; background: #fff; }
.case-h { font-weight: 700; margin: 0; }

/* 流れ・FAQ */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }
.flow li { background: #fff; border-radius: var(--radius); padding: 24px; position: relative; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--repo-color-primary); color: #fff; font-weight: 700; }
.flow h3 { margin: 10px 0 6px; font-size: 18px; color: var(--repo-color-primary); }
.flow p { margin: 0; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--repo-color-border); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--repo-color-gold); font-family: var(--serif); margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--repo-color-accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px 26px; }
.spec { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--repo-color-border); vertical-align: top; font-size: 15px; }
.spec th { width: 30%; background: var(--repo-color-primary-tint); white-space: nowrap; }
@media (max-width: 520px) { .spec th, .spec td { display: block; width: 100%; } .spec th { border-bottom: 0; padding-bottom: 4px; } }

/* 記事一覧・テーマ */
.hub-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--repo-color-border); text-decoration: none; color: var(--repo-color-primary); font-weight: 600; font-size: 15px; min-height: 44px; }
.hub-list small { color: var(--repo-color-text-light); font-weight: 400; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .pgrid { grid-template-columns: 1fr; } }
.pcard a { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--repo-color-border); height: 100%; }
.pcard a:hover h3 { color: var(--repo-color-accent); }
.pcard-img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--repo-color-bg-beige); }
.pcard-body { padding: 14px 16px 18px; }
.pcard h3 { font-size: 16px; line-height: 1.6; margin: 6px 0 0; color: var(--repo-color-primary); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 13px; color: var(--repo-color-text-light); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--repo-color-primary); color: #fff; font-size: 12px; text-decoration: none; }
.chip.ghost { background: var(--repo-color-primary-tint); color: var(--repo-color-text); margin: 0 6px 6px 0; }
.pcard[hidden] { display: none; }
.search { margin: 0 0 24px; display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.search label { font-weight: 700; font-size: 14px; }
.search input, .form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #9AA3AE; border-radius: 8px; width: 100%; background: #fff; }
.gloss { list-style: none; padding: 0; margin: 0; columns: 4 200px; }
.gloss li { break-inside: avoid; padding: 4px 0; }
.gloss li[hidden] { display: none; }

/* 記事 */
.post-head { padding-top: 40px; }
.post-head h1 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 34px); line-height: 1.5; color: var(--repo-color-primary); margin: 12px 0 24px; }
.post-eyecatch { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }
.toc { background: var(--repo-color-bg-beige); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; }
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 15px; }
.prose { font-size: 17px; }
.prose h2 { font-family: var(--serif); font-size: 24px; line-height: 1.5; margin: 56px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--repo-color-primary); color: var(--repo-color-primary); scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; margin: 36px 0 12px; padding-left: 12px; border-left: 4px solid var(--repo-color-gold); color: var(--repo-color-primary); }
.prose img { border-radius: 8px; margin: 16px auto; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 13px; color: var(--repo-color-text-light); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--repo-color-border); padding: 8px 10px; }
.prose iframe { max-width: 100%; aspect-ratio: 16/9; height: auto; width: 100%; }
.prose blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid var(--repo-color-border); background: var(--repo-color-bg-beige); }
.prose a { word-break: break-all; }
.tags { margin: 32px 0; }
.toc-inline { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.toc-inline a { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--repo-color-primary-tint); text-decoration: none; color: var(--repo-color-primary); }

/* 記事内CTA */
.cta-box { border-radius: var(--radius); padding: 24px; margin: 32px 0; }
.cta-box.biz { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px; background: var(--repo-color-bg-beige); border-left: 3px solid var(--repo-color-gold); border-radius: 0 8px 8px 0; }
.cta-box.biz .cta-eyebrow { font-size: 12px; color: var(--repo-color-gold); }
.cta-box.biz .cta-title { font-size: 15px; margin: 2px 0 0; color: var(--repo-color-primary); }
.cta-box.biz .biz-note { margin: 4px 0 0; font-size: 13px; color: var(--repo-color-text-light); }
.biz-links { display: flex; flex-shrink: 0; gap: 16px; margin: 0 !important; }
.biz-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--repo-color-gold); text-decoration: none; white-space: nowrap; }
.biz-link:hover { text-decoration: underline; }
.biz-link.sub { color: var(--repo-color-text-light); font-weight: 400; }
@media (max-width: 640px) { .cta-box.biz { flex-direction: column; align-items: flex-start; } .biz-links { gap: 20px; } }
.cta-box.prod { display: grid; grid-template-columns: 160px 1fr; gap: 20px; border: 2px solid var(--repo-color-accent); background: #fff; }
@media (max-width: 560px) { .cta-box.prod { grid-template-columns: 1fr; } }
.prod-img img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.cta-eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--repo-color-gold); }
.cta-box.prod .cta-eyebrow { color: var(--repo-color-gold); }
.cta-title { font-size: 19px; font-weight: 700; margin: 4px 0 8px; line-height: 1.5; }
.cta-box p { margin: 0 0 4px; font-size: 15px; }
.cta-box .btns { margin-top: 16px; }

.link-list { list-style: none; padding: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--repo-color-border); text-decoration: none; font-weight: 700; color: var(--repo-color-primary); }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--repo-color-border); }
@media (max-width: 520px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }
.news-list time { color: var(--repo-color-text-light); font-size: 14px; }

/* フォーム・資料 */
.form { display: flex; flex-direction: column; gap: 16px; background: var(--repo-color-bg-beige); padding: 28px; border-radius: var(--radius); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.form label.chk { flex-direction: row; align-items: center; font-weight: 400; }
.form label.chk input { width: 20px; height: 20px; }
.req, .opt { font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; font-weight: 700; align-self: flex-start; }
.form label > .req, .form label > .opt { display: inline; }
.req { background: #B42318; color: #fff; }
.opt { background: #E4E7EB; color: var(--repo-color-text); }
.form .ok { background: #E7F6EC; color: #14532D; padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.form .err { color: #B42318; font-size: 14px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.doc-list > li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; border: 1px solid var(--repo-color-border); border-radius: var(--radius); padding: 20px; scroll-margin-top: 90px; }
.doc-list h3 { margin: 0 0 4px; font-size: 17px; color: var(--repo-color-primary); }
.doc-list ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.doc-cover { background: var(--repo-color-primary); color: #fff; border-radius: 6px; aspect-ratio: 3/4; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 12px; }
.doc-cover svg { width: 32px; height: 32px; }
.side h2 { margin-top: 24px; }
.mini-flow { padding-left: 1.2em; }
.mini-flow b { display: block; }

/* 最後の相談・フッター */
.final-cta { background: var(--repo-color-primary); color: #fff; padding: 64px 0; text-align: center; }
.final-cta h2 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 32px); margin: 0 0 12px; }
.final-cta .btns { justify-content: center; }
.gf { background: var(--repo-color-primary-dark); color: #C9D2DC; padding: 48px 0 24px; font-size: 14px; }
.gf a { color: #E6ECF2; }
.gf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .gf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gf-grid { grid-template-columns: 1fr; } }
.gf ul { list-style: none; padding: 0; margin: 0; }
.gf li { padding: 3px 0; }
.gf-name { font-weight: 700; color: #fff; font-size: 16px; }
.gf-h { font-weight: 700; color: #fff; margin: 0 0 8px; }
.gf-copy { margin-top: 32px; font-size: 12px; }
.float-cta { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: var(--repo-color-gold); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.2); min-height: 48px; }
@media (min-width: 1081px) { .float-cta { display: none; } }

/* トップの用途カルーセル（横スクロール＋前後ボタン） */
.biz-carousel { position: relative; }
.biz-track { list-style: none; margin: 0; padding: 4px 2px 8px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.biz-track::-webkit-scrollbar { display: none; }
.biz-slide { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
@media (max-width: 960px) { .biz-slide { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .biz-slide { flex-basis: 85%; } }
.biz-slide a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--repo-color-border); border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.biz-slide a:hover { border-color: var(--repo-color-accent); box-shadow: 0 6px 20px rgba(22,38,58,.08); }
.biz-slide a > :not(.biz-img) { margin-left: 24px; margin-right: 24px; }
.biz-slide .biz-label { margin-top: 20px; }
.biz-slide .more { margin-bottom: 24px; }
.biz-slide h3 { font-size: 19px; line-height: 1.5; margin: 6px 0 8px; color: var(--repo-color-primary); }
.biz-img { aspect-ratio: 3 / 2; background: var(--repo-color-bg-beige); overflow: hidden; }
.biz-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.biz-slide a:hover .biz-img img { transform: scale(1.04); }
.biz-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.biz-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--repo-color-border); background: #fff; color: var(--repo-color-primary); font-size: 18px; cursor: pointer; }
.biz-btn:hover:not(:disabled) { border-color: var(--repo-color-accent); color: var(--repo-color-accent); }
.biz-btn:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .biz-track { scroll-behavior: auto; } .biz-img img { transition: none; } }

/* トップの「お悩み」セクション（写真の背景＋番号付きカード＋回答カード） */
.worry { position: relative; overflow: hidden; background: var(--repo-color-primary); color: #fff; }
.worry-bg { position: absolute; inset: 0; }
.worry-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: grayscale(1); }
.worry-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,27,45,.92) 30%, rgba(14,27,45,.6)); }
.worry-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: start; }
.worry-head { grid-column: 1 / -1; }
.worry .eyebrow { color: var(--repo-color-gold); }
.worry .h2 { color: #fff; margin-bottom: 8px; }
.worry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.worry-list li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.worry-list li:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.worry-list p { margin: 0; font-size: 15px; line-height: 1.7; }
.worry-no { flex: none; font-family: var(--font-serif, serif); font-size: 26px; font-weight: 700; color: var(--repo-color-gold); line-height: 1; min-width: 36px; }
.worry-arrow { display: none; }
.worry-answer { background: #fff; color: var(--repo-color-text); border-radius: calc(var(--radius) * 1.5); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.worry-photo { aspect-ratio: 16 / 7; overflow: hidden; }
.worry-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.worry-body { padding: 28px; border-top: 4px solid var(--repo-color-gold); }
.worry-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--repo-color-gold); }
.worry-body h3 { margin: 0 0 12px; font-size: 22px; color: var(--repo-color-primary); }
.worry-body p { font-size: 15px; }
.worry-tags { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.worry-tags li { padding: 4px 12px; border-radius: 999px; background: var(--repo-color-bg-beige); font-size: 13px; font-weight: 700; color: var(--repo-color-primary); }
@media (max-width: 860px) {
  .worry-in { grid-template-columns: 1fr; }
  .worry-arrow { display: block; justify-self: center; width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 18px solid var(--repo-color-gold); }
}

/* お悩みセクションの CTA とフォーム */
.worry-form { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; border-radius: calc(var(--radius) * 1.5); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); margin-top: 24px; }
.worry-cta { position: relative; padding: 36px 32px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #B0702E 0%, var(--repo-color-gold) 50%, #6E3F14 100%); }
.worry-cta::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg); animation: cta-shine 5s ease-in-out infinite; pointer-events: none; }
@keyframes cta-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cta-eyebrow2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; opacity: .9; }
.cta-main { display: flex; align-items: center; gap: 16px; }
.cta-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); }
.cta-ic svg { width: 26px; height: 26px; }
.cta-txt { display: flex; flex-direction: column; gap: 4px; }
.cta-txt b { font-size: 26px; letter-spacing: .04em; font-family: var(--font-serif, serif); }
.cta-txt small { font-size: 13px; opacity: .92; }
.cta-points { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.cta-points li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 700; }
.cta-points li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.cta-sub { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.3); font-size: 14px; }
.cta-sub a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; text-decoration: none; }
.cta-sub a:hover { text-decoration: underline; }
.cta-sub svg { width: 16px; height: 16px; }
.worry-form .form { border-radius: 0; background: #fff; color: var(--repo-color-text); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-compact .btn { align-self: flex-start; }
@media (max-width: 860px) { .worry-form { grid-template-columns: 1fr; } .worry-cta { padding: 28px 24px; } .worry-form .form { padding: 24px; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .worry-cta::after { display: none; } }

/* 上に課題、下に「おまかせください」の縦積みにする（2026-11-16） */
.worry-in { grid-template-columns: 1fr; gap: 24px; }
.worry-list { grid-template-columns: 1fr 1fr; gap: 16px; }
.worry-list li { padding: 22px 24px; }
.worry-list li:hover { transform: translateY(-2px); }
.worry-arrow { display: block; justify-self: center; width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 22px solid var(--repo-color-gold); }
.worry-answer { display: grid; grid-template-columns: 5fr 7fr; }
.worry-photo { aspect-ratio: auto; min-height: 100%; }
.worry-body { border-top: 0; border-left: 4px solid var(--repo-color-gold); padding: 36px 40px; }
.worry-body h3 { font-size: 26px; font-family: var(--font-serif, serif); }
.worry-tags { margin-bottom: 0; }
.worry-form { margin-top: 0; }
@media (max-width: 860px) {
  .worry-list { grid-template-columns: 1fr; }
  .worry-answer { grid-template-columns: 1fr; }
  .worry-photo { aspect-ratio: 16 / 7; }
  .worry-body { border-left: 0; border-top: 4px solid var(--repo-color-gold); padding: 28px 24px; }
  .worry-body h3 { font-size: 22px; }
}

/* トップの読みものスライダー（用途カルーセルと同じ仕組み） */
.post-track > .pcard { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }
@media (max-width: 1080px) { .post-track > .pcard { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 760px) { .post-track > .pcard { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 520px) { .post-track > .pcard { flex-basis: 80%; } }

/* ページ末の「まずは、ご相談ください」 */
.final-cta { position: relative; overflow: hidden; padding: 88px 0; }
.final-bg { position: absolute; inset: 0; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(14,27,45,.75), rgba(14,27,45,.96) 70%); }
.final-in { position: relative; }
.final-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--repo-color-gold); }
.final-cta h2 { font-size: clamp(28px, 4.4vw, 40px); }
.final-lead { max-width: 640px; margin: 0 auto; opacity: .92; }
.final-points { list-style: none; padding: 0; margin: 24px 0 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.final-points li { padding: 6px 16px 6px 34px; position: relative; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.06); }
.final-points li::before { content: ""; position: absolute; left: 14px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--repo-color-gold); border-bottom: 2px solid var(--repo-color-gold); transform: rotate(-45deg); }
.final-main { position: relative; overflow: hidden; color: #fff; padding-left: 32px; padding-right: 32px; background: linear-gradient(135deg, #B0702E, var(--repo-color-gold) 55%, #7A4718); box-shadow: 0 10px 28px rgba(176,112,46,.45); }
.final-main::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-20deg); animation: cta-shine 3.6s ease-in-out infinite; }
.final-main:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 34px rgba(176,112,46,.55); }
@media (prefers-reduced-motion: reduce) { .final-main::after { display: none; } }

/* 代表の写真（縦長の FM AICHI 出演写真を、顔が入る位置で横長に切る） */
.ceo-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }

/* ページ末の相談：フォームを埋め込む版（トップ・問い合わせ以外の全ページ） */
.final-cta.has-form { text-align: left; }
.final-split { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; }
.final-split .final-lead { margin: 0; }
.final-split .final-points { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
.final-dl { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 4px; }
.final-dl:hover { border-color: var(--repo-color-gold); color: #fff; }
.final-dl svg { width: 16px; height: 16px; }
.final-split .form { background: #fff; color: var(--repo-color-text); border-radius: calc(var(--radius) * 1.5); box-shadow: 0 20px 50px rgba(0,0,0,.35); padding: 32px; }
.final-split .form .btn-primary { background: linear-gradient(135deg, #B0702E, var(--repo-color-gold) 55%, #7A4718); border: 0; box-shadow: 0 8px 22px rgba(176,112,46,.4); }
@media (max-width: 900px) { .final-split { grid-template-columns: 1fr; gap: 28px; } .final-split .form { padding: 24px; } }

/* ページ末のフォームは、どの幅でも白いカード・左揃え・濃い文字にする */
.final-cta .form { background: #fff; color: var(--repo-color-text); text-align: left; border-radius: calc(var(--radius) * 1.5); }
.final-cta .form label { color: var(--repo-color-primary); }

/* 記事内の外部リンクカード（リンク先ページの撮影画像付き） */
.prose .link-card { display: grid; grid-template-columns: 240px 1fr; margin: 8px 0 28px; border: 1px solid var(--repo-color-border); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 4px 14px rgba(22,38,58,.06); transition: box-shadow .2s, transform .2s; }
.prose .link-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,38,58,.12); }
.lc-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--repo-color-bg-beige); border-right: 1px solid var(--repo-color-border); }
.lc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; margin: 0; }
.lc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; justify-content: center; }
.lc-dom { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--repo-color-text-light); }
.lc-dom svg { width: 12px; height: 12px; }
.lc-title { font-weight: 700; font-size: 15px; line-height: 1.6; color: var(--repo-color-primary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc-note { font-size: 12px; color: var(--repo-color-text-light); }
@media (max-width: 600px) { .prose .link-card { grid-template-columns: 1fr; } .lc-img { border-right: 0; border-bottom: 1px solid var(--repo-color-border); } }

/* 工程カードに写真を付ける */
.process li { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.process li:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(22,38,58,.1); }
.pimg { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--repo-color-primary); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); transition: transform .5s; }
.process li:hover .pimg img { transform: scale(1.05); }
.pimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14,27,45,.75)); }
.pimg .pnum { position: absolute; left: 16px; bottom: 10px; z-index: 1; margin: 0; color: #fff; font-size: 34px; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.pbody { padding: 18px 20px 22px; }
.pbody h3 { margin-top: 0; }
.process.compact .pimg .pnum { font-size: 26px; left: 12px; }
.process.compact .pbody { padding: 14px 14px 18px; }
@media (max-width: 960px) { .process, .process.compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process, .process.compact { grid-template-columns: 1fr; } }

/* 導入事例 */
.case-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .case-grid { grid-template-columns: 1fr; } }
.case-grid a { display: block; height: 100%; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--repo-color-border); border-radius: var(--radius); overflow: hidden; }
.case-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.case-grid div { padding: 16px 20px 20px; }
.case-grid .kind, .case-slots .kind { margin: 0; font-size: 12px; font-weight: 700; color: var(--repo-color-gold); }
.case-grid h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.5; color: var(--repo-color-primary); }
.case-slots { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .case-slots { grid-template-columns: 1fr; } }
.case-slots li { border: 1px solid var(--repo-color-border); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.case-slots .case-h { margin: 2px 0 8px; }
.case-body h2 { margin-top: 40px; }
.case-body h2:first-child { margin-top: 0; }

/* フォームの作り直し（2026-11-16 CHG-20261116-013）
   項目名と必須の札を1行に。入力欄は細い枠と淡い地。ボタンは単色で横いっぱい。 */
.form { gap: 20px; }
.form label { gap: 8px; font-size: 14px; color: var(--repo-color-primary); letter-spacing: .04em; }
.form .lbl { display: flex; align-items: center; gap: 8px; }
.form .req, .form .opt { margin: 0; padding: 0 6px; font-size: 11px; line-height: 18px; border-radius: 3px; letter-spacing: .08em; background: transparent; }
.form .req { color: var(--repo-color-gold); border: 1px solid currentColor; }
.form .opt { color: var(--repo-color-text-light); border: 1px solid var(--repo-color-border); }
.form input, .form select, .form textarea { padding: 12px 14px; border: 1px solid #D3D8DE; border-radius: 6px; background: #FAFAF8; color: var(--repo-color-text); font-weight: 400; transition: border-color .15s, box-shadow .15s, background .15s; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #AEB6C0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--repo-color-accent); box-shadow: 0 0 0 3px rgba(40,78,126,.14); }
.form textarea { resize: vertical; min-height: 120px; }
.form textarea::placeholder { color: #9AA3AE; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #FAFAF8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316263A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form .btn[type=submit], .final-split .form .btn-primary, .worry-form .form .btn-primary { width: 100%; align-self: stretch; margin-top: 4px; border-radius: 6px; background: var(--repo-color-gold); border: 0; box-shadow: none; letter-spacing: .08em; }
.form .btn[type=submit]:hover { background: #7E4815; }
.form > .note { margin: -4px 0 0; font-size: 12px; line-height: 1.7; text-align: center; }

/* トップの相談：左の帯は和紙色＋工房の写真。茶色のグラデーションと光の流れはやめる */
.worry-cta { display: flex; flex-direction: column; padding: 40px 36px 0; background: var(--repo-color-bg-beige); color: var(--repo-color-primary); border-top: 3px solid var(--repo-color-gold); }
.worry-cta::after { display: none; }
.cta-eyebrow2 { color: var(--repo-color-gold); letter-spacing: .12em; opacity: 1; font-size: 12px; }
.cta-ic { width: 48px; height: 48px; background: var(--repo-color-primary); color: #fff; }
.cta-ic svg { width: 22px; height: 22px; }
.cta-txt b { font-size: 26px; color: var(--repo-color-primary); }
.cta-txt small { color: var(--repo-color-text-light); opacity: 1; }
.cta-points { margin: 28px 0; gap: 12px; }
.cta-points li { font-size: 15px; font-weight: 500; color: var(--repo-color-text); }
.cta-points li::before { border-color: var(--repo-color-gold); border-width: 0 0 2px 2px; top: 7px; }
.cta-sub { border-top: 1px solid var(--repo-color-border); }
.cta-sub a { color: var(--repo-color-accent); }
.cta-photo { margin: 28px -36px 0; flex: 1; min-height: 160px; position: relative; }
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.worry-form .form { padding: 40px 40px 32px; }
@media (max-width: 860px) {
  .worry-cta { padding: 28px 24px 0; }
  .cta-photo { margin: 24px -24px 0; flex: none; height: 160px; }
  .worry-form .form { padding: 28px 24px; }
}
/* 問い合わせページのフォームは白いカードにして、入力欄が地に沈まないようにする */
.sec .two-col > .form { background: #fff; border: 1px solid var(--repo-color-border); box-shadow: 0 10px 30px rgba(22,38,58,.06); padding: 36px; }
@media (max-width: 600px) { .sec .two-col > .form { padding: 24px 20px; } }

/* トップの「その悩み、関の工房におまかせください」を画面の横幅いっぱいにする（2026-11-16 CHG-20261116-015）
   写真は左半分を画面の端まで、文章は右半分。文章の右端はほかの欄の右端（.wrap）にそろえる */
.worry-answer { margin-inline: calc(50% - 50vw); border-radius: 0; box-shadow: none; grid-template-columns: 1fr 1fr; min-height: 440px; }
.worry-photo { position: relative; }
.worry-photo img { position: absolute; inset: 0; }
.worry-body { display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--repo-color-gold);
  padding: 64px max(16px, calc(50vw - var(--wrap) / 2 + 16px)) 64px 64px; }
.worry-body > * { max-width: 560px; }
.worry-body h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.5; }
.worry-body h3 { word-break: keep-all; overflow-wrap: anywhere; } /* 読点の位置で折る */
@media (max-width: 860px) {
  .worry-answer { grid-template-columns: 1fr; min-height: 0; }
  .worry-photo { aspect-ratio: 16 / 9; }
  .worry-body { border-left: 0; border-top: 4px solid var(--repo-color-gold); padding: 36px 16px 40px; }
  .worry-body > * { max-width: none; }
  .worry-body h3 { word-break: normal; }
}

/* 会社案内の地図 */
.map { margin: 16px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--repo-color-border); }
.map iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
@media (max-width: 720px) { .map iframe { aspect-ratio: 4/3; } }

/* 記事のサイドバー（個人のお客様＝公式ショップ／法人・団体＝ご相談・資料） CHG-20261116-018 */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.post-layout .post { max-width: 780px; min-width: 0; }
/* サイドバー全体をスクロールに追尾させる。画面より長いときは目次だけを内側でスクロールさせ、個人向け・法人向けの入口は常に見せる */
.post-side { position: sticky; top: 88px; max-height: calc(100vh - 104px); margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.side-sticky { flex: none; display: flex; flex-direction: column; gap: 16px; }
.side-card { border: 1px solid var(--repo-color-border); border-radius: var(--radius); padding: 18px; background: #fff; }
.side-card.toc-c { border-top: 3px solid var(--repo-color-accent); }
.side-card.tob-c { border-top: 3px solid var(--repo-color-gold); background: var(--repo-color-bg-beige); }
.side-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--repo-color-accent); }
.tob-c .side-eyebrow { color: var(--repo-color-gold); }
.side-prod { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--repo-color-primary); font-weight: 700; font-size: 15px; line-height: 1.5; }
.side-prod img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 72px; }
.side-prod small { display: block; font-weight: 400; font-size: 12px; color: var(--repo-color-text-light); }
.side-prod:hover span { text-decoration: underline; }
.side-tag { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--repo-color-primary); }
.side-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--repo-color-primary); }
.side-text { margin: 10px 0 14px; font-size: 13px; line-height: 1.7; color: var(--repo-color-text-light); }
.side-card .btn { width: 100%; font-size: 14px; }
.side-sub { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; margin-top: 4px; font-size: 13px; color: var(--repo-color-text-light); text-decoration: none; }
.side-sub:hover { text-decoration: underline; }
.side-toc { font-size: 14px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.side-h { margin: 0 0 6px; font-weight: 700; color: var(--repo-color-primary); }
.side-toc ol { margin: 0; padding-left: 1.4em; line-height: 1.6; }
.side-toc li { padding: 3px 0; }
.side-toc a { color: var(--repo-color-text); text-decoration: none; }
.side-toc a:hover { color: var(--repo-color-accent); text-decoration: underline; }
@media (min-width: 1081px) { .post-layout .toc { display: none; } }
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .post-layout .post { max-width: 820px; margin: 0 auto; width: 100%; }
  .post-side { position: static; max-height: none; padding: 8px 0 48px; max-width: 820px; margin: 0 auto; width: 100%; }
  .side-toc { display: none; }
  .side-sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .side-sticky { grid-template-columns: 1fr; } }

/* 記事のサイドバーを簡素に（2026-11-16 CHG-20261116-020）
   法人の囲みを上に、個人は1行のリンク、目次はいちばん下 */
.post-side { gap: 24px; }
.side-card.tob-c { border: 0; border-top: 3px solid var(--repo-color-gold); border-radius: 0 0 var(--radius) var(--radius); padding: 20px; background: var(--repo-color-bg-beige); }
.tob-c .side-eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; }
.tob-c .side-title { margin: 0 0 16px; font-size: 15px; }
.tob-c .btn { border-radius: 6px; }
.side-sub { min-height: 36px; margin-top: 6px; }
.side-shop { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--repo-color-border); border-bottom: 1px solid var(--repo-color-border); text-decoration: none; color: var(--repo-color-primary); font-size: 13px; font-weight: 700; line-height: 1.5; }
.side-shop img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.side-shop small { display: block; font-size: 11px; font-weight: 400; color: var(--repo-color-text-light); }
.side-shop svg { color: var(--repo-color-text-light); }
.side-shop:hover span { text-decoration: underline; }
.side-toc { padding-top: 4px; }
@media (max-width: 1080px) { .side-sticky { grid-template-columns: 1fr; gap: 12px; } }

/* 用語のページ：「この言葉が出てくる記事」を本文の列の中のスライダーにし、ページの下に余白を取る（2026-11-16 CHG-20261116-022） */
.cite-sec { margin-top: 48px; }
.post-carousel.in-col .post-track > .pcard { flex-basis: calc((100% - 32px) / 2.3); }
@media (max-width: 520px) { .post-carousel.in-col .post-track > .pcard { flex-basis: 80%; } }
.gloss-layout { padding-bottom: 96px; }
@media (max-width: 1080px) { .gloss-layout { padding-bottom: 0; } }

/* メディア掲載（2026-11-16 CHG-20261116-024） */
.media-strip { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 860px) { .media-strip { grid-template-columns: repeat(2, 1fr); } }
.media-strip a { display: block; height: 100%; text-decoration: none; }
.mlogo { display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px 20px; background: #fff; border: 1px solid var(--repo-color-border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.media-strip a:hover .mlogo { border-color: var(--repo-color-primary); box-shadow: 0 6px 18px rgba(22,38,58,.08); }
.mlogo img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
.mlogo.text span { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--repo-color-primary); letter-spacing: .04em; text-align: center; line-height: 1.4; }
.mlogo.big { height: 100%; min-height: 200px; border: 0; border-radius: 0; background: var(--repo-color-bg-beige); }
.mlogo.big.text span { font-size: 26px; }
.mlogo.mini { height: 24px; padding: 0; border: 0; background: none; }
.mlogo.mini img { max-height: 20px; }
.media-list { display: grid; gap: 24px; }
.media-item { display: grid; grid-template-columns: 340px 1fr; background: #fff; border: 1px solid var(--repo-color-border); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 100px; }
.media-visual { min-height: 220px; background: var(--repo-color-bg-beige); }
.media-visual > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-body { padding: 28px 32px; }
.media-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; font-size: 13px; color: var(--repo-color-text-light); }
.media-meta .chip { margin: 0; }
.media-name { font-weight: 700; color: var(--repo-color-primary); }
.media-body h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.5; color: var(--repo-color-primary); }
.media-body p { font-size: 15px; }
.media-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; }
.media-links a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; }
@media (max-width: 760px) { .media-item { grid-template-columns: 1fr; } .media-visual { min-height: 0; aspect-ratio: 16 / 9; } .media-body { padding: 20px; } }
/* 動画の掲載は、サムネイルに再生の印を重ねて YouTube へつなぐ（CHG-20261116-025） */
.media-play { position: relative; display: block; height: 100%; }
.media-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(0,0,0,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='20' viewBox='0 0 18 20'%3E%3Cpath d='M0 0l18 10L0 20z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 54% 50%; transition: background-color .2s; }
.media-play:hover::after { background-color: #E62117; }

/* 用途別ページの「関連する製品」「ほかのご相談」も、関連する記事と同じ横送りにする（2026-11-30 CHG-20261130-007） */
.biz-track.prod-grid, .biz-track.biz-grid { display: flex; grid-template-columns: none; }
.biz-track.prod-grid > li, .biz-track.biz-grid > li { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }
@media (max-width: 1080px) { .biz-track.prod-grid > li, .biz-track.biz-grid > li { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 760px) { .biz-track.prod-grid > li, .biz-track.biz-grid > li { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 520px) { .biz-track.prod-grid > li, .biz-track.biz-grid > li { flex-basis: 80%; } }
