:root {
  --bg: #f9fbf6;
  --text: #2f3a2f;

  --accent: #8fbf7a;
  --accent-dark: #4f7a4f;
  --accent-soft: #eef6ea;

  --board: #355b3d;
  --paper: #fffdf8;

  --border: #dbe7d3;
  --border-soft: #edf4e8;

  --warm: #fff4d9;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  font-family: -apple-system, "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: -9999px;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
  left: 0;
}

/* header */
.policy-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f1f7ed;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.policy-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
}

.site-name {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

nav a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: 0.25s;
}

nav a:hover,
nav a:focus {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

/* common */
section {
  padding: 46px 16px;
}

.inner {
  max-width: 1080px;
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  border-left: 5px solid var(--accent);
  padding-left: 12px;
  font-size: 1.45rem;
  line-height: 1.5;
  margin-bottom: 22px;
}

h3 {
  line-height: 1.6;
}

.section-lead {
  max-width: 850px;
  margin-bottom: 24px;
}

.soft-section {
  background: var(--accent-soft);
}

/* hero */
.hero {
  background:
    linear-gradient(135deg, rgba(143, 191, 122, 0.22), rgba(255, 253, 248, 0.9)),
    #f9fbf6;
  border-bottom: 1px solid var(--border);
  padding: 58px 16px;
}

.eyebrow {
  display: inline-block;
  background: var(--board);
  color: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.55;
  margin-bottom: 18px;
  color: var(--board);
}

.hero-lead {
  max-width: 900px;
  font-size: 1.08rem;
}

/* concept */
.message-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 8px solid var(--accent);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.message-box h3 {
  color: var(--accent-dark);
  font-size: 1.35rem;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.concept-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.concept-card span {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 8px;
}

.concept-card h3 {
  color: var(--board);
  margin-bottom: 8px;
}

/* system */
.system-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.system-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.system-card h3 {
  color: var(--board);
  margin-bottom: 6px;
}

.cycle {
  display: inline-block;
  background: var(--warm);
  color: #6a5200;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.subcommittee-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.subcommittee-box h3 {
  color: var(--board);
}

.subcommittee-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.subcommittee-list div {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
}

/* activity */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card,
.issue-card,
.working-card,
.voice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-card h3,
.issue-card h3,
.working-card h3 {
  color: var(--board);
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.doc-list li {
  border-top: 1px solid var(--border-soft);
  padding: 10px 0;
}

.doc-list a::before {
  content: "PDF ";
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 6px;
}

/* issues */
.issue-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.status {
  display: inline-block;
  background: var(--board);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.related {
  color: #666;
  font-size: 0.92rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  margin-bottom: 0;
}

/* working */
.working-board {
  background: var(--board);
  border-radius: 24px;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.working-card {
  background: rgba(255, 255, 255, 0.96);
}

/* voices */
.voice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.voice-card span {
  display: inline-block;
  background: var(--warm);
  color: #6a5200;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.voice-card p {
  margin-bottom: 0;
}

/* proposal */
.proposal-box {
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.proposal-box h2 {
  display: inline-block;
  border-left: none;
  padding-left: 0;
  color: var(--board);
}

.proposal-btn {
  display: inline-block;
  margin-top: 14px;
  background: linear-gradient(135deg, var(--accent), #6fa45b);
  color: #fff;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.proposal-btn:hover,
.proposal-btn:focus {
  background: #6fa45b;
  color: #fff;
  text-decoration: none;
}

.proposal-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #666;
}

/* footer */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  font-size: 0.9rem;
}

.footer-inner {
  text-align: center;
}

/* top button */
#floating-top {
  position: fixed;
  right: 20px;
  bottom: 20px;

  width: 50px;
  height: 50px;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
  text-decoration: none;
}

#floating-top.show {
  opacity: 1;
  pointer-events: auto;
}

#floating-top:hover {
  transform: translateY(-3px);
}

/* responsive */
@media (max-width: 900px) {
  .concept-grid,
  .system-flow,
  .info-grid,
  .issue-list,
  .voice-list,
  .working-board {
    grid-template-columns: 1fr;
  }

  .subcommittee-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 1.55rem;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 170px;
  }

  section {
    padding: 36px 12px;
  }

  .policy-header-inner {
    padding: 8px 10px;
  }

  nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  nav a {
    white-space: nowrap;
  }

  .message-box,
  .proposal-box,
  .subcommittee-box,
  .working-board {
    padding: 22px;
  }

  .subcommittee-list {
    grid-template-columns: 1fr;
  }
}

/* 上部ナビ：TOPページと近い動き */
nav a {
  min-width: 118px;
  text-align: center;
  border-radius: 8px;
}

nav a:hover,
nav a:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.top-link {
  background: var(--accent-soft);
  font-weight: 700;
}

/* 小見出し */
.sub-heading {
  margin: 28px 0 14px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  color: var(--board);
  font-size: 1.15rem;
}

/* 専門部会カードは5枚なので少しゆったり */
.department-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ワーキング3枚対応 */
.working-board {
  grid-template-columns: repeat(3, 1fr);
}

/* フッター：TOPページ風 */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  font-size: 0.9rem;
  color: #666;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-address {
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #999;
}

/* スマホ調整 */
@media (max-width: 900px) {
  .department-grid,
  .working-board {
    grid-template-columns: 1fr;
  }

  nav a {
    min-width: auto;
  }
}

/* ------------------------------------
   最終更新日（控えめ表示）
------------------------------------ */
.update-section {
  padding: 16px 16px 0;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.update-badge img {
  display: inline-block;
  max-width: none !important;
  vertical-align: middle;
}

.update-badge img:first-child {
  width: 144px !important;
  height: 17px !important;
}

/* NEWマーク（自然に気づく） */
.new-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;

  background: #eef6ea;
  color: #4f7a4f;

  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;

  border-radius: 999px;
  border: 1px solid #dbe7d3;

  vertical-align: middle;
  opacity: 0.9;
}

/* ------------------------------------
   資料種別ラベル
------------------------------------ */
.doc-list a::before {
  display: inline-block;
  margin-right: 0.45em;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: 0.08em;
  letter-spacing: 0.04em;
}

/* PDF */
.doc-list a.file-pdf::before {
  content: "PDF";
  color: #fff;
  background: #c96f6f;
}

/* Word */
.doc-list a.file-word::before {
  content: "Word";
  color: #fff;
  background: #6f8fc9;
}

/* Excel */
.doc-list a.file-excel::before {
  content: "Excel";
  color: #fff;
  background: #6fae86;
}

/* 通常リンク */
.doc-list a.file-link::before {
  content: "リンク";
  color: #4f7a4f;
  background: #eef6ea;
  border: 1px solid #dbe7d3;
}

/* 準備中・仮リンクはラベルを出さない */
.doc-list a.file-none::before {
  content: none;
}

/* ------------------------------------
   ページ下部：トップページへ戻る
   ※フッターではなく本文の余韻として配置
------------------------------------ */
.page-back {
  margin: 40px 0 26px;
  text-align: center;
}

.page-back a {
  display: inline-block;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}

.page-back a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  transition: 0.3s;
}

.page-back a:hover,
.page-back a:focus {
  text-decoration: none;
  color: var(--accent-dark);
}

.page-back a:hover::after,
.page-back a:focus::after {
  opacity: 1;
}