/* The booking pages (/book, /bookings/<id>). The Go site's own file, loaded
   after style.css -- which stays the PHP site's until the cutover -- and only on
   these pages. Colours are style.css's tokens: the navy and grays. */

.book .container { max-width: 640px; }

.book-back { display: inline-block; margin-bottom: 12px; color: var(--gray-500); text-decoration: none; font-size: var(--text-sm); }
.book-back:hover { color: var(--primary-700); }
/* The step bar: a numbered dot per step on one line, filled and ticked as
   each is done, the current one ringed. Equal columns, so seven steps still
   fit a phone. */
.book-steps { list-style: none; display: flex; margin: 0 0 10px; padding: 0; }
.book-steps li {
  flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; font-size: .72rem; line-height: 1.3; color: var(--gray-500);
}
.book-steps li::before {
  content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--gray-200);
}
.book-steps li:first-child::before { display: none; }
.book-steps li.is-done::before, .book-steps li.is-current::before { background: var(--primary-700); }
.book-steps-dot {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; border: 2px solid var(--gray-200); background: var(--white); font-weight: 700; font-size: .8rem;
}
.book-steps li.is-done .book-steps-dot { background: var(--primary-700); border-color: var(--primary-700); color: var(--white); }
.book-steps li.is-current .book-steps-dot { border-color: var(--primary-700); color: var(--primary-700); box-shadow: 0 0 0 4px var(--gray-200); }
.book-steps li.is-current { color: var(--primary-800); font-weight: 700; }
.book-steps-name { max-width: 100%; overflow-wrap: anywhere; }
.book-progress { margin: 0 0 12px; font-size: var(--text-sm); font-weight: 700; color: var(--gray-500); letter-spacing: .04em; }
.book-title { font-size: var(--text-2xl); margin: 0 0 12px; color: var(--primary-800); }

.book-card {
  display: block; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 16px 18px; margin: 0 0 14px; color: var(--gray-800);
}
.book-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.book-label { display: block; font-size: var(--text-xs); color: var(--gray-500); }
.book-meta { white-space: nowrap; color: var(--gray-500); font-size: var(--text-sm); }

.book-notice { background: var(--gray-100); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; font-size: var(--text-sm); }
.book-notice p { margin: 0; }
.book-notice p + p { margin-top: 6px; }

/* The service cards: the whole card is the link. */
a.book-service { text-decoration: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
a.book-service:hover, a.book-service:focus-visible { border-color: var(--primary-600); box-shadow: var(--shadow); }
/* A photo beside each service: 96px square on phones, 140px from 768px. */
.book-service.has-thumb { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.book-thumb { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.book-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-service-body { display: block; min-width: 0; }
@media (min-width: 768px) {
  .book-service.has-thumb { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
}
.book-service.is-special { border-left: 4px solid var(--accent); }
.book-service.is-used { opacity: .6; }
.book-service-name { display: block; font-weight: 700; font-size: var(--text-lg); color: var(--primary-800); }
.book-service-desc { display: block; margin-top: 6px; font-size: var(--text-sm); color: var(--gray-600); line-height: var(--leading-body); }
.book-service-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: var(--text-sm); }
.book-price { font-weight: 700; }
.book-price s { font-weight: 400; color: var(--gray-500); }
.book-service-cta { margin-left: auto; color: var(--primary-700); font-weight: 700; }
.book-badge { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: var(--radius-full); background: var(--accent); color: var(--white); font-size: var(--text-xs); font-weight: 700; }
.book-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--radius-full); background: var(--gray-100); font-size: var(--text-xs); font-weight: 600; vertical-align: middle; }

/* The collapsed steps. */
.book-done { padding: 6px 18px; }
.book-done-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.book-done-row:last-child { border-bottom: 0; }
.book-done dt { color: var(--gray-500); font-size: var(--text-sm); flex-shrink: 0; }
.book-done dd { margin: 0; text-align: right; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.book-change { margin-left: 8px; font-size: var(--text-sm); font-weight: 400; color: var(--primary-700); }

.book-step { font-size: var(--text-lg); margin: 0 0 4px; color: var(--primary-800); }
.book-hint { margin: 4px 0 12px; font-size: var(--text-sm); color: var(--gray-500); }
.book-hint.is-error { color: #dc2626; }
.book-period { margin: 14px 0 8px; font-size: var(--text-xs); font-weight: 700; color: var(--gray-500); letter-spacing: .04em; }
.book-empty { color: var(--gray-500); }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.book-grid--wide { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.book-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px;
  padding: 6px 4px; border: 1px solid var(--gray-300); border-radius: var(--radius);
  color: var(--gray-800); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
a.book-choice:hover, a.book-choice:focus-visible { border-color: var(--primary-600); color: var(--primary-700); background: var(--gray-50); }
.book-choice small { font-size: .7rem; font-weight: 400; opacity: .75; }
.book-choice.is-off { color: var(--gray-400); background: var(--gray-100); text-decoration: line-through; opacity: .6; }

/* The month calendar. */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-weight: 700; }
.cal-nav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; color: var(--gray-800); text-decoration: none; }
a.cal-nav:hover { background: var(--gray-100); }
.cal-nav.is-off { color: var(--gray-300); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { padding: 4px 0; font-size: var(--text-xs); font-weight: 600; color: var(--gray-500); }
.cal th:first-child { color: #dc2626; }
.cal td { padding: 2px; text-align: center; }
.cal-day { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: var(--radius); color: var(--gray-300); font-variant-numeric: tabular-nums; }
.cal-day.is-open { color: var(--primary-800); background: #e6edf6; font-weight: 700; text-decoration: none; }
a.cal-day.is-open:hover, a.cal-day.is-open:focus-visible { background: var(--primary-700); color: var(--white); }
.cal-day.is-today { outline: 2px solid var(--primary-600); outline-offset: -2px; }
.cal-day.is-selected { background: var(--primary-700); color: var(--white); }

/* Staff. */
.book-staff { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-bottom: 8px; border: 1px solid var(--gray-200); border-radius: var(--radius); color: var(--gray-800); text-decoration: none; }
.book-staff:hover, .book-staff:focus-visible { border-color: var(--primary-600); }
.book-staff img, .book-staff-blank { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--gray-100); }
.book-staff-bio { display: block; margin-top: 4px; font-size: var(--text-sm); color: var(--gray-500); line-height: 1.55; }

.book-confirm .form-group:last-of-type { margin-bottom: 16px; }
.book-submit { display: flex; width: 100%; justify-content: center; }
.book-login p { margin: 0 0 12px; color: var(--gray-600); }

.book-success { text-align: center; padding: 16px 0 8px; }
.book-success .book-title { color: #059669; }

/* Notices and muted text, which style.css has no class for. */
.alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.book .alert--error { margin-bottom: 14px; }
.book-muted { color: var(--gray-500); }

/* マイページ (mypage.html), cancel and reschedule. */
.my-section { padding: 18px; }
.my-heading { font-size: var(--text-lg); margin: 0 0 12px; color: var(--primary-800); }
.my-tag { display: inline-block; padding: 1px 8px; border-radius: var(--radius-full); background: #e6edf6; color: var(--primary-700); font-size: .72rem; font-weight: 700; vertical-align: middle; }
.my-balance { display: block; font-size: 2rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--primary-800); }
.my-sub { margin-top: 12px; }
.my-ledger { list-style: none; margin: 4px 0 0; padding: 0; }
.my-ledger li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gray-200); }
.my-ledger li:last-child { border-bottom: 0; }
.my-ledger small { display: block; color: var(--gray-500); font-size: .8rem; }
.my-ledger .is-plus { color: #059669; }
.my-ledger .is-minus { color: #dc2626; }

.my-tabs { display: flex; margin: 0 0 14px; border-bottom: 1px solid var(--gray-200); }
.my-tab { flex: 1; padding: 10px 4px; text-align: center; color: var(--gray-500); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.my-tab:hover { color: var(--primary-700); }
.my-tab.is-current { color: var(--primary-700); border-bottom-color: var(--primary-700); }

.my-booking { padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.my-booking:last-of-type { border-bottom: 0; }
.my-booking-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.my-booking-head > * { min-width: 0; }
.my-booking-name { font-weight: 700; color: var(--primary-800); text-decoration: none; overflow-wrap: anywhere; }
.my-booking-name:hover { color: var(--primary-600); }
.my-status { flex-shrink: 0; margin-left: 0; }
.my-status.is-CONFIRMED { background: #ecfdf5; color: #059669; }
.my-status.is-CANCELLED { background: #fef2f2; color: #dc2626; }
.my-booking-details { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; color: var(--gray-600); font-size: var(--text-sm); }
.my-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.my-actions { display: flex; gap: 8px; margin-top: 12px; }
.my-actions .btn { flex: 1; justify-content: center; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.my-danger { color: #dc2626; border-color: #dc2626; }
.my-danger:hover { background: #dc2626; border-color: #dc2626; color: var(--white); }
.my-danger-fill, .my-danger-fill:hover { background: #dc2626; border-color: #dc2626; }
.my-locked { margin: 10px 0 0; }
.my-again { display: inline-block; margin: 10px 0 0; }
.my-empty { text-align: center; padding: 20px 0 8px; }
.my-empty .btn { margin-top: 8px; }
.my-account { padding: 0; margin: 0 0 12px; border: 0; }
.my-account .book-done-row { flex-direction: column; gap: 2px; }
.my-account dd { text-align: left; }
.my-confirm { margin-bottom: 10px; }
.my-logout { margin-top: 8px; }

/* アカウント設定 (account.html). */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-head strong { display: block; overflow-wrap: anywhere; }
.account-head .book-change { flex-shrink: 0; white-space: nowrap; margin-left: 0; }
.account-form { margin-top: 12px; }
.account-actions { display: flex; gap: 8px; }
.account-actions .btn { flex: 1; justify-content: center; white-space: nowrap; }
.account-warn, .account-link { margin-top: 12px; }

/* The blog (blog.html, blogpost.html). */
.blog-crumb { margin: 0 0 6px; font-size: var(--text-sm); color: var(--gray-500); }
.blog-crumb a { color: var(--gray-500); }
.blog-search { display: flex; gap: 8px; align-items: center; }
.blog-search input { flex: 1; min-width: 0; }
.blog-caption { margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.blog-tags summary { cursor: pointer; margin: 0; }
.blog-tags[open] summary { margin-bottom: 8px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-chip {
  display: inline-block; max-width: 100%; padding: 4px 10px; border: 1px solid var(--gray-300); border-radius: var(--radius-full);
  background: var(--white); color: var(--gray-800); font: inherit; font-size: .8rem; font-weight: 500;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; flex-shrink: 0;
}
a.blog-chip:hover { border-color: var(--primary-600); }
.blog-chip.is-selected { background: var(--primary-700); border-color: var(--primary-700); color: var(--white); font-weight: 700; }
.blog-chip.is-off { opacity: .45; cursor: default; }
a.blog-card { text-decoration: none; transition: border-color var(--transition-fast); }
a.blog-card:hover { border-color: var(--primary-600); }
.blog-date { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--primary-600); }
.blog-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 700; line-height: 1.4; color: var(--primary-800); }
.blog-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: var(--text-sm); color: var(--gray-600); }
.blog-byline { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .8rem; color: var(--gray-500); }
.blog-byline img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blog-cat { padding: 1px 6px; border: 1px solid var(--gray-300); border-radius: 4px; font-size: .7rem; font-weight: 700; }
.blog-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; }
.blog-gap { color: var(--gray-500); padding: 0 2px; }
.blog-range { text-align: center; margin: 6px 0 0; font-size: .8rem; color: var(--gray-500); }
.blog-headline { font-size: var(--text-2xl); line-height: 1.35; margin: 0 0 8px; color: var(--primary-800); }
.blog-article .blog-byline { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); font-size: var(--text-sm); }
.blog-article .blog-byline strong { color: var(--gray-800); }
.blog-body { line-height: var(--leading-prose); overflow-wrap: anywhere; }
.blog-body p { margin: 12px 0; }
.blog-body p:empty { min-height: 1.5em; }
.blog-body h2, .blog-body h3 { margin: 16px 0; font-weight: 700; color: var(--primary-800); }
.blog-body ul, .blog-body ol { padding-left: 24px; margin: 12px 0; }
.blog-body img { max-width: 100%; height: auto; border-radius: 4px; }
.blog-body a { color: var(--primary-600); word-break: break-word; }
.blog-body blockquote { margin: 12px 0; padding-left: 16px; border-left: 3px solid var(--gray-300); color: var(--gray-600); }
.blog-post-tags { margin-top: 16px; }
.blog-author { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50); }
.blog-author img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blog-author p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--gray-600); white-space: pre-line; }
