/* Legacy-pages release (news / about / FAQ / 404). Loaded after salon-aligned.css; column.css is not loaded.
   Parts shared with the column pages are copied from column.css so both look the same:
   header SP menu, page head, chips, cards, pagination, closing band, reading typography.
   Token values are design.md's (salon-aligned.css overrides them with beige); no new colors or button styles. */
.pages-page { --white: #FFFFFF; --tint-pink: #FBEDF0; --band-gray: #F5F3F1; --beige: #EAE5E0; overflow: clip; background: var(--white); }

/* Header: same as the column/top pages (SP directory menu from top.css). */
html .gnav .nav-booking-mobile { display: none; }
.header { font-size: 15px; letter-spacing: var(--ls); line-height: 1.5; }
.gnav a.btn-primary.is-sm { min-height: 44px; }
@media (width <= 767px) {
  html.nav-open .header { position: fixed; inset: 0 0 auto; }
  html.nav-open body { padding-top: var(--header-h); }
  html .gnav {
    height: calc(100dvh - var(--header-h));
    bottom: auto;
    padding: 20px max(var(--pad-x), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--pad-x), env(safe-area-inset-left, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    transition-duration: 180ms;
    transition-timing-function: ease-out;
  }
  html .gnav ul { display: block; width: 100%; max-width: 440px; margin-inline: auto; padding-top: 0; }
  html .gnav li:not(.nav-booking) { border-bottom: 1px solid var(--hairline); }
  html .gnav a.nav-pair { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding-block: 20px; text-align: left; }
  html .gnav a.nav-pair .nav-jp { font-size: 20px; line-height: 1.5; text-wrap: balance; }
  html .gnav a.nav-pair .nav-en { flex-shrink: 0; color: var(--ink-note); text-align: right; }
  html .gnav a.nav-pair:hover { opacity: 1; color: var(--accent); }
  html .gnav .nav-booking { padding-top: 28px; }
  html .gnav .nav-booking a.btn-primary { width: 100%; min-height: 56px; padding: 14px 28px; font-size: 16px; line-height: 1.6; box-shadow: none; }
  html .gnav .nav-booking a::after { width: 9px; height: 9px; right: 10px; bottom: 10px; }
  html .gnav .nav-booking-desktop { display: none; }
  html .gnav .nav-booking-mobile { display: inline; }
  html .gnav a:focus-visible, html .nav-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
}
@media (width <= 767px) and (height <= 640px) {
  html .gnav { padding-top: 8px; }
  html .gnav a.nav-pair { min-height: 64px; padding-block: 14px; }
  html .gnav .nav-booking { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { html .gnav { transition: none; } }

/* Breadcrumb: one line, thin chevrons. On pages with a head, it sits on the same wash (no white strip above). */
.pages-page.has-head > .breadcrumb { margin: 0; padding-bottom: 0; background: var(--wash-1); }
.pages-page .breadcrumb ol { flex-wrap: nowrap; overflow: hidden; }
.pages-page .breadcrumb li { flex: none; white-space: nowrap; }
.pages-page .breadcrumb li:last-child { flex: 0 1 auto; min-width: 0; }
.pages-page .breadcrumb li[aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; }
.pages-page .breadcrumb li + li::before { content: "›"; margin: 0 10px; font-size: var(--fz-13); color: var(--ink-soft); }
.pages-page .breadcrumb li[aria-current]::before { display: inline-block; }

/* Page head: pink wash + script label */
.pages-head { position: relative; overflow: hidden; text-align: center; padding: clamp(48px, 7vh, 80px) var(--pad-x) clamp(40px, 6vh, 64px); background: var(--wash-1); }
.pages-head .sec-head, .pages-head .pages-lead { position: relative; z-index: 1; }
.pages-head .sec-en { font-family: "Caveat", cursive; text-transform: none; letter-spacing: .04em; }
.pages-head h1 { margin-top: 8px; font-size: var(--fz-heading); line-height: 1.5; font-weight: 400; word-break: auto-phrase; text-wrap: balance; }
.pages-lead { max-width: 640px; margin: 20px auto 0; font-size: var(--fs-body); line-height: 1.8; letter-spacing: var(--ls-body); color: var(--ink); word-break: auto-phrase; text-wrap: balance; }

/* Category chips (links) */
.cat-filter { padding: clamp(32px, 4.5vh, 48px) var(--pad-x); background: var(--band-gray); }
.cat-en { display: block; margin-bottom: 20px; text-align: center; font-family: "Caveat", cursive; font-size: var(--fz-30); font-weight: 400; letter-spacing: var(--ls-tight); line-height: 1; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; max-width: 1100px; margin: 0 auto; }
.cat-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--hairline); border-radius: 0; background: var(--white); color: var(--ink); font-size: var(--fz-13); letter-spacing: var(--ls-body); white-space: nowrap; transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease, border-color var(--dur-hover) ease; }
.cat-chip:hover { background: var(--band-gray); border-color: var(--hairline-hover); }
.cat-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.cat-chip:focus-visible { outline: 2px solid var(--booking-fill); outline-offset: 3px; }

.pages-empty { text-align: center; padding: clamp(56px, 8vh, 88px) var(--pad-x); }
.pages-empty p { font-size: 16px; line-height: 1.8; color: var(--ink-note); }
.pages-empty p + p { margin-top: 28px; }

/* Cards (same as the column grid card) */
.articles { padding: clamp(56px, 8vh, 88px) var(--pad-x); background: var(--white); }
.articles-inner { max-width: var(--w-main); margin-inline: auto; }
.col-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: var(--fz-12); letter-spacing: var(--ls-body); color: var(--ink-note); }
.col-meta .cat { color: var(--accent); font-weight: 500; letter-spacing: var(--ls-tight); }
.col-media { overflow: hidden; border-radius: var(--radius-media); aspect-ratio: 4 / 3; background: var(--beige); }
.col-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-hover) ease; }
/* No photo: token surface with the i. mark centred */
.col-media--none { display: grid; place-items: center; }
.col-media--none .col-media-icon { width: 24%; height: auto; max-height: 40%; object-fit: contain; }
.col-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.col-card { display: block; min-width: 0; }
.col-card .card-lift { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 16px; border: 1px solid var(--hairline); background: var(--white); transition: transform var(--dur-hover) ease, box-shadow var(--dur-hover) ease; }
.col-card h3 { font-size: var(--fz-16); font-weight: 500; line-height: 1.6; text-wrap: balance; overflow-wrap: anywhere; }
.col-card:focus-visible { outline: 2px solid var(--booking-fill); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .col-card:hover .card-lift { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(51, 51, 51, .13); }
  .col-card:hover .col-media img { transform: scale(1.04); }
}

/* Pagination */
.pagination { margin-top: clamp(40px, 5vw, 64px); }
.pagination ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid var(--hairline); background: var(--white); color: var(--ink); font-size: var(--fz-13); letter-spacing: var(--ls-body); transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.pagination a:hover { background: var(--ink); color: #fff; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { border-color: transparent; }
.pagination a:focus-visible { outline: 2px solid var(--booking-fill); outline-offset: 3px; }

/* Closing band: same design as the top page's .outro (final computed values) */
.pages-page .outro { position: relative; overflow: hidden; padding: 72px var(--pad-x); background: color-mix(in srgb, var(--paper) 74%, var(--accent-soft)); color: var(--ink); }
.pages-page .outro-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 1200px; margin-inline: auto; text-align: center; }
.pages-page .outro-text { margin: 0; font-size: var(--fz-30); font-weight: 400; line-height: 1.5; letter-spacing: var(--ls-body); color: var(--ink); }
.pages-page .outro-text .accent-text { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: currentColor; color: var(--ink); }
.pages-page .outro-script { position: absolute; z-index: 0; right: 4%; top: 24%; font-family: "Sacramento", cursive; font-weight: 400; font-size: var(--fz-script-m); letter-spacing: var(--ls-script); line-height: 1; color: color-mix(in srgb, var(--accent) 22%, transparent); transform: rotate(-8deg); pointer-events: none; user-select: none; }
.pages-page .outro .btn { background: var(--booking-fill); color: #fff; font-size: 14px; min-height: 52px; min-width: 280px; padding: 0 48px; border: 0; border-radius: 0; box-shadow: none; transition: background-color 160ms ease-out; }
.pages-page .outro .btn:hover { background: var(--booking-fill-hover); color: #fff; transform: none; box-shadow: none; }
.pages-page .outro .btn:active { background: var(--booking-fill-active); }
.pages-page .outro .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pages-page .outro .btn { transition: none; } }

/* TextLink */
.textlink { display: inline-block; padding: 8px 4px; font-size: var(--fz-12); color: var(--ink-note); text-decoration: underline; text-underline-offset: 4px; transition: opacity var(--dur-hover) ease; }
.textlink:hover { opacity: .5; }
.textlink:focus-visible { outline: 2px solid var(--booking-fill); outline-offset: 2px; }

/* ---- Notice article ---- */
.article-hero { padding: clamp(40px, 6vh, 64px) var(--pad-x) clamp(32px, 5vh, 48px); background: linear-gradient(180deg, #FFFFFF 0%, var(--wash-1) 45%, var(--wash-2) 72%, #FFFFFF 100%); }
.article-hero-inner, .article-body-inner, .post-nav-inner { max-width: var(--w-narrow); margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: var(--fz-12); letter-spacing: var(--ls-label); color: var(--ink-note); }
.article-category { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--accent-soft); border-radius: 999px; font-size: var(--fz-12); letter-spacing: var(--ls-label); color: var(--accent); background: var(--white); }
.article-category:hover { background: var(--tint-pink); }
.article-title { margin-top: 20px; font-size: var(--fz-38); font-weight: 500; line-height: 1.5; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance; }
.article-eyecatch { margin-top: 28px; aspect-ratio: 1000 / 624; overflow: hidden; border-radius: var(--radius-media); background: var(--beige); }
.article-eyecatch img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: clamp(24px, 3vh, 40px) var(--pad-x) clamp(48px, 7vh, 72px); background: var(--white); }

/* Body typography: same as the column article (reading width 880px). Old notices may be classic HTML,
   so it also covers bare images, tables, embeds, blank-line paragraphs and long unbroken text. */
.article-content { font-size: var(--reading-body-size); line-height: 1.9; letter-spacing: var(--ls-body); overflow-wrap: anywhere; }
.article-content > * + * { margin-top: 20px; }
.article-content > p:has(> br:only-child) { margin-top: 0; }
.article-content h2 { margin-top: 72px; padding-left: 16px; border-left: 4px solid var(--accent); font-size: var(--fz-30); font-weight: 500; line-height: 1.5; text-wrap: balance; }
.article-content h3 { position: relative; margin-top: 48px; padding-left: 20px; font-size: var(--fz-18); font-weight: 500; line-height: 1.6; }
.article-content h3::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.article-content h4, .article-content h5, .article-content h6 { margin-top: 32px; font-size: var(--fz-16); font-weight: 500; line-height: 1.6; }
.article-content h2 + *, .article-content h3 + *, .article-content h4 + * { margin-top: 16px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content strong, .article-content b { font-weight: 500; }
.article-content ul, .article-content ol { padding-left: 24px; display: grid; gap: 10px; }
.article-content li::marker { color: var(--accent); }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-media); }
.article-content iframe, .article-content video, .article-content embed, .article-content object { max-width: 100%; }
.article-content pre { overflow-x: auto; white-space: pre-wrap; }
.article-content figure { margin-top: 36px; }
.article-content figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(480px, 70vh); margin-inline: auto; }
.article-content figcaption, .article-content .wp-caption-text { margin-top: 12px; font-size: var(--fz-12); line-height: 1.7; color: var(--ink-note); text-align: center; }
.article-content .wp-caption { max-width: 100%; }
.article-content .alignleft, .article-content .alignright { float: none; margin-inline: auto; }
.article-content .aligncenter { display: block; margin-inline: auto; }
.article-content blockquote { padding: 20px 24px; border-left: 2px solid var(--accent-soft); font-size: var(--fz-14); line-height: 1.8; }
.article-content .wp-block-table { display: flex; flex-direction: column-reverse; overflow-x: auto; }
.article-content .wp-block-table figcaption { margin: 0 0 10px; font-size: var(--fz-14); font-weight: 500; line-height: 1.6; color: var(--ink); text-align: left; }
.article-content table { width: 100%; min-width: 480px; border-collapse: separate; border-spacing: 0; }
.article-content th, .article-content td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); font-size: var(--fz-14); font-weight: 400; line-height: 1.7; text-align: left; vertical-align: top; }
.article-content thead th { background: var(--band-gray); font-weight: 500; border-top: 1px solid var(--hairline); }
/* Classic themes wrap group blocks in .wp-block-group__inner-container; let its children flow as if direct. */
.article-content .wp-block-group > .wp-block-group__inner-container { display: contents; }

/* image_02..05 after the body */
.news-gallery { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-gallery figure { overflow: hidden; border-radius: var(--radius-media); background: var(--beige); }
.news-gallery figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
.news-gallery img { width: 100%; height: auto; aspect-ratio: 1000 / 624; object-fit: cover; }

/* Previous / next notice and back to the list */
.post-nav { padding: 0 var(--pad-x) clamp(56px, 8vh, 88px); background: var(--white); }
.post-nav-inner { padding-top: clamp(32px, 5vh, 48px); border-top: 1px solid var(--hairline); }
.post-nav-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-nav-links .next { grid-column: 2; }
.post-nav-links a { display: grid; align-content: start; gap: 6px; height: 100%; padding: 16px 20px; border: 1px solid var(--hairline); background: var(--white); color: var(--ink); transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.post-nav-links .next a { text-align: right; }
.post-nav-links a:hover { background: var(--ink); color: #fff; }
.post-nav-links a:focus-visible { outline: 2px solid var(--booking-fill); outline-offset: 3px; }
.post-nav-label { font-size: var(--fz-12); letter-spacing: var(--ls-label); color: inherit; }
.post-nav-title { font-size: var(--fz-14); line-height: 1.6; letter-spacing: var(--ls-body); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-back { margin-top: 28px; text-align: center; }

/* ---- About ---- */
.about-sec { padding: clamp(56px, 8vh, 96px) var(--pad-x); background: var(--white); }
.about-sec--tint { background: var(--tint-pink); }
.about-inner { max-width: var(--w-main); margin-inline: auto; }
.about-grid { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-sec--tint .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.about-sec--tint .about-photo { order: 2; }
.about-photo picture { display: block; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-media); background: var(--beige); }
.about-text p { font-size: var(--reading-body-size); line-height: 1.9; letter-spacing: var(--ls-body); word-break: auto-phrase; text-wrap: pretty; }
.about-text p + p { margin-top: 20px; }
.about-text .about-link { margin-top: 32px; }

/* ---- FAQ: .faq-item / .faq-a are the production accordion (salon-aligned.css); this adds the Q number and page spacing ---- */
.faq-page-list { padding: clamp(56px, 8vh, 88px) var(--pad-x); background: var(--white); }
.faq-page-list .faq-list { margin-top: 0; }
.faq-page-list .faq-item summary { display: flex; align-items: baseline; gap: 12px; }
.faq-no { flex: none; min-width: 2.6em; font-family: "Montserrat", sans-serif; font-size: var(--fz-14); font-weight: 500; letter-spacing: var(--ls-tight); color: var(--accent); }
.faq-q { min-width: 0; overflow-wrap: anywhere; }
.faq-page-list .faq-a { padding: 0 40px 20px calc(2.6em + 12px); }
.faq-page-list .faq-a > * + * { margin-top: 12px; }
.faq-page-list .faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-page-list .faq-a ul, .faq-page-list .faq-a ol { padding-left: 1.4em; display: grid; gap: 6px; font-size: var(--reading-body-size); line-height: 1.75; }
.faq-page-list .faq-a li::marker { color: var(--accent); }
/* Category groups (anchor targets of the chips; clear of the sticky header) */
.faq-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 72px); }
.faq-group-title { padding-left: 16px; border-left: 4px solid var(--accent); font-size: var(--fz-21); font-weight: 500; line-height: 1.5; text-wrap: balance; }
.faq-page-list .faq-group-title + .faq-list { margin-top: 12px; }
.faq-page-list .faq-a .faq-more { margin-top: 4px; }
.faq-page-list .faq-a a.textlink { color: var(--ink-note); text-decoration-color: currentColor; }

/* ---- 404 ---- */
.pages-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: clamp(48px, 7vh, 72px) var(--pad-x) clamp(72px, 10vh, 120px); background: var(--white); }

@media (min-width: 768px) and (width <= 1023px) {
  .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (width <= 767px) {
  .article-content > table { display: block; max-width: 100%; overflow-x: auto; }
  .pages-head { padding-block: 36px 24px; }
  .pages-lead { font-size: 15px; margin-top: 18px; }
  .cat-filter { padding-bottom: 28px; }
  .cat-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat-chip { width: 100%; white-space: normal; text-align: center; font-size: var(--fz-12); padding: 10px 8px; }
  .col-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-content h2 { margin-top: 56px; font-size: 22px; }
  .news-gallery { grid-template-columns: 1fr; }
  .post-nav-links { grid-template-columns: 1fr; }
  .post-nav-links .next { grid-column: auto; }
  .about-grid, .about-sec--tint .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-sec--tint .about-photo { order: 0; }
  .about-photo img { aspect-ratio: auto; }
  .about-text .btn-primary { width: 100%; min-width: 0; }
  .faq-page-list .faq-a { padding-right: 0; }
  .pages-empty .btn { min-width: 0; width: 100%; }
  .pages-404-actions { flex-direction: column; }
  .pages-404-actions .btn, .pages-404-actions .btn-primary { width: 100%; min-width: 0; }
  .pages-page .outro { padding-block: 48px; }
  .pages-page .outro-inner { gap: 24px; }
  .pages-page .outro-text { font-size: var(--fz-21); text-wrap: balance; }
  .pages-page .outro-script { right: 4%; top: 12%; font-size: var(--fz-script-s); opacity: .8; }
  .pages-page .outro .btn { width: 100%; min-width: 0; }
}
