/* 全体デザイン */
body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #d1e5e8;
  color: #333;
}


/* 共通デザイン */
.section h3 {
  font-size: 1.75rem;
  margin: 1.5rem 0 0.8rem;
  padding-bottom: .45rem;
  margin-left: 50px;
  margin-right: 50px;
  border-bottom: 3px solid; /* 線の色は後からクラスで指定 */
}

.section p {
  font-size: 1.30rem;
  line-height: 1.9;
  margin: 0 55px 1rem;
}

/* 1つ目のセクション用の横並びレイアウト */
.first-section-content {
  display: flex;
  gap: 8px;          /* 文章と画像の間隔 */
  align-items: flex-start;
}

/* 左側のテキスト */
.first-section-content .text {
  flex: 1;            /* 幅いっぱい使う */
}

/* 右側の画像 */
.first-section-content .image {
  flex: 0 0 300px;    /* 固定幅300px */
  text-align: center; /* キャプション中央寄せ */
}

.first-section-content .image img {
  width: 100%;        /* 枠いっぱいに拡大縮小 */
  height: auto;       /* 縦横比維持 */
  border-radius: 0px; /* 角丸（任意） */
}

.first-section-content .image figcaption {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #555;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  /* 横並び→縦並びに変更 */
  .first-section-content {
    flex-direction: column;
    gap: 1rem; /* 上下の余白 */
  }

  /* 左側のテキストを幅いっぱいに */
  .first-section-content .text {
    flex: none;
    width: 100%;
    padding: 0 1rem; /* 左右に余白 */
  }

  /* 右側の画像も幅いっぱいに */
  .first-section-content .image {
    flex: none;
    width: 100%;
    padding: 0 1rem; /* 左右に余白 */
  }

  /* 画像を画面幅に合わせる */
  .first-section-content .image img {
    width: 100%;
    height: auto;
  }

  /* キャプションも中央寄せ・読みやすく */
  .first-section-content .image figcaption {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
  }
}



/* ===== 個別の色設定 ===== */

/* ブルーバージョン */
.section-blue h3 {
  color: #2589D0;            /* 小見出し文字色 */
  border-color: #2589D0;     /* 線の色 */
}
.section-blue p {
  color: #333333;            /* 本文文字色 */
}

/* レッドバージョン */
.section-red h3 {
  color: #b91c1c;
  border-color: #ef4444;
}
.section-red p {
  color: #444;
}
@media (max-width: 768px) {
  .first-section-content {
    flex-direction: column;
  }

  .first-section-content .image {
    flex: none;
    width: 100%;
  }

  .first-section-content .image img {
    max-width: 100%;
  }
}
/* ニュース部分 */
.news {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f2f2f2;
  border-left: 6px solid #2589d0;
}

.news h2 {
  margin-top: 0;
  position: sticky;   /* 見出しを固定 */
  top: 0;
  background: #f2f2f2;
  padding: 0.5rem 0;
}

.news ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;   /* 高さを制限 */
  overflow-y: scroll;  /* 常に縦スクロールバー表示 */
}

.news li {
  padding: .5rem 0;
  border-bottom: 1px solid #ddd;
}

/* トップに戻るボタン */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

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

#backToTop:hover {
  background: #1d4ed8;
}
/* hyou.htmlにとぶボタン */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #3b82f6; /* 明るい青 */
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #2563eb; /* 濃い青 */
  transform: scale(1.05);
}

/* 出典 */
.section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 0px solid #eee;
}
.section h2 {
    color: #3498db;
}
.section ul {
    list-style-type: none;
    padding: 0;
}
.section ul li {
    background-color: #ecf0f1;
    margin-bottom: 10px;
    padding: 10px;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}
/* ===== フッター全体 ===== */
.footer {
  background: #1abc9c;
  color: #fff;
  padding: 2.5rem 1rem;
  margin-top: 2rem;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}

/* ===== フッター上部構造 ===== */
.footer-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 2.5rem;
}

/* ===== 左側リンク群 ===== */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}

.footer-column {
  min-width: 140px;
}

.footer-column h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.4rem;
}

.footer-column a {
  color: #f0f0f0;
  text-decoration: none;
  transition: 0.2s;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin: 0.45rem 0;
  line-height: 1.5;
}

/* ===== フッター下部 ===== */
.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #eee;
}

/* ===== SNSリンク ===== */
.sns-links {
  margin-bottom: 1.3rem;
  text-align: center;
}

.sns-links a {
  margin: 0 12px;
  display: inline-block;
  transition: opacity 0.3s;
}

.sns-links img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.sns-links a:hover img {
  opacity: 0.7;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

/* ===== 極小スマホ対応 ===== */
@media (max-width: 480px) {
  .footer {
    padding: 2rem 0.8rem;
  }

  .footer-column h3 {
    font-size: 1rem;
  }

  .footer-column li {
    font-size: 0.9rem;
  }

  .sns-links img {
    width: 28px;
    height: 28px;
  }

  .footer-bottom img {
    width: 80px;
  }
}

/* ===============================
   ナビバー（PC版：現状維持）
================================ */

/* ===== ナビバー ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #67d595;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  z-index: 1000;
}

/* ===== ロゴ ===== */
.logo img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: rotate(10deg);
}

/* ===== ハンバーガー ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  transition: transform 0.3s ease;
}
.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #3e62ad;
  transition: all 0.3s ease;
}

/* × 回転アニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== ナビリンク ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  color: #4e67b0;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.75rem;
  display: inline-block;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links > li > a:hover {
  color: #191970;
  transform: translateY(-2px);
}

/* 現在ページ（PC） */
.nav-links > li > a.active {
  color: #191970;
  border-bottom: 2px solid #191970;
}

/* ===== ドロップダウン（PC） ===== */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #67d595;
  min-width: 14rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links li:hover > .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content li a {
  display: block;
  padding: 0.7rem 1rem;
  color: #4e67b0;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dropdown-content li a:hover {
  background: #7bffb2;
  transform: translateX(5px);
}

.dropdown-content li a.active {
  color: #191970;
}

/* ===== 文字サイズボタン ===== */
.text-size-buttons {
  display: flex;
  gap: 0.5rem;
}

.text-size-buttons button {
  padding: 0.4rem 0.8rem;
  border: 1px solid #1180C4;
  background-color: #fff;
  color: #1180C4;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.text-size-buttons button:hover {
  background-color: #bae2fb;
  transform: scale(1.05);
}

/* ===============================
   タブレット対応
================================ */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.6rem 1rem;
    gap: 1.2rem;
  }

  .nav-links > li > a {
    font-size: 1.1rem;
  }
}

/* ===============================
   スマホ対応（完全版）
================================ */
@media (max-width: 768px) {

  .navbar {
    justify-content: space-between;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
  }

  /* メニュー本体 */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #67d595;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links > li > a {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.15rem;
  }

  /* 現在ページ（スマホ） */
  .nav-links > li > a.active {
    background-color: rgba(25,25,112,0.12);
    border-bottom: none;
  }

  /* ドロップダウン（スマホ） */
  .dropdown-content {
    position: static;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    opacity: 1;
    transition: max-height 0.4s ease;
  }

  .nav-links li.open > .dropdown-content {
    max-height: 500px;
  }

  .dropdown-content li a {
    padding-left: 2rem;
  }

  /* タップアニメーション */
  .nav-links a {
    transition: background-color 0.3s ease, transform 0.15s ease;
  }

  .nav-links a:active {
    transform: scale(0.97);
  }

  /* 文字サイズボタン位置 */
  .text-size-buttons {
    margin-left: auto;
  }
}
/* ===============================
   スマホ・タブレット：ヘッダー横並び調整
================================ */

/* タブレット以下 */
@media (max-width: 1024px) {

  .navbar {
    justify-content: flex-start; /* 左詰め */
    gap: 1rem;
  }

  /* ロゴ */
  .logo {
    flex-shrink: 0;
  }

  /* ハンバーガー */
  .hamburger {
    margin-left: 0;
  }

  /* 文字サイズボタンを横並びで右に続ける */
  .text-size-wrapper {
    margin-left: 0;
  }

  .text-size-buttons {
    display: flex;
    gap: 0.4rem;
  }
}

/* スマホ */
@media (max-width: 768px) {

  .navbar {
    justify-content: flex-start; /* 完全左詰め */
  }

  /* ロゴ → ハンバーガー → 文字サイズ */
  .hamburger {
    order: 2;
  }

  .text-size-wrapper {
    order: 3;
  }

  .logo {
    order: 1;
  }
}




/* トップに戻るボタン */
#back-to-top {
  display: none;               /* 初期は非表示 */
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: #1180C4;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s;
}

#back-to-top:hover {
  background-color: #0d6da8;
}
/*二章の一番最初*/
.box-017 {
    max-width: 1000px;
    margin: 0 auto;
    padding: .5em 1.5em 1em;
    border-top: 5px solid #2589d0;
    border-radius: 3px;
    background-color: #f2f2f2;
}

.box-017 > div {
    margin-bottom: .5em;
    color: #2589d0;
    font-weight: 600;
    font-size: 2em;
}

.box-017 > p {
    margin: 0;
    color: #333;
    font-size: 1.50em
}
/*Q＆A*/
.qa-section {
  max-width: 800px;
  margin: 40px auto;
}

.qa-section h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #0075C2;
}

.qa-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.summary-section {
  background: linear-gradient(135deg, #f0f8ff, #e0f7fa);
  border: 2px solid #90caf9;
  border-radius: 20px;
  padding: 40px 30px;
  margin: 60px auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.summary-section h2 {
  color: #1e3a8a;
  font-size: 1.8em;
  margin-bottom: 20px;
  border-bottom: 2px solid #60a5fa;
  display: inline-block;
  padding-bottom: 5px;
}

.summary-section p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
}

.button-area {
  margin-top: 30px;
}

.btn-light {
  display: inline-block;
  padding: 12px 28px;
  background-color: white;
  border: 2px solid #60a5fa;
  border-radius: 25px;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-light:hover {
  background-color: #dbeafe;
  transform: scale(1.05);
}

/* 質問ボタン */
.question {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #1180C4;
  background: #fff;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
}

.question:hover {
  background: #f0f8ff;
}

/* 答え部分（最初は閉じる） */
.answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #fff;
  border-top: 1px solid #ddd;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.answer.open {
  max-height: 1000px; /* 写真や動画にも対応できるよう大きめ */
  padding: 15px 20px;
}
/* 解決への提案　*/
/* 解決策カードのコンテナ */
.solutions-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

/* 各カード */
.solution-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.solution-card h2 {
    font-size: 1.25rem;
    color: #1180C4;
    margin-bottom: 0.75rem;
}

.solution-card p {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.solution-card strong {
    color: #0075C2;
}

/* カード番号バッジ */
.card-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: #1180C4;
    color: #fff;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* クイズてんぷれ */
.quiz-container{
    max-width:700px;
    margin:2rem auto;
    padding:2rem;
    background:#fff;
    box-shadow:0 4px 8px rgba(0,0,0,0.1);
    border-radius:10px;
}
.quiz h2{
    font-size:1.2rem;
    margin-bottom:0.8rem;
}
.quiz label{
    display:block;
    margin-bottom:0.5rem;
    cursor:pointer;
}
.quiz input[type="text"]{
    padding:0.5rem;
    width:100%;
    max-width:300px;
    margin-bottom:0.5rem;
    border:1px solid #ccc;
    border-radius:5px;
}
.quiz button{
    display:inline-block;
    padding:0.5rem 1rem;
    margin-top:0.5rem;
    border:none;
    border-radius:5px;
    background-color:#1180C4;
    color:#fff;
    font-weight:600;
    cursor:pointer;
    transition: background 0.3s;
}
.quiz button:hover{
    background-color:#0a5a8c;
}
.result{
    margin-top:0.5rem;
    font-weight:bold;
}
.explanation{
    margin-top:0.3rem;
    font-size:0.9rem;
    color:#555;
}
/* 画像付きクイズ用 */
.image-options label{
    display:flex;
    align-items:center;
    gap:0.5rem;
    margin-bottom:0.5rem;
    cursor:pointer;
}
.image-options img{
    width:50px;
    height:auto;
    border:1px solid #ccc;
    border-radius:5px;
}
/* 説明文用 */
.quiz-intro{
    margin-bottom:1.5rem;
    font-size:1rem;
    font-weight:bold;
    color:#0075C2;
}
/* 表のCSS */
.ref-table {
  border-collapse: collapse;
  width: 90%;
  margin-bottom: 32px;
  background: #fff;
}

.ref-table th, .ref-table td {
  border: 1px solid #aaa;
  padding: 8px 12px;
  text-align: center;
  vertical-align: middle;
}

.ref-table th {
  background: #fdca57;
  color: #222;
  font-weight: bold;
  font-size: 14px;
}

.url-row td {
  background: #f6f6ee;
  font-size: 12px;
  color: #666;
}
h2, h3 {
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 8px;
}

h3 {
  font-size: 1.1em;
}
.notes-section {
  background: #fdf7e6;
  border: 2px solid #e4c76a;
  padding: 16px 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 720px;
  margin-bottom: 32px;
}

.notes-section h2 {
  margin-top: 0;
  color: #b88400;
  border-bottom: 1px solid #e4c76a;
  padding-bottom: 4px;
}

.notes-section p {
  line-height: 1.6;
  color: #333;
}

.collaborators-section {
  background: #f5f6fa;
  border: 2px solid #aacde4;
  padding: 16px 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 720px;
  margin-top: 40px;
  margin-bottom: 0;
}

.collaborators-section h2 {
  color: #2c5e95;
  margin-top: 0;
  border-bottom: 1px solid #aacde4;
  padding-bottom: 4px;
}

.collaborators-section ul {
  margin-left: 22px;
  color: #222;
  line-height: 1.6;
}

/* アンダーライン */
    .underline-style {
  text-decoration: underline;
  text-decoration-color: rgb(247, 234, 167); /* 例：青い下線にする */
  text-decoration-thickness: 7px; /* 例：線を2px太くする */
}
/* チャットのCSS */
.chat-container {
    max-width: 750px;
    margin: 20px auto;
    padding: 0 15px;
  }

  .message {
    display: flex;
    align-items: flex-start;
    margin: 25px 0;
  }

  .message.left {
    flex-direction: row;
  }

  .message.right {
    flex-direction: row-reverse;
  }

  /* 🟢 丸いアイコン */
  .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #eee;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }

  .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* 吹き出し */
  .bubble {
    max-width: 70%;
    background: #fff;
    padding: 10px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    line-height: 1.6;
    margin: 0 10px;
    word-break: break-word;
  }

  .left .bubble::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -8px;
    border: 8px solid transparent;
    border-right: 8px solid #fff;
  }

  .right .bubble::before {
    content: "";
    position: absolute;
    top: 18px;
    right: -8px;
    border: 8px solid transparent;
    border-left: 8px solid #fff;
  }

  .speaker {
    font-weight: bold;
    font-size: 0.9rem;
    color: #3a4b6b;
    margin-bottom: 6px;
    border-bottom: 1px dashed #cfcfcf;
    padding-bottom: 2px;
    text-align: left;
  }

  .text {
    font-size: 0.95rem;
    color: #333;
    text-align: left;
  }

  /* 🔹 スマホ対応 */
  @media (max-width: 600px) {
    .chat-container {
      padding: 0 10px;
    }

    .icon {
      width: 50px;
      height: 50px;
    }

    .bubble {
      max-width: 80%;
      font-size: 0.9rem;
      padding: 8px 12px;
    }

    .speaker {
      font-size: 0.85rem;
    }

    .text {
      font-size: 0.9rem;
    }
  }
  /* chatのCSSおわり */
/* 動画のCSS */
 /* 動画プレイヤーのレスポンシブ対応 */
    .video-container {
      width: 90%;
      max-width: 900px; /* パソコンでは大きく */
      margin: 2rem auto;
    }

    video {
      width: 100%;
      height: auto;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    /* スマホでは少し小さく */
    @media screen and (max-width: 768px) {
      .video-container {
        width: 95%;
        max-width: 500px;
      }
    }

    @media screen and (max-width: 480px) {
      .video-container {
        width: 100%;
        max-width: 400px;
      }
    }
/* 動画のCSS終わり */
/* サイトマップのCSS */
.sitemap {
    padding: 1em 1em 1em 2em; /* 左側の余白を増やして右にずらす */
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
    color: #333;
    max-width: 100%;
    box-sizing: border-box;
}

.sitemap li {
    list-style: none;
    position: relative;
    padding: 0.3em 0.3em 0.3em 1.5em; /* 少し右にずらす */
}

/* ツリーの線 */
.sitemap li::before,
.sitemap li::after {
    position: absolute;
    left: 0;
    background-color: #333;
    content: '';
}

.sitemap li::before {
    top: 1em;
    width: 12px; /* 線を少し長く */
    height: 1px;
}

.sitemap li::after {
    top: 0;
    width: 1px;
    height: 100%;
}

.sitemap li:last-child::after {
    height: 1em;
}

/* リンク表示 */
.sitemap a {
    display: inline-block;
    text-decoration: none;
    color: #333;
    padding: 0.25em 0.5em;
    transition: color 0.3s, background-color 0.3s;
}

.sitemap a:hover {
    color: #007acc;
    background-color: rgba(0, 122, 204, 0.1);
}

/* 子リストのインデント */
.sitemap ul {
    padding-left: 2em; /* 子階層も右にずらす */
    margin: 0;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .sitemap {
        padding: 0.5em 0.5em 0.5em 1em;
        font-size: 14px;
    }

    .sitemap li {
        padding-left: 1.2em;
    }

    .sitemap li::before {
        width: 10px;
    }

    .sitemap li::after {
        width: 1px;
    }

    .sitemap ul {
        padding-left: 1.5em;
    }

    .sitemap a {
        padding: 0.3em 0.4em;
    }
}

/*写真制御*/
    /* コンテナを中央寄せ */
    .image-container {
      max-width: 1000px; /* パソコン時の最大幅 */
      margin: 0 auto;    /* 中央寄せ */
      padding: 10px;     /* 余白 */
    }

    /* 画像をレスポンシブに */
    .image-container img {
      width: 100%;      /* 画面幅に応じて自動縮小 */
      height: auto;     /* 縦横比を保持 */
      display: block;   /* 余計な隙間をなくす */
    }

/* 全体：横スクロール禁止 & 余白維持 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #333333;
    font-family: sans-serif;
}

/* セクション左右50px固定 */
.intro-section {
    padding: 40px 50px;
}

/* タイトル */
.intro-section h2 {
    font-size: 1.9rem;
    margin-bottom: 15px;
    color: #2589D0;
    padding-bottom: 6px;
    border-bottom: 3px solid #2589D0;
}

/* PC用：文章＋写真を横並び */
.intro-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 文章部分 */
.intro-text {
    flex: 1;
    min-width: 0;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* 写真部分（1枚でも2枚でも対応） */
.intro-images {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 各写真ブロック */
.intro-images figure {
    margin: 0;
}

/* 写真の縦横比がどうでも絶対に崩れない */
.intro-images img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 4px;
    display: block;
    object-fit: cover;
}

/* キャプション */
.intro-images figcaption {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #333333;
    line-height: 1.4;
}

/* -------- スマホ対応 -------- */
@media (max-width: 900px) {
    .intro-container {
        flex-direction: column;
    }

    .intro-section {
        padding: 30px 30px; /* スマホは左右30pxに統一 */
    }

    .intro-section h2 {
        font-size: 1.6rem;
    }

    .intro-text {
        font-size: 1rem;
    }
}

/* セクション ピクトグラムCSS */
.pictogram-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* 上部説明 */
.section-intro {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.section-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.section-intro p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* リスト */
.pictogram-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 各ピクトグラム */
.pictogram-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 8px;
}

/* 左：画像 */
.pictogram-image {
  width: 200px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.pictogram-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 右：テキスト */
.pictogram-text h3 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.pictogram-text p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== スマホ対応 ===== */
@media (max-width: 600px) {
  .pictogram-item {
    flex-direction: column;
    text-align: center;
  }

  .pictogram-image {
    width: 90px;
  }
}
