/* ========== index.css ========== */

/* ▼ メニュー画像グリッド */
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin: 2em 0;
}

.menu-grid a img {
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-grid a:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}


/* ▼ お知らせボックス */
.info-box {
  background-color: #fffbe6;
  border: 1px solid #f5d58c;
  border-radius: 8px;
  padding: 1em;
  margin: 1em 0;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.info-date {
  font-weight: bold;
  color: #c39200;
  margin-bottom: 0.5em;
}

.info-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.info-label.type-0 { color: #c00; font-weight: bold; }  /* 重要 */
.info-label.type-1 { color: #0077aa; }                  /* 更新 */
.info-label.type-2 { color: #666; }                     /* その他 */



/* ▼ クイズエリア */
.top-quiz-area {
  background-color: #f9f9f9;
  border: 1px solid #c0d8e8;
  border-radius: 8px;
  padding: 1em;
  margin: 1em auto;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.top-quiz-area h2 {
  font-size: 1.3em;
  margin-bottom: 0.8em;
  color: #005a8d;
  text-align: center;
}

.top-quiz-area form {
  display: inline-block;
  text-align: left;
}

.top-quiz-area form label {
  display: block;
  margin: 0.5em 0;
  font-size: 1.1em;
  cursor: pointer;
}

.top-quiz-area form input[type="radio"] {
  margin-right: 0.5em;
}

.top-quiz-area form button {
  display: block;
  margin: 1em auto 0;
  padding: 0.5em 1.5em;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
}



/* ▼ サブリンク（h3横） */
.h3-sub-link {
  font-size: 1em;
  display: inline-block;
  vertical-align: middle;
}

.h3-sub-link a {
  color: #0066cc;
  text-decoration: none;
}

.h3-sub-link a:hover {
  color: red;
  text-decoration: none;
}


/* ▼ h1見出し内にアイコンを配置（全端末対応） */
.header-with-icons {
  position: relative;
  text-align: center;
  padding: 0.2em 0;
}

.header-with-icons .icon-left {
  position: absolute;
  top: 0.1em; /* ← 上端に固定（お好みで） */
  transform: none; /* ← 中央揃え解除 */
}

.header-with-icons .icon-left {
  left: 0.3em;
}

.header-with-icons img {
  width: 50px;
  height: 50px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition: transform 0.2s;
}

.header-with-icons img:hover {
  transform: scale(1.1);
}
