/* =====================================================
   AZWork - Dark Refined Theme (CLEAN)
   Single-file CSS written from scratch to replace patches
   ===================================================== */

/* -----------------------
   0) TOKENS
----------------------- */
:root {
  /* Colors */
  --bg: #0E0F13;
  /* page background (near-black) */
  --paper: #11131A;
  /*--paper: #f3f4fa;*/
  /* section background */
  --surface: #16181F;
  /* cards / muted blocks */
  --text: #ECEEF3;
  /* primary text */
  --text-sub: #B6BBC7;
  /* secondary text */
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);

  --accent: #81D8D0;
  /* turquoise accent */
  --red: #E63946;
  /* primary CTA red */
  --red-600: #C92A34;
  /* hover red */

  /* Typography */
  --font: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-title: 'Montserrat', var(--font);

  /* Radii & Shadows */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-strong: 0 16px 40px rgba(0, 0, 0, .35);

  /* Layout */
  --container: 1200px;
  --space: 64px;
  /* section vertical space (mobile) */
}

/* -----------------------
   1) BASE
----------------------- */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: auto;
  padding: 0 24px;
}

.section {
  padding: var(--space) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section--muted {
  background: var(--surface);
}

.section--alt {
  background: var(--paper);
}

/* Headings */
h1,
h2,
h3 {
  margin: 0 0 16px;
  font-family: var(--font-title);
  letter-spacing: .01em
}

h1 {
  font-size: 42px;
  line-height: 1.12
}

h2 {
  font-size: 28px
}

h3 {
  font-size: 20px
}

p {
  line-height: 1.6;
  color: var(--text-sub);
  margin: 0 0 12px
}

@media (min-width:768px) {
  h1 {
    font-size: 56px
  }

  h2 {
    font-size: 32px
  }

  h3 {
    font-size: 22px
  }

  .section {
    padding: 96px 0
  }
}

/* -----------------------
   2) HEADER / NAV
----------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(17, 19, 26, .85);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text)
}

.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1B1E25;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.hamburger .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text);
}

/* Desktop nav */
.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--text-sub)
}

.nav a:hover {
  color: var(--text)
}

.nav__cta {
  margin-left: 8px
}

/* === v1_fix14: Header CTA emphasis === */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #0E0F13 !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 6px 18px rgba(129, 216, 208, .25), inset 0 0 0 1px rgba(0, 0, 0, .08);
  letter-spacing: .02em;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(129, 216, 208, .35)
}

.nav__cta:active {
  transform: translateY(0)
}

@media (max-width: 900px) {
  .nav .nav__cta {
    margin-top: 8px;
    height: 48px;
    padding: 0 22px;
    width: 100%;
    background: var(--accent);
    color: #0E0F13 !important;
    font-weight: 800;
  }
}


/* Mobile drawer */
@media (max-width: 900px) {
  .nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    inset: 72px 0 0 0;
    width: 100vw;
    max-height: calc(100dvh - 72px);
    background: rgba(17, 19, 26, .96);
    backdrop-filter: blur(8px);
    z-index: 90;
    transform: translateX(100%);
    transition: transform .2s ease-out;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-left: none;
  }

  .nav a {
    color: var(--text);
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
  }

  .nav.open {
    transform: none
  }
}

/* -----------------------
   3) HERO
----------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}

.hero--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 30% 35%, rgba(14, 15, 19, .88) 0%, rgba(14, 15, 19, .60) 50%, rgba(14, 15, 19, .15) 75%, rgba(14, 15, 19, 0) 100%),
    linear-gradient(to bottom, rgba(14, 15, 19, 0) 70%, var(--paper) 100%);
}

.hero__inner,
.hero-inner {
  position: relative
}

.headline {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: .005em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .9), 0 0 1px rgba(0, 0, 0, .4)
}

.lead {
  max-width: 720px;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .75)
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px
}

/* -----------------------
   4) BUTTONS
----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: .2s ease;
  text-decoration: none;
}

.btn-sm {
  height: 40px;
  padding: 0 14px;
  font-size: 14px
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px
}

/* primary (light filled) — use at contact section etc. */
.btn-primary {
  background: var(--text);
  color: #111;
  box-shadow: var(--shadow)
}

.btn-primary:hover {
  filter: brightness(.96)
}

/* contrast (main CTA red) */
.btn-contrast {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(230, 57, 70, .25)
}

.btn-contrast:hover {
  background: var(--red-600)
}

/* ghost-light (outline) */
.btn-ghost-light {
  border: 2px solid rgba(255, 255, 255, .85);
  color: #fff
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .08)
}

/* -----------------------
   5) CARDS / GRIDS
----------------------- */
.cards {
  display: grid;
  gap: 16px
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow)
}

.card:hover {
  box-shadow: var(--shadow-strong)
}

/* Promises section */
#promises .grid-3 {
  display: grid;
  gap: 16px
}

@media(min-width:720px) {
  #promises .grid-3 {
    grid-template-columns: repeat(3, 1fr)
  }
}

#promises .card {
  position: relative;
  padding-top: 28px;
  background: rgba(255, 255, 255, .03)
}

#promises .card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #FFB34D, #E466FF 55%, var(--accent) 100%);
  opacity: .9
}

#promises .card p {
  color: var(--text-sub)
}

/* -----------------------
   6) FAQ / TIMELINE / ETC.
----------------------- */
.faq {
  border-bottom: 1px solid var(--line);
  padding: 12px 0
}

.faq summary {
  cursor: pointer;
  list-style: none;
  color: var(--text)
}

.faq summary::-webkit-details-marker {
  display: none
}

/* -----------------------
   7) FOOTER
----------------------- */
.footer {
  background: var(--bg);
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding: 48px 0
}

/* === v1_fix: skip-link, hero image layering, header CTA === */

/* 1) Skip link should be visually hidden until focused (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border-radius: 8px;
  z-index: 999;
}

/* 2) Hero picture as full-bleed background behind content */
.hero picture {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero picture img,
.hero__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Ensure hero has a sensible height */
.hero {
  min-height: 68vh;
}

@media(min-width:1024px) {
  .hero {
    min-height: 74vh;
  }
}

/* 3) Header CTA button should not appear as solid white block */
.header .btn-primary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: none;
}

.header .btn-primary:hover {
  background: rgba(255, 255, 255, .08)
}


/* === v1_fix2: hero layering, steps, footer, FAQ tune === */

/* HERO: make image visible (z layers) */
.hero {
  position: relative;
}

.hero picture.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .hero-inner,
.hero__inner {
  position: relative;
  z-index: 2;
}

.hero--dark::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: '';
  background:
    radial-gradient(90% 70% at 30% 35%, rgba(14, 15, 19, .92) 0%, rgba(14, 15, 19, .70) 50%, rgba(14, 15, 19, .18) 75%, rgba(14, 15, 19, 0) 100%),
    linear-gradient(to bottom, rgba(14, 15, 19, 0) 70%, var(--paper) 100%);
  pointer-events: none;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PROCESS (導入の流れ) */
.steps {
  margin: 18px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  list-style: none;
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  margin: 10px 0;
  color: var(--text-sub);
}

.steps li strong {
  color: var(--text);
  font-weight: 700
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

/* FAQ */
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, .02);
  margin: 10px 0
}

.faq+.faq {
  margin-top: 12px
}

.faq summary {
  font-weight: 700;
  color: var(--text)
}

.faq summary::after {
  content: '+';
  float: right;
  transition: transform .2s
}

.faq[open] summary::after {
  content: '–'
}

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 36px 0 24px
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center
}

@media(min-width:840px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
  }
}

.footer .social {
  display: flex;
  gap: 14px;
  align-items: center
}

.footer .icon-img {
  width: 20px;
  height: 20px;
  display: block
}

.footer p,
.footer a {
  color: var(--text-sub)
}


/* === v1_fix3: header hamburger desktop hide, mobile overlay, footer polish === */

/* Hamburger styling (no white box) */
.hamburger {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(255, 255, 255, .92);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}

.hamburger span:nth-child(1) {
  top: 12px
}

.hamburger span:nth-child(2) {
  top: 19px
}

.hamburger span:nth-child(3) {
  top: 26px
}

/* animate to X when expanded */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg)
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg)
}

/* Desktop: hide hamburger / show inline nav */
@media(min-width: 900px) {
  .hamburger {
    display: none
  }

  .nav {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row;
    max-height: none;
    background: transparent;
    padding: 0;
    gap: 18px;
  }

  .nav a {
    border-bottom: none;
    color: var(--text-sub)
  }

  .nav a:hover {
    color: var(--text)
  }
}

/* Mobile menu overlay stronger & fully readable */
@media(max-width: 899px) {
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    /* below header */
    background: transparent;
    /* create overlay via ::before */
    z-index: 90;
    transform: translateX(100%);
    transition: transform .2s ease-out;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 0;
  }

  .nav::before {
    content: '';
    position: fixed;
    inset: 64px 0 0 0;
    z-index: -1;
    background: rgba(12, 14, 18, .96);
    backdrop-filter: blur(8px);
  }

  .nav a {
    color: #fff;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
  }

  .nav.open {
    transform: none
  }
}

/* Footer polish consistent layout */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px
}

.footer__inner {
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: 1fr;
}

.footer .social {
  display: flex;
  gap: 12px;
  align-items: center
}

.footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
}

.footer .icon-img {
  width: 18px;
  height: 18px
}

.footer .legal {
  display: flex;
  gap: 18px;
  justify-self: start
}

.footer .legal a {
  color: var(--text-sub)
}

.footer small {
  color: var(--text-sub)
}

.footer .badges {
  justify-self: start
}

@media(min-width: 960px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto;
  }

  .footer .legal {
    justify-self: center
  }

  .footer .badges {
    justify-self: end
  }
}


/* === v1_fix4: solid mobile menu overlay + footer robust grid === */

/* Mobile menu: make overlay solid (no transparency bleed), ensure it sits above content */
@media(max-width: 899px) {
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(10, 12, 16, .97) !important;
    /* solid dark */
    backdrop-filter: blur(8px);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .2s ease-out;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 0;
  }

  .nav::before {
    content: none !important;
  }

  /* remove previous transparent layer */
  .nav a {
    color: #fff;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
  }

  .nav.open {
    transform: none
  }
}

/* Footer: lock structure to 3 columns on desktop, stacked on mobile */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px
}

.footer__inner {
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: 1fr;
}

.footer .social {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

.footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
}

.footer .icon-img {
  width: 18px;
  height: 18px
}

.footer .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-self: start
}

.footer .legal a {
  color: var(--text-sub)
}

.footer .badges {
  justify-self: start
}

.footer small {
  color: var(--text-sub);
  justify-self: start
}

@media(min-width: 960px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto;
  }

  .footer .legal {
    justify-self: center
  }

  .footer .badges {
    justify-self: end
  }

  .footer small {
    grid-column: 1 / -1;
    justify-self: end
  }
}


/* === v1_fix5: footer sr-only, pricing cards, company grid/card, table-like === */

/* screen-reader only utility (hide visually but keep for a11y) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pricing cards */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pricing__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  padding: 18px;
}

.pricing__item h3 {
  margin: 0 0 6px;
  font-size: 20px
}

.pricing__item .price {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 6px 10px;
  border-radius: 10px;
  margin: 2px 0 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

@media(min-width:760px) {
  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:1100px) {
  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Generic card + 3-col grid for company & privacy */
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  padding: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

@media(min-width:900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr)
  }
}

/* table-like info (会社概要) */
.table-like {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  margin-top: 16px;
}

.table-like__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.table-like__row>div {
  padding: 12px 14px
}

.table-like__row>div:first-child {
  color: var(--text-sub);
  background: rgba(255, 255, 255, .03);
  font-weight: 600
}

.table-like__row:last-child {
  border-bottom: none
}

/* Section headings spacing tune */
.section__title {
  margin-bottom: 12px
}

.section__lead {
  color: var(--text-sub)
}


/* === v1_fix6: Force solid background for mobile nav when open === */
@media(max-width: 899px) {
  .hamburger[aria-expanded="true"]+.nav {
    background: #0B0D12 !important;
    /* fully opaque */
    backdrop-filter: none !important;
  }

  .nav.open {
    background: #0B0D12 !important;
    backdrop-filter: none !important;
  }
}


/* === v1_fix7: footer badge size + Works card variety === */
.footer .badges img {
  width: 72px;
  height: auto
}

@media(min-width:960px) {
  .footer .badges img {
    width: 88px
  }
}

#works .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

@media(min-width:840px) {
  #works .cards {
    grid-template-columns: 1fr
  }
}

#works .card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 16px
}

#works .card--ghost {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .20);
  transition: transform .18s ease, box-shadow .18s ease;
}

#works .card--ghost::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 6px;
  border-radius: 16px 0 0 16px;
  background: var(--work-accent, var(--accent));
}

#works .card--ghost::after {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  height: 120%;
  width: 60%;
  background: radial-gradient(60% 60% at 60% 40%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

#works .card--ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28)
}

#works .card--ghost:nth-child(3n+1) {
  --work-accent: #81D8D0
}

#works .card--ghost:nth-child(3n+2) {
  --work-accent: #E05D5D
}

#works .card--ghost:nth-child(3n) {
  --work-accent: #F39C12
}


/* === v1_fix8: Solid mobile menu overlay + persistent menu button === */
@media (max-width: 900px) {

  /* Solid, full-viewport drawer */
  .nav {
    inset: 0 !important;
    max-height: none !important;
    height: 100dvh !important;
    background: #0B0D12 !important;
    backdrop-filter: none !important;
    z-index: 1100 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .nav.open {
    transform: none !important;
  }

  /* Keep the hamburger visible even when scrolled */
  #menuBtn {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1201;
  }

  #siteHeader {
    z-index: 1200;
  }

  /* Avoid scroll on body while menu open (partly duplicated from JS for safety) */
  body[style*="overflow: hidden"] {
    height: 100dvh;
  }
}


/* === v1_fix9: Robust SP menu (display toggle) === */
@media (max-width: 900px) {

  /* reset and use display toggle instead of translate */
  .nav {
    position: fixed;
    inset: 0 !important;
    height: 100dvh;
    width: 100vw;
    background: #0B0D12 !important;
    backdrop-filter: none !important;
    z-index: 1100 !important;
    display: none;
    flex-direction: column;
    padding: 16px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    /* neutralize any translate rules */
  }

  .nav.open,
  #siteNav.open {
    display: flex !important;
  }

  /* keep hamburger always visible */
  #menuBtn {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1201;
  }

  #siteHeader {
    z-index: 1200;
  }
}


/* === v1_fix11: SP menu opacity/visibility/pointer-events === */
@media (max-width: 900px) {
  .nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: fixed;
    inset: 0 !important;
    width: 100vw;
    height: 100dvh;
    background: #0B0D12 !important;
    z-index: 1100 !important;
    display: none;
    flex-direction: column;
    padding: 16px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .nav.open,
  #siteNav.open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #menuBtn {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1201;
  }

  #siteHeader {
    z-index: 1200;
  }
}


/* === v1_fix12: responsive rescue rules === */
#menuBtn {
  display: none;
}

@media screen and (max-width: 1200px) {
  #menuBtn {
    display: inline-flex !important;
  }

  .nav {
    display: none;
  }
}

@media screen and (min-width: 1201px) {
  #menuBtn {
    display: none !important;
  }

  .nav {
    display: flex;
  }
}


/* === v1_fix13: robust mobile nav === */
@media (max-width: 1024px) {

  /* closed state */
  #siteNav,
  .nav,
  .nav-panel {
    position: fixed;
    inset: 0;
    background: #0B0D12;
    display: none;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1100;
    padding: 20px;
    overflow: auto;
    transition: opacity .2s ease;
  }

  /* open by class OR by body state */
  #siteNav.open,
  .nav.open,
  .nav-panel.open,
  body.menu-open #siteNav,
  body.menu-open .nav,
  body.menu-open .nav-panel {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  #menuBtn,
  .menu-btn,
  .hamburger,
  [data-menu-toggle] {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 1201;
  }

  body.menu-open {
    overflow: hidden;
  }
}


/* Footer responsive layout */
@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: .8rem 0 1rem
  }

  .footer .social {
    order: 1;
    justify-content: center
  }

  .footer .legal {
    order: 2;
    justify-content: center;
    gap: .8rem;
    font-size: .92rem
  }

  .footer .badges {
    order: 3
  }

  .footer .badges img {
    width: 84px;
    height: auto
  }

  .footer small {
    order: 4;
    display: block;
    margin-top: .2rem
  }
}


/* === v1_fix15: Header nav vertical alignment === */
.header {
  height: 64px
}

.header__inner {
  min-height: 64px
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 8px;
  line-height: 1;
}

.logo {
  height: 40px
}

/* keep CTA same height as links for baseline alignment */
.nav__cta {
  height: 40px
}

/* Mobile drawer resets */
@media (max-width: 900px) {
  .nav a {
    display: block;
    height: auto;
    padding: 14px 10px;
    line-height: 1.6
  }
}


/* === v1_fix16: Footer balance === */
@media(min-width:840px) {
  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .social {
    justify-self: start
  }

  .legal {
    justify-self: center
  }

  .badges {
    justify-self: end
  }
}

/* Social icon size */
.social a {
  width: 40px;
  height: 40px;
  border-radius: 12px
}

/* Badge image sizing */
.badges .badge img {
  width: 64px;
  height: auto;
  opacity: .95
}

@media(min-width:840px) {
  .badges .badge img {
    width: 72px
  }
}

/* ---- 2025-09-03 add: Pricing compare ---- */
.subhead {
  font: 600 18px/1.5 var(--font-title);
  margin: 24px 0 12px
}

.price-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow)
}

.price-table {
  width: 100%;
  border-collapse: collapse
}

.price-table th,
.price-table td {
  padding: 12px;
  border-top: 1px solid var(--line);
  vertical-align: top
}

.price-table thead th {
  border-top: none;
  font-weight: 700;
  text-align: left
}

.price-table th[scope="row"] {
  white-space: nowrap;
  color: var(--text-sub);
  width: 160px
}

.price-table .list {
  margin: 0;
  padding-left: 18px
}

@media (max-width: 800px) {
  .price-table thead {
    display: none
  }

  .price-table tr {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line)
  }

  .price-table td,
  .price-table th[scope="row"] {
    display: block;
    width: 100%;
    border: none;
    padding: 8px 0
  }

  .price-table th[scope="row"] {
    margin-top: 8px
  }
}

/* ---- 2025-09-03 add: FAQ inline CTA ---- */
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.cta-inline__text p {
  margin: 6px 0 0
}

@media (max-width: 720px) {
  .cta-inline {
    flex-direction: column;
    align-items: stretch
  }

  .cta-inline .btn {
    width: 100%
  }
}

/* ---- tag rows (hero) ---- */
.tag-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, .25);
  /* ヒーロー上での視認性 */
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 8px 12px
}

.tag-head {
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  opacity: .9
}

.chip {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff
}

.chip:hover {
  background: rgba(255, 255, 255, .16)
}

.chip--accent {
  background: var(--brand, #53f1d9);
  color: #000;
  border-color: var(--brand, #53f1d9);
  font-weight: 600
}

@media (max-width:720px) {
  .chip {
    font-size: 13px;
    padding: 7px 12px
  }
}

/* ===== Fix: mobile hero overflow ===== */

/* ヒーローは内容量に合わせて伸びる＋はみ出し防止 */
.hero {
  position: relative;
  overflow: hidden;
}

/* iPhone SE～小画面向け調整（～420px） */
@media (max-width: 420px) {

  /* 固定/大きすぎる最小高さを解除し、縦パディングを確保 */
  .hero {
    min-height: 0;
    padding-bottom: 20px;
  }

  .hero .container,
  .hero .hero-inner {
    padding-top: 64px;
    padding-bottom: 12px;
  }

  /* 見出し/リードを縮小して折り返しを安定 */
  .headline {
    font-size: clamp(26px, 9vw, 40px);
    line-height: 1.15;
  }

  .lead {
    font-size: 14px;
    max-width: 28ch;
  }

  /* タグ行をコンパクト化 */
  .tag-rows {
    gap: 6px;
    margin-top: 8px;
  }

  .tag-row {
    gap: 6px;
    padding: 6px 8px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .35);
  }

  .tag-head {
    font-size: 11px;
    padding: 4px 8px;
  }

  .chip {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* ヒーローのボタンは縦並び・全幅にして圧縮 */
  .hero .btn,
  .hero a.btn {
    width: 100%;
  }

  .hero .btn+.btn,
  .hero a.btn+a.btn {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* 小～中画面（～720px）でも少しだけ縮める */
@media (max-width: 720px) {
  .headline {
    font-size: clamp(30px, 8vw, 48px);
  }

  .chip {
    font-size: 13px;
    padding: 7px 12px;
  }
}

/* 画像オーバーレイをabsoluteに固定（もし未設定なら） */
.hero .hero-bg {
  position: absolute;
  inset: 0;
}

.hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}