: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;
}

/*
  ページ内リンクの停止位置は index.html 側のJavaScriptで
  固定ヘッダーの高さを自動計算して調整します。
  ここで scroll-padding-top を指定すると二重補正になり、
  大きくずれる原因になるため指定しません。
*/

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) {
  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;
}

/* ページ内リンク用アンカー */
.anchor-point {
  display: block;
  position: relative;
  top: -36px;
  visibility: hidden;
  height: 0;
}


/* ------------------------------------
   初任者研修OJTシリーズ
------------------------------------ */
.ojt-concept-card {
  grid-column: 1 / -1;
  padding: 30px;
}

.ojt-concept-card > p {
  max-width: 900px;
}

.ojt-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
  color: var(--board);
}

.ojt-flow span:nth-child(2),
.ojt-flow span:nth-child(4) {
  color: var(--accent-dark);
  font-weight: 400;
}

.ojt-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ojt-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.ojt-item-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ojt-volume {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 58px;
  padding: 8px;
  border-radius: 14px;
  background: var(--board);
  color: #fff !important;
  font-weight: 800;
  line-height: 1.2;
}

.ojt-kicker {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.ojt-item h4 {
  margin: 0;
  color: var(--board);
  font-size: 1.12rem;
  line-height: 1.55;
}

.ojt-item p {
  margin-bottom: 12px;
}

.ojt-download {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.ojt-download::before {
  content: "PDF";
  display: inline-block;
  margin-right: 0.55em;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  background: #c96f6f;
  color: #fff;
  font-size: 0.72em;
  line-height: 1.4;
  vertical-align: 0.08em;
  letter-spacing: 0.04em;
}

.ojt-download:hover,
.ojt-download:focus {
  background: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

.ojt-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .ojt-concept-card {
    padding: 22px;
  }

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

  .ojt-flow {
    justify-content: flex-start;
  }

  .ojt-item-head {
    display: block;
  }

  .ojt-volume {
    margin-bottom: 10px;
  }
}


/* ------------------------------------
   しろっこオリジナル資料 01〜04
------------------------------------ */
.original-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 13px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--board);
  font-weight: 700;
}

.original-flow span:nth-child(even) {
  color: var(--accent-dark);
  font-weight: 400;
}

.original-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.original-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.original-card > p:not(.original-link-row):not(.original-kicker):not(.original-subtitle):not(.ojt-note) {
  flex-grow: 1;
}

.original-number {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px !important;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent-dark) !important;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.original-kicker {
  margin: -4px 0 4px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.original-subtitle {
  margin: -2px 0 14px;
  color: #667066;
  font-size: 0.94rem;
}

.original-link-row {
  margin: auto 0 0;
  padding-top: 14px;
}

.original-link {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 122, 79, 0.35);
  padding-bottom: 2px;
}

.original-link::after {
  content: "  ›";
}

.original-link:hover,
.original-link:focus {
  text-decoration: none;
  border-bottom-color: var(--accent-dark);
}

.original-pdf-link::before {
  content: "PDF";
  display: inline-block;
  margin-right: 0.55em;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  background: #c96f6f;
  color: #fff;
  font-size: 0.72em;
  line-height: 1.4;
  vertical-align: 0.08em;
  letter-spacing: 0.04em;
}

.original-grid .ojt-concept-card {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.original-grid .ojt-concept-card > .original-number {
  flex: 0 0 auto;
}

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

  .original-grid .ojt-concept-card {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .original-flow {
    justify-content: flex-start;
    font-size: 0.92rem;
  }
}


/* =========================================
   専門部会：開催実績と動いている取組
   既存の協議会デザインを保ちながら、現在地を見える形にする
========================================= */
.activity-state {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border: 1px solid #cfe0c8;
  border-radius: 999px;
  background: #edf6e9;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.activity-state-complete {
  background: #f3f5ef;
  color: #5f6d5d;
}

.activity-result-box,
.movement-box {
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.activity-result-box {
  background: #fff;
  border-top: 5px solid var(--accent);
}

.activity-result-box h3,
.movement-box h3 {
  margin-bottom: 14px;
  color: var(--board);
  font-size: 1.35rem;
}

.activity-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-box {
  margin: 28px 0;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.review-box > h3 {
  margin-bottom: 12px;
  color: var(--board);
  font-size: 1.3rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.review-grid article {
  padding: 20px;
  border: 1px solid #e4e1d2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.review-grid h4 {
  margin: 0 0 8px;
  color: var(--board);
  font-size: 1rem;
  line-height: 1.6;
}

.review-grid p {
  margin-bottom: 0;
}

.review-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e4e1d2;
  color: #666;
  font-size: 0.88rem;
}

.guide-story {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f5f9f2 100%);
  box-shadow: var(--shadow);
}

.guide-story-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.guide-story h3 {
  margin-bottom: 10px;
  color: var(--board);
  font-size: 1.25rem;
}

.guide-story p {
  margin-bottom: 0;
}

.guide-story blockquote {
  margin: 0;
  padding: 22px;
  border: 1px solid #d5e5cf;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--board);
}

.guide-story blockquote strong,
.guide-story blockquote span {
  display: block;
}

.guide-story blockquote strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.guide-story blockquote span {
  color: #586558;
  font-size: 0.94rem;
}

.guide-story-quote-link {
  display: block;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.guide-story-quote-link blockquote {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.guide-story-quote-link:hover,
.guide-story-quote-link:focus {
  color: inherit;
  text-decoration: none;
}

.guide-story-quote-link:hover blockquote,
.guide-story-quote-link:focus blockquote {
  border-color: var(--accent);
  box-shadow: 0 5px 14px rgba(62, 89, 56, 0.13);
  transform: translateY(-2px);
}

.guide-story-quote-link:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.guide-story blockquote .guide-story-quote-action {
  display: inline-block;
  width: fit-content;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(79, 122, 79, 0.4);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.guide-story-quote-action::after {
  content: "›";
  display: inline-block;
  margin-left: 0.42em;
  transition: transform 0.22s ease;
}

.guide-story-quote-link:hover .guide-story-quote-action::after,
.guide-story-quote-link:focus .guide-story-quote-action::after {
  transform: translateX(3px);
}

.activity-details {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.activity-details summary {
  position: relative;
  padding: 18px 54px 18px 22px;
  color: var(--board);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.activity-details summary::-webkit-details-marker {
  display: none;
}

.activity-details summary::after {
  content: "＋";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--accent-dark);
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.activity-details[open] summary {
  border-bottom: 1px solid var(--border);
}

.activity-details[open] summary::after {
  content: "−";
}

.activity-details .working-board {
  border-radius: 0;
  box-shadow: none;
}

.movement-box {
  background: linear-gradient(135deg, #f7fbf4 0%, #eef6ea 100%);
  border-left: 8px solid var(--accent);
}

.movement-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}

.movement-flow span {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--board);
  font-weight: 700;
  text-align: center;
}

.movement-arrow {
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}

.movement-arrow::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.activity-link {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(79, 122, 79, 0.4);
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.activity-link::after {
  content: "›";
  display: inline-block;
  margin-left: 0.42em;
  transition: transform 0.22s ease;
}

.activity-link:hover,
.activity-link:focus {
  border-bottom-color: currentColor;
  text-decoration: none;
}

.activity-link:hover::after,
.activity-link:focus::after {
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .activity-result-box,
  .movement-box,
  .review-box,
  .guide-story {
    padding: 22px;
  }

  .guide-story,
  .review-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .movement-flow {
    flex-direction: column;
  }

  .movement-arrow {
    flex-basis: 18px;
  }

  .movement-arrow::before {
    transform: rotate(135deg);
  }
}

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

@media (max-width: 600px) {
  .activity-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-link::after,
  .guide-story-quote-link blockquote,
  .guide-story-quote-action::after {
    transition: none;
  }

  .activity-link:hover::after,
  .activity-link:focus::after,
  .guide-story-quote-link:hover blockquote,
  .guide-story-quote-link:focus blockquote,
  .guide-story-quote-link:hover .guide-story-quote-action::after,
  .guide-story-quote-link:focus .guide-story-quote-action::after {
    transform: none;
  }
}
