html {
  scroll-behavior: smooth;
}

body {
  color-scheme: light;
}

/* Evidence-gated sections are omitted until verified CMS content exists. */
#container [data-cms-state="empty"],
#container [data-cms-state="pending"],
#container [data-cms-state="unavailable"],
#container [data-breakpoint] > *:has([data-cms-collection="work-cases"]):not([data-cms-state="published"]):not([data-cms-state="preview"]):not([data-cms-state="preview-empty"]):not([data-cms-state="preview-unavailable"]) {
  display: none !important;
}

[data-placeholder-group="unverified-payment-methods"] {
  display: none !important;
}

#container .miraie-phone-cta {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgb(255 255 255 / 24%);
}

#container .miraie-phone-cta:focus-visible {
  outline: 4px solid #172b1e;
  outline-offset: 4px;
}

[data-miraie-carousel] {
  overflow-x: auto !important;
  overflow-y: clip !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

[data-miraie-carousel]::-webkit-scrollbar {
  display: none;
}

[data-miraie-carousel] > * {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

[data-miraie-carousel="routes"] {
  --miraie-route-card-width: min(350px, calc(100vw - 24px));
  gap: 16px !important;
  align-items: stretch !important;
  padding-inline: calc((100% - var(--miraie-route-card-width)) / 2) !important;
}

/* Figma exported one stationary orange backdrop behind four moving content
 * groups. The route itself is the card: move the texture with each slide. */
#container :has(> [data-miraie-carousel="routes"]) > :first-child:not([data-miraie-carousel]) {
  visibility: hidden !important;
}

[data-miraie-carousel="routes"] > * {
  flex: 0 0 var(--miraie-route-card-width) !important;
  width: var(--miraie-route-card-width) !important;
  max-width: var(--miraie-route-card-width) !important;
  height: 480px !important;
  border-radius: 12px;
  background: #ff9c00 url("/assets/miraie/figma-source/8aeff8f035649f44fb5d587ffd5c932458de8611.png") center / cover no-repeat;
  overflow: clip !important;
  scroll-snap-align: center;
}

[data-miraie-carousel="routes"] > * > :has(> .miraie-route-illustration) {
  width: calc(100% - 50px) !important;
  margin-inline: auto;
  overflow: clip !important;
  border-radius: 12px;
}

[data-miraie-carousel="work-cases"] {
  width: calc(100% + 20px) !important;
  max-width: calc(100% + 20px) !important;
  flex-shrink: 1 !important;
  contain: paint;
}

.cms-case-source {
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.5;
}

.cms-case-source a {
  color: #536117;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cms-case-preview-label {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #9a5d10;
  border-radius: 6px;
  background: #fff4d8;
  color: #673c06;
  font-weight: 800;
}

.cms-case-preview-price {
  font-weight: 800;
}

.miraie-route-illustration {
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit;
}

[data-miraie-carousel]:focus-visible,
[data-carousel-control]:focus-visible {
  outline: 3px solid #172b1e;
  outline-offset: 3px;
}

[data-carousel-control] {
  cursor: pointer;
  user-select: none;
}

[data-carousel-control][aria-disabled="true"] {
  cursor: default;
  opacity: 0.42;
}

.figma-carousel-dots {
  display: flex;
  min-width: 76px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.figma-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8d8d8;
  cursor: pointer;
  transition: width 160ms ease, border-radius 160ms ease, background-color 160ms ease;
}

.figma-carousel-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: #f47a00;
}

.figma-carousel-dot:focus-visible {
  outline: 3px solid #172b1e;
  outline-offset: 3px;
}

.figma-local-cms-panel {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 398px) !important;
  max-width: 398px !important;
  margin: 28px auto;
  padding: 24px;
  border: 1px solid rgb(244 122 0 / 28%);
  border-radius: 20px;
  background: #fffdf7;
  color: #392d20;
  box-shadow: 0 12px 32px rgb(66 47 24 / 10%);
  font-family: "Zen Maru Gothic:Regular", "Noto Sans JP:Regular", sans-serif;
  text-align: left;
}

.figma-local-cms-panel__eyebrow {
  margin: 0 0 6px;
  color: #009245;
  font: 800 12px/1.4 "Montserrat:Bold", sans-serif;
  letter-spacing: 0.1em;
}

.figma-local-cms-panel h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.4; }
.figma-local-cms-panel > p:not(.figma-local-cms-panel__eyebrow) { margin: 0; font-size: 14px; line-height: 1.75; }
.figma-local-cms-panel > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.figma-local-cms-panel a { padding: 10px 16px; border: 1px solid #f47a00; border-radius: 999px; color: #994400; background: #fff; font-weight: 800; text-decoration: none; }
.figma-local-cms-panel a:first-child { color: #fff; background: #f47a00; }
.figma-local-cms-panel a:focus-visible { outline: 3px solid #172b1e; outline-offset: 3px; }

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

#container .css-rapmwt,
#container .css-jwb3s0 {
  top: 0 !important;
  opacity: 1 !important;
  transform: translateX(-50%) !important;
}

#container .css-g3y3qk,
#container .css-rlkpm8 {
  bottom: 0 !important;
  opacity: 1 !important;
  transform: translateX(-50%) !important;
}

#container .css-enqb5w > *,
#container :is(.css-g3y3qk, .css-rlkpm8) .css-810pyd > * {
  display: none !important;
}

#container .css-enqb5w::after {
  display: block;
  width: 100%;
  color: #fff;
  content: "0973-28-6072";
  font-family: "Zen Maru Gothic:Bold", sans-serif;
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

#container :is(.css-g3y3qk, .css-rlkpm8) .css-810pyd::after {
  display: block;
  width: 100%;
  color: #ffed58;
  content: "0973-28-6072";
  font-family: "Zen Maru Gothic:Bold", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.figma-fixed-hit-targets {
  position: fixed;
  z-index: 10001;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 430px);
  height: 71px;
  grid-template-columns: 61.6% 19.2% 19.2%;
  transform: translateX(-50%);
}

.figma-fixed-hit-targets a,
.figma-back-top-hit {
  display: block;
  background: transparent;
}

#container .miraie-recovery-example-note {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: -7px 0 -3px;
  color: #766b5d;
  font-family: "Noto Sans JP:Bold", "Zen Maru Gothic:Bold", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
}

#container .miraie-recovery-example-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#container .miraie-item-guide-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.figma-fixed-hit-targets a:focus-visible,
.figma-back-top-hit:focus-visible {
  outline: 3px solid #172b1e;
  outline-offset: -4px;
}

.figma-back-top-hit {
  position: fixed;
  z-index: 10001;
  right: max(calc((100vw - 430px) / 2 + 20px), 20px);
  bottom: 91px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

/* Let copy and images determine section height; SSR's collapsed geometry is
 * not a design baseline. One responsive column must apply to every block. */
@media (max-width: 1439px) {
  #container [data-breakpoint-id="node-48_2"] {
    width: min(100%, 430px);
    min-width: 0;
    margin-inline: auto;
  }

  #container [data-breakpoint-id="node-48_2"] > div {
    width: 100%;
    max-width: 430px;
  }

  #container :is(.css-9dm698, .css-lf53oj) {
    width: 100%;
    max-width: 100%;
  }
}

#container .css-bbjilr > .css-hfxv88 {
  padding-bottom: 0;
}
#container .css-bbjilr :is(.css-tihidq, .css-2tj4dn) img { object-fit: contain; }

.miraie-hero-photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 18px 12px 0;
}

.miraie-hero-card { position: relative; min-width: 0; padding-top: 54px; }
.miraie-hero-photo {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}
.miraie-hero-card:nth-child(2) .miraie-hero-photo { object-position: 44% center; }
.miraie-hero-card:nth-child(3) .miraie-hero-photo { object-position: 50% center; }
.miraie-hero-badge {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  max-width: 110%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: url('/assets/miraie/figma-source/dd0ae19822e463c1202f11e95138b83edcd9bc31.svg') center / 100% 100% no-repeat;
  color: #009245;
  font: 14px/1.05 "Zen Maru Gothic:Bold", sans-serif;
}
.miraie-hero-badge img { width: 20px; height: 20px; }
.miraie-hero-badge strong {
  color: #ff7800;
  text-align: center;
  font: 18px/1.05 "Zen Maru Gothic:Black", sans-serif;
}

.miraie-reasons {
  position: relative;
  z-index: 1;
  width: calc(100% - 40px);
  max-width: 390px;
  margin: 16px auto 0;
  padding: 0;
  color: #3a2c1c;
  font-family: "Zen Maru Gothic:Regular", "Noto Sans JP:Regular", sans-serif;
}

.miraie-reasons__eyebrow {
  margin: 0 0 14px;
  color: #009245;
  font: 16px/1.4 "Zen Maru Gothic:Bold", "Noto Sans JP:Bold", sans-serif;
  letter-spacing: 0.04em;
  text-align: center;
}

.miraie-reasons__eyebrow::before,
.miraie-reasons__eyebrow::after {
  color: #ff7800;
  content: "•";
  padding-inline: 8px;
}

.miraie-reasons__list {
  display: grid;
  gap: 12px;
}

.miraie-reason-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 16px;
  border: 1px solid rgb(58 44 28 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 8px 20px rgb(101 74 38 / 10%);
}

.miraie-reason-card__number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff9c00, #ff5400);
  color: #fff;
  font: 15px/1 "Montserrat:Bold", sans-serif;
}

.miraie-reason-card h3 {
  margin: 0 0 7px;
  color: #009245;
  font: 18px/1.35 "Zen Maru Gothic:Bold", "Noto Sans JP:Bold", sans-serif;
  letter-spacing: 0.01em;
}

.miraie-reason-card p {
  margin: 0;
  color: #3a2c1c;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

@media (max-width: 374px) {
  .miraie-reasons { width: calc(100% - 24px); }
  .miraie-reason-card { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 16px 13px; }
  .miraie-reason-card__number { width: 36px; height: 36px; font-size: 13px; }
  .miraie-reason-card h3 { font-size: 16px; }
}

/* The longer verified operator/phone copy must be allowed to wrap. */
#container .css-n7g2ef {
  background: #ffa52f url('/assets/miraie/figma-source/8aeff8f035649f44fb5d587ffd5c932458de8611.png') center / cover;
}
#container .css-do9o4k { flex-wrap: wrap; }
#container :is(.css-2svwcl, .css-2bx1dv, .css-hjh55l, .css-yx92l4) { white-space: normal; }
#container .css-kiphre .css-do9o4k > p { max-width: 100%; }
#container .css-kiphre .css-do9o4k > div { flex-shrink: 0; }
#container .css-kiphre > div:not(.css-enqb5w) { flex-wrap: wrap; justify-content: center; }
#container .css-kiphre > div:not(.css-enqb5w) > p { max-width: 100%; white-space: normal; }
#container :is(.css-hjh55l, .css-yx92l4) { width: 100%; }
#container :is(.css-hjh55l, .css-yx92l4) > span { display: inline-block; }
#container .css-do9o5f { max-width: 100%; }
#container .css-do9o5f > p { flex-shrink: 1; white-space: normal; line-height: 1.5; }

@media (max-width: 374px) {
  #container .css-r6mnl5 { padding-inline: 12px; }
  #container .css-r6mnl5 .css-vkpzlc { white-space: normal; }
  #container .css-r6mnl5 .css-544p7n { white-space: normal; line-height: 1; }
  #container .css-r6mnl5 .css-544p7n > span:last-child { display: block; margin-top: 6px; }
  #container .css-i5he9n { width: 100%; }
  #container .css-90q2bv { font-size: 16px; }
  .miraie-hero-badge strong { font-size: 16px; }
}
.cms-case-card{box-sizing:border-box;flex:0 0 100%;min-width:0;max-width:100%;margin:0;padding:20px;border-radius:20px;background:#fff;color:#372a1b;box-shadow:0 8px 24px #3b2b1614;scroll-snap-align:start}.cms-case-card h3{margin:8px 0 14px;font-size:22px;line-height:1.35}.cms-case-location{display:inline-block;margin:0;border-radius:999px;padding:5px 10px;background:#392d20;color:#fff;font-size:12px;font-weight:800}.cms-case-images{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cms-case-images figure{position:relative;margin:0;overflow:hidden;border-radius:14px;background:#eee}.cms-case-images img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.cms-case-images figcaption{position:absolute;left:0;top:0;padding:5px 12px;border-radius:0 0 12px 0;background:#1fa936;color:#fff;font-weight:900}.cms-case-images figure+figure figcaption{background:#ff6500}.cms-case-summary{min-height:4.5em;line-height:1.65}.cms-case-conditions{padding-top:12px;border-top:1px dashed #796f63;font-weight:800}.cms-case-card>a{display:inline-flex;border-radius:999px;padding:10px 16px;background:#ff6500;color:#fff;text-decoration:none;font-weight:900}

#container [data-miraie-footer="verified"] {
  display: grid !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  place-items: center;
  padding: 0 !important;
  background: #30271e !important;
}

.miraie-site-footer {
  box-sizing: border-box;
  width: min(100%, 430px);
  padding: 42px 24px 112px;
  color: #fff9ec;
  font-family: "Zen Maru Gothic:Regular", "Noto Sans JP:Regular", sans-serif;
  text-align: center;
}

.miraie-site-footer p { margin: 0 auto 10px; max-width: 340px; font-size: 13px; line-height: 1.75; }
.miraie-site-footer__brand { color: #fff; font: 800 27px/1.3 "Zen Maru Gothic:Bold", sans-serif; letter-spacing: 0.08em; }
.miraie-site-footer__phone { display: inline-block; margin: 2px 0 10px; color: #ffed58; font: 800 27px/1.2 "Montserrat:Bold", sans-serif; text-decoration: none; }
.miraie-site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 24px; }
.miraie-site-footer nav a { color: #fff; font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.miraie-site-footer a:focus-visible { outline: 3px solid #ffed58; outline-offset: 4px; }
