/* Le Journal de L'aboratelière — 白基調・黒/オレンジ/ブルー（journal.spec §7.1） */
:root {
  --paper: #fff;
  --page: #f6f6f4;
  --ink: #16181d;
  --ink-dim: #5c6066;
  --line: #e2e2df;
  --accent: #ef7a00;   /* オレンジ */
  --link: #1558b0;     /* ブルー */
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.7;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー帯（ファミ通型: 題字＋ナビ＋言語切替を 1 本の黒帯に。これより上に何も置かない。
   帯は左右全幅ベタ付け（.inner の中央固定幅を適用しない） */
.band { background: var(--ink); }
.band-inner {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-height: 48px;
  max-width: none;
  margin: 0;
  padding: 0 16px 0 0;
}
.band-logo {
  display: flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0 18px;
  white-space: nowrap;
}
.band-logo:hover { text-decoration: none; opacity: 0.92; }
.band-nav { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; }
.band-nav a {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 3px 13px 0;
  white-space: nowrap;
  /* 下線は border で描く。inset box-shadow は端数ズーム時に左右へ縦線状に滲むため使わない */
  border-bottom: 3px solid transparent;
}
.band-nav a:hover { text-decoration: none; border-bottom-color: rgba(255, 255, 255, 0.4); }
.band-nav a:focus-visible { outline: none; border-bottom-color: var(--accent); }
.band-nav a.on, .band-nav a.on:hover { border-bottom-color: var(--accent); }
.band-search { margin-left: auto; display: flex; align-items: center; }
.band-search input {
  width: 180px;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: none;
}
.band-search input::placeholder { color: #9aa0a6; }
.band-search input:focus { background: #fff; color: var(--ink); }
.langswitch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.langswitch a { color: #c9ccd1; white-space: nowrap; }
.langswitch a:hover { color: #fff; }
.langswitch a.on {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

/* プラットフォームバー */
.platbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.platbar-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
  overflow-x: auto;
}
.platlabel { color: var(--ink-dim); font-size: 12px; white-space: nowrap; }
.platbar a { white-space: nowrap; }

.main-inner { padding-top: 24px; padding-bottom: 48px; }

/* リード（トップの筆頭記事） */
.lead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}
.lead-body { padding: 20px 24px 20px 0; }
.lead-title { margin: 0 0 10px; font-size: 24px; line-height: 1.4; }
.lead-title a { color: var(--ink); }
.lead-excerpt { color: var(--ink-dim); font-size: 15px; margin: 0 0 10px; }

.section-title {
  font-size: 20px;
  border-left: 5px solid var(--accent);
  padding-left: 10px;
  margin: 0 0 16px;
}
.page-title { margin-top: 4px; }

/* カードグリッド */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 12px 16px 16px; }
.card-title { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.card-title a { color: var(--ink); }
.card-excerpt {
  color: var(--ink-dim);
  font-size: 13px;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { font-size: 12px; color: var(--ink-dim); margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* サムネイル（画像があれば表示。無ければカテゴリ色プレースホルダ。黒/橙/青の 3 色系のみ） */
.thumb, .lead-thumb {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 9;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.thumb img, .lead-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-cat { position: relative; }
.thumb:hover, .lead-thumb:hover { text-decoration: none; }
.thumb-cat {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.cat-press { background: linear-gradient(135deg, #ef7a00, #ffb25e); }
.cat-news { background: linear-gradient(135deg, #1558b0, #5e94d8); }
.cat-features { background: linear-gradient(135deg, #ef7a00, #1558b0); }
.cat-reviews { background: linear-gradient(135deg, #16181d, #4b5563); }
.cat-interviews { background: linear-gradient(135deg, #16181d, #ef7a00); }

/* チップ */
.chip {
  display: inline-block;
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}
.chip-plat { background: #eef3fa; color: var(--link); }
.chip-tag { background: #fdf0e3; color: #b35c00; }
.chip-cat { color: #fff; font-weight: 700; font-size: 12px; }
.chip-cat:hover { text-decoration: none; opacity: 0.9; }

/* 記事ページ */
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px clamp(20px, 5vw, 56px) 40px;
}
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.article-title { font-size: 28px; line-height: 1.45; margin: 10px 0 12px; }
.article-meta { font-size: 13px; color: var(--ink-dim); display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 10px; }
.byline { font-weight: 600; }
.article-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.article-hero { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; }
.article-body { max-width: 720px; font-size: 16px; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { font-size: 20px; border-left: 4px solid var(--accent); padding-left: 8px; margin: 1.6em 0 0.8em; }
.article-body h3 { font-size: 17px; margin: 1.4em 0 0.6em; }
.article-body img { max-width: 100%; height: auto; }
.article-body blockquote { border-left: 3px solid var(--line); margin: 0 0 1.4em; padding: 4px 16px; color: var(--ink-dim); }
.article-body table { border-collapse: collapse; margin: 0 0 1.4em; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 6px 10px; font-size: 14px; }
.article-body code { background: var(--page); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 14px; }

/* 素材ギャラリー（プレスキット添付） */
.assets { margin-top: 24px; }
.assets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.assets-grid img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.trailer-link { font-size: 14px; margin: 12px 0 0; }

/* ファクトシート */
.factsheet { margin-top: 32px; }
.factsheet h2 { font-size: 16px; border-left: 4px solid var(--accent); padding-left: 8px; }
.factsheet table { border-collapse: collapse; width: 100%; max-width: 640px; font-size: 14px; }
.factsheet th, .factsheet td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.factsheet th { background: var(--page); width: 9em; font-weight: 600; }

/* AI 翻訳表示・訂正履歴（journal.spec §6.4・§7.2） */
.ai-note {
  font-size: 13px;
  color: var(--ink-dim);
  background: var(--page);
  border-left: 3px solid var(--link);
  padding: 6px 10px;
  margin: 0 0 10px;
}
.corrections { margin-top: 32px; }
.corrections h2 { font-size: 16px; border-left: 4px solid var(--accent); padding-left: 8px; }
.corrections ul { font-size: 14px; color: var(--ink-dim); padding-left: 20px; }
.corrections time { font-variant-numeric: tabular-nums; }

/* SNS 反応（読み取り専用表示。書き込みは SNS 側） */
.reactions {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  background: var(--page);
}
.reactions h2 { font-size: 16px; margin: 0 0 8px; }
.reactions-empty { color: var(--ink-dim); font-size: 13px; }
.reaction-list { list-style: none; padding: 0; margin: 0 0 12px; }
.reaction-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 14px;
}
.reaction-list strong { font-size: 13px; margin-right: 6px; }
.reaction-body { color: var(--ink); white-space: pre-line; }
.join-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9999px;
}
.join-button:hover { text-decoration: none; opacity: 0.9; }

.empty { color: var(--ink-dim); padding: 32px 0; }

/* 検索ページ */
.search-form { display: flex; gap: 8px; margin-bottom: 24px; }
.search-form input {
  flex: 1;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  background: var(--paper);
}
.search-form button {
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
}

/* フッター（黒） */
.jfooter { background: var(--ink); color: #c9ccd1; padding: 28px 0 36px; font-size: 13px; }
.jfooter a { color: #c9ccd1; }
.jfooter a:hover { color: #fff; }
.footnav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.footnote, .copyright { margin: 4px 0; color: #8a8f96; }

/* レスポンシブ */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .lead { grid-template-columns: 1fr; }
  .lead-body { padding: 0 20px 20px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .band-inner { flex-wrap: wrap; padding: 0; }
  .band-logo { flex: 1 1 auto; font-size: 17px; min-height: 44px; }
  .langswitch { margin-left: 0; padding: 0 12px; }
  .band-nav { flex-basis: 100%; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .band-nav a { padding: 10px 12px; }
  .band-search { margin-left: 0; padding: 6px 12px 6px 0; flex: 1; }
  .band-search input { width: 100%; }
  .article { padding: 24px 16px 32px; }
  .article-title { font-size: 22px; }
}
