
:root {
  --red: #e60012;
  --pink: #e96ca8;
  --ink: #1f1f1f;
  --muted: #666;
  --line: #d8d8d8;
  --paper: #fff;
  --soft: #f7f7f7;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}
a { color: #6b2270; }
.site-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 18px 12px;
  border-top: 5px solid var(--red);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.logo-link img { width: min(360px, 72vw); height: auto; display: block; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.site-header nav a, .admin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
}
.site-main { max-width: 1000px; margin: 0 auto; padding: 0 18px 42px; }
.hero { margin-top: 10px; border-bottom: 1px solid var(--line); }
.hero-photo {
  min-height: 230px;
  background: url("/assets/brand/eye_01.png") center / cover no-repeat;
  border: 1px solid var(--line);
}
.hero-copy { padding: 22px 0 18px; }
.lead {
  margin: 0 0 4px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0;
}
h1, h2, h3 { line-height: 1.35; letter-spacing: 0; }
h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 6vw, 2.7rem); }
h2 { margin: 0 0 12px; font-size: 1.35rem; }
.panel {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
}
.panel.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.gate h2 { font-size: 1.55rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.primary {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.button.secondary {
  color: var(--ink);
  border-color: var(--pink);
  background: #fff;
}
.button.danger {
  color: #fff;
  border-color: #9d1d1d;
  background: #9d1d1d;
}
.button.wide { width: 100%; margin-top: 10px; }
.notice {
  margin-top: 16px;
  padding: 16px;
  border-left: 5px solid var(--pink);
  background: var(--soft);
}
.hidden { display: none !important; }
.info-band {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: stretch;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plain-list { margin: 0; padding-left: 1.2em; }
.tel-box {
  border: 1px solid var(--line);
  padding: 16px;
  text-align: center;
}
.tel-box span { display: block; color: var(--muted); }
.tel-box strong { font-size: 1.45rem; color: var(--red); }
.page-head {
  margin: 24px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
label { display: block; margin: 0 0 14px; font-weight: 700; }
.selected-date-box {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  background: #fff;
}
.selected-date-box span {
  font-weight: 700;
  color: var(--muted);
}
.selected-date-box strong {
  font-size: 1.25rem;
  color: var(--ink);
}
.selected-date-box a {
  width: fit-content;
  color: var(--red);
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 5px;
  padding: 9px 10px;
  font: inherit;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
}
textarea { min-height: 100px; resize: vertical; }
.field-error {
  min-height: 1.4em;
  margin: -6px 0 12px;
  color: #9d1d1d;
  font-weight: 700;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.check-row input {
  width: auto;
  min-height: 0;
  margin: 0;
}
.form-result { margin-top: 14px; }
.summary-line {
  margin-bottom: 18px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.month { margin-bottom: 26px; }
.month h2 {
  padding: 8px 0;
  border-bottom: 3px solid var(--pink);
}
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.weekday-cell {
  padding: 4px 2px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.day-cell {
  min-height: 104px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.day-empty {
  min-height: 104px;
  border: 1px solid transparent;
}
.day-cell.available { border-color: var(--red); }
.day-cell.disabled { background: #f4f4f4; color: var(--muted); }
.day-cell .date { display: block; font-weight: 700; }
.day-cell .scarce { display: inline-block; margin: 6px 4px 0 0; padding: 2px 6px; border: 1px solid var(--red); color: var(--red); font-size: .86rem; }
.day-cell .status { display: inline-block; margin-top: 6px; padding: 2px 6px; border: 1px solid var(--line); font-size: .86rem; }
.day-cell a { display: block; color: inherit; text-decoration: none; }
.reservation-list { display: grid; gap: 12px; }
.reservation-item {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 4px;
}
.reservation-qr {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.reservation-qr img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  background: #fff;
}
.checkin-number {
  margin: 10px 0 14px;
  padding: 12px;
  border: 2px solid var(--red);
  text-align: center;
  font-weight: 700;
}
.checkin-number b { display: block; font-size: 3rem; line-height: 1; color: var(--red); }
.checkin-section {
  margin: 14px 0;
  border: 1px solid var(--line);
  background: #fff;
}
.checkin-section summary {
  cursor: pointer;
  padding: 12px;
  font-weight: 700;
  background: #f7f4ef;
}
.checkin-section > .checkin-list,
.checkin-section > .table-wrap,
.checkin-section > p { margin: 0; }
.checkin-actions {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}
.checkin-list {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.checkin-list dt,
.checkin-list dd {
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.checkin-list dt { font-weight: 700; background: #f3f3f3; }
.danger-note { border-left-color: #9d1d1d; background: #fff4f1; }
.print-area { display: none; }
.receipt-ticket {
  width: 72mm;
  padding: 5mm;
  color: #000;
  background: #fff;
  font-family: system-ui, sans-serif;
}
.receipt-ticket h1 {
  margin: 0 0 4mm;
  text-align: center;
  font-size: 28pt;
}
.receipt-ticket p { margin: 0 0 4mm; text-align: center; }
.receipt-ticket dl { margin: 0; }
.receipt-ticket dt { font-weight: 700; margin-top: 2mm; }
.receipt-ticket dd { margin: 0 0 1mm; font-size: 12pt; overflow-wrap: anywhere; }
.receipt-alert {
  border: 1px solid #000;
  padding: 2mm;
  font-weight: 700;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.site-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 18px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}
.footer-links { margin-top: 8px; }
.footer-links a { color: inherit; }
.legal-panel { padding: 0; overflow: hidden; }
.legal-list { margin: 0; }
.legal-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.legal-row:last-child { border-bottom: 0; }
.legal-row dt,
.legal-row dd {
  margin: 0;
  padding: 14px 16px;
}
.legal-row dt {
  font-weight: 700;
  background: #f3f3f3;
}
.legal-row dd { white-space: pre-line; overflow-wrap: anywhere; }
.admin-page { max-width: 1280px; margin: 0 auto; padding: 0 14px 42px; }
.admin-shell {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  margin-top: 18px;
}
.admin-nav {
  border-right: 1px solid var(--line);
  padding-right: 14px;
}
.admin-nav h1 { font-size: 1.25rem; }
.admin-nav button, .admin-nav a {
  width: 100%;
  margin-bottom: 8px;
  justify-content: flex-start;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.admin-select-label {
  display: block;
  margin: 10px 0 8px;
  font-weight: 700;
}
.admin-select-label select {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
.admin-main { min-width: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.stat-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.stat span { display: block; color: var(--muted); font-weight: 700; }
.stat b { display: block; font-size: 1.8rem; color: var(--red); }
.stat-button { cursor: pointer; }
.stat-button:hover,
.stat-button:focus {
  border-color: var(--red);
  outline: 2px solid transparent;
}
.admin-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}
.admin-calendar-head strong { font-size: 1.2rem; }
.admin-calendar-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  min-width: 700px;
  background: #fff;
}
.admin-weekday,
.admin-day-empty,
.admin-day-cell {
  min-height: 92px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.admin-weekday {
  min-height: auto;
  padding: 6px;
  background: #f3f3f3;
  font-weight: 700;
  text-align: center;
}
.admin-day-cell {
  padding: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-day-cell:hover,
.admin-day-cell:focus,
.admin-day-cell.selected {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}
.admin-day-cell.disabled {
  background: #f7f7f7;
  color: var(--muted);
}
.admin-day-date,
.admin-day-cell strong,
.admin-day-cell small,
.admin-day-status {
  display: block;
}
.admin-day-date { font-weight: 700; }
.admin-day-cell strong {
  margin-top: 6px;
  color: var(--red);
  font-size: 1.25rem;
}
.admin-day-cell small { color: var(--muted); }
.admin-day-status {
  margin-top: 4px;
  color: #9d1d1d;
  font-size: .86rem;
  font-weight: 700;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
th { background: #f3f3f3; font-weight: 700; }
td input, td select {
  min-width: 120px;
  min-height: 38px;
  margin-top: 0;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.admin-form .full { grid-column: 1 / -1; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}
.inline-form label { margin: 0; max-width: 180px; }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header nav { justify-content: flex-start; }
  .hero-photo { min-height: 180px; }
  .choice-row, .info-band { display: block; }
  .choice-row .button { width: 100%; margin-bottom: 10px; }
  .day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekday-cell, .day-empty { display: none; }
  .panel { padding: 16px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .legal-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid-three { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  th, td { white-space: normal; }
}
@media print {
  body * { visibility: hidden !important; }
  .print-area, .print-area * { visibility: visible !important; }
  .print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
  }
  .site-header, .site-footer { display: none !important; }
  @page { margin: 0; size: 80mm auto; }
}
