:root{
  --text: #111;
  --muted: #6b7280;
  --line: rgba(0,0,0,0.14);
}

/* Layout (schedule page) */
body{
  margin: 0;
  background: #f6f7fb;
}

.wrap{
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 22px 12px;
}

.card{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: clamp(18px, 2.2vw, 28px);
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* Top bar */
.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.topbar a{
  color:#2563eb;
  text-decoration:none;
  font-weight:600;
}

/* Itinerary */
.itinerary-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Sections */
.group{
  margin: 0;
  padding: 0;
  border: none;
  min-inline-size: 0;
}

.group legend{
  padding: 0 6px;
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legendText{
  color: var(--text);
}

/* Time badge */
.timeBadge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;

  color: rgba(3, 33, 19, 0.92);
  background: rgba(4, 70, 41, 0.12);
  border: 1px solid rgba(4, 70, 41, 0.26);
}

/* Notes */
.note{
  margin: 8px 0 10px 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  color: #374151;
}
.hidden{ display:none !important; }

/* Reference row */
.tiny{
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Image grids */
.ceremony-img-row,
.kimono-img-row,
.dinner-img-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.ceremony-img,
.kimono-img,
.dinner-img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Mobile */
@media (max-width: 720px){
  .ceremony-img-row,
  .kimono-img-row,
  .dinner-img-row{
    grid-template-columns: 1fr;
  }
}

.wrap .card{
  width: 100%;
  max-width: none;
}

/* note */
#ceremony_note.note{
  margin: 8px 0 10px 0;
  padding: 10px 12px;
  color: #374151;
  font-size: 0.95em;
  line-height: 1.45;
  white-space: normal;
  border: 1px solid rgba(16,185,129,0.45);
  background: rgba(16,185,129,0.08);
  border-radius: 10px;
}

#kimono_note.note{
  margin: 8px 0 10px 0;
  padding: 10px 12px;
  color: #374151;
  font-size: 0.95em;
  line-height: 1.45;
  white-space: normal;
  border: 1px solid rgba(245,158,11,0.45);   /* orange */
  background: rgba(245,158,11,0.10);
  border-radius: 10px;
}


#dinner_note.note{
  margin: 8px 0 10px 0;
  padding: 10px 12px;
  color: #374151;
  font-size: 0.95em;
  line-height: 1.45;
  white-space: normal;
  border: 1px solid rgba(236,72,153,0.35);   /* pink */
  background: rgba(236,72,153,0.08);
  border-radius: 10px;
}

/* =========================
   Language switcher
   ========================= */
.langSwitch{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  margin: 8px 0 12px;
}

/* 固定配置（index用） */
.langSwitch--fixed{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;

  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  padding: 8px 10px;
}

.langBtn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 400;
  transition: background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.langBtn:hover{
  transform: translateY(-1px);
}

.langBtn:active{
  transform: translateY(0px);
}

.langBtn.active,
.langBtn.isActive{
  font-weight: 700;
  background: rgba(34, 197, 94, 0.30); /* light green */
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

#langJa.active,
#langJa.isActive{
  font-weight: 700;
  background: rgba(59, 130, 246, 0.30); /* light blue */
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

#langJa::before{
  content:"🍵";
  margin-right: 6px;
}

#langEn::before{
  content:"🌿";
  margin-right: 6px;
}

/* keyboard focus */
.langBtn:focus-visible{
  outline: 2px solid rgba(0,0,0,0.25);
  outline-offset: 2px;
}
