@charset "UTF-8";

/* MT7コラムテンプレート共通の通常CSS。ビルド処理は不要です。 */
:root {
  --accent: #e6003b;
  --accent-shadow: #b8002f;
  --text: #121e2e;
  --background: #f5f4f0;
  --tan: #f9f8f4;
  --border: #e0ddd6;
  --font-body: "Noto Sans JP", "游ゴシック体", YuGothic, "Yu Gothic", sans-serif;
  --font-heading: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-serif: "Roboto Slab", Garamond, "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", YuMincho, "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", HiraMinProN-W3, HGS明朝E, "ＭＳ Ｐ明朝", "MS PMincho", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; font-family: var(--font-body); }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; }
a, button, summary, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-top: 140px; }
.container { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: 24px; }
.visually-hidden, .filter-radio { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 200; background: #fff; color: var(--accent); padding: 12px; }
.skip-link:focus { top: 12px; }

/* 共通ヘッダー */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 2px solid #eee; }
.header-inner { height: 120px; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: auto; height: 107px; }
.header-contact { flex-shrink: 0; }
.phone { display: flex; align-items: center; gap: 8px; color: var(--accent); font: 900 22px/1.2 var(--font-heading); letter-spacing: .05em; white-space: nowrap; }
.phone img { width: auto; height: 20px; flex-shrink: 0; }
.header-contact p { margin-top: 2px; color: #888; font-size: 11px; letter-spacing: .02em; }
.header-actions { display: flex; align-self: stretch; flex-shrink: 0; margin-left: auto; }
.header-actions a { display: flex; align-items: center; justify-content: center; padding: 0 28px; font: 700 13px var(--font-heading); white-space: nowrap; }
.header-request { border: 1px solid var(--accent); background: #fff; color: var(--accent); transition: background .15s, color .15s; }
.header-trial { background: var(--accent); color: #fff; transition: opacity .15s; }
.header-request:hover { background: var(--accent); color: #fff; }
.header-trial:hover { opacity: .85; }
.page-main { min-height: 100vh; background: var(--background); }
.breadcrumbs { padding-block: 10px; border-bottom: 1px solid var(--border); background: var(--tan); font-size: 12px; }
.breadcrumbs ol { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.breadcrumbs li + li::before { content: "›"; color: #bbb; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs [aria-current] { font-weight: 500; }
.breadcrumb-current { max-width: 330px; overflow: hidden; text-overflow: ellipsis; display: block !important; color: #888; }
.breadcrumb-current::before { margin-right: 8px; }
.page-heading { padding: 40px 0 36px; background: #fff; text-align: center; border-bottom: 1px solid var(--border); }
.page-heading h1 { display: inline-block; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); font: 400 32px/1.3 var(--font-serif); }
.eyebrow { margin: 0 0 3rem; font: 600 11px/1.5 Poppins, sans-serif; letter-spacing: .25em; color: var(--accent); }
.page-lead { font: 14px/1.5 "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif; }

/* コラム一覧。各カテゴリの絞り込みルールはMTインデックステンプレートで生成。 */
.column-content { padding-top: 24px; padding-bottom: 64px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.category-tab { display: block; flex-shrink: 0; padding: 6px 16px; border: 1px solid #ccc; border-radius: 1600px; background: #fff; font: 700 12px/1.5 var(--font-heading); cursor: pointer; transition: .15s; }
.category-tab:hover { color: var(--accent); border-color: var(--accent); }
#column-category-all:checked ~ .category-tabs [for="column-category-all"] { background: var(--accent); color: #fff; border-color: var(--accent); }
#column-category-all:focus-visible ~ .category-tabs [for="column-category-all"] { outline: 3px solid var(--accent); outline-offset: 3px; }
.search-row { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.search-field { position: relative; }
.search-field > span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #bbb; }
.search-field input { display: block; width: 200px; padding: 8px 12px 8px 30px; font-size: 12px; line-height: 1.5; border: 1px solid #ddd; border-radius: 4px; background: transparent; color: var(--text); }
.search-field input:disabled { opacity: 1; -webkit-text-fill-color: #888; }
.column-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 32px; align-items: start; }
.article-list, .article-detail { min-width: 0; }
.article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e5e0; border-radius: 6px; overflow: hidden; min-width: 0; }
.card-image { position: relative; height: 170px; background: #f0ede8; overflow: hidden; flex-shrink: 0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 16px 18px 18px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 1600px; background: var(--accent); color: #fff; font: 700 10px/1.5 var(--font-heading); }
.card-meta time { color: #999; font-size: 10px; }
.card-title { flex: 1; margin-bottom: 6px; font: 700 14px/1.55 var(--font-heading); overflow-wrap: anywhere; }
.card-excerpt { margin: 0 0 10px; color: #777; font-size: 12px; line-height: 1.7; }
.featured { grid-column: 1 / -1; margin-bottom: 8px; }
.card-link { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; transition: box-shadow .15s; }
.featured .card-link { display: grid; grid-template-columns: 1fr 1fr; }
.article-card:hover { box-shadow: 0 4px 16px #121e2e18; }
.card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: inherit; color: #9b9386; font: 700 20px var(--font-heading); letter-spacing: .08em; }
.empty-state { grid-column: 1 / -1; padding: 36px 20px; text-align: center; background: #fff; }
.contact-phone { font-size: 11px; color: var(--accent); text-decoration: underline; }
.category-index-link, .back-to-list { margin-top: 20px; font-size: 13px; }
.category-index-link a, .back-to-list a { color: var(--accent); text-decoration: underline; }
.related-categories { display: flex; flex-wrap: wrap; gap: 4px; }
.author-avatar { display: grid; place-items: center; width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; font: 700 24px var(--font-heading); }
.content-richtext { overflow-wrap: anywhere; }
.content-richtext img { max-width: 100%; height: auto; }
.content-richtext > ul, .content-richtext > ol, .content-richtext > section > ul, .content-richtext > section > ol { padding-left: 1.5em; margin-bottom: 16px; list-style: revert; }
.content-richtext a { color: var(--accent); text-decoration: underline; }
.content-richtext .toc a { color: inherit; text-decoration: none; }
.card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured .card-excerpt { -webkit-line-clamp: 4; }
.featured:hover { box-shadow: 0 4px 16px #121e2e18; }
.featured .card-image { height: 100%; min-height: 280px; }
.featured .card-body { justify-content: center; padding: 28px 32px; }
.featured .card-meta { gap: 8px; margin-bottom: 12px; }
.featured .badge { padding: 3px 12px; font-size: 11px; }
.featured time { color: #999; font-size: 11px; }
.featured .card-title { flex: initial; margin: 0 0 12px; font-size: 20px; line-height: 1.5; font-weight: 900; }
.featured .card-excerpt { font-size: 13px; line-height: 1.8; color: #555; margin-bottom: 16px; }
.read-more { color: var(--accent); font: 700 13px var(--font-heading); }
.new-badge { position: absolute; top: 12px; left: 12px; padding: 3px 12px; border-radius: 1600px; background: var(--accent); color: #fff; font: 700 10px var(--font-heading); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-number, .page-next { display: inline-flex; justify-content: center; align-items: center; height: 36px; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: var(--text); font: 700 13px var(--font-heading); }
.page-number { width: 36px; }
.page-next { gap: 4px; padding-inline: 14px; font-size: 12px; }
.page-number.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination button:disabled { opacity: 1; cursor: default; }

/* 共通サイドバー */
.sidebar { width: 260px; min-width: 0; }
.contact-box { padding: 20px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--tan); text-align: center; }
.contact-box h2 { margin-bottom: 4px; font: 900 14px/1.5 var(--font-heading); }
.contact-box p { color: #888; font-size: 11px; line-height: 1.6; margin-bottom: 14px; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 11px 16px; border: 1px solid var(--accent); border-radius: 1600px; font: 700 12px/1.5 var(--font-heading); text-align: center; transition: background .15s, color .15s, opacity .15s; }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 3px 0 var(--accent-shadow); }
.button-primary:hover { opacity: .88; }
.button-outline { color: var(--accent); padding-block: 9px; }
.button-outline:hover { background: var(--accent); color: #fff; }
.side-panel { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.side-title { padding: 10px 16px; background: #2a2a2a; color: #fff; font: 700 12px/1.5 var(--font-heading); }
.popular-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.popular-list li:last-child { border: 0; }
.rank { width: 28px; flex-shrink: 0; color: #ddd; font: 900 20px/1 var(--font-heading); }
.popular-list li:first-child .rank { color: var(--accent); }
.popular-list a, .popular-heading { display: block; font-size: 12px; font-weight: 700; line-height: 1.5; margin-bottom: 3px; }
.popular-list a:hover { color: var(--accent); }
.small-category { display: block; color: #999; font-size: 10px; }
.category-list { padding-block: 8px; }
.category-list label { display: block; padding: 8px 14px; font-size: 12px; cursor: pointer; }
.category-list label:hover { color: var(--accent); }
.site-footer { padding: 20px 16px; background: #f9f5f4; border-top: 1px solid var(--border); text-align: center; }
.site-footer p { color: #888; font-size: 12px; }

/* 記事詳細 */
.detail-content { padding-bottom: 64px; }
.article-heading { padding: 32px 36px; background: #fff; border-bottom: 1px solid #f0ede8; }
.article-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 14px; color: #888; font-size: 11px; }
.article-heading h1 { margin: 0 0 16px; font: 900 26px/1.5 var(--font-heading); overflow-wrap: anywhere; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.article-tags .badge { padding: 3px 12px; font-size: 11px; }
.article-body { padding: 0 36px 40px; background: #fff; }
.article-hero { margin: 0 -36px 28px; overflow: hidden; }
.article-hero img { width: 100%; height: 360px; object-fit: cover; object-position: 50% 40%; }
.toc { background: var(--tan); border: 1px solid var(--border); border-radius: 4px; margin: 24px 0; }
.toc summary { cursor: pointer; padding: 14px 20px; font: 700 14px/1.5 var(--font-heading); }
.toc summary::marker { color: var(--accent); }
.toc nav { padding: 0 20px 18px; font-size: 13px; line-height: 1.7; }
.toc ol { list-style: decimal; padding-left: 1.5em; }
.toc ol > li { margin-top: 10px; color: var(--accent); font-weight: 700; }
.toc ul { margin-top: 5px; color: #555; font-size: 12px; font-weight: 400; }
.toc ul li { margin-top: 4px; padding-left: 1em; position: relative; }
.toc ul li::before { content: "–"; position: absolute; left: 0; color: #999; }
.toc a:hover { text-decoration: underline; }
.content-richtext > h2, .content-richtext > section h2 { margin: 48px 0 16px; padding: 14px 18px; background: var(--tan); border-left: 4px solid var(--accent); font: 900 20px/1.5 var(--font-heading); }
.content-richtext > h3, .content-richtext > section h3 { margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #f0ede8; font: 700 16px/1.5 var(--font-heading); }
.content-richtext > p, .content-richtext > section > p { margin: 0 0 14px; color: #333; font-size: 15px; line-height: 2; overflow-wrap: anywhere; }
.article-body strong { font-weight: 700; }
.note-box, .highlight-box { margin: 16px 0; padding: 14px 16px; border-radius: 4px; font-size: 13px; line-height: 1.8; color: #555; }
.note-box { background: #fff9f0; border: 1px solid #ffd4a0; }
.note-box h4 { color: #c06000; margin-bottom: 8px; font: 700 13px/1.6 var(--font-heading); }
.highlight-box { background: #fff0f3; border: 1px solid var(--accent); color: #333; line-height: 1.9; }
.highlight-box h4 { font: 700 13px/1.6 var(--font-heading); margin-bottom: 8px; color: var(--accent); }
.note-box ol, .highlight-box ol { padding-left: 1.4em; list-style: decimal; }
.bulleted-list { list-style: disc; padding-left: 1.3em; }
.note { font-size: 11px; color: #888; margin-top: 6px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 16px 0; }
table { width: 100%; min-width: 340px; border-collapse: collapse; font-size: 12px; line-height: 1.5; }
thead th { background: #2a2a2a; color: #fff; padding: 9px 12px; text-align: left; font: 700 11px/1.5 var(--font-heading); white-space: nowrap; }
tbody th, tbody td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #e8e5e0; }
tbody th { color: var(--text); font-weight: 700; }
tbody td { color: #555; font-weight: 400; }
tbody tr:nth-child(even) { background: var(--tan); }
.article-end { margin-top: 40px; padding-top: 28px; border-top: 2px solid #f0ede8; }
.author { display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--tan); margin-bottom: 24px; }
.author__photo { width: 96px; height: 96px; flex-shrink: 0; border: 2px solid var(--border); border-radius: 50%; object-fit: cover; }
.author__photo img { display: block;  width: 100%;  height: 100%;  object-fit: cover;  object-position: center;  border-radius: 50%;}
.author__name { margin-bottom: 2px; font: 700 13px/1.5 var(--font-heading); }
.author-box p { font-size: 12px; line-height: 1.7; color: #555; }
.author__role { font-size: 11px; color: #888; margin-bottom: 6px; }
.article-cta { background: var(--accent); border-radius: 6px; padding: 32px 36px; text-align: center; color: #fff; }
.article-cta h2 { margin: 0 0 8px; font: 900 18px/1.5 var(--font-heading); }
.article-cta p { margin: 0 0 20px; font-size: 13px; line-height: 1.7; color: #ffffffb3; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.button-white { background: #fff; color: var(--accent); border-color: #fff; }
.button-white-outline { color: #fff; background: transparent; border-color: #fff; }
.button-white:hover, .button-white-outline:hover { opacity: .85; }
.detail-content .contact-box h2 { font-size: 13px; }
.related-list li { padding: 14px; border-bottom: 1px solid #f0f0f0; }
.related-list li:last-child { border: 0; }
.related-list .badge { margin-bottom: 6px; }
.related-list a { display: block; font-size: 12px; line-height: 1.6; font-weight: 500; }
.related-list a:hover { color: var(--accent); }
.category-groups { padding: 14px; }
.category-groups h3 { font: 700 12px/1.5 var(--font-heading); margin: 14px 0 8px; }
.category-groups h3:first-child { margin-top: 0; }
.category-groups ul { display: flex; flex-wrap: wrap; gap: 6px; }
.category-groups li span { display: inline-block; padding: 4px 10px; border: 1px solid #ddd; border-radius: 1600px; font-size: 11px; }

/* タブレット */
@media (max-width: 1023px) {
  .header-inner { gap: 20px; }
  .brand img { height: 85px; }
  .header-actions a { padding-inline: 20px; }
  .column-layout { grid-template-columns: minmax(0,1fr); }
  .sidebar { display: none; }
  .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  /* 問い合わせ導線は画面幅にかかわらずアクセス可能にする。 */
  .sidebar:target { display: block; width: 100%; }
  .sidebar:has(#contact:target) { display: block; width: 100%; }
}
/* モバイル */
@media (max-width: 767px) {
  .container { padding-inline: 16px; }
  .site-header { position: relative; }
  .header-inner { height: auto; min-height: 82px; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
  .brand img { width: 175px; height: auto; }
  .header-contact { margin-left: auto; }
  .phone { font-size: 16px; gap: 4px; letter-spacing: 0; }
  .phone img { height: 14px; }
  .header-contact p { display: none; }
  .header-actions { width: calc(100% + 32px); margin-inline: -16px; }
  .header-actions a { width: 50%; min-height: 40px; font-size: 12px; }
  [id] { scroll-margin-top: 16px; }
  .breadcrumbs { font-size: 11px; }
  .breadcrumbs ol { gap: 5px; }
  .breadcrumbs li { gap: 5px; }
  .breadcrumb-current { flex: 1; }
  .page-heading { padding: 28px 0 24px; }
  .page-heading h1 { font-size: 24px; }
  .page-lead { font-size: 12px; line-height: 1.8; }
  .column-content { padding-bottom: 48px; }
  .category-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 3px 2px 8px; margin: -3px -2px 16px; scrollbar-width: thin; }
  .category-tab { padding: 6px 14px; }
  .search-field, .search-field input { width: 100%; }
  .search-field input { background: #fff; }
  .article-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .article-card:not(.featured) .card-link { flex-direction: row; }
  .article-card:not(.featured) .card-image { width: 110px; height: auto; min-height: 90px; }
  .article-card:not(.featured) .card-image img { min-height: 100%; }
  .article-card:not(.featured) .card-body { padding: 12px 14px; }
  .article-card:not(.featured) .card-title { flex: initial; font-size: 13px; }
  .article-card:not(.featured) .card-excerpt { display: none; }
  .featured { margin-bottom: 12px; }
  .featured .card-link { grid-template-columns: 1fr; }
  .featured .card-image { height: 200px; min-height: 200px; }
  .featured .card-body { padding: 20px 18px; }
  .featured .card-title { font-size: 16px; }
  .featured .card-excerpt { font-size: 12px; }
  .detail-content { padding-bottom: 48px; }
  .article-heading { padding: 24px 16px; }
  .article-heading h1 { font-size: 20px; }
  .article-dates { font-size: 10px; gap: 12px; }
  .article-body { padding: 0 16px 28px; }
  .article-hero { margin-inline: -16px; }
  .article-hero img { height: 180px; }
  .toc summary { padding: 12px 14px; }
  .toc nav { padding: 0 14px 16px; font-size: 12px; }
  .toc ul { font-size: 11px; }
  .content-richtext > h2, .content-richtext > section h2 { margin-top: 36px; padding: 12px 14px; font-size: 17px; }
  .content-richtext > h3, .content-richtext > section h3 { margin-top: 28px; font-size: 15px; }
  .content-richtext > p, .content-richtext > section > p { font-size: 14px; }
  .author-box { padding: 16px; gap: 12px; }
  .author-box > img, .author-avatar { width: 64px; height: 64px; }
  .article-cta { padding: 24px 18px; }
  .article-cta h2 { font-size: 16px; }
  .cta-actions { flex-direction: column; }
  .site-footer p { font-size: 10px; }
}
@media (max-width: 359px) {
  .brand img { width: 148px; }
  .phone { font-size: 14px; }
  .phone img { height: 12px; }
  .article-card:not(.featured) .card-image { width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header { position: static; }
  .sidebar, .header-actions, .category-tabs, .search-row, .pagination, .skip-link { display: none; }
  .column-layout { display: block; }
  .article-body, .article-heading { padding-inline: 0; }
  .article-hero { margin-inline: 0; }
  body, .page-main { background: #fff; }
  h2, h3 { break-after: avoid; }
  table, .note-box, .highlight-box { break-inside: avoid; }
}
