/*!
Theme Name: reboot-japan
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: REBOOT JAPAN theme
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: reboot-japan
*/

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

:root {
  --accent:      #e8000d;
  --accent-dark: #9e0009;
  --text:        #111111;
  --text-muted:  #555555;
  --bg:          #ffffff;
  --bg-light:    #f8f8f8;
  --line:        #cccccc;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
}

/* ── アクセントライン ── */
.top-accent {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
  z-index: 100;
}

/* ── ヘッダー ── */
.site-header {
  position: relative;
  padding: 24px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.site-header__logo-wrap {
  position: absolute;
  top: 24px;
  left: 24px;
  text-align: left;
}

.site-header__sub {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2px;
  line-height: 1.4;
}

.site-header__logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-header__logo .highlight {
  color: var(--accent);
}

/* ── ヘッダーヒーロー ── */
.site-header__hero {
  padding-top: 16px;
}

/* ── ヘッダータグライン ── */
.site-header__tagline {
  line-height: 1.6;
  font-family: 'Noto Sans JP', sans-serif;
}

.site-header__tagline-red {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.site-header__tagline-black {
  font-size: clamp(15px, 3vw, 20px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

/* ── ヘッダー統計 ── */
.site-header__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.site-header__stat {
  text-align: center;
}

.site-header__stat-num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 10vw, 72px);
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-header__stat-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-left: 4px;
}

.site-header__stat-sub {
  display: block;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 560px) {
  .site-header__logo-wrap {
    position: static;
    text-align: center;
    margin-bottom: 16px;
  }
  .site-header__hero {
    padding-top: 0;
  }
}

/* ── ナビゲーション ── */
.site-nav {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

/* PC: 横並び */
.site-nav #primary-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav #primary-menu li a {
  display: block;
  padding: 14px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.site-nav #primary-menu li a:hover {
  color: var(--accent);
}

.site-nav #primary-menu li.current-menu-item > a {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ハンバーガーボタン：PCでは非表示 */
.site-nav__toggle {
  display: none;
}

/* スマホ */
@media (max-width: 640px) {
  .site-nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: flex-end;
  }

  .site-nav__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
  }

  /* メニューは初期非表示 */
  .site-nav #primary-menu {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
  }

  /* .toggled で表示 */
  .site-nav.toggled #primary-menu {
    display: flex;
  }

  .site-nav #primary-menu li a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
  }

  /* ✕ アニメーション */
  .site-nav.toggled .site-nav__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav.toggled .site-nav__bar:nth-child(2) {
    opacity: 0;
  }
  .site-nav.toggled .site-nav__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── サイトラッパー（2カラムグリッド） ── */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0 48px;
  align-items: start;
}

/* ── メインコンテンツ（トップページなど site-wrapper なしの場合） ── */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  min-width: 0;
}

/* site-wrapper 内の .main は幅管理をsite-wrapperに委ねる */
.site-wrapper .main {
  max-width: none;
  margin: 0;
  padding: 60px 0 100px;
}

/* ── 投票セクション ── */
.poll {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 40px 32px;
  margin-bottom: 40px;
}

.poll__label {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.poll__question {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
}

.poll__notice {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.poll__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.poll__btn {
  padding: 20px 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 3.5vw, 22px);
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  position: relative;
  overflow: hidden;
}

.poll__btn:hover { opacity: 0.88; }
.poll__btn:active { transform: scale(0.97); }
.poll__btn:disabled { cursor: not-allowed; opacity: 0.5; }
.poll__btn--yes { background: var(--accent); color: #fff; }
.poll__btn--no  { background: #222; color: #fff; }

.poll__voted-msg {
  display: none;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.poll__voted-msg.visible { display: block; }

.poll__results-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.poll__stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.poll__stat { display: flex; align-items: baseline; gap: 6px; }
.poll__stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.1em; }
.poll__stat-number { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: var(--text); }
.poll__stat-unit { font-size: 13px; color: var(--text-muted); }

.poll__bar-item { margin-bottom: 18px; }

.poll__bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.poll__bar-name { font-weight: 700; font-size: 15px; }
.poll__bar-votes { font-weight: 400; font-size: 12px; color: var(--text-muted); }
.poll__bar-percent { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--text-muted); }
.poll__bar-track { height: 10px; background: #e8e8e8; overflow: hidden; }
.poll__bar-fill { height: 100%; width: 0%; transition: width 0.8s ease; }
.poll__bar-fill--yes { background: var(--accent); }
.poll__bar-fill--no  { background: #222; }

.poll__disclaimer {
  margin-top: 28px;
  font-size: 11px;
  color: #aaa;
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ── 年表 ── */
.timeline { margin-bottom: 40px; }

.timeline__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.timeline__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 3.5vw, 20px);
}

.timeline__toggle {
  background: none;
  border: 1px solid var(--line);
  padding: 6px 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}

.timeline__toggle:hover { border-color: var(--accent); color: var(--accent); }

.timeline__label {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline__body {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.timeline__body.collapsed {
  max-height: 280px;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.timeline__body.expanded {
  max-height: 9999px;
  -webkit-mask-image: none;
  mask-image: none;
}

.timeline__year {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.timeline__year:first-child { margin-top: 0; }

.timeline__item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.timeline__item:last-child { border-bottom: none; }

.timeline__date {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
  min-width: 60px;
  padding-top: 2px;
}

.timeline__text { font-size: 13px; line-height: 1.8; color: var(--text-muted); }
.timeline__text strong { color: var(--text); }
.timeline__note { font-size: 11px; color: #aaa; margin-top: 16px; }

/* ── 署名セクション ── */
.petition {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 40px 32px;
  margin-bottom: 40px;
}

.petition__label {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.petition__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 28px;
}

.petition__body {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 24px;
}

.petition__step-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 32px 0 16px;
}

.petition__step {
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.petition__step h4 { font-weight: 900; font-size: 14px; margin-bottom: 8px; color: var(--accent); }
.petition__step p  { font-size: 14px; line-height: 1.8; color: var(--text-muted); }

.petition__note {
  font-size: 11px;
  color: #aaa;
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 28px;
}

/* ── CTA ── */
.cta {
  background: var(--text);
  color: #fff;
  padding: 48px 32px;
  margin-bottom: 40px;
  text-align: center;
}

.cta__badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(15px, 3.5vw, 20px);
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  margin-bottom: 24px;
}

.cta__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(17px, 4vw, 24px);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta__body {
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta__btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(15px, 3.5vw, 18px);
  letter-spacing: 0.08em;
  padding: 20px 48px;
  transition: opacity 0.2s, transform 0.1s;
}

.cta__btn:visited { color: #fff; }
.cta__btn:hover  { opacity: 0.88; }
.cta__btn:active { transform: scale(0.97); }

/* ── フッター ── */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #aaa;
}

/* ── 固定ページ ── */
.page-header {
  margin-bottom: 40px;
}

.page-header__label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-header__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 16px;
}

.page-header__body {
  font-size: 14px;
  line-height: 2;
  color: var(--text-muted);
}

/* ── フォームラッパー ── */
.form-wrapper {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 40px 40px 48px;
  margin-bottom: 40px;
}

@media (max-width: 560px) {
  .form-wrapper {
    padding: 28px 20px 36px;
  }
}

/* MyASPデフォルトタイトル非表示 */
.content_title { display: none !important; }

/* フォーム注記 */
.form-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.9;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* 戻るリンク */
.back-link {
  margin-top: 40px;
  text-align: center;
}

.back-link a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.back-link a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.entry-content p {
  font-size: 15px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 1.6em;
}

.entry-content h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.5;
  color: var(--text);
  margin: 2em 0 0.8em;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.entry-content h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 3.5vw, 18px);
  line-height: 1.5;
  color: var(--text);
  margin: 1.6em 0 0.6em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.6em 1.5em;
  font-size: 15px;
  line-height: 2;
  color: var(--text);
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
}

.entry-content a:hover {
  opacity: 0.8;
}

.entry-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.edit-link a {
  color: var(--text-muted);
  font-size: 12px;
}

/* ── 署名フォーム上書き ── */
.content_form { font-family: 'Noto Sans JP', sans-serif; }
.content_form .input_unit { margin-bottom: 20px; }
.content_form .my_column.my_left { margin-bottom: 6px; }

.content_form .form_input_label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.content_form .form_input_label.required::after {
  content: '必須';
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.content_form .form_input_input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.content_form .form_input_input:focus { border-color: var(--accent); }

.content_form .checkbox_frame { display: flex; align-items: center; gap: 10px; }
.content_form .checkbox_input input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.content_form .checkbox_label label { font-size: 14px; color: var(--text); cursor: pointer; }
.content_form .form_input_submit { margin-top: 28px; }

.content_form .form_input_submit input[type="submit"] {
  width: 100%;
  padding: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 3.5vw, 20px);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.content_form .form_input_submit input[type="submit"]:hover  { opacity: 0.88; }
.content_form .form_input_submit input[type="submit"]:active { transform: scale(0.98); }

/* ── レスポンシブ ── */
@media (max-width: 480px) {
  .poll { padding: 28px 20px; }
  .poll__buttons { grid-template-columns: 1fr; }
  .poll__question { font-size: 15px; }
}

/* ── サイドバー（tablet以下は1カラム） ── */
@media (max-width: 900px) {
  .site-wrapper {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .widget-area {
    border-top: 1px solid var(--line);
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ── サイドバー ── */
.widget-area {
  padding-top: 60px;
  min-width: 0;
}

.widget-area .widget {
  margin-bottom: 40px;
}

.widget-area .widget-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 16px;
}

.widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-area ul li {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.6;
}

.widget-area ul li:last-child {
  border-bottom: none;
}

.widget-area ul li a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.widget-area ul li a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ── 画像はみ出し防止 ── */
.main img,
.entry-content img,
.post-thumbnail img,
.wp-post-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.post-thumbnail {
  margin-bottom: 32px;
}

.post-thumbnail img {
  border: 1px solid #ddd;
}

/* ── リンクのデフォルト色をリセット ── */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

a:visited {
  color: var(--accent-dark);
}

/* ── 記事メタ情報（日付・著者） ── */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.entry-meta a {
  color: var(--text-muted);
}

.entry-meta a:visited {
  color: var(--text-muted);
}

.entry-meta a:hover {
  color: var(--accent);
  opacity: 1;
}

.posted-on .updated:not(.published) {
  display: none;
}

/* ── 投稿ナビゲーション（前後の記事） ── */
.post-navigation {
  margin: 48px 0 40px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
  max-width: 48%;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.post-navigation .nav-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.2s;
}

.post-navigation a:hover .nav-title {
  color: var(--accent);
}

.post-navigation a {
  color: var(--text);
  text-decoration: none;
}

/* ── コメントエリア全体 ── */
.comments-area {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

/* コメントタイトル */
.comments-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 3.5vw, 20px);
  color: var(--text);
  margin-bottom: 28px;
}

/* コメントリスト */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.comment-list .comment {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.comment-list .comment:last-child {
  border-bottom: none;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-author .avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment-author .fn {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.comment-author a {
  color: var(--text);
}

.comment-metadata {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.comment-metadata a {
  color: var(--text-muted);
}

.comment-content p {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 1em;
}

.reply {
  margin-top: 10px;
}

.comment-reply-link {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 4px 12px;
  letter-spacing: 0.05em;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.comment-reply-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

/* コメントナビゲーション */
.comment-navigation {
  margin: 24px 0;
  font-size: 13px;
}

.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
}

.comment-navigation a {
  color: var(--accent);
}

/* ── コメントフォーム ── */
.comment-respond {
  margin-top: 40px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 32px;
}

.comment-reply-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 3.5vw, 20px);
  color: var(--text);
  margin-bottom: 24px;
}

.comment-reply-title small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 6px;
}

.comment-reply-title small a {
  color: var(--accent);
  font-size: 12px;
}

.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
}

.comment-form textarea {
  min-height: 160px;
  resize: vertical;
}

.comment-form .comment-notes {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.comment-form .comment-notes a {
  color: var(--accent);
}

.comment-form .form-submit {
  margin-top: 8px;
}

.comment-form .submit {
  padding: 16px 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(15px, 3.5vw, 17px);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.comment-form .submit:hover  { opacity: 0.88; }
.comment-form .submit:active { transform: scale(0.98); }

/* コメント必須マーク */
.required-field-message,
.comment-form .required {
  color: var(--accent);
}

/* Cookieチェックボックス */
.comment-form-cookies-consent label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  display: inline;
}

/* ── 「コメントなし」メッセージ ── */
.no-comments {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

/* ── レスポンシブ：コメントフォーム ── */
@media (max-width: 560px) {
  .comment-respond {
    padding: 24px 16px;
  }
  .post-navigation .nav-links {
    flex-direction: column;
  }
  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    max-width: 100%;
    text-align: left;
  }
}

/* ── ダウンロードページ ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.download-card {
  border: 1px solid var(--line);
  background: var(--bg-light);
  overflow: hidden;
}

.download-card__thumb {
  width: 100%;
  aspect-ratio: 1.414/1;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.download-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.download-card__no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  font-weight: 700;
}

.download-card__body {
  padding: 16px;
}

.download-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.download-card__btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.download-btn:visited { color: #fff; }
.download-btn:hover { opacity: 0.85; }

.download-btn--pdf  { background: var(--accent); color: #fff; }
.download-btn--jpeg { background: #333; color: #fff; }

.download-empty {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
}

.download-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .download-grid { grid-template-columns: 1fr; }
}

/* ── 国民の声ページ ── */
.voices-sort {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.voices-sort__btn {
  padding: 8px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.voices-sort__btn--active,
.voices-sort__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.voices-grid {
  columns: 3;
  column-gap: 20px;
  margin-bottom: 48px;
}

.voice-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.voice-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(232,0,13,0.08);
}

/* 共感数によるサイズ変化 */
.voice-card--md {
  border-top-color: #aaa;
  padding: 20px;
}
.voice-card--md .voice-card__text { font-size: 15px; }

.voice-card--lg {
  border-top-color: var(--accent);
  padding: 24px;
}
.voice-card--lg .voice-card__text { font-size: 16px; font-weight: 700; }

.voice-card--xl {
  border-top-color: var(--accent);
  border-top-width: 4px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.voice-card--xl .voice-card__text { font-size: 18px; font-weight: 700; line-height: 1.8; }

.voice-card__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}

.voice-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.voice-card__name {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.voice-card__like {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  padding: 4px 10px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.2s;
  border-radius: 20px;
}

.voice-card__like:hover,
.voice-card__like.liked {
  border-color: var(--accent);
  color: var(--accent);
}

.voice-card__like-icon { font-size: 13px; }
.voice-card__like-count { font-weight: 700; }

.voices-cta {
  text-align: center;
  padding: 32px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.voices-cta__text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.voices-cta__btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 14px 40px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.voices-cta__btn:visited { color: #fff; }
.voices-cta__btn:hover { opacity: 0.88; }

.voices-form {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.voices-form__label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.voices-form__note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .voices-grid { columns: 2; }
}

@media (max-width: 560px) {
  .voices-grid { columns: 1; }
}

/* ── スポンサーページ ── */
.sponsor-section {
  margin-bottom: 56px;
  padding: 32px;
  border: 1px solid var(--line);
}

.sponsor-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.sponsor-section__badge {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 4px 12px;
  border-radius: 2px;
}

.sponsor-section__badge--gold   { background: #c9a227; color: #fff; }
.sponsor-section__badge--silver { background: #9e9e9e; color: #fff; }
.sponsor-section__badge--bronze { background: #a0673a; color: #fff; }

.sponsor-section--gold   { border-top: 4px solid #c9a227; }
.sponsor-section--silver { border-top: 4px solid #9e9e9e; }
.sponsor-section--bronze { border-top: 4px solid #a0673a; }

.sponsor-section__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}

.sponsor-section__price {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sponsor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 16px;
}

.sponsor-list li {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sponsor-list--gold   li { color: #8a6d00; }
.sponsor-list--silver li { color: #555; }
.sponsor-list--bronze li { color: #6b3f1a; }
.sponsor-list li .honorific { color: #333; }

.sponsor-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .sponsor-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .sponsor-section { padding: 20px 16px; }
  .sponsor-list { grid-template-columns: repeat(2, 1fr); }
}
