/* =========================================================================
 * DEMO サンプルサイト — 共通スタイル
 * -------------------------------------------------------------------------
 * ShareDan CMS の速度比較用サンプルサイト（apps/samples）の共有スタイル。
 * 静的HTML版（apps/samples/demo01）と WordPress テーマ版（apps/samples/wp）で
 * 同一のこのファイルを使用する（デザインを 1:1 で一致させるため）。
 *   デザイン: Claude Design「サンプルサイト.dc.html」
 * ========================================================================= */

:root {
  --ink: #1c2b3a;          /* 基本テキスト・濃色背景 */
  --ink-2: #334155;        /* 本文（やや薄） */
  --ink-3: #475569;        /* 補足本文 */
  --muted: #64748b;        /* ラベル・キャプション */
  --muted-2: #94a3b8;      /* さらに薄い補足 */
  --line: #e6ebf1;         /* 罫線（標準） */
  --line-2: #eef1f5;       /* 罫線（薄） */
  --line-3: #f1f5f9;       /* 罫線（最薄） */
  --brand: #1e5a8a;        /* コーポレートブルー */
  --brand-dark: #16466c;   /* リンクホバー */
  --brand-soft: #7fb2d9;   /* 明るいブルー（濃色背景上） */
  --panel: #f6f8fb;        /* セクション交互背景 */
  --panel-2: #fbfcfe;      /* テーブル見出し等 */
  --field-border: #cbd5e1; /* フォーム枠 */
  --req: #b3423a;          /* 必須マーク */

  /* API 計測パネル（ヘッドレスAPIの説明） */
  --api-bg: #f0fbf8;
  --api-border: #b8e6dc;
  --api-get: #0d9488;
  --api-text: #0d7d72;

  /* 速度比較バー */
  --cms: #5ed6c0;          /* ShareDan CMS（速い） */
  --wp: #e0955d;           /* WordPress（遅い） */
  --bar-dark: #0b1220;
  --demo-dark: #0f172a;

  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --serif: 'Noto Serif JP', serif;
  --mono: 'JetBrains Mono', monospace;

  --wrap: 1080px;
}

/* ---- リセット / ベース ---- */
html, body { margin: 0; padding: 0; background: #fff; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
* { box-sizing: border-box; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
button { font-family: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* =========================================================================
 * デモ用バー（最上部）
 * ========================================================================= */
.demo-bar {
  background: var(--demo-dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 28px; gap: 16px; flex-wrap: wrap;
}
.demo-bar__left { display: flex; align-items: center; gap: 12px; }
.demo-bar__title { font-size: 12px; font-weight: 700; color: #fff; }
.demo-bar__title span { color: var(--cms); }
.demo-bar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.demo-bar__note { font-size: 11px; color: #9db2c5; }
.demo-bar__right { display: flex; align-items: center; gap: 10px; }
.demo-bar__label { font-size: 11px; color: #9db2c5; }

.mode-switch { display: flex; background: rgba(255,255,255,.08); border-radius: 5px; padding: 2px; gap: 2px; }
.mode-btn {
  background: transparent; color: #9db2c5; border: none; border-radius: 4px;
  padding: 5px 13px; font-size: 11px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.mode-btn.is-active { background: #fff; color: var(--demo-dark); font-weight: 700; }

.ghost-btn {
  background: rgba(255,255,255,.08); color: #e2e8f0; border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px; padding: 5px 12px; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.api-btn {
  background: rgba(255,255,255,.08); color: #e2e8f0; border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px; padding: 5px 12px; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.api-btn.is-on { background: var(--api-get); color: #fff; border-color: var(--api-get); }

/* =========================================================================
 * 速度比較バー（計測表示ON時のみ）
 * ========================================================================= */
.speed-bar { background: var(--bar-dark); border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 28px; }
.speed-bar__inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.speed-bar__mode { display: flex; align-items: center; gap: 10px; }
.mode-badge {
  font-size: 11px; font-weight: 700; white-space: nowrap; padding: 3px 10px; border-radius: 3px;
  color: var(--cms); background: rgba(94,214,192,.14);
}
.mode-badge.is-wp { color: var(--wp); background: rgba(224,149,93,.14); }
.speed-bar__for { font-size: 11px; color: #9db2c5; }

.speed-bar__meters { display: flex; align-items: flex-end; gap: 22px; flex: 1; min-width: 420px; }
.meter { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; }
.meter__label { font-size: 11px; color: #9db2c5; }
.meter__val { font-size: 13px; font-weight: 700; font-family: var(--mono); }
.meter__val.is-cms { color: var(--cms); }
.meter__val.is-wp { color: var(--wp); }
.meter__track { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; }
.meter__fill { height: 6px; border-radius: 3px; }
.meter__fill.is-cms { background: var(--cms); }
.meter__fill.is-wp { background: var(--wp); }

.speed-bar__ratio { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.speed-bar__ratio-num { font-size: 20px; font-weight: 900; color: var(--cms); font-family: var(--mono); }
.speed-bar__ratio-txt { font-size: 11px; color: #9db2c5; }
.speed-bar__note { max-width: var(--wrap); margin: 10px auto 0; font-size: 12px; color: #9db2c5; line-height: 1.75; }

/* 計測表示のON/OFF（body.show-api で制御） */
.speed-bar, .api-panel { display: none; }
body.show-api .speed-bar { display: block; }
body.show-api .api-panel { display: flex; }

/* =========================================================================
 * ヘッダー
 * ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px; height: 66px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; }
.brand:hover { color: inherit; }
.brand__logo { font-size: 20px; font-weight: 900; letter-spacing: .04em; }
.brand__logo span { color: var(--brand); }
.brand__sub { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.gnav { display: flex; align-items: center; gap: 26px; }
.gnav a { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.gnav a.gnav__cta { color: #fff; font-weight: 600; background: var(--brand); padding: 9px 18px; border-radius: 4px; }
.gnav a.gnav__cta:hover { color: #fff; background: var(--brand-dark); }

/* =========================================================================
 * ヒーロー
 * ========================================================================= */
.hero { background: var(--ink); color: #fff; }
.hero__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 72px 28px 78px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--brand-soft); margin-bottom: 20px; }
.hero__title { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1.5; margin: 0 0 22px; }
.hero__lead { font-size: 15px; line-height: 2; color: #c4d2df; margin: 0 0 32px; max-width: 430px; }
.hero__actions { display: flex; gap: 12px; }
.hero__visual {
  height: 290px; background: #243648; border: 1px solid #38506a; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.hero__visual b { font-size: 12px; color: #7d93a9; font-weight: 600; }
.hero__visual small { font-size: 11px; color: #5f7690; }

/* ボタン */
.btn { display: inline-block; font-size: 14px; font-weight: 600; padding: 13px 26px; border-radius: 4px; cursor: pointer; }
.btn--primary { background: var(--brand); color: #fff; border: none; }
.btn--primary:hover { color: #fff; background: var(--brand-dark); }
.btn--ghost-dark { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn--ghost-dark:hover { color: #fff; }
.btn--outline { background: #fff; color: var(--brand); border: 1px solid #b7cde0; font-size: 13px; padding: 11px 26px; }

/* =========================================================================
 * セクション共通
 * ========================================================================= */
.section { }
.section--panel { background: var(--panel); }
.section__inner { max-width: var(--wrap); margin: 0 auto; padding: 72px 28px; }
.section__inner--tight { padding: 64px 28px; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--brand); }
.sec-title { font-size: 21px; font-weight: 700; margin-top: 10px; }

.split { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }

/* API 計測パネル */
.api-panel {
  align-items: center; gap: 10px; margin-bottom: 24px;
  background: var(--api-bg); border: 1px solid var(--api-border); border-radius: 6px;
  padding: 9px 14px; flex-wrap: wrap;
}
.api-panel--stack { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 14px; }
.api-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.api-method { font-size: 10px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.api-method--get { background: var(--api-get); }
.api-method--post { background: var(--brand); }
.api-endpoint { font-size: 12px; color: var(--api-text); font-family: var(--mono); }
.api-endpoint--post { color: var(--brand); }
.api-desc { font-size: 11px; color: var(--muted); }
.api-ms { font-size: 11px; color: var(--api-get); font-weight: 600; margin-left: auto; font-family: var(--mono); }

/* =========================================================================
 * 代表メッセージ
 * ========================================================================= */
.message__title { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.6; margin: 0 0 22px; }
.message p { font-size: 15px; line-height: 2.1; color: var(--ink-2); margin: 0 0 16px; }
.message p:last-of-type { margin-bottom: 28px; }
.rep { display: flex; align-items: center; gap: 14px; }
.rep__photo {
  width: 52px; height: 52px; border-radius: 50%; background: var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #8296ab;
}
.rep__role { font-size: 12px; color: var(--muted); }
.rep__name { font-size: 16px; font-weight: 700; }

/* =========================================================================
 * 会社概要
 * ========================================================================= */
.profile { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.profile th {
  width: 170px; text-align: left; padding: 15px 20px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line-2); vertical-align: top;
}
.profile td { padding: 15px 20px; font-size: 14px; color: #1e293b; border-bottom: 1px solid var(--line-2); line-height: 1.8; }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: none; }
.profile td small { font-size: 13px; color: var(--muted); }

/* =========================================================================
 * お知らせ
 * ========================================================================= */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.tabs--center { justify-content: center; margin-bottom: 22px; }
.tab {
  background: #fff; color: var(--ink-3); border: 1px solid #dde3ea; border-radius: 20px;
  padding: 6px 15px; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.tab.is-active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }

.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: flex; gap: 18px; align-items: center; padding: 18px 4px;
  border-bottom: 1px solid var(--line-2); color: inherit;
}
.news-item:hover { color: inherit; background: #fafcfe; }
.news-item__date { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; width: 88px; flex-shrink: 0; }
.news-item__title { font-size: 14.5px; font-weight: 500; line-height: 1.6; flex: 1; }
.news-item__arrow { color: #cbd5e1; font-size: 15px; }
.news-count { font-size: 12px; color: var(--muted-2); margin-top: 14px; }

/* カテゴリチップ */
.chip { padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.chip--event { color: #1e5a8a; background: #e8f0fb; }
.chip--product { color: #0d9488; background: #e0f5f1; }
.chip--info { color: #475569; background: #f1f5f9; }
.chip--press { color: #7c5db8; background: #f0ebfa; }

/* =========================================================================
 * 導入事例
 * ========================================================================= */
.center-head { text-align: center; margin-bottom: 36px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.work-card__thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #8296ab; font-weight: 600; }
.work-card__thumb--a { background: #dbe3ec; }
.work-card__thumb--b { background: #d3dce6; }
.work-card__body { padding: 18px 20px; }
.work-card__cat { font-size: 11px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.work-card__title { font-size: 15px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.work-card__desc { font-size: 12.5px; color: var(--muted); line-height: 1.85; margin: 0; }
/* =========================================================================
 * 製品ラインアップ（固定コンテンツ・テーブル形式を横スライドのカードで表示。#products）
 * ========================================================================= */
.products-head-inner { max-width: var(--wrap); margin: 0 auto; padding: 72px 28px 24px; }
.products-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.products-lead { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 12px 0 0; max-width: 520px; }
.products-nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.products-count { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.pc-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #b7cde0;
  background: #fff; color: var(--brand); font-size: 17px; line-height: 1; font-family: inherit;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 0 2px;
}
.pc-arrow:disabled { border-color: var(--line); color: #cbd5e1; cursor: default; }

.products-viewport { max-width: var(--wrap); margin: 0 auto; padding: 0 28px 24px; overflow: hidden; }
.products-track { display: flex; gap: 20px; transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1); }

.product-card {
  width: 252px; flex-shrink: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; color: inherit; display: flex; flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { color: inherit; border-color: #b7cde0; box-shadow: 0 4px 14px rgba(28, 43, 58, 0.08); }
.product-card__thumb { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.product-card__thumb--a { background: #dbe3ec; }
.product-card__thumb--b { background: #d3dce6; }
.product-card__photo { font-size: 11px; color: #8296ab; font-weight: 600; }
.product-card__code { font-size: 10px; color: #a8b6c4; font-family: var(--mono); }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__tags { display: flex; align-items: center; gap: 6px; }
.product-card__new { font-size: 10px; font-weight: 700; color: #fff; background: var(--req); padding: 2px 7px; border-radius: 3px; }
.product-card__name { font-size: 15px; font-weight: 700; line-height: 1.55; }
.product-card__desc { font-size: 12.5px; color: var(--muted); line-height: 1.85; margin: 0; flex: 1; }
.product-card__spec { border-top: 1px solid var(--line-2); padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.product-card__spec-label { font-size: 11px; color: var(--muted-2); }
.product-card__spec-value { font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

.products-dots { max-width: var(--wrap); margin: 0 auto; padding: 0 28px 72px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.pc-dot { width: 7px; height: 7px; border-radius: 4px; border: none; padding: 0; cursor: pointer; background: #d3dce6; transition: width 0.25s ease, background 0.25s ease; }
.pc-dot.is-active { width: 22px; background: var(--brand); }

/* 製品タグのチップ配色（デザインの tagColors） */
.chip--pmachine { color: #1e5a8a; background: #e8f0fb; }
.chip--mold { color: #0d9488; background: #e0f5f1; }
.chip--micro { color: #7c5db8; background: #f0ebfa; }
.chip--heat { color: #a8632c; background: #fbeee2; }
.chip--inspect { color: #475569; background: #f1f5f9; }

/* =========================================================================
 * FAQ
 * ========================================================================= */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.faq-q {
  width: 100%; background: #fff; border: none; padding: 17px 20px;
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer; text-align: left;
}
.faq-q__mark { font-size: 14px; font-weight: 900; color: var(--brand); line-height: 1.6; flex-shrink: 0; }
.faq-q__text { font-size: 14.5px; font-weight: 600; line-height: 1.6; flex: 1; color: var(--ink); }
.faq-q__icon { font-size: 15px; color: var(--muted-2); flex-shrink: 0; line-height: 1.4; transition: transform .15s ease; }
.faq-a { padding: 2px 20px 20px 52px; border-top: 1px solid var(--line-3); display: none; }
.faq-a__inner { display: flex; gap: 12px; padding-top: 16px; }
.faq-a__mark { font-size: 14px; font-weight: 900; color: var(--muted-2); line-height: 1.8; flex-shrink: 0; margin-left: -40px; }
.faq-a__text { font-size: 14px; color: var(--ink-3); line-height: 1.95; margin: 0; }
.faq-item.is-open .faq-a { display: block; }
.faq-item.is-open .faq-q__icon { transform: rotate(45deg); }

/* =========================================================================
 * お問い合わせ
 * ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.contact-lead { font-size: 13px; color: var(--muted); line-height: 1.95; margin: 0 0 22px; }
.contact-title { margin-bottom: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.contact-card__label { font-size: 11px; font-weight: 600; color: var(--muted-2); }
.contact-card__tel { font-size: 16px; font-weight: 700; margin-top: 2px; }
.contact-card__hours { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.contact-card__fax { font-size: 14px; font-weight: 600; margin-top: 2px; }
.contact-card__block { border-top: 1px solid var(--line-2); padding-top: 12px; }

.form-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 30px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--req); }
.field input, .field select, .field textarea {
  border: 1px solid var(--field-border); border-radius: 4px; padding: 11px 12px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.field textarea { resize: vertical; line-height: 1.8; }

.dropzone { border: 1px dashed #b8c4d0; border-radius: 4px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--panel-2); }
.dropzone__text { font-size: 13px; color: var(--ink-3); }
.dropzone__or { font-size: 12px; color: var(--muted-2); }
.dropzone__btn { background: #fff; color: var(--brand); border: 1px solid #b7cde0; border-radius: 4px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; }
.field-hint { font-size: 11px; color: var(--muted-2); }

.consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.consent input { margin-top: 3px; }

.turnstile { display: flex; align-items: center; gap: 12px; border: 1px solid #e2e8f0; border-radius: 4px; padding: 12px 14px; background: var(--panel-2); }
.turnstile__box { width: 22px; height: 22px; border: 2px solid var(--field-border); border-radius: 3px; flex-shrink: 0; }
.turnstile__label { font-size: 12px; color: var(--ink-3); flex: 1; }
.turnstile__brand { font-size: 10px; color: var(--muted-2); text-align: right; line-height: 1.5; }

.form-submit { background: var(--brand); color: #fff; border: none; border-radius: 4px; padding: 15px; font-size: 15px; font-weight: 700; cursor: pointer; }
.form-submit:hover { background: var(--brand-dark); }

.form-success { display: none; flex-direction: column; align-items: center; gap: 14px; padding: 48px 0; }
.form-box.is-sent .form { display: none; }
.form-box.is-sent .form-success { display: flex; }
.form-success__check { width: 52px; height: 52px; border-radius: 50%; background: #e7f6ee; color: #0e7a4c; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.form-success__title { font-size: 17px; font-weight: 700; }
.form-success__text { font-size: 13px; color: var(--muted); line-height: 1.9; text-align: center; margin: 0; max-width: 400px; }
.form-success__again { background: #fff; color: var(--brand); border: 1px solid #b7cde0; border-radius: 4px; padding: 10px 22px; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 6px; }

/* =========================================================================
 * フッター
 * ========================================================================= */
.site-footer { background: var(--ink); color: #8fa3b8; }
.site-footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 34px 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.site-footer__logo { font-size: 16px; font-weight: 900; color: #fff; letter-spacing: .04em; }
.site-footer__logo span { color: var(--brand-soft); }
.site-footer__addr { font-size: 11px; margin-top: 6px; }
.site-footer__right { font-size: 11px; text-align: right; line-height: 1.8; }
.site-footer__right span { color: #5f7690; }

/* =========================================================================
 * 投稿詳細（記事）— posts/news/[slug].astro（公開版）と preview/posts/news（プレビュー版）で共通
 * -------------------------------------------------------------------------
 * マークアップは src/lib/post-article.mjs（renderPostArticle）が生成。本文（.article__body）は
 * ProseMirror JSON をHTML化したもの（段落・見出し・リスト・画像・リンク等）を素直に組版する。
 * ========================================================================= */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 56px 28px 80px; }
.article__head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 30px; }
.article__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.article__date { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.article__title { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.55; margin: 0; color: var(--ink); }
.article__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.article__tags .tag { font-size: 12px; color: var(--muted); background: var(--line-3); border-radius: 3px; padding: 3px 9px; }

.article__eyecatch { margin: 0 0 32px; }
.article__eyecatch img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }

/* 本文（ProseMirror → HTML）の組版 */
.article__body { font-size: 15.5px; line-height: 2; color: var(--ink-2); }
.article__body > :first-child { margin-top: 0; }
.article__body > :last-child { margin-bottom: 0; }
.article__body p { margin: 0 0 20px; }
.article__body h2 { font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.5; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.article__body h3 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5; margin: 32px 0 12px; }
.article__body h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 24px 0 10px; }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-left: 1.5em; }
.article__body li { margin: 0 0 8px; }
.article__body ul[data-type="taskList"] { list-style: none; padding-left: 0; }
.article__body li[data-type="taskItem"] { display: flex; align-items: baseline; gap: 8px; }
.article__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article__body a:hover { color: var(--brand-dark); }
.article__body blockquote { margin: 0 0 20px; padding: 6px 18px; border-left: 3px solid var(--brand-soft); color: var(--ink-3); background: var(--panel); border-radius: 0 4px 4px 0; }
.article__body img { border-radius: 6px; margin: 8px 0; }
.article__body hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
.article__body code { font-family: var(--mono); font-size: .9em; background: var(--line-3); padding: 2px 6px; border-radius: 3px; }
.article__body pre { background: var(--bar-dark); color: #e2e8f0; border-radius: 6px; padding: 16px 18px; overflow-x: auto; margin: 0 0 20px; }
.article__body pre code { background: none; padding: 0; color: inherit; font-size: 13px; }
.article__body mark { padding: 0 2px; border-radius: 2px; }
.article__body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14.5px; display: block; overflow-x: auto; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.article__body th { background: var(--panel); font-weight: 700; color: var(--ink); }
.article__body td > :last-child, .article__body th > :last-child { margin-bottom: 0; }

/* 関連リンク */
.article__related { margin-top: 40px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.article__related-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 0 0 12px; }
.article__related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.article__related-list a { font-size: 14px; color: var(--brand); font-weight: 500; word-break: break-word; }
.article__related-list a::before { content: '›'; color: var(--muted-2); margin-right: 8px; font-weight: 700; }
.article__related-list a:hover { color: var(--brand-dark); }

/* 一覧へ戻る */
.article__back { display: inline-block; margin-top: 40px; font-size: 13px; font-weight: 600; color: var(--brand); }
.article__back:hover { color: var(--brand-dark); }

/* =========================================================================
 * プレビュー（preview/news/index.astro）— バナー／読み込み中・エラー表示
 * ========================================================================= */
.preview-banner {
  display: flex; align-items: center; gap: 10px;
  background: #fff7ed; border-bottom: 1px solid #fbd9a8; color: #9a5b1a;
  padding: 10px 28px; font-size: 12.5px; line-height: 1.6;
}
.preview-banner__dot { width: 8px; height: 8px; border-radius: 50%; background: #e0955d; flex-shrink: 0; }
.preview-banner__text strong { font-weight: 700; }

.preview-status {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 72px 0; color: var(--muted); font-size: 14px;
}
.preview-status__spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand); animation: preview-spin .8s linear infinite;
}
@keyframes preview-spin { to { transform: rotate(360deg); } }
.preview-status--error { color: var(--ink-2); }
.preview-status__icon {
  width: 46px; height: 46px; border-radius: 50%; background: #fdecea; color: var(--req);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900;
}
.preview-status__msg { font-size: 14px; line-height: 1.9; color: var(--ink-3); margin: 0; max-width: 420px; }

/* =========================================================================
 * レスポンシブ（デザインはPC基準。狭い画面では段組み・余白を調整する）
 * ========================================================================= */
/* タブレット幅：デモバー右側の操作群が溢れないよう折り返す */
@media (max-width: 1024px) {
  .demo-bar__right { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .works-grid { grid-template-columns: 1fr; }
  .gnav { gap: 14px; }
  .hero__title { font-size: 34px; }
}

@media (max-width: 640px) {
  /* デモ用バー：左右を縦積みにし、横スクロール（崩れの主因）を防ぐ */
  .demo-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 20px; }
  .demo-bar__left { flex-wrap: wrap; }
  .demo-bar__note { flex-basis: 100%; }
  .demo-bar__right { justify-content: flex-start; flex-wrap: wrap; row-gap: 8px; }

  /* ヘッダー・グローバルナビ */
  .site-header__inner { height: auto; padding: 12px 20px; flex-direction: column; gap: 10px; align-items: flex-start; }
  .gnav { flex-wrap: wrap; gap: 10px 16px; }

  /* セクション余白・ヒーロー */
  .section__inner, .section__inner--tight { padding: 48px 20px; }
  .hero__inner { padding: 48px 20px; }
  .hero__title { font-size: 28px; }
  .hero__actions { flex-wrap: wrap; }

  /* お知らせ：日付＋カテゴリを1行目、タイトルを2行目に折り返す */
  .news-item { flex-wrap: wrap; gap: 8px 12px; }
  .news-item__title { flex-basis: 100%; order: 3; }
  .news-item__arrow { display: none; }

  /* 速度比較バー・API計測パネル */
  .speed-bar { padding: 12px 20px; }
  .speed-bar__inner { gap: 14px; }
  .speed-bar__meters { min-width: 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .api-panel { padding: 10px 12px; }
  .api-endpoint { word-break: break-all; }
  .api-ms { margin-left: 0; }

  /* お問い合わせフォーム */
  .form-row2 { grid-template-columns: 1fr; }
  .form-box { padding: 22px 18px; }
  /* ドロップゾーン：横並びだと溢れるため縦積みにする */
  .dropzone { flex-direction: column; gap: 8px; padding: 16px; text-align: center; }

  /* 会社概要テーブル：見出しを値の上に積んでカード状に表示する */
  .profile, .profile tbody, .profile tr, .profile th, .profile td { display: block; width: 100%; }
  .profile tr { border-bottom: 1px solid var(--line-2); }
  .profile tr:last-child { border-bottom: none; }
  .profile th { width: auto; padding: 14px 18px 0; background: transparent; border-bottom: none; }
  .profile td { padding: 4px 18px 14px; border-bottom: none; }

  /* 製品ラインアップ：見出しとスライド操作を縦積みにし、余白を詰める */
  .products-head-inner { padding: 48px 20px 20px; }
  .products-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .products-viewport { padding: 0 20px 20px; }
  .products-dots { padding: 0 20px 48px; }

  /* フッター */
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__right { text-align: left; }

  /* お知らせ詳細（記事）・プレビュー */
  .article-wrap { padding: 36px 20px 56px; }
  .article__title { font-size: 24px; }
  .article__body { font-size: 15px; }
  .article__related { padding: 18px 18px; }
  .preview-banner { padding: 10px 20px; }

  /* パスワードゲート：余白を詰める */
  .pw-gate { padding: 30px 22px 28px; }
}

/* =========================================================================
 * 多言語（9.10）・簡易認証（SCR-104）の追加スタイル
 * ========================================================================= */

/* --- 言語切替（ヘッダー内・デザイン準拠のセグメント） --- */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid #dde3ea; border-radius: 4px; overflow: hidden; }
.lang-switch__item { display: inline-block; padding: 6px 10px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); background: #fff; white-space: nowrap; line-height: 1.2; }
.lang-switch__item:hover { color: var(--brand); background: #f5f8fb; }
.lang-switch__item + .lang-switch__item { border-left: 1px solid #dde3ea; }
.lang-switch__item.is-active { color: #fff; font-weight: 700; background: var(--brand); }
.lang-switch__item.is-active:hover { color: #fff; background: var(--brand); }

/* --- お知らせ一覧の「要パスワード」タグ --- */
.news-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--line-3); border: 1px solid #e2e8f0; padding: 2px 8px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; }
.news-lock__icon { flex-shrink: 0; }

/* --- パスワードゲート（認証前） --- */
.pw-gate { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 40px 40px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.pw-gate__icon { width: 52px; height: 52px; border-radius: 50%; background: #e8f0fb; color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pw-gate__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.pw-gate__lead { font-size: 13.5px; color: var(--muted); line-height: 1.9; margin: 0 0 26px; max-width: 440px; text-wrap: pretty; }
.pw-gate__form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.pw-gate__label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pw-gate__box { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; overflow: hidden; }
.pw-gate__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 90, 138, .12); }
.pw-gate__box.is-error { border-color: #b3423a; box-shadow: 0 0 0 3px rgba(179, 66, 58, .12); }
.pw-gate__input { flex: 1; min-width: 0; border: none; padding: 12px 14px; font-size: 14px; font-family: inherit; outline: none; background: transparent; letter-spacing: .04em; }
.pw-gate__toggle { background: transparent; border: none; border-left: 1px solid #e2e8f0; padding: 0 14px; font-size: 12px; color: var(--brand); font-weight: 600; cursor: pointer; white-space: nowrap; }
.pw-gate__error { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #b3423a; }
.pw-gate__submit { margin-top: 8px; background: var(--brand); color: #fff; border: none; border-radius: 4px; padding: 13px; font-size: 14px; font-weight: 700; cursor: pointer; }
.pw-gate__submit:hover { background: var(--brand-dark); }
.pw-gate__submit:disabled { opacity: .6; cursor: default; }
.pw-gate__hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.8; margin-top: 6px; text-align: center; }
.pw-gate__demo { text-align: center; font-size: 11px; color: var(--muted-2); margin-top: 14px; }
.pw-gate__demo code { font-family: var(--mono); color: var(--muted); background: var(--line-2); padding: 1px 6px; border-radius: 3px; }

/* --- 認証後バナー --- */
.pw-unlocked { display: flex; align-items: center; gap: 8px; background: #e7f6ee; border: 1px solid #bfe5cf; border-radius: 6px; padding: 10px 14px; margin-bottom: 28px; font-size: 12.5px; color: #0e7a4c; }
.pw-unlocked__icon { flex-shrink: 0; }
.pw-unlocked__relock { margin-left: auto; background: transparent; border: none; font-size: 11.5px; color: #0e7a4c; text-decoration: underline; cursor: pointer; font-family: inherit; }

/* --- 翻訳フォールバック注記（指定言語の訳が無く原文を表示している場合） --- */
.article__fallback-note { font-size: 12.5px; color: #8a6d3b; background: #fdf7e8; border: 1px solid #f0e4c0; border-radius: 6px; padding: 10px 14px; margin-bottom: 22px; line-height: 1.7; }

/* --- 繁体字（zh-Hant）は中国語フォントで表示する --- */
html[lang="zh-Hant"] {
  --sans: 'Noto Sans TC', 'PingFang TC', sans-serif;
  --serif: 'Noto Serif TC', serif;
}
