/* ==========================================================================
   Hair Salon luce - site CSS for SWELL CHILD
   Source of truth: wordpress/additional.css
   Deployed copy:   wp-content/themes/swell_child/css/luce.css (keep identical)
   Namespace: page body = .luce (outer core/group), theme parts = body.luce-site
   Ported from static-site/assets/css/style.css (design.md tokens)
   ========================================================================== */

/* ---------- Tokens ---------- */
.luce-site {
  --luce-primary: #F2A99B;
  --luce-accent: #C24E3E;
  --luce-accent-hover: #A8402F;
  --luce-base: #FFFCF8;
  --luce-tint: #FFF3EE;
  --luce-text: #3A3330;
  --luce-subtext: #6E6560;
  --luce-border: #F0E2DB;
  --luce-white: #FFFFFF;

  /* device fonts only (no webfont loading) */
  --luce-font-heading: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --luce-font-body: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;

  --luce-h1: 40px;
  --luce-h2: 32px;
  --luce-h3: 22px;

  --luce-section-y: 96px;
  --luce-gutter: 32px;
  --luce-max: 1120px;

  --luce-radius: 16px;
  --luce-shadow: 0 4px 16px rgba(194, 78, 62, 0.08);

  background: var(--luce-base);
  color: var(--luce-text);
  font-family: var(--luce-font-body);
  font-weight: 400; /* SWELL body default is var(--swl-font_weight) = 500; the design uses 400 */
}

/* ==========================================================================
   Theme parts (SWELL header / title area / breadcrumb / footer)
   ========================================================================== */

/* Header */
.luce-site .l-header {
  background: rgba(255, 252, 248, 0.96);
  box-shadow: none;
  border-bottom: 1px solid var(--luce-border);
}

.luce-site .c-headLogo__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--luce-text);
  font-family: var(--luce-font-heading);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.luce-site .c-headLogo__link::before {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='8' fill='%23F2A99B'/%3E%3Cpath d='M20 3v5M20 32v5M3 20h5M32 20h5M8 8l3.5 3.5M28.5 28.5L32 32M8 32l3.5-3.5M28.5 11.5L32 8' stroke='%23F2A99B' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.luce-site .c-gnav > .menu-item > a {
  color: var(--luce-text);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.luce-site .c-gnav > .menu-item > a::after {
  background: var(--luce-primary);
}

/* Header CTA: menu item with CSS class "luce-nav-cta" */
.luce-site .c-gnav > .menu-item.luce-nav-cta {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.luce-site .c-gnav > .menu-item.luce-nav-cta > a {
  height: auto;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--luce-accent);
  color: var(--luce-white);
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.luce-site .c-gnav > .menu-item.luce-nav-cta > a::after {
  content: none;
}

.luce-site .c-gnav > .menu-item.luce-nav-cta > a:hover {
  background: var(--luce-accent-hover);
  color: var(--luce-white);
  transform: translateY(-2px);
}

/* Page title area (SWELL "コンテンツ上" title) = peach band with soft window light */
.luce-site .l-topTitleArea {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--luce-border);
  background: var(--luce-tint);
  color: var(--luce-text);
  text-align: center;
}

.luce-site .l-topTitleArea::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 12%, rgba(255, 255, 255, 0.9) 20%, transparent 30%),
    linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.7) 37%, transparent 44%),
    linear-gradient(112deg, transparent 62%, rgba(255, 255, 255, 0.6) 68%, transparent 76%),
    radial-gradient(ellipse 60% 120% at 88% 0%, rgba(242, 169, 155, 0.32), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(255, 252, 248, 0.6) 100%);
  pointer-events: none;
}

/* SWELL always falls back to its no_img.png as the title background; the band is drawn in CSS instead */
.luce-site .l-topTitleArea__img {
  display: none;
}

.luce-site .l-topTitleArea__body {
  width: 100%;
  text-align: center;
}

.luce-site .luce-page-title__en {
  margin: 0 0 6px;
  color: var(--luce-subtext);
  font-family: var(--luce-font-heading);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1.4;
}

.luce-site .l-topTitleArea .c-pageTitle {
  margin: 0;
  color: var(--luce-text);
  font-family: var(--luce-font-heading);
  font-size: var(--luce-h1);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  word-break: auto-phrase;
}

.luce-site .l-topTitleArea .c-pageTitle::after {
  content: "";
  display: block;
  visibility: visible; /* SWELL clearfix sets visibility:hidden */
  width: 40px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--luce-primary);
}

.luce-site .c-pageExcerpt {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--luce-text);
  font-size: 16px;
  line-height: 1.9;
  opacity: 1;
}

/* Breadcrumb */
.luce-site .p-breadcrumb {
  background: transparent;
  color: var(--luce-subtext);
  font-size: 13px;
}

.luce-site .p-breadcrumb a {
  color: var(--luce-subtext);
}

/* Footer */
.luce-site .l-footer {
  border-top: 1px solid var(--luce-border);
  background: var(--luce-white);
  color: var(--luce-text);
}

.luce-site .l-footer a {
  color: var(--luce-text);
}

.luce-site .w-footer__box {
  font-size: 14px;
  line-height: 1.9;
}

.luce-site .luce-footer-brand {
  margin-bottom: 8px;
  font-family: var(--luce-font-heading);
  font-size: 22px;
  letter-spacing: 0.1em;
}

.luce-site .luce-footer-demo {
  font-weight: 700;
}

.luce-site .l-footer__foot {
  color: var(--luce-subtext);
}

/* Page body starts flush under the title band / header, and the last band meets the footer
   (SWELL: .l-content{padding-top:4em;margin-bottom:6em} and inline ".top #content{padding-top:4em}") */
#body_wrap.luce-site #content {
  margin-bottom: 0;
  padding-top: 0;
}

/* SWELL limits .alignfull > inner container to --article_size (900px); the page body runs full width */
.post_content .luce > .wp-block-group__inner-container {
  max-width: none;
}

.luce-site .l-mainContent__inner > .post_content {
  margin-top: 0;
  margin-bottom: 0;
}

/* ==========================================================================
   Page body: everything below lives inside the outer core/group ".luce"
   ========================================================================== */

.luce {
  color: var(--luce-text);
  font-family: var(--luce-font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.post_content .luce h1,
.post_content .luce h2,
.post_content .luce h3 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--luce-text);
  font-family: var(--luce-font-heading);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  word-break: auto-phrase;
  text-wrap: balance;
}

.post_content .luce h1::before,
.post_content .luce h2::before,
.post_content .luce h3::before,
.post_content .luce h1::after,
.post_content .luce h2::after,
.post_content .luce h3::after {
  content: none;
}

.post_content .luce h2 { font-size: var(--luce-h2); }
.post_content .luce h3 { font-size: var(--luce-h3); }

/* :where() keeps these resets light so component rules (e.g. .luce .luce-section__lead) still win */
.post_content .luce :where(p, ul, ol, li, figure, blockquote) {
  margin: 0;
}

/* SWELL: .wp-block-columns{line-height:1.6; gap:var(--wp-column-gap)!important}
   -> text keeps the design line-height; gaps are set through --wp-column-gap below */
.luce .wp-block-columns,
.post_content .luce li {
  line-height: inherit;
}

/* Neutralize SWELL's block margins (.post_content>*, .alignfull>inner>* {margin-bottom:2em}).
   :where() keeps this at the same weight as the component rules below, so their spacing wins. */
.post_content .luce :where(.wp-block-group__inner-container) > * {
  margin-top: 0;
  margin-bottom: 0;
}

.luce img {
  display: block;
  max-width: 100%;
  height: auto;
}

.luce a {
  color: var(--luce-accent-hover);
  text-underline-offset: 0.2em;
}

.luce a:hover {
  text-decoration-thickness: 2px;
}

.luce :focus-visible,
.luce-site :focus-visible {
  outline: 3px solid var(--luce-primary);
  outline-offset: 3px;
}

.luce .luce-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons (core/buttons + core/button) ---------- */
.luce .luce-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.luce .luce-buttons--center {
  justify-content: center;
}

.post_content .luce .luce-btn > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: 2px solid var(--luce-accent);
  border-radius: 999px;
  background: var(--luce-accent);
  box-shadow: none;
  color: var(--luce-white);
  font-family: var(--luce-font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.post_content .luce .luce-btn > .wp-block-button__link:hover {
  border-color: var(--luce-accent-hover);
  background: var(--luce-accent-hover);
  color: var(--luce-white);
  transform: translateY(-2px);
  box-shadow: var(--luce-shadow);
}

.post_content .luce .luce-btn--sub > .wp-block-button__link {
  background: var(--luce-white);
  color: var(--luce-accent);
}

.post_content .luce .luce-btn--sub > .wp-block-button__link:hover {
  background: var(--luce-white);
  color: var(--luce-accent-hover);
}

/* ---------- Layout ---------- */
/* core/group adds .wp-block-group__inner-container on classic themes: it acts as the width container */
.luce .luce-section,
.luce .luce-cta {
  padding: var(--luce-section-y) 0;
}

.luce .luce-section > .wp-block-group__inner-container,
.luce .luce-cta > .wp-block-group__inner-container,
.luce .luce-hero__body > .wp-block-group__inner-container {
  width: 100%;
  max-width: calc(var(--luce-max) + var(--luce-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--luce-gutter);
}

.luce .luce-section--narrow > .wp-block-group__inner-container {
  max-width: calc(800px + var(--luce-gutter) * 2);
}

.luce .luce-section--tint,
.luce .luce-cta {
  background: var(--luce-tint);
}

.luce .luce-section__lead {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.luce .luce-heading {
  margin-bottom: 48px;
  text-align: center;
}

.post_content .luce .luce-heading__en {
  margin-bottom: 8px;
  color: var(--luce-subtext);
  font-family: var(--luce-font-heading);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1.4;
}

.post_content .luce .luce-heading__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: var(--luce-primary);
}

.luce .luce-heading--left {
  text-align: left;
}

.post_content .luce .luce-heading--left .luce-heading__title::after {
  margin-left: 0;
}

.luce .luce-heading + .luce-section__lead {
  margin-top: -16px;
}

/* core/columns (and grid groups) laid out as CSS grid, as in the static site */
.luce .luce-grid {
  --wp-column-gap: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
}

.luce .luce-grid--4 {
  --wp-column-gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.luce .luce-note {
  color: var(--luce-subtext);
  font-size: 14px;
}

.post_content .luce .luce-note--center {
  margin-top: 32px;
  text-align: center;
}

.post_content .luce .luce-section__more {
  margin-top: 48px;
  text-align: center;
}

.post_content .luce .luce-note--center + .luce-section__more {
  margin-top: 24px;
}

.post_content .luce .luce-notes {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  color: var(--luce-subtext);
  font-size: 14px;
}

.post_content .luce .luce-notes > li {
  margin: 0;
  padding: 0;
}

.post_content .luce .luce-notes > li::before {
  content: none;
}

/* ---------- Card ---------- */
.luce .luce-card {
  padding: 32px;
  border: 1px solid var(--luce-border);
  border-radius: var(--luce-radius);
  background: var(--luce-white);
  box-shadow: var(--luce-shadow);
}

.post_content .luce .luce-card h3 {
  margin-bottom: 12px;
}

/* ---------- Hero ---------- */
.luce .luce-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--luce-base);
}

.luce .luce-hero__media img {
  width: 100%;
  height: clamp(520px, 50vw, 720px);
  object-fit: cover;
  object-position: center right;
}

.luce .luce-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* undo SWELL's clearfix on .wp-block-image::after (height:0; visibility:hidden) */
  height: auto;
  visibility: visible;
  background: linear-gradient(90deg, rgba(255, 252, 248, 0.95) 0%, rgba(255, 252, 248, 0.86) 36%, rgba(255, 252, 248, 0) 68%);
  pointer-events: none;
}

.luce .luce-hero__body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}

.luce .luce-hero__content {
  display: block;
  max-width: 560px;
}

.post_content .luce .luce-hero__title {
  font-size: var(--luce-h1);
  line-height: 1.5;
}

.post_content .luce .luce-hero__lead {
  margin: 24px 0 40px;
  font-size: 18px;
}

/* One orchestrated moment: the copy settles in once */
@keyframes luce-hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.luce .luce-hero__title,
.luce .luce-hero__lead,
.luce .luce-hero__content .luce-buttons {
  animation: luce-hero-in 0.9s ease-out both;
}

.luce .luce-hero__lead {
  animation-delay: 0.25s;
}

.luce .luce-hero__content .luce-buttons {
  animation-delay: 0.45s;
}

/* Wide screens: tategaki headline in the photo's open left side */
@media (min-width: 1200px) {
  .luce .luce-hero__media img {
    height: clamp(640px, 50vw, 760px);
  }

  .luce .luce-hero__media::after {
    background: linear-gradient(90deg, rgba(255, 252, 248, 0.96) 0%, rgba(255, 252, 248, 0.9) 42%, rgba(255, 252, 248, 0) 70%);
  }

  .luce .luce-hero__content {
    display: grid;
    grid-template-columns: auto minmax(0, 340px);
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 32px 48px;
    max-width: 620px;
  }

  .post_content .luce .luce-hero__title {
    grid-row: 1 / span 2;
    width: max-content;
    height: max-content;
    writing-mode: vertical-rl;
    font-size: 46px;
    line-height: 1.7;
    letter-spacing: 0.2em;
  }

  .post_content .luce .luce-hero__lead {
    margin: 0;
    line-height: 2.1;
  }

  .luce .luce-hero__content .luce-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Reasons (icons drawn in CSS) ---------- */
.luce .luce-reason {
  text-align: center;
}

.luce .luce-reason::before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--luce-primary) center / 40px 40px no-repeat;
}

.luce .luce-reason--talk::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8h19a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H15l-6 5v-5H7a3 3 0 0 1-3-3V11a3 3 0 0 1 3-3z'/%3E%3Cpath d='M11 14h11M11 18h7'/%3E%3Cpath d='M32 14h1a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-1v4l-5-4h-7'/%3E%3C/svg%3E");
}

.luce .luce-reason--care::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 32C8 18 18 9 33 7c1 16-8 25-24 25z'/%3E%3Cpath d='M9 32l13-13M16 25h6M16 25v-6'/%3E%3C/svg%3E");
}

.luce .luce-reason--light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='12' width='24' height='23' rx='2'/%3E%3Cpath d='M20 12v23M8 23.5h24'/%3E%3Cpath d='M20 3v4M11 5l2 3M29 5l-2 3'/%3E%3C/svg%3E");
}

.post_content .luce .luce-reason p {
  text-align: left;
}

/* ---------- Style gallery (photos lead; no boxed cards) ---------- */
.luce .luce-gallery {
  --wp-column-gap: 56px 40px;
  gap: 56px 40px;
}

.luce .luce-style-card .wp-block-image {
  margin-bottom: 20px;
}

.luce .luce-style-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--luce-radius);
  object-fit: cover;
}

.post_content .luce .luce-style-card h3 {
  margin-bottom: 8px;
  padding: 0 4px;
}

.post_content .luce .luce-style-card p:not(.luce-tag) {
  padding: 0 4px;
}

.post_content .luce .luce-tag {
  display: inline-block;
  margin: 0 4px 12px;
  padding: 2px 14px;
  border: 1px solid var(--luce-primary);
  border-radius: 999px;
  background: var(--luce-tint);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

/* ---------- Steps (a connected sequence) ---------- */
.luce .luce-step {
  position: relative;
  padding-right: 8px;
}

.luce .luce-step::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 72px;
  right: -16px;
  height: 2px;
  border-radius: 2px;
  background: var(--luce-primary);
}

.luce .luce-step:last-child::before {
  content: none;
}

.post_content .luce .luce-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--luce-primary);
  color: var(--luce-text);
  font-family: var(--luce-font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.post_content .luce .luce-step h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

/* ---------- Voices (core/quote, open layout) ---------- */
.luce .luce-voices {
  --wp-column-gap: 48px;
  gap: 48px;
}

.post_content .luce .luce-voice__quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  margin: 0;
  padding: 40px 0 0;
  border: 0;
  background: none;
  color: var(--luce-text);
  font-size: 17px;
  font-style: normal;
}

.post_content .luce .luce-voice__quote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: -4px;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: var(--luce-primary);
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1;
  opacity: 1;
  transform: none;
}

.post_content .luce .luce-voice__quote::after {
  content: none;
}

.post_content .luce .luce-voice__quote p {
  margin: 0;
}

.post_content .luce .luce-voice__quote cite {
  display: block;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--luce-primary);
  color: var(--luce-subtext);
  font-size: 14px;
  font-style: normal;
  opacity: 1;
  text-align: left;
}

.post_content .luce .luce-voice__quote cite::first-line {
  color: var(--luce-text);
  font-weight: 700;
}

.post_content .luce .luce-voice__quote cite::before {
  content: none;
}

/* ---------- Media (image + text in core/columns) ---------- */
.luce .luce-media {
  --wp-column-gap: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  margin: 0;
}

.luce .luce-media--reverse .luce-media__img {
  order: 2;
}

.luce .luce-media__img img {
  width: 100%;
  border-radius: var(--luce-radius);
  object-fit: cover;
}

.luce .luce-media__img--landscape img {
  aspect-ratio: 3 / 2;
}

.luce .luce-media__img--portrait {
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.luce .luce-media__img--portrait img {
  aspect-ratio: 4 / 5;
}

.post_content .luce .luce-media__body h2 {
  margin-bottom: 24px;
}

.post_content .luce .luce-media__body p + p {
  margin-top: 16px;
}

.post_content .luce .luce-media__body .luce-buttons {
  margin-top: 32px;
}

.luce .luce-media__body .luce-heading {
  margin-bottom: 32px;
}

.post_content .luce .luce-signature__role {
  margin-top: 24px;
  color: var(--luce-subtext);
  font-size: 14px;
  text-align: right;
}

.post_content .luce .luce-media__body .luce-signature__name {
  margin-top: 0;
  font-family: var(--luce-font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: right;
}

.post_content .luce .luce-signature__name + .luce-note {
  margin-top: 16px;
}

/* ---------- CTA band ---------- */
.luce .luce-cta {
  text-align: center;
}

.post_content .luce .luce-cta__title {
  margin-bottom: 16px;
}

.post_content .luce .luce-cta__text {
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- Tables (core/table) ---------- */
.luce .luce-table {
  overflow-x: auto;
  margin: 0;
  border: 1px solid var(--luce-border);
  border-radius: var(--luce-radius);
  background: var(--luce-white);
}

.post_content .luce .luce-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.post_content .luce .luce-table thead {
  border: 0;
}

.post_content .luce .luce-table th,
.post_content .luce .luce-table td {
  padding: 16px 24px;
  border: 0;
  border-bottom: 1px solid var(--luce-border);
  background: transparent;
  color: var(--luce-text);
  font-size: 16px;
  line-height: 1.9;
  text-align: left;
  vertical-align: top;
}

.post_content .luce .luce-table tr:last-child th,
.post_content .luce .luce-table tr:last-child td {
  border-bottom: 0;
}

.post_content .luce .luce-table thead th {
  background: var(--luce-tint);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.post_content .luce .luce-table tbody th {
  font-weight: 700;
}

.post_content .luce .luce-table .has-text-align-right {
  text-align: right;
  white-space: nowrap;
}

.post_content .luce .luce-table td.has-text-align-right {
  font-weight: 700;
}

.post_content .luce .luce-table--menu th:first-child {
  width: 34%;
}

.post_content .luce .luce-table--menu .has-text-align-right {
  width: 18%;
}

.post_content .luce .luce-table--info tbody th {
  width: 30%;
  background: var(--luce-tint);
  white-space: nowrap;
}

/* ---------- Menu page ---------- */
.luce .luce-menu-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 560px;
  border-radius: var(--luce-radius);
  object-fit: cover;
}

.post_content .luce .luce-menu-visual + .luce-section__lead {
  margin-top: 48px;
  margin-bottom: 0;
}

.post_content .luce .luce-menu-cat + .luce-menu-cat {
  margin-top: 64px;
}

.luce .luce-menu-cat .luce-heading {
  margin-bottom: 24px;
}

.post_content .luce .luce-menu-cat h2 {
  font-size: 26px;
}

/* ---------- About page ---------- */
.luce .luce-info {
  --wp-column-gap: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin: 0;
}

.post_content .luce .luce-info h3 {
  margin-bottom: 20px;
}

.luce .luce-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border: 1px solid var(--luce-border);
  border-radius: var(--luce-radius);
  background-color: var(--luce-tint);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--luce-border) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--luce-border) 39px 40px);
  color: var(--luce-subtext);
  font-weight: 700;
  text-align: center;
}

.luce .luce-map::before {
  content: "";
  width: 40px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23C24E3E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 36s11-10.5 11-19a11 11 0 0 0-22 0c0 8.5 11 19 11 19z'/%3E%3Ccircle cx='20' cy='17' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.post_content .luce .luce-access {
  margin-top: 16px;
}

/* ---------- Contact page ---------- */
.luce .luce-notice {
  margin-bottom: 40px;
  padding: 20px 24px;
  border-left: 4px solid var(--luce-primary);
  border-radius: 8px;
  background: var(--luce-tint);
}

.post_content .luce .luce-notice__title {
  margin-bottom: 4px;
  font-weight: 700;
}

.post_content .luce .luce-form-area p + p {
  margin-top: 16px;
}

.post_content .luce .luce-form__privacy {
  font-size: 14px;
}

/* === Contact form (codex-3: form CSS goes only inside this range) === */
/* Contact Form 7 #66 "お問い合わせ" (html_class luce-contact-form); markup: field div > p > label > label text + control */
.luce .luce-contact-form {
  display: grid;
  gap: 28px;
}

.luce .luce-contact-form label {
  display: block;
}

.luce .luce-contact-form__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 700;
}

.luce .luce-contact-form__badge {
  display: inline-block;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}

.luce .luce-contact-form__badge--required {
  background: var(--luce-accent);
  color: var(--luce-white);
}

.luce .luce-contact-form__badge--optional {
  background: var(--luce-border);
  color: var(--luce-text);
}

.luce .luce-contact-form .wpcf7-form-control-wrap {
  display: block;
}

.post_content .luce .luce-contact-form__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--luce-subtext);
  border-radius: 8px;
  background: var(--luce-white);
  box-shadow: none;
  color: var(--luce-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.post_content .luce textarea.luce-contact-form__input {
  height: 232px; /* 8 rows, as in the static site (CF7 renders rows="10") */
  min-height: 200px;
  resize: vertical;
}

.post_content .luce .luce-contact-form__input:focus-visible {
  outline: 3px solid var(--luce-primary);
  outline-offset: 1px;
  border-color: var(--luce-accent);
}

.post_content .luce .luce-contact-form__input.wpcf7-not-valid {
  border-color: var(--luce-accent);
}

.luce .luce-contact-form__help {
  display: block;
  margin-top: 6px;
  color: var(--luce-subtext);
  font-size: 14px;
}

.luce .luce-contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: var(--luce-accent-hover);
  font-size: 14px;
  font-weight: 700;
}

.luce .luce-contact-form__privacy {
  font-size: 14px;
}

.luce .luce-contact-form__submit {
  text-align: center;
}

.luce .luce-contact-form__submit p {
  position: relative;
}

.post_content .luce .luce-contact-form__submit-btn {
  min-width: 240px;
  padding: 16px 32px;
  border: 2px solid var(--luce-accent);
  border-radius: 999px;
  background: var(--luce-accent);
  box-shadow: none;
  color: var(--luce-white);
  font-family: var(--luce-font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.post_content .luce .luce-contact-form__submit-btn:hover {
  border-color: var(--luce-accent-hover);
  background: var(--luce-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--luce-shadow);
}

/* keep the button centred: the spinner sits next to it without taking layout space */
.luce .luce-contact-form__submit .wpcf7-spinner {
  position: absolute;
  margin: 12px 0 0 12px;
}

.luce .luce-contact-form .wpcf7-response-output {
  margin: 0;
  padding: 16px 24px;
  border: 1px solid var(--luce-primary);
  border-radius: 8px;
  background: var(--luce-tint);
  font-weight: 700;
  text-align: center;
  white-space: pre-line; /* one line per field in the validation summary (luce-functions.php) */
}

.luce .luce-contact-form.sent .wpcf7-response-output {
  border-color: var(--luce-primary);
}

.luce .luce-contact-form.invalid .wpcf7-response-output,
.luce .luce-contact-form.unaccepted .wpcf7-response-output,
.luce .luce-contact-form.failed .wpcf7-response-output,
.luce .luce-contact-form.aborted .wpcf7-response-output,
.luce .luce-contact-form.spam .wpcf7-response-output {
  border-color: var(--luce-accent);
}

@media (max-width: 767px) {
  .post_content .luce .luce-contact-form__submit-btn {
    width: 100%;
    min-width: 0;
  }
}
/* === /Contact form === */

/* ---------- Prose (privacy policy) ---------- */
.post_content .luce .luce-prose h2 {
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--luce-border);
  font-size: 22px;
}

.post_content .luce .luce-prose p + p,
.post_content .luce .luce-prose p + ul,
.post_content .luce .luce-prose ul + p {
  margin-top: 12px;
}

.post_content .luce .luce-prose ul {
  padding-left: 1.5em;
}

.luce .luce-prose .luce-notice {
  margin-bottom: 32px;
}

.post_content .luce .luce-prose__date {
  margin-top: 48px;
  color: var(--luce-subtext);
  font-size: 14px;
  text-align: right;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .luce .luce-grid,
  .luce .luce-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .luce .luce-media {
    --wp-column-gap: 40px;
    gap: 40px;
  }

  .luce .luce-steps {
    --wp-column-gap: 48px 24px;
    gap: 48px 24px;
  }

  .luce .luce-step:nth-child(2n)::before {
    content: none;
  }

  .luce .luce-hero__content {
    max-width: 460px;
  }

  .luce .luce-hero__media::after {
    background: linear-gradient(90deg, rgba(255, 252, 248, 0.95) 0%, rgba(255, 252, 248, 0.88) 48%, rgba(255, 252, 248, 0.1) 80%);
  }
}

@media (max-width: 767px) {
  .luce-site {
    --luce-h1: 28px;
    --luce-h2: 24px;
    --luce-h3: 19px;
    --luce-section-y: 64px;
    --luce-gutter: 20px;
  }

  .luce-site .l-topTitleArea {
    padding: 36px 0 28px;
  }

  .luce-site .c-pageExcerpt {
    text-align: left;
  }

  .luce .luce-grid,
  .luce .luce-grid--4 {
    --wp-column-gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .luce .luce-gallery,
  .luce .luce-voices {
    --wp-column-gap: 48px;
    gap: 48px;
  }

  /* steps become a vertical timeline */
  .luce .luce-steps {
    --wp-column-gap: 32px;
    gap: 32px;
  }

  .luce .luce-step {
    min-height: 56px;
    padding: 12px 0 0 80px;
  }

  .post_content .luce .luce-step__num {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .luce .luce-step::before,
  .luce .luce-step:nth-child(2n)::before {
    content: "";
    top: 64px;
    bottom: -24px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .luce .luce-step:last-child::before {
    content: none;
  }

  .luce .luce-heading {
    margin-bottom: 32px;
  }

  .luce .luce-section__lead {
    margin-bottom: 32px;
    text-align: left;
  }

  .post_content .luce .luce-section__more {
    margin-top: 32px;
  }

  .luce .luce-card {
    padding: 24px;
  }

  .luce .luce-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .luce .luce-buttons > .wp-block-button,
  .post_content .luce .luce-buttons .wp-block-button__link {
    width: 100%;
  }

  /* Hero: copy below the photo for legibility */
  .luce .luce-hero__media img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .luce .luce-hero__media::after {
    content: none;
  }

  .luce .luce-hero__body {
    position: static;
    display: block;
    padding: 32px 0 48px;
  }

  .luce .luce-hero__content {
    max-width: none;
  }

  .post_content .luce .luce-hero__lead {
    margin: 16px 0 32px;
    font-size: 16px;
  }

  .luce .luce-media,
  .luce .luce-info {
    --wp-column-gap: 32px;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .luce .luce-media--reverse .luce-media__img {
    order: 0;
  }

  .luce .luce-media__img--portrait {
    max-width: 320px;
  }

  .post_content .luce .luce-cta__text {
    margin-bottom: 32px;
    text-align: left;
  }

  .post_content .luce .luce-menu-cat + .luce-menu-cat {
    margin-top: 48px;
  }

  .post_content .luce .luce-menu-cat h2 {
    font-size: 22px;
  }

  .post_content .luce .luce-table th,
  .post_content .luce .luce-table td {
    padding: 12px 16px;
  }

  /* Menu table: stack rows (name + price on one line, description below) so nothing scrolls */
  .post_content .luce .luce-table--menu thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .post_content .luce .luce-table--menu tbody {
    display: block;
  }

  .post_content .luce .luce-table--menu tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name price"
      "desc desc";
    gap: 4px 16px;
    padding: 16px;
    border-bottom: 1px solid var(--luce-border);
  }

  .post_content .luce .luce-table--menu tbody tr:last-child {
    border-bottom: 0;
  }

  .post_content .luce .luce-table--menu tbody th,
  .post_content .luce .luce-table--menu tbody td {
    width: auto;
    padding: 0;
    border: 0;
  }

  .post_content .luce .luce-table--menu tbody th:first-child {
    grid-area: name;
    width: auto;
  }

  .post_content .luce .luce-table--menu tbody td.has-text-align-right {
    grid-area: price;
    width: auto;
  }

  .post_content .luce .luce-table--menu tbody td:not(.has-text-align-right) {
    grid-area: desc;
    color: var(--luce-subtext);
    line-height: 1.8;
  }

  .post_content .luce .luce-table--info tbody th {
    width: 36%;
    white-space: normal;
  }

  .luce .luce-map {
    aspect-ratio: 1 / 1;
  }

  .luce .luce-notice {
    padding: 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .luce *,
  .luce *::before,
  .luce *::after {
    transition: none !important;
    animation: none !important;
  }

  .post_content .luce .luce-btn > .wp-block-button__link:hover {
    transform: none;
  }
}
