/* =========================================
  大崎三・五町会 - style.css（やわらか便りテイスト）
  方向性：生成り背景 / 丸いカード / ほっこり余白 / グリーン基調
========================================= */

:root{
  /* ベース：グリーン */
  --green: #2f9f6b;
  --green-dark: #0b5a3e;
  --green-soft: #dff3e3;

  /* 便りっぽさ：生成り・ベージュ */
  --paper: #fbf7ee;        /* 画面全体の「紙」 */
  --cream: #fffaf1;        /* カードのやさしい白 */
  --beige: #f1e2bf;        /* 見出し/装飾の丸背景に使える */
  --line: rgba(0,0,0,0.08);

  /* 文字 */
  --text: rgba(0,0,0,0.86);
  --muted: rgba(0,0,0,0.60);

  /* 角丸・影：ふんわり */
  --radius: 18px;
  --shadow: 0 10px 26px rgba(0,0,0,0.06);
  --shadow-soft: 0 6px 14px rgba(0,0,0,0.05);
}

*{ box-sizing: border-box; }

body{
  font-family: Meiryo, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text);
  line-height: 1.85;

  /* 生成り＋ほのかなグリーンの“紙感” */
  background:
    radial-gradient(1200px 500px at 50% -40%, rgba(47,159,107,0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(241,226,191,0.35), transparent 60%),
    var(--paper);
}

/* リンク */
a{
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover{ opacity: 0.85; }

/* ---- Header（画像だけ残す想定） ---- */
header{
  background: transparent;
  text-align: center;
  padding: 14px 10px 0;
}
header img{
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* ---- Hero（コピー枠） ---- */
.hero{
  max-width: 980px;
  margin: 18px auto 12px;
  padding: 26px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* 便りっぽい “ゆるい飾り” を疑似要素で（画像不要） */
.hero::before{
  content: "🍃";
  position: absolute;
  left: 16px;
  top: 12px;
  font-size: 18px;
  opacity: 0.55;
}
.hero::after{
  content: "🍁";
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 18px;
  opacity: 0.55;
}

.hero-kicker{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
}

.hero-title{
  margin: 0;
  font-size: 28px;
  line-height: 1.7;
  font-weight: 700;
  text-align: center;
}

.hero-sub{
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  text-align: center;
}

/* ---- Nav（やわらかチップ＋カード台） ---- */
nav{
  background: transparent;
  padding: 8px 12px 4px;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav ul{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 10px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);

  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}

nav ul li{ margin: 0; }

nav ul li a{
  display: inline-block;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  background: rgba(223,243,227,0.65);
  border: 1px solid rgba(11,90,62,0.10);
}
nav ul li a:hover{
  background: rgba(223,243,227,0.95);
}

/* ハンバーガー */
.hamburger{
  display: none;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.4em;
  color: var(--green-dark);
  cursor: pointer;
  padding: 6px 10px;
  box-shadow: var(--shadow-soft);
}

.menu{ display: flex; }

/* ---- Cards（section / details） ---- */
section, details{
  padding: 22px 20px;
  max-width: 980px;
  margin: 14px auto;
  background: rgba(255,255,255,0.82);   /* 便りの紙の上のカード感 */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* 見出し：教室だよりっぽく “丸ラベル” でやさしく */
section h2{
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 14px;
  font-size: 18px;
  color: var(--green-dark);
  background: rgba(241,226,191,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
}

/* ---- Details / Summary ---- */
details{
  overflow: hidden;
}

summary{
  font-size: 18px;
  font-weight: 800;
  color: var(--green-dark);
  cursor: pointer;
  padding: 6px 2px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker{ display: none; }

.arrow::before{
  content: "\25BC";
  font-size: 0.72em;
  margin-left: 12px;
  color: rgba(0,0,0,0.35);
}
details[open] .arrow::before{
  content: "\25B2";
}

details p, details ul{
  margin: 12px 0 0;
}
details ul{ padding-left: 18px; }
details li{ margin: 6px 0; }

/* ---- Footer ---- */
footer{
  text-align: center;
  padding: 22px 14px;
  font-size: 0.9em;
  color: white;
  margin-top: 26px;

  /* グリーンは残しつつ、少し柔らかいグラデ */
  background: linear-gradient(180deg, #2f9f6b 0%, #278a5d 100%);
}

footer a{
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer p{ margin: 8px 0; }

footer p.notice{
  font-size: 0.85em;
  opacity: 0.95;
  margin-top: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 768px){
  header{ padding: 10px 10px 0; }

  nav{ padding: 8px 10px 4px; }

  .hamburger{
    display: inline-block;
    margin: 0 0 8px;
  }

  .menu{
    display: none;
    flex-direction: column;
    margin-top: 10px;
    gap: 6px;
    align-items: center;
  }
  .menu.open{ display: flex; }

  nav ul{
    padding: 10px 10px;
  }

  nav ul li a{
    width: 100%;
    text-align: center;
    padding: 10px 14px;
  }

  .hero{
    margin: 14px 12px 10px;
    padding: 20px 14px;
  }
  .hero-title{ font-size: 20px; }
  .hero-sub{ font-size: 14px; }

  section, details{
    margin: 12px 12px;
    padding: 18px 14px;
  }

  summary{ font-size: 17px; }
}
