/* ===== 基本設定 ===== */
body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  font-size: 16px; /* 初期サイズ */
  transition: font-size 0.3s ease;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===== ヘッダー ===== */
header {
  text-align: center;
  padding: 10px;
}
.logo {
  max-width: 200px;
}
.tagline {
  font-size: 0.9em;
  color: #666;
}


/* ===== ロゴ画像 ===== */
.logo {
  width: 100%;
  max-width: 500px;   /* PCでは最大500pxで表示 */
  height: auto;
  display: block;
  margin: 0 auto;
  transition: max-width 0.3s ease;
}

/* 画像がないときの代替テキスト */
.logo-text {
  font-size: 2.4em;
  font-weight: bold;
  color: #e91e63;
  text-align: center;
  display: inline-block;
}

/* h1を中央揃え */
header h1 {
  text-align: center;
  margin: 10px 0;
}

header h1 a {
  text-decoration: none;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .logo {
    max-width: 360px;  /* スマホでは360pxまで縮小 */
  }
}


/* ===== ナビゲーション（固定表示） ===== */
.navbar {
  background-color: #e91e63;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
}
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.navbar li {
  margin: 0;
}
.navbar a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
}
.navbar a:hover {
  background: #c2185b;
}

/* ▼ ナビゲーションのアクティブページ */
.nav-list a.active {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: underline;
  color: #fff;
  display: inline-block;
  line-height: 1.5;   /* ✅ これで縦位置が自然に中央揃え */
}

/* ===== フォントサイズ変更ボタン ===== */
.font-buttons {
  margin-left: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.font-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;          /* ナビゲーションの背景色に合わせて白字 */
  margin-right: 5px;
}

.font-buttons button {
  margin: 0 2px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #e91e63;
  font-weight: bold;
  cursor: pointer;
}
.font-buttons button:hover {
  background: #f8bbd0;
}
/* ===== メインレイアウト ===== */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

/* ===== メインビジュアル ===== */
.main-visual {
  text-align: center;
  margin: 20px auto;
}
.main-image {
  width: 100%;
  max-width: 1000px;   /* PCでは最大1000pxまで拡大可 */
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ===== メインレイアウト ===== */
/*.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ✅ 全体を中央寄せ */
/*  margin: 20px auto;
  gap: 20px;
}

/* ===== コンテナ全体 ===== */
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;  /* ✅ サイト全体の最大幅 */
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

/* ===== main-content（中央寄せ） ===== */
/*.main-content {
  flex: 3;
  min-width: 250px;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 15px;
}*/
/* ===== メインコンテンツ（可変幅） ===== */
.main-content {
  flex: 1 1 700px;     /* ✅ 最小700px、最大は親幅いっぱい */
  width: 100%;         /* ✅ 画面幅に応じて伸縮 */
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
}

h2.noneborder ,
h3.noneborder ,
h4.noneborder {
  padding-bottom: 0.3em;
  color: #e91e63;
}

h2.onborder {
  font-size: 1.8em;
  padding-bottom: 0.3em;
  color: #e91e63;
  border-bottom: 2px solid #e91e63;
}

h3.onborder {
  padding-bottom: 0.3em;
  color: #e91e63;
  border-bottom: 2px solid #e91e63;
}

h4.onborder {
  padding-bottom: 0.3em;
  color: #e91e63;
  border-bottom: 2px solid #e91e63;
}

.main-content p {
  line-height: 1.6;
  margin-bottom: 1em;
}
.main-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.x-timeline {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  text-align: left;
}

.x-timeline h2 {
  font-size: 1.1em;
  color: #e91e63;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

/* ▼ 手動（代替）タイムライン */
.x-feed {
  list-style: none;
  padding: 0;
  margin: 0;
}
.x-feed li {
  margin-bottom: 10px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 6px;
}
.x-feed li a {
  text-decoration: none;
  color: #333;
}
.x-feed li a:hover {
  color: #e91e63;
  text-decoration: underline;
}

.x-link {
  text-align: right;
  margin-top: 8px;
}
.x-link a {
  font-size: 0.9em;
  color: #e91e63;
  text-decoration: none;
}
.x-link a:hover {
  text-decoration: underline;
}


/* ===== 新着情報リスト ===== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
}

.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding: 5px 0;
  border-bottom: 1px dotted #ccc;
}

/* 📌 アイコン */
.news-icon {
  color: #e91e63;
  font-size: 1.2em;
  line-height: 1.2;
}

/* 日付 */
.news-date {
  font-size: 0.9em;
  color: #666;
  min-width: 110px;   /* 年月日表示用に幅調整 */
  text-align: left;
}

/* 本文 */
.news-text {
  font-size: 1em;
  color: #333;
}
/* ===== トピックス ===== */
.topics {
  display: flex;
  gap: 10px;
  margin: 0 auto 10px;
  padding: 0 15px;
}
.topic-img {
  width: 100px;
  height: auto;
}
.topics h2,
.topics h3 {
  margin-bottom: 1em;
  padding-bottom: 0.3em;
  color: #e91e63;
  border-bottom: 2px solid #e91e63;
}
.topic-text h3 {
  margin: 0;
}

/* ===== サイドバー ===== */

.sidebar-banners,
.x-timeline,
.sidebar {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
}

.sidebar {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  background: #ffffff;  /* ✅ 白ベースに変更 */
  padding: 10px;
  margin: 0 auto;
  border: 1px solid #ddd;  /* ✅ 薄い枠線を追加して区切りを分かりやすく */
  border-radius: 6px;      /* ✅ 少し角を丸める */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* ✅ やや立体感をプラス */
}

.sidebar h2 {
  font-size: 1.2em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin: 8px 0;
}
.sidebar a {
  color: #e91e63;
  text-decoration: none;
}
.sidebar a:hover {
  text-decoration: underline;
}

.sidebar-wrapper {
  flex: 0 0 260px;     /* ✅ 固定幅で安定表示 */
  max-width: 280px;
  margin: 0;
  gap: 20px;
}

/* ===== サイドバナー：私の戦争体験 ===== */
.sidebar-banner {
  text-align: center;
  margin: 20px 0;
}

.sidebar-banners img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.sidebar-banners img:hover {
  transform: scale(1.03);
}

.sidebar-banner .war-banner {
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 画像が表示されない時の代替テキスト */
.sidebar-banner .alt-text {
  display: inline-block;
  font-size: 14px;
  color: #333;
  padding: 10px;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ▼ サイドバー　パソコン対応 */
@media screen and (max-width: 1024px) {
  .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

.sidebar-wrapper > .sidebar {
  width: 100% !important;
}


/* ▼ サイドバー　スマホ対応 */
@media screen and (max-width: 768px) {
  .sidebar-wrapper {
    width: 100%;
    max-width: 100%;
    align-items: center;
  }
  .sidebar-wrapper > * {
    margin-bottom: 20px;
  }
  .sidebar-banners {
    text-align: center;
    margin-bottom: 10px; /* ✅ バナー群とリンクリストの間に自然な余白 */
}
  .sidebar-banners img {
    max-width: 100% !important;
  }
}

/* ▼ サイドバー内の全ブロック幅を統一（最重要） */
.sidebar-wrapper > * {
  width: 100% !important;
  box-sizing: border-box;
}


/* ▼ ページトップボタン */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: #e91e63; /* ✅ ナビゲーションと同じピンク色 */
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none; /* デフォルト非表示 */
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  opacity: 0.8;          /* ホバー時は少し透明感を出す */
  transform: scale(1.1); /* ホバー時にちょっと大きく */
}

/* ===== フッター ===== */
footer {
  text-align: center;
  background: #eee;
  padding: 10px;
  font-size: 0.9em;
  margin-top: 20px;
}

/* ===== シェアボタン ===== */

.share-buttons {
  margin: 2em 0;
  text-align: center;
}

.share-buttons span {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.share-btn {
  display: inline-block;
  margin: 0 8px;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9em;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-btn.x { background-color: #000; }       /* X(Twitter) */
.share-btn.facebook { background-color: #3b5998; } /* Facebook */
.share-btn.line { background-color: #06c755; }    /* LINE */

@media print {
  .share-buttons {
    display: none;
  }
}

/* ===== デスクトップでの配置最適化 ===== */
@media screen and (min-width: 1024px) {
  .container {
    justify-content: flex-start; /* ✅ サイドバーを左寄せに */
    gap: 20px;
  }
}

/* ===== スマホ対応 ===== */
/*@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .topics {
    flex-direction: column;
  }
  .font-buttons {
    width: 100%;
    text-align: center;
    margin-top: 5px;
  }
}*/

/* ===== スマホ・タブレット対応 ===== */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .main-content, .sidebar-wrapper {
    max-width: 100%;
  }
}

/* ===== スマホ・タブレット対応 ===== */
@media screen and (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .main-content {
    flex: none;
    width: 100%;
  }

  .sidebar-wrapper {
    max-width: 100%;
    width: 90%;
  }
}.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.main-content {
  flex: 1 1 700px;
  width: 100%;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
}


/* 会について  専用 */
.about-content {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 15px;
  text-align: left;
}
.about-content h2,
.about-content h3 {
  font-size: 1.8em;
  margin-bottom: 1em;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 0.3em;
  color: #e91e63;
}
.about-content p {
  line-height: 1.6;
  margin-bottom: 1em;
}
.about-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}
.logo-info {
  display: flex;
  align-items: flex-start;  /* ← 上揃え */
  gap: 15px;
  margin-bottom: 20px;
}
/* 画像 */
.about-logo {
  max-width: 150px;
  height: auto;
  flex-shrink: 0;
}
/* 説明文 */
.logo-info p {
  flex: 1;
  margin: 0;
  font-size: 1em;        /* ✅ 他の<p>と同じ文字サイズ */
  font-weight: normal;    /* ✅ 太字を解除 */
  color: #333;            /* ✅ 本文カラー（共通テキストカラー） */
  text-align: left;       /* ✅ 左寄せに固定 */
  line-height: 1.6;
}
/* --- スマホでは縦並び --- */
@media screen and (max-width: 600px) {
  .logo-info {
    flex-direction: column;
    align-items: center;   /* 画像だけ中央寄せ */
    text-align: center;
  }
  .logo-info p {
    text-align: left;     /* ✅ スマホでも文章は左寄せのまま */
    margin-top: 1em;
  }
  .about-logo {
    max-width: 70%;
    margin-bottom: 10px;
  }
}

/* 会則ページ */
.yakusoku-content {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 15px;
  text-align: left;
}
.yakusoku-content h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 0.3em;
  color: #e91e63;
}
.yakusoku-content h3 {
  font-size: 1.4em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #e91e63;
}

/* 会則内の番号リスト（1）〜6））はリストマークなし */
.yakusoku-content ul.no-bullet {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.yakusoku-content ul.no-bullet li {
  margin-bottom: 0.5em;
}
.yakusoku-list {
  font-size: 1em;
  line-height: 1.8em;
  margin-left: 1.2em;
}
.yakusoku-list li {
  list-style: none;
  margin-bottom: 1em;
}
.yakusoku-sublist {
  list-style: none;
  margin: 0.5em 0 0.5em 1.5em;
  padding: 0;
}
.yakusoku-sublist li {
  margin-bottom: 0.5em;
}

@media print {
  /* 印刷時に非表示にしたい共通要素 */
  header,
  nav,
  footer,
  #back-to-top,
  .back-link,
  .back-link *,
  .back-icon {
    display: none !important;
  }

  /* 本文はA4横幅に最適化 */
  main, .container, .war_experience-content, .yakusoku-content, .picturediary-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
  }

  /* フォントサイズと行間の調整（読みやすさ重視） */
  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
  }


  /* 見出しの色を印刷向けに黒へ変更（インク節約＆可読性） */
  .yakusoku-content h2,
  .yakusoku-content h3 {
    color: #000;
    border-color: #000;
  }

  /* リンク後の URL を印刷しない */
  a[href]:after {
    content: none !important;
  }
}

/* ===== 私の戦争体験　専用 ===== */

#war_content {
  flex: 3;
  min-width: 250px;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 15px;
  padding-top: 24px;
}

#war_content p {
  line-height: 1.6;
  margin-bottom: 1em;
}
#war_content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

/* === 戦争体験リスト === */

.war-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.war-list li {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.war-no {
  font-weight: bold;
  margin-right: 10px;
  min-width: 50px;
  color: #e91e63;
}

.war-title a {
  color: #333;
  text-decoration: underline;
  font-weight: bold;
}

.war-title a:hover {
  color: #e91e63;
}

.war-author {
  margin-left: auto;
  color: #666;
  font-size: 0.95em;
}

@media screen and (max-width: 600px) {
  .war-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .war-author {
    margin-left: 0;
  }
}

/* ===== レスポンシブ対応 ===== */
@media screen and (max-width: 600px) {
  .war-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .war-author {
    margin-left: 0;
  }
}

/* ===== 私の戦争体験 戦争体験記事 ===== */

#war_content h2 {
  color: #e91e63;
  font-size: 1.8em;
  margin-top: 2em;
  margin-bottom: 1em;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 0.3em;
}
#war_content h2:first-of-type {
  margin-top: 0; /* ← 最初のh2上部余白を打ち消す */
}

#war_content h3 {
  color: #e91e63;
  font-size: 1.5em;
  margin-top: 1.5em;
}

#war_content h4 {
  font-size: 1.2em;
  color: #e91e63;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

#war_article-content .author-name {
  font-size: 1em;
  color: #555;
  margin-bottom: 1.5em;
}

.article-body h3 {
  font-size: 1.2em;
  color: #e91e63;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* 前編・後編ナビをボタン風に */
.article-nav {
  margin: 1.5em 0;
  text-align: center;
}

.article-nav .nav-btn {
  display: inline-block;
  background-color: #e91e63;
  color: #fff;
  padding: 0.4em 1em;
  margin: 0 0.5em;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.article-nav .nav-btn:hover {
  background-color: #c2185b;
  transform: scale(1.05);
}

/* 印刷時は非表示 */
@media print {
  .article-nav {
    display: none !important;
  }
}
@media print {
  #war_content {
    padding-top: 0 !important;
  }
}

/* ===== 戻るボタン ===== */
.back-link {
  margin-top: 40px;
  text-align: left;
}

.back-link a {
  font-size: 1em;
  text-decoration: none;
  color: #e91e63;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.back-link a:hover {
  text-decoration: underline;
}

.back-icon {
  font-size: 1.2em;
}

/* ===== Picture Diary ページ専用 ===== */

.picturediary-content {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 15px;
  text-align: left;
}
.picturediary-content h2,
.picturediary-content h3 {
  color: #e91e63;
}


.creator-profile {
  display: flex;
  align-items: flex-start;  /* ← 上揃え */
  gap: 15px;
  margin-bottom: 20px;
}

/* 画像 */
.creator-profile-pic {
  max-width: 300px;
  height: auto;
  flex-shrink: 0;
}

/* 説明文 */
.creator-profile p {
  flex: 1;
  margin: 0;
  font-size: 1rem;        /* ✅ 他の<p>と同じ文字サイズ */
  font-weight: normal;    /* ✅ 太字を解除 */
  color: #333;            /* ✅ 本文カラー（共通テキストカラー） */
  text-align: left;       /* ✅ 左寄せに固定 */
  line-height: 1.6;
}

/* --- スマホでは縦並び --- */
@media screen and (max-width: 600px) {
  .creator-profile {
    flex-direction: column;
    align-items: center;   /* 画像だけ中央寄せ */
    text-align: center;
  }
  .creator-profile p {
    text-align: left;     /* ✅ スマホでも文章は左寄せのまま */
    margin-top: 10px;
  }
  .creator-profile-pic {
    max-width: 70%;
    margin-bottom: 10px;
  }
}

/* ✅ 画像グリッド */
.picturediary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
}

.picturediary-item {
  text-align: center;
}

.picturediary-item img {
  max-width: 170px;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ccc;
  transition: transform 0.3s ease;
}

.picturediary-item img:hover {
  transform: scale(1.05);
}

.picturediary-item .caption {
  font-size: 0.9em;
  color: #555;
  margin-top: 5px;
}

/* ✅ タブレット（3列表示） */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .picturediary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ✅ スマホ（2列表示＆プロフィール縦並び） */
 @media screen and (max-width: 600px) {
  .picturediary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}
/* 会報 */
/* 会報一覧ページ */
.kaihou-section {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 15px;
  text-align: left;
}
.kaihou-section p {
  line-height: 1.6;
  margin-bottom: 1em;
}
.kaihou-section ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.kaihou-section h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 0.3em;
  color: #e91e63;
}
/* ▼ 会報グリッド（PC 5列） */
.kaihou-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  justify-items: center;
}

/* ▼ kaihou-item 全体 */
.kaihou-item {
  text-align: center;
}

/* ▼ 年代リンク（ページ切り替え） */
.year-links {
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}
.year-links a {
  color: #e6007e;
  text-decoration: none;
  margin: 0 8px;
}
.year-links a:hover {
  text-decoration: underline;
}
/* ▼ 号数タイトル */
.issue-title {
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 1.2em;
}
/* ▼ 発行日 */
.issue-date {
  margin-bottom: 8px;
  font-size: 0.8em;
  color: #555; /* 少し淡いグレーで号数より控えめ */
}
/* ▼ 画像 */
.kaihou-item img {
  width: auto;
  max-width: 160px;
  height: 220px;         /* ✅ 高さ統一 */
  object-fit: cover;     /* ✅ 縦横比維持 */
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.kaihou-item img:hover {
  transform: scale(1.05);
}
/* ▼ モバイル（600px以下 → 2列） */
@media screen and (max-width: 600px) {
  .kaihou-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .issue-title {
    font-size: 15px;
  }
  .issue-date {
    font-size: 13px;
  }
}
/* ▼ タブレット（601px〜1024px → 3列） */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .kaihou-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .kaihou-item img {
    max-width: 140px;
    height: 200px;
  }
}

/* お問い合わせ */
/* ▼ お問い合わせページ */
/* ==============================
   PHP工房 MailForm01 専用フォーム
   ============================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1.5em;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 0.2em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e91e63;
  box-shadow: 0 0 4px rgba(233, 30, 99, 0.3);
}

.contact-form select {
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-buttons {
  display: flex;
  justify-content: center; /* ✅ 中央揃え */
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

.contact-form .btn {
  background-color: #e91e63;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8em 2em;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #c2185b;
}

/* ▼ リセットボタン */
.reset-btn {
  background-color: #9e9e9e;
  color: #fff;
}

.reset-btn:hover {
  background-color: #757575;
}

/* ▼ スマホ時：ボタン縦並びで中央寄せ */
@media (max-width: 600px) {
  .form-buttons {
    flex-direction: column;
    align-items: center;
  }
  .form-buttons .btn {
    width: 80%;
    max-width: 300px;
  }
}
/* 必須マーク */
.required {
  color: #e91e63;
  font-size: 0.9em;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .contact-content {
    padding: 0 10px;
  }
  .contact-form .btn {
    width: 100%;
    text-align: center;
  }
}

/* 印刷時に非表示 */
@media print {
  .contact-form {
    display: none !important;
  }
}

/* ▼ 活動記録ページ 2カラム構成 */
.works-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 左側メイン */
.works-content {
  flex: 3;
  min-width: 300px;
}

/* 右サイドメニュー（固定） */
.works-sidebar {
  flex: 1;
  min-width: 240px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 140px; /* ヘッダー＋ナビバー分の高さ */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.works-sidebar h3 {
  color: #e91e63;
  margin-bottom: 10px;
  border-bottom: 2px solid #e91e63;
  padding-bottom: 5px;
}

/* サイドバーのリンク */
.works-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.works-sidebar ul li {
  margin-bottom: 10px;
}

.works-sidebar ul li a {
  color: #333;
  text-decoration: underline;
}

.works-sidebar ul li a:hover {
  color: #e91e63;
}

/* ▼ ページ内リンクメニュー（前回デザイン改良版） */
.works-menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 10px; /* 横10px・縦12pxのすき間 */
  list-style: none;
  margin: 20px 0 30px;
  padding: 0;
}

.works-menu li {
  margin: 5px; /* 予備の余白（旧ブラウザ対策） */
}

.works-menu a {
  display: inline-block;
  background-color: #e91e63;
  color: #fff;
  padding: 10px 18px;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  font-size: 1em;
}

.works-menu a:hover {
  background-color: #d81b60;
  transform: translateY(-2px);
}

/* ▼ 活動記録：画像ギャラリー */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* PC：可変3列 / タブレット：2列 / スマホ：1列 */
  gap: 15px;
  margin: 15px 0 25px;
}

.work-gallery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ccc;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* hover（PCだけ寄り添って） */
@media (hover: hover) {
  .work-gallery img:hover {
    transform: scale(1.05);
  }
}

/* スマホ・タブレット時 */
@media (max-width: 768px) {
  .works-menu ul {
    flex-direction: row;
    justify-content: center;
    gap: 14px 12px; /* 少し広めに */
    margin-bottom: 25px;
  }

  .works-menu a {
    font-size: 1em;
    padding: 10px 20px;
  }
}

.work-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

/* ▼ 入れ子のサブリスト */
.work-sublist {
  list-style-type: circle;       /* ● → ○ に変更して階層がわかるように */
  margin-top: 6px;
  margin-left: 20px;             /* 一段下げる */
}

.work-sublist li {
  margin-bottom: 4px;
  line-height: 1.5;
}

/* ▼ 活動記録：注釈（備考） */
.work-note {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
  padding-left: 5px;
  border-left: 3px solid #ccc; /* 見やすいアクセント */
  line-height: 1.6;
}

/* トピックス詳細ページ */
.event-info {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 15px;
  margin: 20px 0;
  border-radius: 6px;
}
.event-info p {
  margin: 5px 0;
}