/* ===========================
   Calendar Section - Watercolor Flower Design
   =========================== */

.calendar-section {
  background: #f7f3ec;
  position: relative;
}

.cal-note {
  text-align: center;
  font-size: 0.82rem;
  color: #a09080;
  letter-spacing: 0.08em;
  margin-bottom: 36px;
  font-family: var(--font-ja);
}

/* Main card */
.cal-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: #faf7f2;
  padding: 40px 48px 36px;
  box-shadow: 0 4px 32px rgba(180,150,120,0.12);
  overflow: hidden;
}

/* ---- Flower decorations ---- */
.cal-flower {
  position: absolute;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Top-right large cluster */
.cal-flower-tr {
  top: -10px;
  right: -8px;
  font-size: 5.5rem;
  opacity: 0.55;
  transform: rotate(10deg);
  letter-spacing: -0.1em;
}

/* Bottom-left accent */
.cal-flower-bl {
  bottom: -8px;
  left: -6px;
  font-size: 3.5rem;
  opacity: 0.45;
  transform: rotate(-10deg);
  letter-spacing: -0.05em;
}

/* Bottom-right accent */
.cal-flower-br {
  bottom: -8px;
  right: -6px;
  font-size: 3rem;
  opacity: 0.4;
  transform: rotate(10deg);
  letter-spacing: -0.05em;
}

/* Top-left tiny petal */
.cal-flower-tl {
  top: 16px;
  left: 18px;
  font-size: 1.2rem;
  opacity: 0.3;
}

/* ---- Month header ---- */
.cal-month-header {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.cal-year-num {
  font-family: var(--font-en);
  font-size: 0.95rem;
  color: #a09080;
  letter-spacing: 0.12em;
  line-height: 1;
  padding-bottom: 10px;
}

.cal-month-big {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 300;
  color: #7a6a5a;
  line-height: 1;
}

.cal-month-name {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 300;
  color: #a09080;
  padding-bottom: 12px;
  letter-spacing: 0.05em;
}

/* ---- Header row (month label + nav buttons) ---- */
.cal-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

/* ---- Navigation ---- */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
}

.cal-btn {
  background: none;
  border: 1px solid #c8b8a8;
  color: #a09080;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cal-btn:hover {
  background: #c8b8a8;
  color: #fff;
}

/* ---- Grid ---- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #e0d8ce;
  border-top: 1px solid #e0d8ce;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Day headers */
.cal-header-cell {
  text-align: center;
  font-family: var(--font-round-en);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 10px 4px;
  color: #888;
  border-right: 1px solid #e0d8ce;
  border-bottom: 1px solid #e0d8ce;
  background: #faf7f2;
}
.cal-header-cell.cal-sun { color: #c05070; }
.cal-header-cell.cal-sat { color: #6080b0; }

/* Day cells */
.cal-cell {
  position: relative;
  text-align: left;
  padding: 8px 10px 24px;
  min-height: 72px;
  border-right: 1px solid #e0d8ce;
  border-bottom: 1px solid #e0d8ce;
  background: #faf7f2;
  transition: background 0.15s;
}
.cal-cell:not(.cal-empty):not(.cal-holiday):hover {
  background: #f2ede5;
}
.cal-cell.cal-empty {
  background: #faf7f2;
}

.cal-day-num {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 300;
  display: inline-block;
  line-height: 1.4;
  color: #555;
}
.cal-cell.cal-sun .cal-day-num { color: #c05070; }
.cal-cell.cal-sat .cal-day-num { color: #6080b0; }

/* Closed days */
.cal-cell.cal-holiday {
  background: #faf7f2;
}
.cal-cell.cal-holiday .cal-day-num {
  background: #d4a0b8;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.cal-badge {
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  font-size: 0.55rem;
  color: #b08898;
  text-align: center;
  line-height: 1.2;
  font-family: var(--font-ja);
}

/* Today */
.cal-cell.cal-today .cal-day-num {
  background: #c05070;
  color: #fff !important;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(192,80,112,0.35);
}

/* ---- Business hours footer ---- */
.cal-hours-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #a09080;
  letter-spacing: 0.12em;
  font-family: var(--font-ja);
  padding: 14px 0 10px;
  border-top: 1px solid #e0d8ce;
  position: relative;
  z-index: 1;
}

/* ---- Legend ---- */
.cal-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #a09080;
  font-family: var(--font-ja);
  letter-spacing: 0.04em;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.legend-holiday { background: #d4a0b8; }
.legend-today   { background: #c05070; }
.legend-sun     { background: transparent; border: 1.5px solid #c05070; }
.legend-sat     { background: transparent; border: 1.5px solid #6080b0; }

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .cal-wrap { padding: 36px 16px 28px; }
  .cal-month-big { font-size: 3.5rem; }
  .cal-month-name { font-size: 1.2rem; }
  .cal-cell { padding: 6px 4px 20px; min-height: 54px; }
  .cal-day-num { font-size: 0.82rem; }
  .cal-nav { top: 36px; right: 16px; }
  .cal-flower-tr { font-size: 3.5rem; }
}
