/* =========================
  基本
========================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding-top: 60px; /* header height */
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background: #FFF8F0;
  color: #444;
}

/* =========================
  ヘッダー（高さ統一）
========================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #FFDDE2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 24px;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1;
  font-weight: bolder;
}

/* navを右寄せ（PC） */
header nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
}

/* =========================
  ハンバーガー（共通）
========================= */
.menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;

  width: 48px;
  height: 60px;          /* headerと同じ */
  padding: 0;            /* ここは0で安定 */
  margin: 0;
  line-height: 1;

  display: none;         /* PCは非表示 */
  align-items: center;
  justify-content: center;

  color: #FF6F91;
  font-size: 28px;
  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:active { opacity: 0.7; }

.menu-toggle:focus {
  outline: 2px solid #FFB6C1;
  outline-offset: 2px;
}

/* =========================
  ヒーロー
========================= */
.hero {
  height: 300px;
  background-image: url("images/background.jpg"); /* 相対パス推奨 */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* =========================
  セクション
========================= */
section {
  max-width: 900px;
  margin: auto;
  padding: 30px;
  
  text-align: center;
}
/* セクション見出しの余白を詰める */
h2 {
  margin-top: 40px;
  margin-bottom: 1px;
}
/* =========================
  カレンダー
========================= */
.calendar-wrapper iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
}

/* =========================
  注意書き
========================= */
.reserve-note,
.reserve-sub-note {
  text-align: center;
  font-size: 14px;
}

/* =========================
  予約・お問い合わせ（アイコン）
========================= */
.unified-contact-box { margin: 50px auto; }

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
}

.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #555;
}

.contact-icon img {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.contact-icon span {
  margin-top: 6px;
  font-size: 14px;
}

/* =========================
  フェードイン（安全版）
========================= */
.fade-in { opacity: 1; transform: none; }

html.js .fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}

html.js .fade-in.is-visible,
html.js .fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
  スマホ：必ずハンバーガー
========================= */
@media (max-width: 768px) {

  /* 文字メニューは隠す */
  header nav ul {
    display: none !important;
  }

  /* ハンバーガー表示 */
  .menu-toggle {
    display: flex !important;
  }

  /* 開いたときだけ */
  header nav ul.open {
    display: flex !important;
    flex-direction: column !important;

    position: absolute !important;
    top: 60px !important;
    right: 10px !important;
    left: auto !important;

    width: 220px !important;
    background: rgba(255, 221, 226, 0.96) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15) !important;
    z-index: 2000 !important;

    gap: 0 !important;
    padding: 10px 0 !important;
  }

  header nav ul.open li {
    margin: 0 !important;
    padding: 0 !important;
  }

  header nav ul.open a {
    display: block !important;
    padding: 12px 16px !important;
    line-height: 1.2 !important;
    font-size: 16px;
  }

  /* 🟢⬇ ここに追加（背景スクロールの保険） */
  body {
    background-attachment: scroll;
  }

　
} /* 🔵 スマホ専用エリアの終了 */


/* =========================
  PC：文字メニューを出す（保険）
========================= */
@media (min-width: 769px) {
  header nav ul { display: flex !important; }
  .menu-toggle { display: none !important; pointer-events: none !important; }
}

/* アコーディオン（規約） */
.accordion-item {
  margin-bottom: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.accordion-header {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: bold;
  background: #FFDDE2;
  border: none;
  text-align: left;
  cursor: pointer;
}

.accordion-header::after {
  content: "＋";
  float: right;
}

.accordion-header.active::after {
  content: "－";
}

.accordion-content {
  display: none;
  padding: 16px;
  line-height: 1.7;
  text-align: left;
}

/* =========================
   背景を写真にする（ホーム全体）
========================= */

body {
  background-image:
    linear-gradient(
      rgba(255, 248, 240, 0.65),
      rgba(255, 248, 240, 0.65)
    ),
    url("images/bg-home.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ===== 予約状況カレンダー ===== */
#reserveCalendar {
  margin-top: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

#monthLabel {
  font-size: 16px;
  font-weight: bold;
}

.calendar {
  width: 100%;
  border-collapse: collapse;
}

.calendar th,
.calendar td {
  background: #ffffff;
  border: 1px solid #000;   /* ★黒 */
  padding: 6px;
  vertical-align: top;
}

.day {
  font-weight: bold;
}

.total {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* ===== カレンダー背景色 ===== */

/* 予約あり */
.calendar td.reserved {
  background: #ffe4ec; /* 薄ピンク */
}

/* 満席 */
.calendar td.full {
  background: #ff6f91; /* 濃ピンク */
  color: #ffffff;
}

/* 数字 */
.calendar .day {
  font-weight: bold;
}

/* 予約表示 */
.calendar .total {
  font-size: 11px;
  margin-top: 4px;
}

/* ===== カレンダー全体を白背景にする ===== */
#reserveCalendar {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.calendar td { min-height: 64px; }

.calendar .total {
  font-size: 18px;
  font-weight: bold;
  margin-top: 6px;
  text-align: center;
  color: inherit;
}

.calendar .day { text-align: center; }

/* =========================
  教室紹介用アコーディオン
========================= */
.intro-accordion {
  background: none;
  box-shadow: none;
  text-align: center;
}

.intro-accordion .accordion-header {
  max-width: 900px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: bold;
  background: #FFDDE2;
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
}

/* ＋−は右下に */
.intro-accordion .accordion-header::after {
  float: right;
  display: block;
  margin-top: 1px;
  font-size: 14px;
}

/* 中身 */
.intro-accordion .accordion-content {
  max-width: 900px;
  margin: 12px auto 0;
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
}

/* 過去日・当日（選択不可） */
.calendar td.past {
  background: #f0f0f0;
  color: #aaa;
  pointer-events: none; /* クリック不可 */
}

/* 「予約不可」の見た目 */
.calendar td.past .total {
  font-size: 11px;
  margin-top: 6px;
  color: #999;
}

.price-box {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px 28px;

  background: rgba(255, 255, 255, 0.85); /* うっすら白 */
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  text-align: left;
}
.price-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.price-box p {
  margin: 6px 0;
  line-height: 1.8;
}

.price-box .note {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}