/* The booking pages (/clinic/book, /clinic/bookings/<id>/), マイページ, the
   account and the blog. 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 come from style.css's tokens, so the
   branch palettes (玉出 orange, 光明池's) apply here too. */

.book { padding-top: 24px; } /* body already clears the fixed header */
.book .container-narrow { max-width: 640px; }

.book-back { display: inline-block; margin-bottom: 12px; color: var(--color-text-light); text-decoration: none; font-size: .9rem; }
.book-back:hover { color: var(--color-primary); }
.book-progress { margin: 0 0 12px; font-size: .85rem; font-weight: 700; color: var(--color-text-light); letter-spacing: .04em; }
.book-title { font-size: 1.4rem; margin: 0 0 12px; }

.book-card {
    display: block; background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: 12px; padding: 16px 18px; margin: 0 0 14px; color: var(--color-text);
}
.book-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.book-label { display: block; font-size: .75rem; color: var(--color-text-light); }
.book-meta { white-space: nowrap; color: var(--color-text-light); font-size: .9rem; }

.book-notice { background: var(--color-bg-alt); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: .9rem; }
.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 .15s, box-shadow .15s; }
a.book-service:hover, a.book-service:focus-visible { border-color: var(--color-primary); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.book-service.is-special { border-left: 4px solid var(--color-sale); }
.book-service.is-used { opacity: .6; }
.book-service-name { display: block; font-weight: 700; font-size: 1.05rem; }
.book-service-desc { display: block; margin-top: 6px; font-size: .88rem; color: var(--color-text-light); line-height: 1.6; }
.book-service-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: .9rem; }
.book-price { font-weight: 700; }
.book-price s { font-weight: 400; color: var(--color-text-light); }
.book-service-cta { margin-left: auto; color: var(--color-primary); font-weight: 700; }
.book-badge { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 99px; background: var(--color-sale); color: #fff; font-size: .75rem; font-weight: 700; }
.book-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--color-bg-alt); font-size: .75rem; 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(--color-border); }
.book-done-row:last-child { border-bottom: 0; }
.book-done dt { color: var(--color-text-light); font-size: .88rem; 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: .85rem; font-weight: 400; color: var(--color-primary); }

.book-step { font-size: 1.1rem; margin: 0 0 4px; }
.book-hint { margin: 0 0 12px; font-size: .85rem; color: var(--color-text-light); }
.book-hint.is-error { color: var(--color-error); }
.book-period { margin: 14px 0 8px; font-size: .8rem; font-weight: 700; color: var(--color-text-light); letter-spacing: .04em; }
.book-empty { color: var(--color-text-light); }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.book-choice {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px;
    padding: 6px 4px; border: 1px solid var(--color-border); border-radius: 10px;
    color: var(--color-text); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
a.book-choice:hover, a.book-choice:focus-visible { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.book-choice small { font-size: .7rem; font-weight: 400; opacity: .75; }
.book-choice.is-off { color: var(--color-text-light); background: var(--color-bg-alt); 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(--color-text); text-decoration: none; }
a.cal-nav:hover { background: var(--color-bg-alt); }
.cal-nav.is-off { color: var(--color-border); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { padding: 4px 0; font-size: .75rem; font-weight: 600; color: var(--color-text-light); }
.cal th:first-child { color: var(--color-error); }
.cal td { padding: 2px; text-align: center; }
.cal-day { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; color: var(--color-border); font-variant-numeric: tabular-nums; }
.cal-day.is-open { color: var(--color-text); background: var(--color-primary-light); font-weight: 700; text-decoration: none; }
a.cal-day.is-open:hover, a.cal-day.is-open:focus-visible { background: var(--color-primary); color: #fff; }
.cal-day.is-today { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.cal-day.is-selected { background: var(--color-primary); color: #fff; }

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

.book-policy { background: var(--color-bg-alt); color: var(--color-text); }
.book-confirm .form-group:last-of-type { margin-bottom: 16px; }
.book-login p { margin: 0 0 12px; color: var(--color-text-light); }

.book-success { text-align: center; padding: 16px 0 8px; }
.book-success .book-title { color: var(--color-success); }

/* The gym's memberships and plan reservations. */
.book-chip.is-active { background: color-mix(in srgb, var(--color-success) 14%, transparent); color: var(--color-success); margin-left: 0; }
.book-chip.is-pending { background: var(--color-primary-light); color: var(--color-primary-dark); margin-left: 0; }
.book-muted { color: var(--color-text-light); }
.book-plan .book-label + strong + .book-label { margin-top: 4px; }

/* マイページ (mypage.html), cancel and reschedule. */
.my-section { padding: 18px; }
.my-heading { font-size: 1.05rem; margin: 0 0 12px; }
.my-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--color-primary-light); color: var(--color-primary-dark); font-size: .72rem; font-weight: 700; vertical-align: middle; }
.my-points + .my-points { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.my-points .my-tag { margin-bottom: 6px; }
.my-balance { display: block; font-size: 2rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.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(--color-border); }
.my-ledger li:last-child { border-bottom: 0; }
.my-ledger small { display: block; color: var(--color-text-light); font-size: .8rem; }
.my-ledger .is-plus { color: var(--color-success); }
.my-ledger .is-minus { color: var(--color-error); }
.my-row { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.my-row:last-of-type { border-bottom: 0; }
.my-action { margin-top: 10px; }

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

.my-booking { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.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; font-size: 1.02rem; color: var(--color-text); text-decoration: none; overflow-wrap: anywhere; }
.my-booking-name:hover { color: var(--color-primary); }
.my-status { flex-shrink: 0; margin-left: 0; }
.my-status.is-CONFIRMED { background: color-mix(in srgb, var(--color-success) 14%, transparent); color: var(--color-success); }
.my-status.is-CANCELLED { background: color-mix(in srgb, var(--color-error) 12%, transparent); color: var(--color-error); }
.my-booking-details { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; color: var(--color-text-light); font-size: .92rem; }
.my-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.my-actions { display: flex; gap: 8px; margin-top: 12px; }
.my-actions .btn { flex: 1; text-align: center; }
.my-danger { color: var(--color-error); border-color: var(--color-error); }
.my-danger:hover { background: var(--color-error); border-color: var(--color-error); color: #fff; }
.my-danger-fill { background: var(--color-error); border-color: var(--color-error); }
.my-danger-fill:hover { background: color-mix(in srgb, var(--color-error) 85%, #000); border-color: transparent; }
.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: 6px 4px 0; }
.my-account { padding: 0; margin: 0 0 12px; }
.my-confirm { margin-bottom: 10px; }

/* アカウント設定 (account.html). */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-head strong { display: block; overflow-wrap: anywhere; }
.account-form { margin-top: 12px; }
.account-form input { width: 100%; }
.account-actions { display: flex; gap: 8px; }
.account-actions .btn { flex: 1; text-align: center; }
.account-warn, .account-link { margin-top: 12px; }

/* The blog (blog.html, blogpost.html). */
.blog-crumb { margin: 0 0 6px; font-size: .85rem; color: var(--color-text-light); }
.blog-crumb a { color: var(--color-text-light); }
.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(--color-text-light); }
.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(--color-border); border-radius: 99px;
    background: var(--color-surface); color: var(--color-text); 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(--color-primary); }
.blog-chip.is-selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }
.blog-chip.is-off { opacity: .45; cursor: default; }
a.blog-card { text-decoration: none; transition: border-color .15s; }
a.blog-card:hover { border-color: var(--color-primary); }
.blog-date { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--color-primary); }
.blog-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.blog-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: .88rem; color: var(--color-text-light); }
.blog-byline { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .8rem; color: var(--color-text-light); }
.blog-byline img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blog-cat { padding: 1px 6px; border: 1px solid var(--color-border); 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(--color-text-light); padding: 0 2px; }
.blog-range { text-align: center; margin: 6px 0 0; font-size: .8rem; color: var(--color-text-light); }
.blog-headline { font-size: 1.4rem; line-height: 1.3; margin: 0 0 8px; }
.blog-article .blog-byline { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); font-size: .88rem; }
.blog-article .blog-byline strong { color: var(--color-text); }
.blog-body { font-size: .95rem; line-height: 1.85; 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; }
.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(--color-primary); word-break: break-word; }
.blog-body blockquote { margin: 12px 0; padding-left: 16px; border-left: 3px solid var(--color-border); color: var(--color-text-light); }
.blog-post-tags { margin-top: 16px; }
.blog-post-tags .blog-chip { color: var(--color-primary); font-weight: 600; }
.blog-author { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-bg-alt); }
.blog-author img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blog-author p { margin: 4px 0 0; font-size: .88rem; color: var(--color-text-light); white-space: pre-line; }
/* The account card on マイページ: label over value, so a long email address
   keeps its line instead of being squeezed beside the label. */
.my-account .book-done-row { flex-direction: column; gap: 2px; }
.my-account dd { text-align: left; }
/* An edit link beside a long value stays on one line. */
.account-head .book-change { flex-shrink: 0; white-space: nowrap; margin-left: 0; }
/* Side-by-side buttons on a phone: the site's button padding is sized for
   one-word heroes, and wrapped キャンセル mid-word. Tighter, and never broken;
   the empty tab's book-now buttons stack full width instead. */
.my-actions .btn, .account-actions .btn { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.my-empty .btn { display: block; margin: 8px 0 0; white-space: nowrap; }
