/* Luum — luum-schedule.css */

:root {
  --beige: #F5EDE3;
  --beige-dark: #EAD9C8;
  --blush-light: #F2DDD6;
  --warm-white: #FDFAF7;
  --brown: #7A6050;
  --brown-light: #B89A88;
  --text-dark: #2E2219;
  --text-mid: #6B5A4E;
  --text-light: #A89080;
  --accent-warm: #B07860;
  --accent-deep: #8C5A72;
  --night-bg: #1E1612;
  --section-bg: #FAF5F0;
  --success: #5A8A6A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1;
}

/* ====== HEADER ====== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(253, 250, 247, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(180, 150, 130, 0.18);
  padding: 14px 5%;
  display: flex; align-items: center; justify-content: space-between;
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
  }

.logo-link { text-decoration: none; }

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; color: var(--brown);
  letter-spacing: 0.18em; font-style: italic;
  line-height: 1; display: block;
}

.logo-sub {
  font-size: 0.55rem; color: var(--text-light);
  letter-spacing: 0.2em; text-transform: uppercase;
}

.header-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-mid);
  text-decoration: none; transition: color 0.3s; letter-spacing: 0.06em;
}
.header-back:hover { color: var(--accent-warm); }
.header-back::before { content: '←'; font-size: 0.9rem; }
/* ロゴ画像のサイズ調整 */
.logo img {
    height: 60px; /* ロゴの高さに合わせて調整 */
    width: auto;
}

/* ====== HERO ====== */
.hero {
  padding: 110px 5% 54px;
  background: var(--night-bg);
  position: relative; overflow: hidden; text-align: center;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(176, 120, 96, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 30%, rgba(140, 90, 114, 0.11) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.26em;
  color: rgba(176, 120, 96, 0.7); text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding-top: 40px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 30px; height: 1px;
  background: rgba(176, 120, 96, 0.4);
}

.hero-icon {
  font-size: 2.2rem; display: block; margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(176, 120, 96, 0.4));
}

.hero-title {
  font-family: 'noto serif jp', serif;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: rgba(255, 255, 255, 0.9); line-height: 1.4;
  margin-bottom: 10px; font-weight: 500;
}

.hero-desc {
  font-size: 0.84rem; color: rgba(255, 255, 255, 0.4);
  line-height: 2; max-width: 420px; margin: 0 auto;
  font-weight: 300;
}

/* ====== SCHEDULE WRAPPER ====== */
.schedule-wrap {
  max-width: 1020px; margin: 0 auto;
  padding: 48px 5% 100px;
}

/* ====== CONTROLS BAR ====== */
.controls-bar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px; flex-wrap: wrap;
}

.week-nav {
  display: flex; align-items: center; gap: 0;
  background: white;
  border: 1px solid rgba(120, 90, 70, 0.14);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(120, 90, 70, 0.06);
}

.week-nav-btn {
  background: none; border: none; cursor: pointer;
  padding: 10px 16px;
  font-size: 0.9rem; color: var(--text-mid);
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.week-nav-btn:hover { background: var(--beige); color: var(--brown); }

.week-label {
  padding: 10px 18px;
  font-family: 'noto serif jp', serif;
  font-size: 0.88rem; color: var(--text-dark);
  border-left: 1px solid rgba(120, 90, 70, 0.1);
  border-right: 1px solid rgba(120, 90, 70, 0.1);
  white-space: nowrap; min-width: 200px; text-align: center;
}

.today-btn {
  background: white;
  border: 1px solid rgba(120, 90, 70, 0.14);
  border-radius: 8px; cursor: pointer;
  padding: 9px 16px;
  font-size: 0.78rem; color: var(--text-mid);
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(120, 90, 70, 0.06);
}
.today-btn:hover { background: var(--beige); color: var(--brown); border-color: var(--brown-light); }

/* Filter chips */
.filter-wrap {
  display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto;
}

.filter-chip {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.74rem; cursor: pointer;
  border: 1px solid rgba(120, 90, 70, 0.15);
  background: white; color: var(--text-mid);
  transition: all 0.2s; white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}
.filter-chip:hover { border-color: var(--brown-light); color: var(--brown); }
.filter-chip.active {
  background: linear-gradient(135deg, #B07860, #8C5A72);
  color: white; border-color: transparent;
  box-shadow: 0 3px 12px rgba(140, 90, 114, 0.28);
}

/* ====== CALENDAR GRID ====== */
.calendar-grid {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(120, 90, 70, 0.08);
  border: 1px solid rgba(120, 90, 70, 0.07);
  margin-bottom: 36px;
}

/* Day headers */
.cal-header {
  display: grid;
  grid-template-columns: 64px repeat(7, 1fr);
  border-bottom: 1px solid rgba(120, 90, 70, 0.08);
}

.cal-header-time {
  padding: 14px 10px;
  background: var(--section-bg);
  border-right: 1px solid rgba(120, 90, 70, 0.06);
}

.cal-day-header {
  padding: 14px 8px; text-align: center;
  border-right: 1px solid rgba(120, 90, 70, 0.06);
  background: var(--section-bg);
}
.cal-day-header:last-child { border-right: none; }

.cal-day-name {
  font-size: 0.7rem; color: var(--text-light);
  letter-spacing: 0.08em; text-transform: uppercase; display: block;
  margin-bottom: 4px;
}

.cal-day-num {
  font-family: 'noto serif jp', serif;
  font-size: 1.3rem; color: var(--text-dark); line-height: 1;
  font-weight: 700;
}

.cal-day-header.today .cal-day-num {
  background: linear-gradient(135deg, #B07860, #8C5A72);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cal-day-header.today .cal-day-name { color: var(--accent-warm); }

/* Time slots body */
.cal-body {
  display: grid;
  grid-template-columns: 64px repeat(7, 1fr);
  position: relative;
}

.cal-time-col {
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(120, 90, 70, 0.06);
}

.cal-time-slot {
  height: 72px;
  display: flex; align-items: flex-start;
  padding: 6px 8px 0;
  border-bottom: 1px solid rgba(120, 90, 70, 0.04);
}

.cal-time-label {
  font-size: 0.66rem; color: var(--text-light);
  letter-spacing: 0.04em;
}

/* Day columns */
.cal-day-col {
  border-right: 1px solid rgba(120, 90, 70, 0.06);
  display: flex; flex-direction: column;
  position: relative;
}
.cal-day-col:last-child { border-right: none; }

.cal-cell {
  height: 72px;
  border-bottom: 1px solid rgba(120, 90, 70, 0.04);
  position: relative;
  padding: 4px;
}

/* ====== CLASS CARDS ====== */
.class-card {
  position: absolute;
  left: 4px; right: 4px;
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  z-index: 2;
}
.class-card:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Category colors */
.cat-relax {
  background: #E8C4B8;
}
.cat-body {
  background: #C8DBC8;
}
.cat-mind {
  background: #C8C0E8;
}
.cat-power {
  background: #E8D4C0;
}
.cat-morning {
  background: #E8DDB0;
}

.class-card-time {
  font-size: 0.6rem; color: var(--text-mid);
  display: block; margin-bottom: 1px;
  font-weight: 600;
}

.class-card-name {
  font-family: 'noto serif jp', serif;
  font-size: 0.72rem; color: var(--text-dark);
  line-height: 1.3; display: block;
}

.class-card-instructor {
  font-size: 0.6rem; color: var(--text-light);
  display: block; margin-top: 2px;
}

.class-card-full {
  position: absolute; top: 4px; right: 4px;
  background: rgba(214, 69, 69, 0.15);
  color: #D64545; font-size: 0.55rem;
  font-weight: 700; padding: 1px 5px;
  border-radius: 3px; letter-spacing: 0.04em;
}

/* ====== LEGEND ====== */
.legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--section-bg);
  border-radius: 10px;
  margin-bottom: 36px;
  align-items: center;
}

.legend-title {
  font-size: 0.72rem; color: var(--text-light);
  letter-spacing: 0.1em; margin-right: 4px;
}

.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.76rem; color: var(--text-mid);
  cursor: pointer;
}

.legend-dot {
  width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
}
.dot-relax  { background: #C48070; }
.dot-body   { background: #6A9A6A; }
.dot-mind   { background: #8070B8; }
.dot-power  { background: #B08050; }
.dot-morning { background: #A09040; }

/* ====== MODAL ====== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(30, 22, 18, 0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1; pointer-events: auto;
}

.modal {
  background: var(--warm-white);
  border-radius: 22px;
  max-width: 440px; width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-top {
  height: 6px;
  background: linear-gradient(135deg, #B07860, #8C5A72);
}

.modal-body { padding: 28px 30px 32px; }

.modal-close {
  float: right; background: var(--beige);
  border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 1rem; color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  margin-top: -4px; margin-right: -4px;
}
.modal-close:hover { background: var(--beige-dark); }

.modal-cat-tag {
  display: inline-block;
  padding: 3px 12px; border-radius: 50px;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 10px;
}

.modal-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.3rem; color: var(--text-dark);
  margin-bottom: 6px; font-weight: 600; line-height: 1.4;
  clear: both;
}

.modal-instructor {
  font-size: 0.82rem; color: var(--text-light);
  margin-bottom: 20px;
}

.modal-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 22px;
}

.modal-info-item {
  background: var(--section-bg);
  border-radius: 10px; padding: 12px 14px;
}

.modal-info-label {
  font-size: 0.66rem; color: var(--text-light);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: block; margin-bottom: 4px;
}

.modal-info-value {
  font-family: 'noto serif jp', serif;
  font-size: 0.92rem; color: var(--text-dark);
  line-height: 1.4;
}

.modal-desc {
  font-size: 0.84rem; color: var(--text-mid);
  line-height: 2; margin-bottom: 24px; font-weight: 300;
}

.modal-reserve-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #B07860, #8C5A72);
  color: white; border: none; border-radius: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.94rem; font-weight: 700;
  letter-spacing: 0.08em; cursor: pointer;
  box-shadow: 0 6px 24px rgba(140, 90, 114, 0.32);
  transition: transform 0.2s, box-shadow 0.2s;
}
.modal-reserve-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(140, 90, 114, 0.44);
}
.modal-reserve-btn:disabled {
  background: #D4C0B0; cursor: not-allowed;
  box-shadow: none; transform: none;
}

.modal-cancel-note {
  font-size: 0.72rem; color: var(--text-light);
  text-align: center; margin-top: 10px; line-height: 1.7;
}

/* Reserved state */
.modal-reserved-msg {
  text-align: center; padding: 14px;
  background: rgba(90, 138, 106, 0.08);
  border: 1px solid rgba(90, 138, 106, 0.2);
  border-radius: 10px;
  font-size: 0.86rem; color: var(--success);
  font-weight: 500;
}

/* ====== MY RESERVATIONS ====== */
.my-reservations {
  background: white;
  border-radius: 18px;
  padding: 28px 28px;
  box-shadow: 0 4px 24px rgba(120, 90, 70, 0.07);
  border: 1px solid rgba(120, 90, 70, 0.07);
}

.my-res-title {
  font-family: 'noto serif jp', serif;
  font-size: 1rem; color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(120, 90, 70, 0.09);
  display: flex; align-items: center; gap: 10px;
}

.my-res-title::before {
  content: '';
  display: block; width: 4px; height: 1.1em;
  background: linear-gradient(180deg, #B07860, #8C5A72);
  border-radius: 2px;
}

.my-res-badge {
  background: linear-gradient(135deg, #B07860, #8C5A72);
  color: white; font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 50px;
  margin-left: 4px;
}

.my-res-empty {
  font-size: 0.84rem; color: var(--text-light);
  text-align: center; padding: 28px 0; line-height: 2;
}

.my-res-list { display: flex; flex-direction: column; gap: 10px; }

.my-res-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--section-bg);
  border-radius: 12px;
  border: 1px solid rgba(120, 90, 70, 0.07);
}

.my-res-color {
  width: 4px; height: 44px; border-radius: 2px; flex-shrink: 0;
}

.my-res-info { flex: 1; }

.my-res-name {
  font-family: 'noto serif jp', serif;
  font-size: 0.9rem; color: var(--text-dark);
  margin-bottom: 3px;
}

.my-res-meta {
  font-size: 0.74rem; color: var(--text-light);
}

.my-res-cancel {
  background: none;
  border: 1px solid rgba(214, 69, 69, 0.3);
  color: #D64545; font-size: 0.72rem;
  padding: 5px 12px; border-radius: 6px;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}
.my-res-cancel:hover {
  background: rgba(214, 69, 69, 0.06);
  border-color: rgba(214, 69, 69, 0.5);
}

/* ====== FOOTER ====== */
footer {
  background: var(--night-bg); padding: 48px 5% 28px;
}

.footer-inner {
  max-width: 1020px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.6rem; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.15em;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.footer-links a {
  font-size: 0.74rem; color: rgba(255, 255, 255, 0.3);
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.7); }

.footer-copy {
  width: 100%; font-size: 0.68rem; color: rgba(255, 255, 255, 0.2);
  padding-top: 20px; margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.08em;
}
.footer-logo img {
    height: 40px; width: auto; display: block;
  }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .cal-header, .cal-body {
    grid-template-columns: 52px repeat(7, 1fr);
  }

  .cal-time-label { font-size: 0.58rem; }
  .cal-day-num { font-size: 1.1rem; }
  .class-card-name { font-size: 0.64rem; }
  .class-card-time { font-size: 0.56rem; }
  .class-card-instructor { display: none; }
}

@media (max-width: 600px) {
  .controls-bar { gap: 10px; }
  .filter-wrap { margin-left: 0; }
  .week-label { min-width: 140px; font-size: 0.78rem; padding: 10px 10px; }

  .cal-header, .cal-body {
    grid-template-columns: 40px repeat(7, 1fr);
  }

  .cal-time-label { font-size: 0.52rem; }
  .class-card { padding: 3px 4px; }
  .class-card-name { font-size: 0.58rem; }

  .hero { padding: 90px 5% 44px; }

  .modal-body { padding: 22px 20px 26px; }
  .modal-info-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
