body {
    font-family: 'Noto Sans JP', 'Kosugi Maru', sans-serif;
    margin: 0;
    line-height: 1.8;
    color: #333;
    background-color: #fff8e7; /* 教室感のある背景色 */
}

header {
    background: #2e4a27; /* 黒板風の色 */
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    border-bottom: 6px double #f9c74f; /* チョーク風 */
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
    color: #d6336c;
    text-shadow: 2px 2px 0 #000;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 50px;
    background: #ffffffee;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 0 0 8px 8px;
}

.eyecatch {
    width: 100%;
    display: block;
    border-radius: 0 0 8px 8px;
}

.lead {
    font-size: 1.2em;
    background: #fff3cd; /* 柔らかい黄色 */
    padding: 20px;
    margin: 30px;
    border-left: 6px solid #ffafcc;
    border-radius: 6px;
    font-weight: bold;
}

section {
    margin: 0 20px 30px 20px;
}

section h3 {
    color: #ff5c8a;
    border-bottom: 2px dashed #ffd6dc;
    padding-bottom: 5px;
    font-family: 'Kosugi Maru', sans-serif;
}

ul {
    padding-left: 20px;
}

.summary {
    background: #f0fff4;
    padding: 20px;
    border-left: 5px solid #80b918;
    margin-top: 30px;
    font-size: 1em;
}

.editor-profile {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #ccc;
    text-align: center;
}

.editor-profile img {
    display: block;
    margin: 0 auto 10px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid #f9c74f;
}

.editor-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    object-position: top center;
}

.editor-team {
  padding: 2em 1em;
  text-align: center;
  background-color: #fff0f6;
}

.editor-team h3 {
  font-size: 1.8em;
  margin-bottom: 1em;
  color: #d6336c;
}

footer {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    margin-top: 50px;
}

/* レスポンシブ対応 */

.article-image {
    text-align: center;
    margin: 20px 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.article-image figcaption {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.members-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1em;
}

.member {
  flex: 0 0 22%;
  max-width: 22%;
  box-sizing: border-box;
  text-align: center;
}

/* メンバー写真 */
.member-photo {
  width: 100%;
  max-width: 120px;
  border-radius: 50%;
  margin: 0 auto 10px auto;
}

/* タブレットサイズ以下（2列） */
@media (max-width: 768px) {
  .member {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

/* スマホサイズ（1列） */
@media (max-width: 480px) {
  .members-wrap {
    flex-direction: column;
    align-items: center;
  }

  .member {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ====== 画像モーダル拡大表示用 ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border: 5px solid white;
  box-shadow: 0 0 15px #000;
  border-radius: 6px;
  transition: 0.3s ease-in-out;
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

img.zoomable {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

img.zoomable:hover {
  transform: scale(1.02);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 40px auto;
  padding: 10px 20px;
  font-weight: bold;
  gap: 20px;
}

.article-nav a {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  background-color: #f9c74f;
  color: #2e4a27;
  border-radius: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;
}

.article-nav a:hover {
  background-color: #ffe066;
  transform: translateY(-2px);
}

.article-nav a.disabled {
  background-color: #ddd;
  color: #999;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
  transform: none;
}
