@charset "UTF-8";

/* ===============================
   全体リセット
================================= */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: center;
  background-image: url("../images/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
}

/* ===============================
   ヘッダー画像
================================= */
.header {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.top-images {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  display: block;
}

/* ===============================
   計算ツール
================================= */
.calc-box {
  background: #fffaf2;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto 40px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.calc-box h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 600;
  margin: 10px 0 5px;
}

.time-selector select,
#plan {
  padding: 8px;
  font-size: 16px;
  margin-right: 5px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  background: #ffb600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 合計金額 */
.total {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #e85a00;
}

/* ===============================
   セクション文章
================================= */
.section {
  padding: 30px 20px;
  text-align: center;
}

.info-description {
  font-size: 16px;
  line-height: 1.8;
  margin: 20px 0;
}

/* ===============================
   リボン画像
================================= */
.ribbon-container {
  text-align: center;
  margin: 30px 0 10px;
}

.ribbon {
  width: 80%;
  max-width: 350px;
}

/* ===============================
   画像＋テキストブロック
================================= */
.image-text-section {
  text-align: center;
  margin: 20px auto;
  max-width: 700px;
}

.image-text-section h2 {
  font-size: 22px;
}

/* ===============================
   テーブル（施設概要）
================================= */
.table-bordered {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #aaa;
  padding: 10px;
  text-align: left;
  font-size: 15px;
}

.table-bordered th {
  background: #fff3d6;
  width: 30%;
}

/* ===============================
   アクセスマップ
================================= */
.section-teacher {
  width: 90%;
  max-width: 600px;
  height: auto;
}

/* ===============================
   details（規約）
================================= */
details {
  background: #fffaf2;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  max-width: 800px;
  margin: 0 auto;
}

summary {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* ===============================
   チェックボックス＆ボタン
================================= */
#agree-checkbox {
  transform: scale(1.3);
  margin-right: 5px;
}

#submit-button {
  padding: 12px 25px;
  font-size: 18px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
}

#submit-button:disabled {
  opacity: 0.5;
  background: #888;
}

/* ===============================
   スマホ対応
================================= */
@media (max-width: 600px) {
  html, body {
    font-size: 15px;
  }
  .calc-box {
    padding: 15px;
  }
  .table-bordered th,
  .table-bordered td {
    font-size: 14px;
  }
}

/* ===============================
   フッター（統合済み）
   =============================== */
   /* テキストボックスのスタイル */
  footer {
  position: relative;
  width: 100%;
  background-image: url("../images/himawari-footer.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 220px;
}

.footer-nav {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  width: 90%;
  font-family: "Noto Sans JP", sans-serif;
}

.responsive-input {
  width: 100%; /* デフォルトでは100%幅 */
  max-width: 240px; /* 画面の3/1に設定 */
  box-sizing: border-box;
}

/* footer ナビの横並び & 区切り線 */
.footer-row a {
  position: relative;
  padding: 0 12px; /* 区切り線の左右余白 */
  text-decoration: none;
  color: #333; /* 色は自由に変更 */
}

/* 各リンクの後ろに ｜ を追加（最後以外） */
.footer-row a:not(:last-child)::after {
  content: "｜";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%); /* 完全中央配置 */
  color: #333;
}

/* 横並び中央揃え */
.footer-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* スマホで折り返し可能 */
  gap: 5px; /* 折り返し時の余白調整 */
  margin-bottom: 10px;
}

/* footer ナビの自動縮小フォント */
.footer-row a {
  font-size: clamp(10px, 2vw, 16px); 
}

.footer-row {
  line-height: clamp(14px, 3vw, 24px);
}

@media (max-width: 480px) {
  .footer-row a {
      font-size: 10px;
  }
}
