/* ===== 緑ページ専用 ===== */
.green-page header {
  background-color: #388e3c;
  color: #fff;
  padding: 10px 0;
}
.green-page header h1 { margin: 0; }
.green-page header nav a {
  display: inline-block;
  padding: 6px 12px;
  margin: 3px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  color: #fff;
}
.green-page header nav a.red    { background: #d32f2f; }
.green-page header nav a.blue   { background: #1976d2; }
.green-page header nav a.green  { background: #388e3c; }
.green-page header nav a.orange { background: #f57c00; }
.green-page header nav a.index  { background: #000; }

/* タブ・カード・グリッド */
.green-page .tabs {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  flex-wrap: wrap;
}
.green-page .tabs button {
  margin: 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  background: #43a047;
}
.green-page .tabs button.active { background: #2e7d32; }

.green-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: 10px;
  padding: 10px;
}
.green-page .card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
}
.green-page .card img {
  width: 100%;
  border-radius: 5px 5px 0 0;
}
.green-page .card p {
  margin: 0;
  padding: 5px;
  font-size: 14px;
  text-align: center;
}

/* モーダル */
.green-page .modal {
  display: none;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 20;
}
.green-page .modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
}
.green-page .modal-content h2 { margin-top:0; }
.green-page .close {
  float:right;
  cursor:pointer;
  font-size:18px;
}

/* ページトップボタン */
.green-page #toTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;       /* 幅固定 */
  height: 40px;      /* 高さ固定 */
  line-height: 40px; /* 文字を縦中央に */
  text-align: center; 
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  background: #388e3c;
  color: #fff;
  padding: 0;        /* paddingは不要に */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* サークル番号 */
.card .circle-number {
  font-size: 12px;
  color: #666;
  margin: 2px 0 5px 0;
}
