@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 本体 ---------- */
footer {
  position: relative;
  width: 100%;
  background-image: url("../images/himawari-footer.png");
  background-repeat: no-repeat;
  background-size: 100% auto; /* 左右余白なし */ 
  background-position: center bottom; 
  overflow: hidden; 
  padding-top: 80px; 
  padding-bottom: 370px; /* 高さ +50px */ 
}
       /* ---------- フッターナビ ---------- */ 
.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;

  font-size: clamp(11px, 1.8vw, 14px); /* ← 文字だけ可変 */
}


/* アンダーバー完全除去（全デバイス） */
.footer-nav a,
.footer-nav a:hover,
.footer-nav a:visited,
.footer-nav a:active,
.footer-nav a:focus {
  text-decoration: none !important;
  color: #fff;
}

/* ---------- スマホ用 ---------- */
@media (max-width: 768px) {
  footer {
    height: 300px; /* スマホ用高さ */
    background-image: url("../images/footer_bottom.png");
    background-size: 100% 100%;
    background-position: bottom center;
  }

  .footer-nav {
    bottom: 45px; /* スマホは少し上げる */
    font-size: clamp(9px, 3vw, 12px);
  }

  .footer-row {
    white-space: normal;
  }

  .footer-row a {
    margin: 2px 4px;
    display: inline-block;
  }
}

/* ---------- TV / 大画面（27型以上想定） ---------- */
@media (min-width: 1800px) {
  footer {
    height: 420px;
  }

  .footer-row {
    font-size: 16px;               /* TVだけ文字を少し大きく */
  }

  .footer-nav {
    font-size: 17px;
    bottom: 9%;                    /* 文字拡大によるはみ出し防止 */
  }
}
