:root {
  color-scheme: light;
  --ink: #1c1916;
  --ink-strong: #161310;
  --accent: #9a6233;
  --muted: #6b6459;
  --body-text: #534d43;
  --card-line: rgba(28, 25, 22, 0.13);
  --paper: #fdfcf8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  /* 背景は少し深い砂色。コンテンツ用の紙パネルが浮き立つように */
  background: #e4dfd3;
  background-attachment: fixed;
  font-family: "Zen Kaku Gothic New", -apple-system, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--ink);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 誌面本体:明るい紙パネル。上下は画面端まで伸び、左右の輪郭をはっきりさせる */
.brief {
  width: 480px;
  max-width: 100%;
  min-height: 100vh;
  /* 上部だけほのかに明るい紙色 */
  background: radial-gradient(circle at 50% -8%, #fdfbf6, #f5f1e8 60%) #f5f1e8;
  border: none;
  border-radius: 0;
  padding-bottom: 60px;
  /* 左右に柔らかい影を落として、机の上の一枚の紙のように見せる */
  box-shadow: rgba(28, 25, 22, 0.16) 0 0 1px,
              rgba(28, 25, 22, 0.10) 0 18px 50px -24px;
}

/* ヘッダーバー */
.brief-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 26px;
  border-bottom: 1.5px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brand-mark { width: 11px; height: 11px; background: var(--accent); display: inline-block; }
.brand-name { font-size: 12.5px; font-weight: 900; letter-spacing: 0.22em; }
.brief-no {
  font-family: "Newsreader", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 日付ブロック */
.brief-lead { padding: 24px 26px 20px; }
.back {
  display: inline-block;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.back:hover { color: var(--accent); }
.brief-date {
  font-family: "Newsreader", serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-top: 14px;
  color: var(--ink);
}
.brief-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-top: 10px;
  text-transform: uppercase;
  font-family: "Newsreader", serif;
  font-style: italic;
}

.divider { height: 1px; background: var(--card-line); }

/* 記事 */
.article { padding: 23px 26px 26px; }
.kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.kicker-date {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-family: "Newsreader", serif;
}
.headline {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}
.headline a { color: inherit; text-decoration: none; }
.headline a:hover { color: var(--accent); }
/* トップの最新記事は大きく出す */
.headline--hero {
  font-size: 31px;
  line-height: 1.38;
}
.summary {
  margin-top: 17px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--body-text);
  text-wrap: pretty;
}

/* 「他の考え方」見出し: 下の選択肢カードと左端を揃える */
.others .kicker { padding: 18px 26px 0; }

/* 「あなたはどう考える？」 */
.prompt-q {
  padding: 26px 26px 4px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

/* 選択肢カード(タイトルのみ・リンク) */
.options {
  padding: 18px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--paper);
  border: 1px solid rgba(28, 25, 22, 0.09);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: rgba(28, 25, 22, 0.5) 0 10px 26px -20px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.option:hover {
  transform: translateY(-1px);
  box-shadow: rgba(28, 25, 22, 0.55) 0 14px 30px -18px;
}
.option-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Newsreader", serif;
  font-size: 17px;
}
.option-label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #211e1a;
  line-height: 1.5;
}
.option-arrow {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 考え方の詳細(コメント)ページ */
.detail { padding: 23px 26px 30px; }
.detail-num {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Newsreader", serif;
  font-size: 21px;
  margin-bottom: 16px;
}
.detail-label {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.6;
  color: var(--ink-strong);
}
.detail-comment {
  margin-top: 16px;
  font-size: 14px;
  line-height: 2.05;
  color: var(--body-text);
  text-wrap: pretty;
}
.detail-source {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--card-line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.detail-source a { color: var(--accent); text-decoration: none; }
.detail-source a:hover { text-decoration: underline; }

/* アーカイブ一覧 */
.archive-head {
  padding: 22px 26px 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  font-family: "Newsreader", serif;
  font-style: italic;
}
.archive { padding: 6px 26px 30px; }
.archive-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--card-line);
  text-decoration: none;
  color: var(--ink);
}
.archive-item:last-child { border-bottom: none; }
.archive-item[hidden] { display: none; } /* display:flex が UA の [hidden] を上書きするため明示 */
.archive-more {
  display: block;
  width: calc(100% - 52px);
  margin: 4px 26px 30px;
  padding: 11px;
  background: none;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.archive-more:hover { background: rgba(28, 25, 22, 0.04); }

/* アーカイブのページ送り */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 26px 36px;
}
.pager-link {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.pager-link:hover { color: var(--accent); }
.pager-link.is-disabled { color: var(--card-line); pointer-events: none; }
.pager-count {
  font-family: "Newsreader", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.archive-date {
  font-family: "Newsreader", serif;
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.archive-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink-strong);
}
.archive-item:hover .archive-title { color: var(--accent); }

/* みんなの選択(円グラフ) */
/* SNSシェア */
.share { padding: 18px 26px 26px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 9px; }
.share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--card-line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.share-btn svg { display: block; }
/* ホバーで各社のブランドカラーに */
.share-btn[data-share="x"]:hover { color: #000; border-color: #000; }
.share-btn[data-share="threads"]:hover { color: #000; border-color: #000; }
.share-btn[data-share="line"]:hover { color: #06c755; border-color: #06c755; }
.share-btn[data-share="facebook"]:hover { color: #1877f2; border-color: #1877f2; }
.share-btn[data-share="hatena"]:hover { color: #00a4de; border-color: #00a4de; }
.share-btn[data-share="copy"]:hover { color: var(--accent); border-color: var(--accent); }

/* コピー完了ツールチップ */
.share-btn.is-done { color: var(--accent); border-color: var(--accent); }
.share-btn.is-done::after {
  content: "リンクをコピーしました";
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 9px;
  background: var(--ink-strong);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 6px;
  pointer-events: none;
}

.votes { padding: 18px 26px 26px; }
.pie {
  display: flex;
  justify-content: center;
  margin: 14px 0 18px;
}
.pie svg { max-width: 200px; height: auto; }
.vote-legend { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.vote-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--body-text);
}
.vote-row.is-mine { font-weight: 700; color: var(--ink-strong); }
.vote-row.is-mine .vote-label::after {
  content: " ・あなたの選択";
  color: var(--accent);
  font-size: 11px;
}
.swatch {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--muted);
}
.vote-label { flex: 1; line-height: 1.5; }
.pct {
  flex-shrink: 0;
  font-family: "Newsreader", serif;
  font-size: 16px;
  color: var(--ink-strong);
}
.vote-empty { font-size: 12px; color: var(--muted); text-align: center; }

/* 前回選択した肢は塗りつぶしで示す(テキスト表示なし) */
.option.is-prev {
  background: var(--accent);
  border-color: var(--accent);
}
.option.is-prev .option-num {
  border-color: rgba(253, 252, 248, 0.7);
  color: var(--paper);
}
.option.is-prev .option-label { color: var(--paper); }
.option.is-prev .option-arrow {
  background: var(--paper);
  color: var(--accent);
}

/* コメント欄 */
.comments { padding: 18px 26px 30px; }

/* レコメンド(コメント下) */
.recommend { padding: 18px 26px 30px; }

.comment-form { margin-bottom: 22px; }
/* 名前まわり: 本文の右上に寄せる */
.comment-form-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
}
.comment-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  max-width: 100%;
}
.comment-name-row[hidden] { display: none; }
.comment-name-input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  background: var(--paper);
  border: 1px solid rgba(28, 25, 22, 0.16);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
}
.comment-name-input:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-name-input::placeholder { color: var(--muted); }
.comment-name-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.comment-name-clear:hover { background: rgba(28, 25, 22, 0.07); color: var(--ink); }
.comment-input {
  width: 100%;
  resize: vertical;
  min-height: 76px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid rgba(28, 25, 22, 0.16);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.comment-input:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-input::placeholder { color: var(--muted); }
.comment-name-toggle {
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.comment-name-toggle[hidden] { display: none; }
.comment-name-toggle:hover { text-decoration: underline; }
.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.comment-count {
  font-family: "Newsreader", serif;
  font-size: 12px;
  color: var(--muted);
}
.comment-submit {
  border: none;
  background: var(--accent);
  color: var(--paper);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.comment-submit:hover { transform: translateY(-1px); }
.comment-submit:disabled { opacity: 0.5; cursor: default; transform: none; }
.comment-error {
  margin-top: 8px;
  font-size: 12px;
  color: #a4332a;
}

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.comment { border-top: 1px solid var(--card-line); padding-top: 16px; }
.comment:first-child { border-top: none; padding-top: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.comment-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-strong);
}
.comment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-strong);
}
.comment-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted);
}
.comment-time {
  font-family: "Newsreader", serif;
  font-size: 12px;
  color: var(--muted);
}
.comment-body {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--body-text);
  white-space: pre-wrap;
  word-break: break-word;
}
/* 長文は3行で切り、三点リーダ表示。クリックで開閉するアコーディオン。 */
.comment-body--clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.comment-body--expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.comment-toggle {
  margin-top: 4px;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.comment-toggle:hover { text-decoration: underline; }
.comment-more {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  background: none;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
}
.comment-more[hidden] { display: none; }
.comment-more:hover { background: rgba(28, 25, 22, 0.04); }
.comment-empty { font-size: 12px; color: var(--muted); text-align: center; }

/* フッター（誌面と同じ480pxの段に揃える） */
.site-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 0 48px;
}
.site-footer-inner {
  width: 480px;
  max-width: 100%;
  padding: 26px 26px 0;
  text-align: center;
  border-top: 1.5px solid rgba(28, 25, 22, 0.18);
}
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.site-footer-mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
  display: inline-block;
}
.site-footer-name { font-size: 12px; font-weight: 900; letter-spacing: 0.22em; }
.site-footer-note {
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.site-footer-copy {
  margin-top: 14px;
  font-family: "Newsreader", serif;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 先頭に戻るボタン（右下固定・控えめな誌面なじみ） */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 2px 0;
  border: none;
  border-top: 1.5px solid var(--ink);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.72;
  transition: color 0.15s ease, opacity 0.15s ease;
  z-index: 50;
}
.to-top-mark {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
}
.to-top-label { font-size: 11px; font-weight: 900; letter-spacing: 0.22em; }
.to-top:hover { color: var(--ink); opacity: 1; }
.to-top[hidden] { display: none; }

/* ダークモードでも明るい誌面を維持 */
@media (prefers-color-scheme: dark) {
  body { background: radial-gradient(circle at 50% 0%, #eceae3, #dddad2) #e3e0d9; }
}
