/*
 * サイト全体のページの体裁（段階3）
 * トップページ以外のページで、見出し・パンくずリスト・本文の幅をそろえる
 */

/* 本文の幅を読みやすい長さにそろえる */
#main > .section,
#main > .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
#main > .section:first-child {
  padding-top: 1.5rem;
}

/* パンくずリスト */
#main .breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ページの見出し */
.title.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2d2b;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 6px solid #00796b;
}
.page-lead {
  margin-bottom: 1.5rem;
  color: #363636;
}

/* カード型の一覧：押せる範囲を分かりやすく */
#main a > .card {
  height: 100%;
  transition: box-shadow 0.15s ease;
}
#main a:hover > .card,
#main a:focus-visible > .card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
#main a > .card .title {
  color: #1f2d2b;
}

/* 表：スマートフォンでは横にスクロールできるようにする */
.table-scroll {
  position: relative; /* 中の読み上げ用の文字（.visually-hidden）が、この枠の外にはみ出さないように */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 中央寄せ（旧 <center> の置き換え） */
.is-centered-block {
  text-align: center;
}

/* 画像がはみ出さないようにする（Bulma の .image の中は、縦横比を保つ指定をそのまま使う） */
#main img:not(.image img) {
  max-width: 100%;
}
#main :not(.image) > img[width][height] {
  height: auto;
}

@media screen and (max-width: 768px) {
  .title.page-title {
    font-size: 1.4rem;
  }
  #main > .section {
    padding: 1.25rem 1rem;
  }
}

/* 動画・埋め込みが画面からはみ出さないようにする */
#main video,
#main iframe {
  max-width: 100%;
}
#main video {
  height: auto;
}

/* 項目名と値の一覧（動画の情報など） */
.info-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.25rem;
  margin-bottom: 1.25rem;
}
.info-list dt {
  font-weight: 700;
  color: #4a4a4a;
}
.info-list dd {
  margin: 0;
}
@media screen and (max-width: 768px) {
  .info-list {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .info-list dd {
    margin-bottom: 0.6rem;
  }
}

/* ページ内の目次 */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  margin: 1rem auto;
  max-width: 1200px;
  padding: 0.75rem 1.5rem;
  background: #f3f7f6;
  border-radius: 6px;
}
.page-toc-label {
  font-weight: 700;
}
.page-toc a {
  color: #2160c4;
  text-decoration: underline;
}

/* Bulma の .menu-label（灰色 #7a7a7a は白地で 4.29）を濃くする */
#main .menu-label {
  color: #595959;
}

/* 表の形の入力フォーム（.contact-table）：スマートフォンでは項目名の下に入力欄を置く */
@media screen and (max-width: 768px) {
  #main .contact-table,
  #main .contact-table tbody,
  #main .contact-table tr,
  #main .contact-table th,
  #main .contact-table td {
    display: block;
    width: 100%;
  }
  #main .contact-table th {
    border-bottom: 0;
    padding-bottom: 0.25rem;
  }
  #main .form-text,
  #main .form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* 地図の編集：サムネイルの選択と、写真のプレビュー */
.thumb-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.thumb-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 120px;
  padding: 0.4rem;
  border: 2px solid #dbdbdb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.thumb-choice:has(input:checked) {
  border-color: #00796b;
  background: #e0f2f1;
}
.thumb-choice img {
  width: 100px;
  height: 75px;
  object-fit: cover;
}
.spot-photo-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
  margin-bottom: 1rem;
  background: #f5f5f5;
  overflow: hidden;
}
.spot-photo-preview img {
  max-width: 200px;
  max-height: 200px;
  transition: transform 0.2s ease;
}
.rotate-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.rotate-choices .radio + .radio {
  margin-left: 0;
}

/* ワークショップデータ編集の一覧 */
.docs-table td {
  vertical-align: middle;
}
.docs-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.docs-title img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
}
.docs-actions {
  flex-wrap: nowrap;
}
.docs-actions form {
  margin: 0;
}
.docs-actions .button {
  margin-bottom: 0;
}
.is-nowrap {
  white-space: nowrap;
}

/* このサイトについて */
.about-toc {
  background: #f3f7f6;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.about-toc-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.about-toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: 0.25rem 1.5rem;
  margin: 0 0 0 1.25rem;
}
.about-toc a,
.about-card a,
.about-text a,
.about-small a {
  color: #2160c4;
  text-decoration: underline;
}
.title.about-h2 {
  font-size: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid #00796b;
  margin-bottom: 1rem;
}
.about-intro {
  margin-bottom: 1rem;
}
.about-card {
  height: 100%;
  border: 1px solid #dbe4e3;
  border-top: 5px solid var(--about-color, #00796b);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #fff;
}
.about-card-search { --about-color: #00796b; }
.about-card-learn  { --about-color: #1d72aa; }
.about-card-see    { --about-color: #8a4b08; }
.about-card-mylist { --about-color: #5b4a99; }
.about-card .title {
  color: var(--about-color, #1f2d2b);
  margin-bottom: 0.75rem;
}
.about-card ul {
  list-style: disc;
  margin-left: 1.25rem;
}
.about-card li + li {
  margin-top: 0.5rem;
}
.about-text {
  max-width: 50rem;
  line-height: 1.9;
}
.about-figure {
  margin: 1.5rem auto;
  text-align: center;
}
.about-figure figcaption {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-top: 0.25rem;
}
.about-note {
  background: #f7f7f5;
  border-left: 5px solid #8a4b08;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.about-small {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.8;
}
.about-posters a {
  display: block;
  color: #1f2d2b;
}
.about-posters img {
  border: 1px solid #dbdbdb;
  margin-bottom: 0.25rem;
}

/* 軌跡編集：スポットの写真（1枚ずつ） */
.spot-photo-item {
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  padding: 0.75rem 1rem 1rem;
  margin-bottom: 1rem;
}
.spot-photo-item legend {
  padding: 0 0.25rem;
}
.spot-photo-item .spot-photo-preview {
  height: 180px;
}
.spot-photo-item .spot-photo-preview img {
  max-width: 160px;
  max-height: 160px;
}

/* 長いパンくずリストは折り返す（Bulma は折り返さない） */
#main .breadcrumb {
  white-space: normal;
}
#main .breadcrumb a {
  white-space: normal;
}

/* 横並び（.level）の中の文章が長いときは、はみ出さずに折り返す */
#main .level-left,
#main .level-right {
  min-width: 0;
  flex-shrink: 1;
}

/* 一覧に戻るリンク（資料の詳しい情報） */
.back-link {
  margin: -0.25rem 0 1rem;
}
.back-link a {
  color: #2160c4;
  text-decoration: underline;
  font-weight: 600;
}

/* 地域・テーマの資料一覧 */
.resource-list .tag {
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ---------- キーワードで探す：検索結果 ---------- */
.search-results {
  padding-top: 1rem;
}
.result-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.result-summary a,
.result-summary .is-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #b7c9c6;
  background: #f3f7f6;
  color: #1f2d2b;
  text-decoration: none;
}
.result-summary a:hover {
  background: #e0f2f1;
}
.result-summary a strong {
  color: #00594f;
  margin-left: 0.25rem;
}
.result-summary .is-empty {
  color: #4a4a4a;
  background: #fff;
  border-style: dashed;
}
.result-group {
  margin-bottom: 2.5rem;
}
.result-group > .title {
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #00796b;
}
.result-card {
  display: block;
  height: 100%;
  color: inherit;
}
.result-card .card {
  height: 100%;
}
.result-card-title {
  font-weight: 700;
  color: #2160c4;
  text-decoration: underline;
  margin-bottom: 0.35rem;
}
.result-card-text {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-bottom: 0.35rem;
}
.result-card-date {
  font-size: 0.8rem;
  color: #4a4a4a;
}
.result-help {
  list-style: disc;
  margin: 0 0 1rem 1.25rem;
  font-size: 0.95rem;
}
.result-help a,
.library-table td a {
  color: #2160c4;
  text-decoration: underline;
}
.library-table .tag {
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* スマートフォン：表を1件ずつのカードにする */
@media screen and (max-width: 768px) {
  .library-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .library-table,
  .library-table tbody,
  .library-table tr,
  .library-table td {
    display: block;
    width: 100%;
  }
  .library-table tr {
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
  }
  .library-table td {
    border: 0 !important;
    padding: 0.15rem 0 !important;
  }
  .library-table td[data-label="No."] {
    display: none;
  }
  .library-table td[data-label="資料名"] {
    font-size: 1.05rem;
    font-weight: 600;
  }
  .library-table td[data-label="著者／発行者"]:not(:empty)::before,
  .library-table td[data-label="発行元"]:not(:empty)::before,
  .library-table td[data-label="発行年"]:not(:empty)::before {
    content: attr(data-label) "：";
    color: #4a4a4a;
    font-size: 0.85rem;
  }
  .library-table td .button {
    margin-top: 0.35rem;
  }
}

/* ---------- 資料の詳しい情報（キーワードで探す） ---------- */
.book-detail {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.book-cover {
  flex: 0 0 260px;
}
.book-cover img {
  width: 100%;
  border: 1px solid #dbdbdb;
}
.book-body {
  flex: 1;
  min-width: 0;
}
.title.book-title {
  font-size: 1.75rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}
.book-info {
  margin-bottom: 1rem;
}
.book-tag {
  margin: 0 0.35rem 0.35rem 0;
  text-decoration: none !important;
}
a.book-tag:hover {
  text-decoration: underline !important;
}
.book-actions {
  margin-bottom: 1.25rem;
}
.book-overview {
  border-top: 1px solid #e8eeed;
  padding-top: 1rem;
}
.book-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.book-overview-head .title {
  margin-bottom: 0;
}
.book-overview-text {
  line-height: 1.9;
  max-width: 48rem;
}
.book-updated {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #4a4a4a;
}

/* 読んだ人のコメント */
.book-comments {
  border-top: 3px solid #00796b;
  padding-top: 1.25rem;
  margin-bottom: 2.5rem;
}
.comment-list {
  margin-bottom: 2rem;
}
.comment-item {
  border: 1px solid #dbe4e3;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #fff;
}
.comment-meta {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-bottom: 0.4rem;
}
.comment-meta strong {
  color: #1f2d2b;
}
.comment-text {
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.comment-extra {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 1rem;
  font-size: 0.9rem;
}
.comment-extra dt {
  color: #4a4a4a;
  font-weight: 700;
}
.comment-extra dd {
  margin: 0;
}
.comment-theme {
  display: block;
  margin-bottom: 0.3rem;
}
.book-words a {
  color: #2160c4;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .book-detail {
    flex-direction: column;
    gap: 1rem;
  }
  .book-cover {
    flex-basis: auto;
    max-width: 220px;
  }
  .title.book-title {
    font-size: 1.4rem;
  }
  .comment-extra {
    grid-template-columns: 1fr;
  }
}
.search-option {
  display: block;
  margin-bottom: 0.4rem;
}
.search-meta-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

/* マイリスト（利用者ノート） */
.mylist-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.mylist-progress a {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  height: 100%;
  padding: 0.75rem 1rem;
  color: #1f2d2b;
  background: #f3f7f6;
  border: 2px solid transparent;
  border-radius: 6px;
}
.mylist-progress a:hover {
  border-color: #00796b;
}
.mylist-progress .is-done a {
  background: #e0f2f1;
}
.mylist-progress .is-done .mylist-step-num {
  background: #00695c;
}
.mylist-progress-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mylist-progress-label {
  font-weight: 700;
}
.mylist-progress-state {
  font-size: 0.875rem;
  color: #363636;
  overflow-wrap: anywhere;
}
.mylist-step-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #00796b;
  color: #fff;
  font-weight: 700;
}
.mylist-step-num.is-inverted {
  background: #fff;
  color: #00796b;
}
.mylist-section {
  padding-top: 1.5rem;
}
.mylist-section > .title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #d5e5e2;
}
.mylist-sub {
  margin-top: 1.5rem;
}
.mylist-theme-form {
  max-width: 40rem;
}
.mylist-reset-box {
  height: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
.mylist-reset-box ul {
  margin: 0.25rem 0 0 1.25rem;
  list-style: disc;
}
.mylist-reset-box.is-clear {
  background: #fdf3e7;
  border: 1px solid #f0d2a8;
}
.mylist-reset-box.is-keep {
  background: #e0f2f1;
  border: 1px solid #b2dfdb;
}
.mylist-empty {
  padding: 1.25rem;
  border: 2px dashed #c9d8d5;
  border-radius: 6px;
  text-align: center;
}
.mylist-items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mylist-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e3e9e8;
}
.mylist-item-body {
  flex: 1 1 22rem;
  min-width: 0;
}
.mylist-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #2160c4;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.mylist-item-meta {
  margin-top: 0.2rem;
  color: #363636;
  overflow-wrap: anywhere;
}
.mylist-item-date {
  margin-top: 0.1rem;
  font-size: 0.875rem;
  color: #595959;
}
.mylist-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.mylist-help {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}
.mylist-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mylist-words li {
  display: inline-flex;
  border: 1px solid #b5cbc7;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.mylist-word,
.mylist-word-del {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  min-height: 2.25rem;
}
.mylist-word {
  padding: 0.25rem 0.5rem 0.25rem 0.9rem;
  color: #1f2d2b;
}
.mylist-word:hover {
  text-decoration: underline;
}
.mylist-word-del {
  padding: 0.25rem 0.75rem;
  border-left: 1px solid #d5e5e2;
  color: #595959;
}
.mylist-word-del:hover {
  background: #fdecea;
  color: #b42318;
}
.mylist-publish {
  max-width: 960px;
}
.mylist-fieldset {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #d5e5e2;
  border-radius: 6px;
}
.mylist-legend {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.mylist-rank-table td {
  vertical-align: middle;
}
.mylist-rank-count {
  margin-top: 0.5rem;
  font-weight: 700;
  color: #8a4b08;
}
.mylist-rank-count.is-ready {
  color: #00695c;
}
.mylist-id {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.mylist-id-label {
  font-weight: 700;
}
.mylist-id-value {
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  color: #1f2d2b;
  background: #f3f7f6;
  border-radius: 4px;
  word-break: break-all;
  user-select: all;
}
.mylist-id-copied {
  color: #00695c;
  font-weight: 700;
}
.mylist-details summary {
  cursor: pointer;
  color: #2160c4;
  text-decoration: underline;
}
.mylist-details[open] summary {
  margin-bottom: 0.25rem;
}
.mylist-details .field {
  max-width: 36rem;
}
.mylist-choice-note {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.25rem;
  background: #e8f1fb;
  border-left: 5px solid #174f8a;
  border-radius: 4px;
}
.mylist-choice-note ul {
  margin: 0.4rem 0 0.4rem 1.25rem;
  list-style: disc;
}
.mylist-pub-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
}
.mylist-pub-choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border: 2px solid #d5e5e2;
  border-radius: 6px;
  cursor: pointer;
}
.mylist-pub-choice input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
}
.mylist-pub-choice:has(input:checked) {
  border-color: #00796b;
  background: #e0f2f1;
}

/* 震災学習（STEP1〜4・はじめ方） */
.learn-page {
  max-width: 1000px;
  margin: 0 auto;
}
.learn-steps ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.learn-steps a {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  height: 100%;
  padding: 0.6rem 0.8rem;
  color: #1f2d2b;
  background: #f3f7f6;
  border: 2px solid transparent;
  border-radius: 6px;
}
.learn-steps a:hover {
  border-color: #1d72aa;
}
.learn-steps .is-current a {
  background: #1d72aa;
  color: #fff;
}
.learn-steps .is-done a {
  background: #e3eef7;
}
.learn-steps-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #1d72aa;
  color: #fff;
  font-weight: 700;
}
.learn-steps .is-current .learn-steps-num {
  background: #fff;
  color: #1d72aa;
}
.learn-steps-body {
  display: flex;
  flex-direction: column;
}
.learn-steps-label {
  font-weight: 700;
}
.learn-steps-text {
  font-size: 0.85rem;
}
.title.learn-h2 {
  margin-top: 2.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #d5e5e2;
}
.learn-page p + p {
  margin-top: 0.75rem;
}
.learn-figure {
  margin: 1rem 0 1.25rem;
}
.learn-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #d5dbe0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.learn-figure figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #4a4a4a;
}
.learn-list {
  margin: 0.75rem 0 0.75rem 1.5rem;
  list-style: disc;
}
.learn-list li + li {
  margin-top: 0.3rem;
}
.learn-tip,
.learn-check {
  margin: 1rem 0;
  padding: 0.9rem 1.25rem;
  border-radius: 6px;
}
.learn-tip {
  background: #e8f1fb;
  border-left: 5px solid #1d72aa;
}
.learn-check {
  margin-top: 2.25rem;
  background: #e0f2f1;
  border-left: 5px solid #00796b;
}
.learn-tip-title,
.learn-check-title {
  font-weight: 700;
}
.learn-tip ul,
.learn-check ul {
  margin: 0.4rem 0 0 1.25rem;
  list-style: disc;
}
.learn-check li::marker {
  content: "☐ ";
}
.learn-note {
  padding: 0.6rem 0.9rem;
  background: #fdf3e7;
  border-radius: 4px;
}
.learn-prep {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.learn-prep li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e3e9e8;
}
.learn-prep-key {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  background: #1d72aa;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}
.learn-cycle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
  padding: 0;
  list-style: none;
}
.learn-cycle a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem;
  color: #1f2d2b;
  background: #f3f7f6;
  border: 2px solid transparent;
  border-radius: 6px;
}
.learn-cycle a:hover {
  border-color: #1d72aa;
}
.learn-cycle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #1d72aa;
  color: #fff;
  font-weight: 700;
}
.learn-cycle-title {
  font-weight: 700;
  font-size: 1.1rem;
}
.learn-cycle-note {
  font-weight: 700;
  color: #1d5a87;
}
.learn-video {
  position: relative;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
}
.learn-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}
.learn-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 2rem;
}

/* 震災学習：見やすさの調整（本文の幅・やること・画面の例・スマートフォン） */
#main > .section.learn-page {
  max-width: 960px;
}
.learn-page .page-lead {
  font-size: 1.05rem;
}
.learn-todo {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.25rem;
  border: 2px solid #c9dcec;
  border-radius: 6px;
}
.learn-todo-title {
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.learn-todo ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.learn-todo a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: #1d5a87;
  text-decoration: underline;
}
.learn-todo-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 4px;
  background: #e3eef7;
  color: #1d5a87;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.title.learn-h2 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  scroll-margin-top: 1rem;
}
.title.learn-h2 .learn-todo-num {
  width: 2rem;
  height: 2rem;
  background: #1d72aa;
  color: #fff;
  font-size: 1.1rem;
}
.title.learn-h3 {
  margin-top: 1.75rem;
}
.learn-page p,
.learn-page li {
  line-height: 1.85;
}
.learn-figure {
  max-width: 780px;
  padding: 0.75rem;
  background: #f2f4f5;
  border-radius: 8px;
}
.learn-figure img {
  box-shadow: none;
}
.learn-figure-label {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: #6b7680;
  border-radius: 3px;
  vertical-align: 0.1em;
}
.learn-cycle-num {
  align-self: flex-start;
  width: auto;
  min-width: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
}
.learn-cycle-use {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: #1d5a87;
  border-top: 1px dashed #c9dcec;
}
@media (max-width: 768px) {
  .learn-steps ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }
  .learn-steps a {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.2rem;
    text-align: center;
  }
  .learn-steps-text {
    display: none;
  }
  .learn-steps-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .learn-figure {
    padding: 0.5rem;
  }
}
.learn-figure-link {
  position: relative;
  display: block;
}
.learn-zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(31, 45, 43, 0.8);
  border-radius: 3px;
}

/* サイト全体の見直し：動画の一覧・調べ方ガイド・画像が見つからないとき */
.video-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #363636;
}
.video-card-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4a4a4a;
}
.pf-doc .media-left:not(:has(img)) {
  display: none;
}
.img-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #595959;
  background: #f2f4f5;
  border: 1px dashed #c4ccd2;
  border-radius: 4px;
}
/* テーマから探す */
.theme-group-desc {
  margin: -0.75rem 0 0.75rem;
  font-size: 0.9rem;
  color: #4a4a4a;
}
.theme-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.theme-list li + li {
  margin-top: 0.4rem;
}
.theme-list a {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  color: #1f2d2b;
  background: #f3f7f6;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}
.theme-list a:hover,
.theme-list a:focus-visible {
  border-color: #00796b;
}
.theme-count {
  flex: none;
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #00796b;
  border-radius: 999px;
}
.theme-count.is-zero {
  color: #4a4a4a;
  background: #e1e5e8;
}
.theme-groups {
  margin-top: 1rem;
}
