:root {
  --miraie-green: #52ae50;
  --miraie-green-deep: #287d3e;
  --miraie-orange: #f5822b;
  --miraie-yellow: #ffe84f;
  --miraie-cream: #fff8e6;
  --miraie-cream-deep: #f8edda;
  --miraie-paper: #fffdf7;
  --miraie-ink: #342e28;
  --miraie-muted: #756c62;
  --miraie-line: #ead9bd;
  --miraie-radius-sm: 10px;
  --miraie-radius: 18px;
  --miraie-radius-lg: 30px;
  --miraie-shadow: 0 18px 50px rgb(67 51 31 / 12%);
  --miraie-shell: min(1200px, calc(100% - 32px));
  --miraie-font: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

html {
  scroll-padding-top: 108px;
}

body.miraie-page {
  margin: 0;
  color: var(--miraie-ink);
  background: var(--miraie-cream-deep);
  font-family: var(--miraie-font);
}

.miraie-global-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  min-height: 76px;
  border-bottom: 1px solid rgb(40 125 62 / 15%);
  background: rgb(255 253 247 / 94%);
  box-shadow: 0 8px 28px rgb(52 46 40 / 8%);
  backdrop-filter: blur(14px);
}

.miraie-header-inner {
  width: var(--miraie-shell);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.miraie-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--miraie-ink);
  text-decoration: none;
}

.miraie-wordmark img {
  display: block;
  width: 124px;
  height: 54px;
  object-fit: contain;
}

.miraie-wordmark > span {
  color: var(--miraie-green-deep);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -.06em;
}

.miraie-wordmark > small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--miraie-green-deep);
  background: #eaf7e8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.miraie-global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.miraie-global-nav a {
  position: relative;
  padding: 9px 0;
  color: var(--miraie-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.miraie-global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--miraie-orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.miraie-global-nav a:hover::after,
.miraie-global-nav a:focus-visible::after {
  transform: scaleX(1);
}

.miraie-header-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  min-height: 54px;
  padding: 7px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--miraie-orange), #eb691c);
  box-shadow: 0 10px 22px rgb(245 130 43 / 24%);
  text-decoration: none;
}

.miraie-header-phone small {
  font-size: 10px;
  font-weight: 750;
}

.miraie-header-phone b,
.miraie-header-phone span {
  position: static;
  color: inherit;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.15;
}

.miraie-global-nav a:focus-visible,
.miraie-wordmark:focus-visible,
.miraie-header-phone:focus-visible {
  outline: 3px solid var(--miraie-green-deep);
  outline-offset: 4px;
}

.miraie-home.phone-page {
  width: min(100%, 375px);
  border-inline: 1px solid rgb(40 125 62 / 10%);
  background: var(--miraie-paper);
  box-shadow: var(--miraie-shadow);
}

.miraie-home .site-head {
  height: auto;
  padding: 0;
  justify-content: initial;
}

.miraie-home .site-head .miraie-header-inner {
  width: calc(100% - 64px);
}

.miraie-home .site-head .miraie-wordmark img {
  width: 124px;
  height: 54px;
}

.miraie-home .figma-long-sections article {
  position: relative;
  overflow: hidden;
}

.miraie-home .figma-long-sections article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 8px;
  background: var(--miraie-yellow);
  content: "";
}

.miraie-feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.miraie-feature-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--miraie-line);
  border-radius: var(--miraie-radius-sm);
  background: #fff;
}

.miraie-feature-list b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--miraie-green);
}

.miraie-feature-list span {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.65;
}

.evidence-empty {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  border: 2px dashed var(--miraie-line);
  border-radius: var(--miraie-radius);
  color: var(--miraie-muted);
  background: rgb(255 255 255 / 72%);
  line-height: 1.8;
}

.evidence-empty b {
  color: var(--miraie-green-deep);
  font-size: 19px;
}

.miraie-faq-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.miraie-faq-list details {
  border: 1px solid var(--miraie-line);
  border-radius: var(--miraie-radius-sm);
  background: #fff;
}

.miraie-faq-list summary {
  padding: 16px 42px 16px 17px;
  color: var(--miraie-green-deep);
  font-weight: 850;
  cursor: pointer;
}

.miraie-faq-list p {
  margin: 0;
  padding: 0 17px 18px;
  font-size: 14px;
  line-height: 1.8;
}

.miraie-addition-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgb(40 125 62 / 25%);
  border-radius: 999px;
  color: var(--miraie-green-deep);
  background: #eff9ed;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.miraie-article-page .page-shell {
  width: var(--miraie-shell);
  margin: 28px auto 60px;
}

.miraie-article-page .utility-hero,
.miraie-article-page .comparison,
.miraie-article-page .safety,
.miraie-article-page .sources,
.miraie-article-page .section {
  border-color: var(--miraie-line);
  border-radius: var(--miraie-radius-lg);
  box-shadow: var(--miraie-shadow);
}

.miraie-article-page .utility-hero {
  background: linear-gradient(145deg, #fffdf7 0%, #fff5d9 100%);
}

.miraie-article-page .eyebrow,
.miraie-article-page h1 em,
.miraie-article-page .route-number {
  color: var(--miraie-orange);
}

.miraie-article-page .quick-answer,
.miraie-article-page .route-planner,
.miraie-article-page .safety-box {
  border-color: rgb(82 174 80 / 38%);
  background: #f1faef;
}

.miraie-article-page .planner-step,
.miraie-article-page .type {
  color: var(--miraie-green-deep);
}

.miraie-article-page .home-header-inner {
  max-width: none;
  padding: 0;
}

.miraie-article-page .site-footer {
  border-top: 8px solid var(--miraie-green);
  background: #fff8e6;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 126px;
  }

  .miraie-global-header {
    position: relative;
  }

  .miraie-header-inner,
  .miraie-home .site-head .miraie-header-inner {
    width: calc(100% - 28px);
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 10px 0 0;
  }

  .miraie-wordmark img {
    width: 104px;
    height: 44px;
  }

  .miraie-wordmark > span {
    font-size: 22px;
  }

  .miraie-header-phone {
    min-width: 132px;
    min-height: 44px;
    padding: 6px 12px;
  }

  .miraie-header-phone small {
    display: none;
  }

  .miraie-header-phone b,
  .miraie-header-phone span {
    font-size: 14px;
  }

  .miraie-global-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .miraie-global-nav::-webkit-scrollbar {
    display: none;
  }

  .miraie-global-nav a {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid var(--miraie-line);
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
  }

  .miraie-global-nav a::after {
    display: none;
  }

  .miraie-article-page .page-shell {
    width: min(100% - 20px, 760px);
    margin-top: 12px;
  }

  .miraie-article-page .utility-hero,
  .miraie-article-page .comparison,
  .miraie-article-page .safety,
  .miraie-article-page .sources,
  .miraie-article-page .section {
    border-radius: 20px;
  }
}

@media (min-width: 901px) {
  body.miraie-page > .bottom-bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .miraie-global-nav a::after {
    transition: none;
  }
}

/* The approved Figma Sites LP keeps its 375px artboard on desktop too. */
body.miraie-page.miraie-figma-frame {
  padding-bottom: 71px;
  background: rgb(255 243 228 / 90%);
}

.miraie-figma-frame .miraie-home.phone-page {
  width: min(100%, 375px);
  margin: 0 auto;
  border-color: rgb(58 44 28 / 55%);
  box-shadow: none;
}

.miraie-figma-frame .miraie-global-header {
  position: sticky;
  min-height: 50px;
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 4px 6px rgb(240 223 200 / 20%);
  backdrop-filter: none;
}

.miraie-figma-frame .miraie-header-inner,
.miraie-figma-frame .miraie-home .site-head .miraie-header-inner {
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.miraie-figma-frame .miraie-home .site-head .miraie-wordmark img {
  width: 73px;
  height: 24px;
}

.miraie-figma-frame .miraie-header-service {
  position: static;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(100deg, #ff5400, #ff9c00);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.miraie-menu {
  position: relative;
}

.miraie-menu summary {
  padding: 6px 0 6px 8px;
  color: var(--miraie-ink);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.miraie-menu summary::-webkit-details-marker {
  display: none;
}

.miraie-menu summary::before {
  display: block;
  color: var(--miraie-green-deep);
  content: "\2630";
  font-size: 17px;
  line-height: .8;
  text-align: center;
}

.miraie-menu summary:focus-visible {
  outline: 3px solid var(--miraie-orange);
  outline-offset: 3px;
}

.miraie-figma-frame .miraie-menu:not([open]) > .miraie-global-nav {
  display: none;
}

.miraie-figma-frame .miraie-menu[open] > .miraie-global-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: min(260px, calc(100vw - 32px));
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid var(--miraie-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(52 46 40 / 18%);
}

.miraie-figma-frame .miraie-menu:not([open]) > .miraie-header-phone {
  display: none;
}

.miraie-figma-frame .miraie-menu[open] > .miraie-header-phone {
  position: absolute;
  top: calc(100% + 132px);
  right: 0;
  z-index: 70;
  min-width: 260px;
  min-height: 52px;
  padding: 6px 12px;
}

.miraie-figma-frame .miraie-menu[open] > .miraie-header-phone small {
  display: block;
}

.miraie-figma-frame .miraie-menu[open] > .miraie-header-phone b,
.miraie-figma-frame .miraie-menu[open] > .miraie-header-phone span {
  font-size: 12px;
}

.miraie-figma-frame .miraie-global-nav a {
  padding: 9px 8px;
  border-radius: 7px;
  background: var(--miraie-cream);
  font-size: 11px;
  text-align: center;
}

.miraie-figma-frame .hero-photos {
  height: 210px;
  margin-top: -6px;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.miraie-figma-frame .hero-photos img,
.miraie-figma-frame .hero-photo-placeholder {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 8px solid var(--miraie-orange);
  border-radius: 6px 6px 0 0;
  object-fit: cover;
  transform: none;
}

.miraie-figma-frame .hero-photo-placeholder {
  display: block;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e8e8e8 25%, transparent 25%),
    linear-gradient(-45deg, #e8e8e8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e8e8 75%),
    linear-gradient(-45deg, transparent 75%, #e8e8e8 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

body.miraie-figma-frame > .bottom-bar {
  width: min(100%, 375px);
  height: 71px;
  display: grid;
  grid-template-columns: 61.6% 19.2% 19.2%;
}

body.miraie-figma-frame .miraie-home > footer {
  position: relative;
}

body.miraie-figma-frame .miraie-back-to-top {
  position: absolute;
  top: 73.63px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #3a2c1c;
  box-shadow: 0 3px 8px rgb(58 44 28 / 22%);
}

body.miraie-figma-frame .miraie-back-to-top span::before,
body.miraie-figma-frame .miraie-back-to-top span::after {
  position: absolute;
  top: 16px;
  width: 10px;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  content: "";
}

body.miraie-figma-frame .miraie-back-to-top span::before {
  left: 14px;
  transform: rotate(-45deg);
}

body.miraie-figma-frame .miraie-back-to-top span::after {
  right: 14px;
  transform: rotate(45deg);
}

body.miraie-figma-frame > .bottom-bar > a {
  position: relative;
  min-width: 0;
  padding: 0;
  gap: 0;
  overflow: visible;
}

body.miraie-figma-frame > .bottom-bar > .phone-link {
  padding: 15px 6px 2px;
  background: linear-gradient(90deg, #65bf3e 0%, #159f45 100%);
}

body.miraie-figma-frame .bottom-phone-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 132px;
  height: 27px;
  border-radius: 100px;
  background: #f4ef79;
  color: #118d3e;
  font-size: 12px;
  font-weight: 900;
  line-height: 27px;
  transform: translateX(-50%);
  white-space: nowrap;
}

body.miraie-figma-frame > .bottom-bar .phone-link > small {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
}

body.miraie-figma-frame > .bottom-bar .phone-link > b {
  color: #ffed58;
  font-family: "Montserrat", "Zen Maru Gothic", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.06em;
  white-space: nowrap;
}

body.miraie-figma-frame > .bottom-bar .phone-link > b > span {
  margin-right: 3px;
  font-family: sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

body.miraie-figma-frame > .bottom-bar .phone-link > .compact-call-source {
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

body.miraie-figma-frame > .bottom-bar > .bottom-check-link {
  padding-top: 5px;
  background: linear-gradient(135deg, #ff9f27 0%, #ff681f 100%);
}

body.miraie-figma-frame > .bottom-bar > .bottom-check-link .bottom-bar-icon {
  color: #fff;
  font-family: sans-serif;
  font-size: 17px;
  line-height: 1;
}

body.miraie-figma-frame > .bottom-bar > .bottom-check-link small {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
}

body.miraie-figma-frame > .bottom-bar > .bottom-check-link b {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
}

body.miraie-figma-frame > .bottom-bar > .bottom-menu-link {
  background: #fff;
  color: #171717;
}

body.miraie-figma-frame .bottom-menu-icon {
  position: relative;
  width: 31px;
  height: 20px;
  margin-bottom: 5px;
  border-top: 3px solid currentcolor;
  border-bottom: 3px solid currentcolor;
}

body.miraie-figma-frame .bottom-menu-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
  width: 31px;
  border-top: 3px solid currentcolor;
  content: "";
}

body.miraie-figma-frame > .bottom-bar > .bottom-menu-link small {
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
}

.miraie-figma-frame .hero h1 strong {
  font-size: 42px;
  letter-spacing: -.055em;
}

.miraie-figma-frame .contact-band .call-source-note {
  max-width: 310px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 9px;
  line-height: 1.35;
}
