/* 通話の波形を誌名の印に使い、日本語の見出しには各端末のゴシック体を使う。 */
@font-face {
  font-family: "Archivo Black";
  src: url("assets/fonts/archivo-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #172139;
  --body: #364052;
  --muted: #576476;
  --blue: #2549ce;
  --blue-deep: #183596;
  --rule: #dbe1eb;
  --panel: #f1f5fc;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", "Noto Sans CJK JP", sans-serif;
  --latin: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; color: var(--body); background: #fff; font: 500 1rem/1.75 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3c58cd; outline-offset: 3px; }
.wrap, .reading { width: min(1192px, calc(100% - clamp(2.25rem, 9vw, 9rem))); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; top: .75rem; left: .75rem; z-index: 5; background: white; padding: .4rem 1rem; }

/* 全ページの上部に、誌名、記事と製品の入口、主要な比較表をまとめる。 */
.masthead { position: relative; z-index: 2; background: #fff; }
.mast-inner { min-height: 76px; display: flex; align-items: center; gap: 1.3rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: .22em; text-decoration: none; color: var(--ink); white-space: nowrap; font: 750 1.53rem/1 var(--latin); letter-spacing: -.062em; }
.brand-call { font: 900 .94em/1 "Archivo Black", Arial, sans-serif; }
.brand-comparison { font-weight: 650; }
.brand-symbol { display: flex; align-items: center; justify-content: center; gap: 2px; width: 32px; height: 32px; margin-right: .22rem; border-radius: 10px 10px 10px 3px; background: var(--blue); color: #fff; }
.brand-symbol i { width: 3px; height: 7px; border-radius: 5px; background: currentColor; }
.brand-symbol i:nth-child(2) { height: 16px; }
.brand-symbol i:nth-child(3) { height: 12px; }
.mast-description { color: var(--muted); font-size: .73rem; padding-left: 1.1rem; border-left: 1px solid var(--rule); }
.desk-nav, .footer-nav { display: flex; align-items: center; gap: 1.45rem; }
.desk-nav { margin-left: auto; }
.desk-nav a, .footer-nav a, .mobile-menu a { text-decoration: none; font-size: .87rem; font-weight: 700; }
.desk-nav a:hover, .footer-nav a:hover, .mobile-menu a:hover, .quiet-link:hover { text-decoration: underline; }
.nav-cta, .hero-button, .primary-btn { background: var(--blue); color: white; font-weight: 700; }
.nav-cta, .hero-button, .quiet-link, .table-link { display: inline-flex; align-items: center; justify-content: center; gap: 1em; text-decoration: none; }
.nav-cta { border-radius: 8px; min-height: 40px; padding: .5rem .94rem; font-size: .82rem; }
.nav-cta:hover, .hero-button:hover, .primary-btn:hover { background: var(--blue-deep); }
.arrow { display: inline-block; width: 14px; height: 1.6px; background: currentColor; position: relative; flex: none; }
.arrow::after, .chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.arrow::after { content: ""; position: absolute; right: .2px; top: -3.3px; }
.arrow.down { transform: rotate(90deg); }
.search-link { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--rule); border-radius: 50%; }
.search-link:hover { background: var(--panel); }
.lens { position: relative; display: inline-block; width: 14px; height: 14px; flex: none; border: 1.65px solid currentColor; border-radius: 50%; }
.lens::after { content: ""; position: absolute; width: 6px; height: 1.65px; right: -4px; bottom: -2px; background: currentColor; transform: rotate(48deg); }
.mobile-menu { display: none; }
summary::-webkit-details-marker { display: none; }

/* 写真は一枚の背景に溶かし、見出しとボタンは読み上げ・拡大可能な本文として置く。 */
.hero { position: relative; isolation: isolate; overflow: hidden; width: min(1536px, calc(100% - 48px)); margin-inline: auto; border-radius: 20px; background: #eaedfd; }
.hero-visual { z-index: -1; position: absolute; right: 0; top: 0; height: 100%; aspect-ratio: 1.5; max-width: 68%; mask-image: linear-gradient(90deg, transparent, #000 27%); }
.hero-visual img, .cover img, .article-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-copy { width: min(1192px, calc(100% - clamp(3.5rem, 10vw, 10rem))); margin-inline: auto; padding-block: clamp(2.7rem, 3.7vw, 4.25rem); }
.feature-meta { display: flex; align-items: center; gap: .75rem; color: #354675; font-size: .78rem; font-weight: 700; }
.feature-flag { display: inline-block; border: 1px solid #98a9e2; border-radius: 5px; padding: .15rem .55rem; color: #213e98; background: #ffffff8a; }
.hero h1 { font-size: clamp(2.75rem, 4.45vw, 4.45rem); line-height: 1.23; letter-spacing: -.055em; font-weight: 800; margin: 1.05rem 0 .92rem; }
.hero h1 em { color: #213fba; font-style: normal; }
.hero-deck { max-width: 51%; font-size: clamp(.875rem, 1.1vw, 1.05rem); line-height: 1.9; color: #394563; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.55rem; }
.hero-button, .primary-btn { padding: .86rem 1.27rem; border: 0; border-radius: 8px; font-size: .95rem; }
.quiet-link { font-size: .87rem; font-weight: 700; color: #263968; }
.quiet-link .arrow { width: 11px; }

/* 用途のアイコンと記事表紙は、青（会話）、橙（発信）、緑（分析）で対応させる。 */
.topics { display: flex; align-items: center; gap: 1.85rem; padding-block: 1.65rem; border-bottom: 1px solid var(--rule); }
.topics h2 { font-size: .9rem; white-space: nowrap; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; }
.topic { color: var(--ink); display: flex; align-items: center; gap: .8rem; padding: .25rem clamp(.6rem, 1.4vw, 1.4rem); text-decoration: none; border-left: 1px solid var(--rule); }
.topic-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; flex: none; }
.topic-dial .topic-icon { background: #fff0e7; color: #ba4c1d; }
.topic-assist .topic-icon { background: #eaf0ff; color: var(--blue); }
.topic-analysis .topic-icon { background: #e3f6ee; color: #16735a; }
.topic-text { display: grid; line-height: 1.6; }
.topic-text small { color: var(--muted); font-size: .71rem; }
.topic-text strong { font-size: clamp(.82rem, 1.12vw, 1rem); }
.topic:hover strong { color: var(--blue); text-decoration: underline; }
.chevron { display: inline-block; flex: none; margin-left: auto; color: #667488; }

/* 記事は表紙を先に見比べられる3列に並べ、見出しと検索を同じ行にそろえる。 */
.newsroom { padding-block: clamp(2.2rem, 4.15vw, 4.1rem) 4.4rem; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-title h2, .directory h2 { font-size: clamp(1.7rem, 2.5vw, 2.25rem); font-weight: 800; line-height: 1.3; letter-spacing: -.04em; }
.searchbox { display: flex; align-items: center; gap: .8rem; border-radius: 8px; border: 1px solid var(--rule); padding: .48rem .85rem; color: var(--muted); }
.searchbox:focus-within { outline: 2px solid var(--blue); }
.searchbox input { border: 0; background: transparent; outline: 0; min-width: 0; width: 13.2rem; font-size: .84rem; }
.filters { display: flex; gap: .45rem; flex-wrap: wrap; margin-block: 1.15rem 1.35rem; }
.filters button, .secondary-btn { background: #fff; border: 1px solid var(--rule); border-radius: 100px; padding: .36rem .9rem; font-weight: 650; font-size: .79rem; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.filters button:hover, .secondary-btn:hover { border-color: var(--blue); }
.story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.9rem clamp(1rem, 1.7vw, 1.6rem); margin-top: 1.1rem; }
.card a { text-decoration: none; display: block; height: 100%; }
.cover { aspect-ratio: 1.88; overflow: hidden; border-radius: 12px; background: var(--panel); }
.cover img { transition: transform .24s ease; }
.card a:hover img { transform: scale(1.025); }
.card a:hover h3 { color: var(--blue); }
.card-body { padding: .85rem .1rem .2rem; }
.meta { display: flex; align-items: center; gap: .72rem; color: var(--muted); font-size: .75rem; }
.meta time { font-family: var(--latin); font-variant-numeric: tabular-nums; }
.cat { display: inline-block; font-size: .73rem; font-weight: 700; padding: .12rem .56rem; border-radius: 5px; background: #ecf0ff; color: #2546a4; }
[data-category="自動架電"] .cat { background: #fff0e6; color: #934019; }
[data-category="通話後分析"] .cat { background: #e5f5ed; color: #176247; }
[data-category="費用・導入"] .cat { background: #fff3cc; color: #785911; }
.card h3 { font-size: clamp(1.06rem, 1.45vw, 1.28rem); line-height: 1.58; letter-spacing: -.02em; margin: .45rem 0 .32rem; }
.card-copy, .directory-intro p { font-size: .87rem; color: var(--muted); }
#no-results { text-align: center; background: var(--panel); border-radius: 12px; padding: 2rem; }
#no-results button { margin-top: .8rem; }

/* 早見表では製品名を左、用途を右に置き、開くと出典と解説記事が読める。 */
.directory { display: grid; grid-template-columns: minmax(200px, .52fr) minmax(0, 1fr); gap: 1.25rem 2rem; margin-top: 3.5rem; padding: clamp(1.5rem, 3.5vw, 3.5rem); background: #f3f6fc; border-radius: 18px; }
.directory-intro p { margin: .6rem 0 1.05rem; }
.table-link, .product-detail a { color: var(--blue-deep); font-size: .87rem; font-weight: 700; }
.table-link:hover { text-decoration: underline; }
.product-list { border-top: 1px solid #c5d1e4; }
.product-list details { border-bottom: 1px solid #c5d1e4; }
.product-list summary { display: flex; align-items: center; gap: .7rem; padding: .88rem 0; list-style: none; color: var(--ink); }
.product-list summary > span:first-child { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.product-list strong { font: 700 1.1rem/1.4 var(--latin); }
.product-list small { color: var(--muted); font-size: .73rem; }
.expand-sign { width: 22px; height: 22px; border: 1px solid #c5d1e4; border-radius: 50%; position: relative; }
.expand-sign::before, .expand-sign::after { content: ""; position: absolute; inset: 9px 5px; height: 1.5px; background: var(--blue); }
.expand-sign::after { transform: rotate(90deg); }
details[open] .expand-sign::after { display: none; }
.product-detail { padding: 0 0 1rem; font-size: .88rem; }
.product-detail p + p { display: flex; gap: 1rem; margin-top: .4rem; }
.source-note { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); }
.source-note a { margin-left: .35rem; }

/* 記事の本文は行長を抑え、公式資料と関連する比較記事へ戻れる位置をそろえる。 */
.reading { padding-bottom: 3rem; }
.reading.narrow { max-width: 760px; }
.crumb { color: var(--muted); font-size: .83rem; margin-block: 1.35rem; }
.crumb a { text-decoration-color: var(--rule); }
.article-head { padding: clamp(1.2rem, 2.6vw, 2.5rem); border-radius: 16px; background: var(--panel); }
.article-head.illustrated { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr); align-items: center; gap: clamp(1.75rem, 4.5vw, 4.2rem); }
.article-picture { border-radius: 12px; aspect-ratio: 1.5; overflow: hidden; background: var(--panel); }
.reading h1 { font: 750 clamp(2rem, 3.35vw, 3.15rem)/1.45 var(--sans); letter-spacing: -.045em; color: var(--ink); margin: .55rem 0 1rem; }
.lede { max-width: 48em; color: var(--body); font-size: 1.04rem; line-height: 1.98; }
.byline { color: var(--muted); font-size: .85rem; margin-top: .9rem; }
.reading-grid { display: grid; grid-template-columns: minmax(150px, .36fr) minmax(0, 1fr); gap: clamp(1.5rem, 4.5vw, 4.5rem); margin-block: 2.1rem; align-items: start; }
.toc { position: sticky; top: 1.1rem; padding-top: .85rem; border-top: 2px solid var(--ink); }
.toc h2 { font-size: 1.06rem; }
.toc ol { padding-left: 1.55rem; font-size: .9rem; color: var(--muted); }
.toc li + li { margin-top: .5rem; }
.toc a { text-decoration: none; } .toc a:hover { text-decoration: underline; }
.story h2, .narrow h2 { font: 650 clamp(1.35rem, 2.05vw, 1.85rem)/1.5 var(--sans); letter-spacing: -.025em; color: var(--ink); margin-bottom: .64rem; }
.story p, .narrow article > p { line-height: 1.96; }
.story p + p { margin-top: .85rem; }
.story section + section, .generated-story > h2:not(:first-child), .narrow article > h2 { margin-top: 2.25rem; }
.generated-story { max-width: 760px; margin: 2.5rem auto; }
.generated-story > .sources { margin-top: 2rem; }
.story ul, .sources ul { padding-left: 1.45rem; }
.story li + li { margin-top: .5rem; }
.table-scroll { overflow-x: auto; background: #fff; border-block: 1px solid var(--rule); margin-top: 1rem; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .95rem; }
th, td { vertical-align: top; border-bottom: 1px solid var(--rule); padding: .8rem .9rem; }
thead { color: var(--ink); background: var(--panel); }
tbody th { color: var(--ink); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
.story a, .narrow article a { text-decoration-color: #94a9e0; color: var(--blue-deep); }
.sources { border-radius: 10px; background: var(--panel); padding: 1rem 1.2rem; }
.sources p { font-size: .9rem; }
.related { display: grid; gap: .3rem; border-block: 1px solid var(--rule); margin-top: 1.7rem; padding: 1rem 0; }
.related strong { color: var(--muted); font-size: .86rem; }

/* 投稿画面は入力欄と保存の操作が目立つよう、読み物より情報を一列に寄せる。 */
.editor-form { margin-block: 1.5rem; }
.editor-form fieldset { margin: 1.5rem 0; padding: .7rem 1.15rem 1.15rem; border: 1px solid var(--rule); min-width: 0; }
.editor-form legend { color: var(--ink); font-size: 1.08rem; font-weight: 700; padding-inline: .4rem; }
.editor-form label { display: grid; gap: .3rem; font-weight: 650; margin-top: .85rem; }
.editor-form :is(input, textarea, select) { width: 100%; min-width: 0; background: white; border: 1px solid #b6c3d7; border-radius: 7px; padding: .5rem .65rem; font-weight: 400; }
.editor-form textarea { resize: vertical; }
.editor-form small { font-weight: 400; color: var(--muted); }
.editor-status { font-weight: 650; margin-block: .8rem; }
.downloads { padding: 1rem 1.25rem; background: var(--panel); border-left: 3px solid var(--blue); }
.downloads a { color: var(--blue-deep); font-weight: 650; }

/* フッターに運営主体・投稿・問い合わせをまとめる。 */
.footer { background: #182338; color: #fff; }
.footer-inner { padding-block: 2.7rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer .brand { color: #fff; }
.footer p { font-size: .77rem; color: #c6d2e8; margin-top: .55rem; }
.footer-nav { flex-wrap: wrap; }

/* タブレットではタッチ領域と記事の横幅を優先し、ナビと記事一覧を組み替える。 */
@media (max-width: 1050px) {
  .mast-description { display: none; }
  .topics { display: block; }
  .topics h2 { margin-bottom: .6rem; }
  .topic:first-child { padding-left: 0; border: 0; }
  .hero-visual { right: -2%; }
}
@media (max-width: 800px) {
  .mast-inner { min-height: 64px; gap: .8rem; }
  .desk-nav, .nav-cta { display: none; }
  .search-link { margin-left: auto; }
  .mobile-menu { display: block; }
  .mobile-menu summary { width: 40px; height: 40px; display: grid; place-items: center; list-style: none; }
  .bars { width: 20px; height: 12px; border-block: 1.8px solid currentColor; }
  .mobile-menu nav { position: absolute; top: 100%; right: 4.5%; z-index: 2; display: grid; min-width: 180px; padding: .5rem; border: 1px solid var(--rule); border-radius: 12px; background: white; box-shadow: 0 9px 25px #17213922; }
  .mobile-menu a { padding: .6rem .8rem; }
  .hero { width: calc(100% - 24px); }
  .hero-visual { max-width: 58%; right: 0; }
  .hero-visual img { object-position: 82% center; }
  .hero-copy { width: 90%; }
  .topic { gap: .4rem; padding-inline: .45rem; }
  .topic-icon { width: 34px; height: 34px; border-radius: 8px; }
  .topic-icon svg { width: 21px; height: 21px; }
  .story-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-head.illustrated { grid-template-columns: minmax(0, 1.4fr) minmax(180px, .85fr); }
  .reading-grid { display: block; }
  .toc { position: static; padding: 1rem 1.2rem; border: 0; border-radius: 10px; background: var(--panel); margin-bottom: 1.75rem; }
  .toc ol { margin-bottom: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

/* 狭い画面は写真と文章を上下に配置し、メニュー・表・検索を片手で操作できる幅にする。 */
@media (max-width: 620px) {
  .mast-inner { min-height: 61px; gap: .5rem; }
  .brand { font-size: 1.29rem; }
  .brand-symbol { width: 29px; height: 29px; }
  .search-link { width: 35px; height: 35px; }
  .hero { display: flex; flex-direction: column; border-radius: 14px; }
  .hero-copy { order: -1; width: 100%; padding: 1.55rem 1.3rem .8rem; }
  .hero h1 { font-size: clamp(2.5rem, 9.5vw, 3.2rem); margin: .75rem 0 .5rem; }
  .hero-deck { max-width: 100%; font-size: .85rem; line-height: 1.75; }
  .wide-break { display: none; }
  .hero-actions { margin-top: 1rem; gap: .7rem 1.05rem; }
  .hero-button { font-size: .84rem; padding: .73rem .9rem; }
  .quiet-link { font-size: .79rem; }
  .hero-visual { position: relative; top: auto; right: auto; z-index: auto; width: 100%; max-width: none; height: clamp(165px, 48vw, 240px); aspect-ratio: auto; background: #cbd1f6; mask-image: linear-gradient(180deg, transparent, #000 7%); }
  .hero-visual img { object-fit: contain; height: 100%; width: auto; max-width: 100%; margin-inline: auto; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 92%, transparent); }
  .topics { padding-block: 1.25rem; }
  .topic-grid { display: grid; grid-template-columns: 1fr; gap: .45rem; }
  .topic, .topic:first-child { min-height: 47px; padding: .26rem .7rem .26rem .35rem; border: 1px solid var(--rule); border-radius: 9px; }
  .topic-text { display: flex; align-items: center; }
  .topic-text small { display: none; }
  .topic-text strong { font-size: .86rem; }
  .section-title { align-items: stretch; flex-direction: column; gap: .75rem; }
  .searchbox { min-height: 42px; }
  .searchbox input { width: 100%; font-size: 1rem; }
  .filters { gap: .35rem; margin-block: .75rem 1rem; }
  .filters button { padding: .35rem .66rem; }
  .story-list { grid-template-columns: 1fr; gap: 1.6rem; }
  .card h3 { font-size: 1.14rem; }
  .directory { grid-template-columns: 1fr; margin-top: 2rem; padding: 1.15rem; }
  .product-list summary > span:first-child { display: grid; gap: .12rem; }
  .reading { padding-bottom: 2rem; }
  .crumb { margin-block: 1rem; }
  .article-head.illustrated { grid-template-columns: 1fr; gap: 1rem; }
  .reading h1 { font-size: 1.76rem; }
  .article-picture { max-height: 230px; width: 100%; }
  .table-scroll table { min-width: 540px; }
  .footer-nav { flex-direction: column; align-items: start; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cover img { transition: none; }
  .card a:hover img { transform: none; }
}
