/* =================================================================
   令和の百姓一揆 公式サイト スタイルシート（rev5-final / 2026-08-16）

   配色は、活動写真に写っているのぼり旗の濃紺と、提灯行進の灯りの色から
   とっています。見出しは明朝、本文はゴシック。
   活動写真・濃紺・提灯色を基調にした rev5-final のデザインです。
   ================================================================= */

:root {
  /* のぼり旗の濃紺 */
  --nobori: #1b2050;
  --nobori-deep: #141838;
  --nobori-mid: #2e3573;

  /* 提灯の灯り */
  --lantern: #d9a13c;
  --lantern-soft: #f2e3c4;

  /* 紙と土 */
  --paper: #f4f0e4;
  --surface: #ffffff;
  --ink: #17150f;
  --soil: #6a5f4c;
  --border: #ddd5c2;

  --link: #23306e;
  --link-hover: #0f1745;

  --max: 960px;
  --radius: 8px;

  --mincho: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho",
    YuMincho, "Noto Serif JP", "Times New Roman", serif;
  --gothic: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  line-height: 1.85;
  font-size: 1.0625rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--lantern);
  outline-offset: 3px;
}


/* -----------------------------------------------------------------
   ヘッダー：のぼり旗（濃紺地に白い明朝）
   ----------------------------------------------------------------- */

.site-header {
  background: var(--nobori);
  border-bottom: 4px solid var(--lantern);
  color: #fff;
}

.site-header-inner,
.site-main,
.site-footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header-inner {
  padding: 26px 0 20px;
}

.site-title,
p.site-title {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: #fff;
}

h1.site-title {
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
}

p.site-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}

p.site-title a,
p.site-title a:hover {
  color: #fff;
  text-decoration: none;
}

.site-subtitle {
  margin: 10px 0 0;
  color: #cdd2e8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.global-nav {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.global-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover {
  color: #fff;
  border-bottom-color: var(--lantern);
}

.global-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--lantern);
}

/* -----------------------------------------------------------------
   活動写真：装飾を外して全幅で見せる
   ----------------------------------------------------------------- */

.site-banner-wrap {
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--nobori-deep);
}

.site-banner {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

/* -----------------------------------------------------------------
   本文
   ----------------------------------------------------------------- */

.site-main {
  padding: 36px 0 64px;
}

.hero,
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero {
  padding: 32px 28px;
  margin-bottom: 28px;
  border-top: 4px solid var(--nobori);
}

.section-card {
  padding: 26px 24px;
}

.hero h2,
.section-card h2,
.page-title {
  font-family: var(--mincho);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 4.4vw, 2.1rem);
  line-height: 1.4;
}

.section-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 3.4vw, 1.55rem);
  line-height: 1.45;
}

.section-card h3 {
  margin: 26px 0 8px;
  font-family: var(--mincho);
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero p,
.section-card p {
  margin: 0 0 15px;
}

.hero p:last-child,
.section-card p:last-child,
.section-card ul:last-child,
.section-card ol:last-child {
  margin-bottom: 0;
}

.section-card ul,
.section-card ol {
  margin: 0 0 15px;
  padding-left: 1.3em;
}

.section-card li + li {
  margin-top: 8px;
}

.note {
  color: var(--soil);
  font-size: 0.95rem;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--nobori-mid);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.petition-eyebrow {
  margin-bottom: 10px;
  color: var(--nobori);
  font-family: var(--mincho);
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.signature-count strong {
  color: var(--nobori-deep);
  font-size: 1em;
}

.signature-count strong [data-online-signature-count] {
  display: inline-block;
  font-family: var(--mincho);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  vertical-align: baseline;
}

.signature-count-note {
  margin-top: -7px !important;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 各ページで最も重要なカード（3つの要求／寄付金の使い道）は横幅いっぱいに */
.grid-2 > .section-card:first-child {
  grid-column: 1 / -1;
}

/* 強調したいカードだけ、提灯の色の帯をつける */
.highlight-card {
  border-color: var(--border);
  border-top: 4px solid var(--lantern);
}

/* -----------------------------------------------------------------
   ボタン
   ----------------------------------------------------------------- */

.hero-actions,
.link-list,
.cta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 4px;
  border: 2px solid var(--nobori);
  background: #fff;
  color: var(--nobori);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.button:hover {
  background: var(--lantern-soft);
  color: var(--nobori);
  text-decoration: none;
}

.button-primary {
  background: var(--nobori);
  border-color: var(--nobori);
  color: #fff;
}

.button-primary:hover {
  background: var(--nobori-mid);
  border-color: var(--nobori-mid);
  color: #fff;
}

/* -----------------------------------------------------------------
   ボタン直後の補足文との余白
   .hero p / .section-card p の margin-top: 0 より後ろに置くこと
   ----------------------------------------------------------------- */
.hero-actions + p,
.hero-actions + ul,
.hero-actions + ol,
.link-list + p,
.cta-list + p {
  margin-top: 16px;
}

/* -----------------------------------------------------------------
   署名の集約日
   ----------------------------------------------------------------- */

.deadline {
  display: block;
  margin: 0 0 15px;
  padding: 12px 16px;
  border-left: 4px solid var(--lantern);
  background: #fbf7ee;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
}

/* -----------------------------------------------------------------
   広がりを示す数字：箱ではなく、罫で区切った並び
   ----------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  margin: 22px 0;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 18px 20px 16px;
  border-left: 1px solid var(--border);
}

.stat:first-child {
  border-left: none;
  padding-left: 0;
}

.stat dt {
  margin: 0 0 6px;
  color: var(--soil);
  font-size: 0.82rem;
  line-height: 1.6;
}

.stat dd {
  margin: 0;
  line-height: 1.1;
  color: var(--nobori);
}

.stat dd b {
  font-family: var(--mincho);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.stat dd span {
  margin-left: 5px;
  font-family: var(--gothic);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* -----------------------------------------------------------------
   3つの要求・申し合わせ事項
   ----------------------------------------------------------------- */

.demand-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: demand;
}

.demand-list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 2.4em;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
  counter-increment: demand;
}

.demand-list li::before {
  content: counter(demand);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--nobori);
  color: #fff;
  font-family: var(--mincho);
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.75em;
  text-align: center;
}

.way-list {
  margin: 18px 0 0;
  padding-left: 1.3em;
}

.way-list li + li {
  margin-top: 8px;
}

/* -----------------------------------------------------------------
   これまでの歩み
   ----------------------------------------------------------------- */

.timeline {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 14px 0 14px 16px;
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--lantern-soft);
}

.timeline li:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline-date {
  display: block;
  color: var(--nobori);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.timeline-body {
  display: block;
  color: var(--ink);
}

/* -----------------------------------------------------------------
   団体情報などの定義リスト
   ----------------------------------------------------------------- */

.info-list {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
}

.info-list dt {
  color: var(--soil);
  font-size: 0.92rem;
}

.info-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* -----------------------------------------------------------------
   写真・メディア掲載
   ----------------------------------------------------------------- */

.content-image {
  width: 100%;
  margin: 16px 0 20px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #efece3;
}

.content-image-wide {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-image-natural {
  height: auto;
  object-fit: contain;
}

.media-list {
  padding-left: 0;
  list-style: none;
}

.media-list li {
  padding-left: 14px;
  border-left: 3px solid var(--border);
}

.media-list li + li {
  margin-top: 16px;
}

/* -----------------------------------------------------------------
   ページ見出し
   ----------------------------------------------------------------- */

.page-title-block {
  margin-bottom: 28px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  line-height: 1.25;
}

.page-back {
  margin: 0;
  color: var(--soil);
  font-size: 0.95rem;
}

/* -----------------------------------------------------------------
   フッター
   ----------------------------------------------------------------- */

.site-footer {
  border-top: 4px solid var(--lantern);
  background: var(--nobori);
  color: #e6e8f2;
}

.site-footer a {
  color: #fff;
}

.site-footer-inner {
  padding: 28px 0 44px;
  font-size: 0.95rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 4px;
}

.site-footer-nav a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-footer-nav a:hover {
  border-bottom-color: var(--lantern);
}

.footer-org {
  margin: 20px 0 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-org p {
  margin: 0 0 12px;
}

.footer-org strong {
  font-family: var(--mincho);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.footer-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer .note {
  color: #b9bfd8;
}

/* -----------------------------------------------------------------
   画面が狭いとき
   ----------------------------------------------------------------- */

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }

  .site-header-inner {
    padding: 22px 0 18px;
  }

  .site-main {
    padding-top: 26px;
  }

  .site-banner {
    aspect-ratio: 16 / 9;
    object-position: left center;
  }

  .hero {
    padding: 24px 18px;
  }

  .section-card {
    padding: 22px 18px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 14px 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .stat:first-child {
    border-top: none;
    padding-top: 4px;
  }

  .stat dd b {
    font-size: 2.1rem;
  }

  .signature-count strong [data-online-signature-count] {
    font-size: 2.1rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .hero-actions .button,
  .link-list .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .info-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .info-list dd {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .site-title,
  .global-nav a,
  .site-footer a {
    color: #000;
  }
}
/* 3万筆突破 */
.milestone-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 16px;
  font-size: 1.05rem;
  border: 1px solid var(--lantern);
  border-radius: 999px;
  background: var(--lantern-soft);
  color: var(--nobori);
  font-family: var(--gothic);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.milestone-badge-sub {
  margin-bottom: 12px;
  padding: 5px 11px;
  font-size: 0.9rem;
}

.milestone-message {
  margin: 18px 0;
  padding-left: 14px;
  border-left: 4px solid var(--lantern);
  color: var(--nobori);
}
