/* Lumièreのレスポンシブ。共通値→共通部品→17役割の順で編集する。 */

@media (max-width: 75rem) {
  /* 共通デザイン値 */
  [data-template="lumiere"] {
    --space-inline: 48px;
    --space-grid: 48px;
    --space-card-gap: 32px;
    --font-size-card: 1.375rem;
    --font-size-heading: 2.25rem;
    --font-size-hero-title: 3.25rem;
  }
  /* ヘッダー */
  :where([data-section="header"][data-ui="lumiere"]) .site-header__inner {
    column-gap: var(--space-stack);
  }
  :where([data-section="header"][data-ui="lumiere"]) .site-nav {
    flex-wrap: wrap;
    gap: var(--space-small) var(--space-small);
  }
  /* お悩み */
  :where([data-section="worries"][data-ui="lumiere"]) {
    --worries-columns: var(--worries-columns-tablet);
  }
  /* 選ばれる理由 */
  :where([data-section="reasons"][data-ui="lumiere"]) .reasons__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-card-gap) var(--space-stack);
  }
  /* ご利用の流れ */
  :where([data-section="steps"][data-ui="lumiere"]) .steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :where([data-section="steps"][data-ui="lumiere"]) .steps__item:not(:last-child)::after {
    content: none;
  }
  /* お問い合わせ */
  :where([data-section="contact"][data-ui="lumiere"]) {
    --contact-label-width: var(--contact-label-width-tablet);
  }
  :where([data-section="contact"][data-ui="lumiere"]) .contact__method {
    flex-wrap: wrap;
  }
}

@media (max-width: 48rem) {
  html {
    scroll-padding-block-start: var(--size-scroll-offset);
  }
  /* 共通デザイン値 */
  [data-template="lumiere"] {
    --space-inline: 24px;
    --space-section: 40px;
    --space-header-y: 10px;
    --space-header-inline: var(--space-inline);
    /* スマホ表示でファーストビュー全体に使う高さ */
    --size-hero-height: 480px;
    --font-size-brand: 1.75rem;
    --font-size-hero-title: 2.25rem;
    --space-page-top-x: 4px;
    --space-grid: 40px;
    --space-card-gap: 32px;
    --space-heading: 32px;
    --space-list: 20px;
    --font-size-heading: 1.75rem;
    --font-size-card: 1.375rem;
    --font-size-number: 1.875rem;
    --size-button-width: 256px;
    --space-button-padding: 28px;
  }
  /* Lumière共通部品・ページ操作 */
  :where([data-section][data-ui="lumiere"]) .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* ボタン・リンクはスマホでは中央にそろえる（めぐ決定 2026-10-31）。ドロワー内のボタンは幅いっぱいのまま */
  :where([data-section][data-ui="lumiere"]) :is(.button, .text-link) {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }
  /* スマホヘッダーと右側ドロワー */
  :where([data-section="header"][data-ui="lumiere"]).site-header {
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--color-background);
  }
  body.is-menu-open {
    overflow: hidden;
  }
  :where([data-section="header"][data-ui="lumiere"]).site-header::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--color-shade);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--motion-duration) var(--motion-easing), visibility var(--motion-duration);
  }
  body.is-menu-open > :where([data-section="header"][data-ui="lumiere"]).site-header::before {
    opacity: 1;
    visibility: visible;
  }
  /* ヘッダー */
  :where([data-section="header"][data-ui="lumiere"]) .site-header__inner {
    grid-template-columns: 1fr auto;
  }
  :where([data-section="header"][data-ui="lumiere"]) .site-header__toggle {
    position: relative;
    z-index: 2;
    display: block;
    grid-column: 2;
    grid-row: 1;
  }
  :where([data-section="header"][data-ui="lumiere"]) .site-nav {
    position: fixed;
    z-index: 1;
    inset: 0 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-stack);
    width: 70%;
    height: 100dvh;
    padding: var(--space-drawer);
    overflow-y: auto;
    background: var(--color-background);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--motion-duration) var(--motion-easing), visibility var(--motion-duration);
  }
  :where([data-section="header"][data-ui="lumiere"]) .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  :where([data-section="header"][data-ui="lumiere"]) .site-nav .button {
    min-width: 0;
    width: 100%;
    padding-inline: var(--space-offset);
  }
  /* ファーストビュー */
  :where([data-section="hero"][data-ui="lumiere"]) .hero__media::after {
    background: linear-gradient(0deg, var(--color-wash), var(--color-wash) 55%, var(--color-transparent));
  }
  :where([data-section="hero"][data-ui="lumiere"]) .hero__media img {
    object-position: 62% 50%;
  }
  :where([data-section="hero"][data-ui="lumiere"]) .hero__inner {
    align-items: flex-end;
  }
  /* 本文の幅を画面いっぱいにして、ボタンを画面の中央に置く */
  :where([data-section="hero"][data-ui="lumiere"]) .hero__copy {
    flex: 1;
    max-width: none;
  }
  /* お悩み */
  :where([data-section="worries"][data-ui="lumiere"]) {
    --worries-columns: var(--worries-columns-sp);
  }
  /* コンセプト */
  :where([data-section="concept"][data-ui="lumiere"]) .concept__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 選ばれる理由 */
  :where([data-section="reasons"][data-ui="lumiere"]) .reasons__list {
    grid-template-columns: minmax(0, 1fr);
  }
  /* メニュー */
  :where([data-section="services"][data-ui="lumiere"]) .services__list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-card-gap);
  }
  /* 料金 */
  :where([data-section="prices"][data-ui="lumiere"]) .price-table :is(table, thead, tbody, tr, th, td) {
    display: block;
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-table thead {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    clip-path: inset(50%);
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-table tbody tr {
    border-block-end: var(--size-line) solid var(--color-line);
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-table tbody th {
    padding-block: var(--space-stack) var(--space-small);
    border-block-end: 0;
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-table tbody td {
    display: grid;
    grid-template-columns: var(--prices-label-width-sp) minmax(0, 1fr);
    gap: var(--space-small);
    padding-block: var(--space-tiny);
    border-block-end: 0;
    text-align: start;
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-table tbody td:last-child {
    padding-block-end: var(--space-stack);
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-table tbody td::before {
    content: attr(data-label);
    color: var(--color-text-muted);
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-table tbody td:is(:nth-child(2), :nth-child(3)) {
    text-align: start;
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-table tbody td br {
    display: none;
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-option {
    grid-template-columns: minmax(0, 1fr);
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-option__list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-option__list li + li {
    margin-block-start: var(--space-stack);
  }
  :where([data-section="prices"][data-ui="lumiere"]) .price-option__list li span:last-child {
    grid-column: 1 / -1;
    color: var(--color-text-muted);
  }
  /* ギャラリー */
  :where([data-section="gallery"][data-ui="lumiere"]) .gallery__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: var(--gallery-row-height-sp);
  }
  :where([data-section="gallery"][data-ui="lumiere"]) .gallery__item:is(:nth-child(n)) {
    grid-row: auto;
  }
  /* お客様の声 */
  :where([data-section="voices"][data-ui="lumiere"]) .voices__list {
    grid-template-columns: minmax(0, 1fr);
  }
  /* ご利用の流れ */
  :where([data-section="steps"][data-ui="lumiere"]) .steps__list {
    grid-template-columns: minmax(0, 1fr);
  }
  /* セラピスト紹介 */
  :where([data-section="staff"][data-ui="lumiere"]) .staff__portrait {
    position: relative;
    width: 100%;
    height: var(--staff-portrait-height-sp);
    margin-block: calc(var(--space-section) * -1) var(--space-section);
  }
  :where([data-section="staff"][data-ui="lumiere"]) .staff__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  :where([data-section="staff"][data-ui="lumiere"]) .staff__details {
    grid-column: 1;
    padding-inline-start: 0;
  }
  :where([data-section="staff"][data-ui="lumiere"]) .staff__profile {
    grid-template-columns: minmax(0, 1fr);
  }
  :where([data-section="staff"][data-ui="lumiere"]) .staff__history {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  /* よくある質問 */
  :where([data-section="faq"][data-ui="lumiere"]) .faq__lead {
    position: static;
    width: auto;
    margin-block-start: var(--space-stack);
    text-align: center;
  }
  /* お知らせ */
  :where([data-section="news"][data-ui="lumiere"]) .news__list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-card-gap);
  }
  :where([data-section="news"][data-ui="lumiere"]) .news__heading .text-link {
    position: static;
    margin-block-start: var(--space-small);
  }
  /* アクセス */
  :where([data-section="access"][data-ui="lumiere"]) .access__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* お問い合わせ */
  :where([data-section="contact"][data-ui="lumiere"]) .contact__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* LINEのボタンは、アイコンと文の下の行の中央に置く */
  :where([data-section="contact"][data-ui="lumiere"]) .contact__method {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  :where([data-section="contact"][data-ui="lumiere"]) .contact__method .button {
    grid-column: 1 / -1;
  }
  :where([data-section="contact"][data-ui="lumiere"]) .field {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-tiny);
  }
  :where([data-section="contact"][data-ui="lumiere"]) .contact__actions {
    flex-direction: column;
    align-items: stretch;
  }
  /* CTA帯 */
  :where([data-section="cta"][data-ui="lumiere"]) .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  :where([data-section="cta"][data-ui="lumiere"]) .cta-band__title {
    font-size: var(--font-size-card);
  }
  /* フッター */
  :where([data-section="footer"][data-ui="lumiere"]) .site-footer__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  :where([data-section="footer"][data-ui="lumiere"]) .site-footer__nav {
    justify-content: flex-start;
  }
  :where([data-section="footer"][data-ui="lumiere"]) :is(.site-footer__copyright, .site-footer__policies) {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Lumière共通部品・ページ操作 */
  html:has(body[data-template="lumiere"]) {
    scroll-behavior: auto;
  }
  .page-tools[data-ui="lumiere"] .page-top {
    transition: none;
  }
  :where([data-section][data-ui="lumiere"]),
  :where([data-section][data-ui="lumiere"])::before,
  :where([data-section][data-ui="lumiere"])::after {
    transition: none !important;
    animation: none !important;
  }
  :where([data-section][data-ui="lumiere"]) * {
    transition: none !important;
    animation: none !important;
  }
  :where([data-section][data-ui="lumiere"]) *::before {
    transition: none !important;
    animation: none !important;
  }
  :where([data-section][data-ui="lumiere"]) *::after {
    transition: none !important;
    animation: none !important;
  }
  :where([data-section][data-ui="lumiere"]) .text-link:is(:hover, :focus-visible)::after {
    transform: none !important;
  }
  :where([data-section][data-ui="lumiere"]) .button:is(:hover, :focus-visible)::after {
    transform: none !important;
  }
}
