/* ==========================================================================
   ARTYHUB 長野 ワークショップ予約システム — お客様向けスタイルシート
   ========================================================================== */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-soft: #f4efe8;
  --border: #e6dfd5;
  --border-strong: #d4c9ba;
  --text: #1f2421;
  --text-muted: #636a65;
  --accent: #c85a32;
  --accent-hover: #ae4924;
  --accent-soft: #fdf1ec;
  --forest: #2d5a4c;
  --forest-soft: #eaf3ef;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(31, 36, 33, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 36, 33, 0.08);
  --font-sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --font-display: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #e08a4e 55%, var(--forest) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-hover);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 44px;
  background:
    radial-gradient(circle at 12% 20%, rgba(200, 90, 50, 0.11), transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(45, 90, 76, 0.11), transparent 44%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 660px;
  color: var(--text-muted);
  font-size: 15px;
}

.steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.step-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 28px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Content Cards */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.content-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200, 90, 50, 0.2), var(--shadow-md);
}

.content-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #efe5d8 0%, #e1ece7 100%);
  overflow: hidden;
}

.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  gap: 8px;
  opacity: 0.78;
}

.content-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--text);
}

.meta-pill.price {
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
}

.content-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.1s, opacity 0.16s;
  text-decoration: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-soft);
}

.btn-block {
  width: 100%;
}

/* Booking Area */
.selected-content-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.selected-content-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selected-content-label {
  font-size: 12px;
  color: var(--text-muted);
}

.selected-content-select {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  max-width: 100%;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  margin: 0 0 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}

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

.calendar-month-label {
  font-size: 17px;
  font-weight: 700;
}

.cal-nav-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cal-nav-btn:hover {
  background: var(--surface-soft);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays {
  margin-bottom: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.calendar-weekdays .sun {
  color: #c53030;
}

.calendar-weekdays .sat {
  color: #2b6cb0;
}

.cal-cell {
  min-height: 58px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.cal-cell.is-empty {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.cal-cell:not(:disabled):hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.cal-cell.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cal-cell.is-selected .cal-mark {
  color: #fff;
}

.cal-cell:disabled {
  background: #f6f4f0;
  border-color: #ece7df;
  color: #a6a29c;
  cursor: not-allowed;
}

.cal-day-num {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.cal-mark {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.cal-mark.available {
  color: var(--forest);
}

.cal-mark.few {
  color: var(--warning);
}

.cal-mark.full,
.cal-mark.closed,
.cal-mark.past {
  color: #a6a29c;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Time Slots */
.slots-section {
  margin-bottom: 22px;
}

.slots-hint {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.slot-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.slot-btn.is-selected .slot-remain {
  color: rgba(255, 255, 255, 0.92);
}

.slot-btn:disabled {
  background: #f5f3ef;
  border-color: #e6e1d8;
  color: #a6a29c;
  cursor: not-allowed;
}

.slot-time {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.slot-remain {
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
}

.slot-remain.is-few {
  color: var(--warning);
}

.slot-remain.is-full {
  color: #9b968f;
}

/* Form */
.booking-summary-box {
  background: var(--forest-soft);
  border: 1px solid #cce0d7;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}

.booking-summary-box strong {
  color: var(--forest);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.required-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 90, 50, 0.14);
}

textarea.form-control {
  min-height: 84px;
  resize: vertical;
}

.total-price-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.total-price-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 14px;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
}

.alert-info {
  background: var(--forest-soft);
  color: var(--forest);
  border: 1px solid #cce0d7;
}

/* Completion Card */
.complete-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.complete-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest);
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.complete-title {
  margin: 0 0 10px;
  font-size: 22px;
}

.complete-lead {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.complete-details {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-key {
  color: var(--text-muted);
  flex-shrink: 0;
}

.detail-val {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* External Links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.link-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.link-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--forest);
  flex-shrink: 0;
}

.link-badge.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.link-badge.tiktok {
  background: #111111;
}

.link-badge.map {
  background: #2f855a;
}

.link-badge.line {
  background: #06c755;
}

.link-badge.youtube {
  background: #dc2626;
}

.link-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.link-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-entry-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
}

.admin-entry-link:hover {
  text-decoration: underline;
  color: var(--text);
}

.hidden {
  display: none !important;
}

.empty-state {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

@media (max-width: 900px) {
  .steps-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 60px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding: 36px 0 30px;
  }
  .steps-strip {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 40px 0;
  }
  .panel {
    padding: 16px;
  }
  .cal-cell {
    min-height: 50px;
  }
}
