html {
  font-size: 100%;
}

html, body {
    background-color: #ebd5d5 !important;  /* フッターと同じ色 */
}


body {
  font-family: "Noto Sans JP", "Zen Kaku Gothic New", "Meiryo", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
  text-align: left;
}
h4{
  text-align: center;
  font-size: 20px;
}
.h4-acces{
  text-align: left;
  margin-left: 0 auto;
}
/* ================= ヘッダー画像 ================= */
.header-reserve {
  width: 100%;
  overflow: hidden;
  background-color: #fff;
}

.header-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
}

/* ================= コンテナ ================ */
.container {
  margin: 40px auto;
  padding: 25px 20px;
  width: 90%;
  max-width: 650px;
  background: #fff;
  border-radius: 14px;
  border: 2px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ================= 見出し ================= */
.heading-highlight {
  background: #ff8c42;
  color: white;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 1.8em;
  display: block;
  width: fit-content;
  margin: 0 auto 22px auto;
  text-align: center;
}

/* ================= UI 基本 ================= */
.section {
  margin-bottom: 20px;
  text-align: left;
}

.section.center {
  margin-top:5px;
  text-align: center;
}
.first-select{
 margin-bottom: 10px;
}
.select-box {
  width: 90%;
  max-width: 320px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background: #fff;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ================= チェック行 ================= */
.check-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.05em;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 25px;
}

/* ================= ボタン ================= */
.date-button, .back-button {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 12px 28px;
  border: none;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}

.date-button {
  background: #007bff;
  color: white;
}

.date-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-button {
  background: #555;
  color: white;
}

.back-button:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* ================= メッセージ表示 ================= */
#message {
  margin-top: 15px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
}

/* ================= ツールチップ ================= */
.help-icon {
  display: inline-block;
  margin-left: 10px;
  background: #007bff;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tooltip {
  display: none;
  position: absolute;
  top: 28px;
  left: -50px;
  background: #fff;
  color: #333;
  padding: 12px;
  width: 260px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  font-size: 0.9em;
  line-height: 1.5;
  z-index: 10;
  border: 1px solid #ddd;
}

/* hover 表示（PC） */
.help-icon:hover .tooltip {
  display: block;
}

/* スマホ用クリック */
.help-icon.active .tooltip {
  display: block;
}



/* ================= Footer ================= */
.footer {
  background: #222;
  color: #ddd;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  box-sizing: border-box;
}

/* copyright */
.footer-bottom {
  text-align: center;
  font-size: 0.8em;
  color: #888;
  padding-top: 15px;
  border-top: 1px solid #444;
  margin-top: 30px;
}
body {
    overflow-x: hidden;
}

/* ================= fade animation ================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.info-block {
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 25px;
  line-height: 1.6;
}
.footer-center ul li a {
    color: #ddd !important;   /* 白寄りの薄い色 */
    text-decoration: none;
}

.footer-center ul li a:hover {
    color: #fff !important;    /* ホバー時に明るい白 */
    text-decoration: underline;
}
/* --- 吹き出し表示を正常化 --- */
/* ================= 吹き出し（？）アイコンと説明文 ================= */

/* ？アイコン本体 */
.help-icon {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  background: #007bff;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 説明テキスト（初期は非表示） */
.help-icon .tooltip {
  display: none;
  position: absolute;
  top: 26px;
  left: 0;
  z-index: 100;
  width: 260px;
  padding: 10px 12px;
  background: #fff;
  color: #333;
  border-radius: 8px;
  font-size: 0.9em;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid #ddd;
  text-align: left;
}

/* PC：マウスを乗せたら表示 */
.help-icon:hover .tooltip {
  display: block !important;
}

/* スマホ：クリックで .active が付いたときに表示 */
.help-icon.active .tooltip {
  display: block !important;
}

/* ====== スマホ時の tooltip はみ出し防止 ====== */
@media (max-width: 600px) {

  .help-icon .tooltip {
    left: 50%;                 /* 基準点を中央に */
    transform: translateX(-50%); /* 真ん中寄せ */
    max-width: 90vw;            /* 画面内に収まる幅 */
    word-break: break-word;     /* 長文は折り返し */
  }
/*ヘルプマークアニメーション*/  
}
.help-icon .tooltip {
  transition: opacity 0.25s ease-in-out;
  opacity: 0;
}

.help-icon:hover .tooltip,
.help-icon.active .tooltip {
  opacity: 1;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

.footer-right,
.footer-center,
.footer-left {
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

  /* 見出しの左右ズレ防止 */
  .footer-center h4,
  .footer-right h4 {
    margin-left: 0;
  }
}
/* ページ横スクロール防止 → 余白の白が表示されるのを防ぐ */
html, body {
    overflow-x: hidden;
}

/* ツールチップが画面に収まるように修正 */
.tooltip {
    max-width: 85vw;            /* スマホでも画面から飛び出ない */
    left: 50%;
    transform: translateX(-50%);  /* 中央寄せ */
    right: auto;
}

/* スマホ時の位置補正 */
@media (max-width: 600px) {
    .tooltip {
        top: 36px;           /* 少し下げる */
        font-size: 0.85em;
        padding: 10px;
    }
}

.help-icon {
    position: relative;
}

.tooltip {
    left: 50%;
    transform: translateX(-50%);
}
.footer {
    background: #222;
    color: #ddd;
    padding: 40px 20px 20px;
    margin-top: 60px;
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
    position: relative;
    min-height: 260px; /* ← 背景が足りない問題を根本解決 */
    overflow: visible !important; /* ツールチップ描画をフッターが邪魔しない */
}
