:root {
  --color-text: #333333;
  --color-accent: #7589ff;
  --color-accent-strong: #6575F4;
  --color-white: #ffffff;
  --content-width: 1280px;
  --copy-width: 460px;
  --section-gap: 120px;
  --accent-padding-inline: 70px;
  --diagram-border-width: 2px;
  --diagram-radius: 10px;
  --font-base: 'Noto Sans JP', 'Noto Sans CJK JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { color: var(--color-text); background: var(--color-white); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-base); }

/* Phase 1 is a 1440px-wide desktop layout; responsive behavior is a later phase. */
.lp-content { min-width: 1440px; }
.page-container { width: var(--content-width); margin-inline: auto; }

.section-group-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--section-gap);
  color: var(--color-accent);
}
.section-group-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.15em;
}
html[lang="en"] .section-group-heading h2 {
  letter-spacing: 0.05em;
}
.section-group-heading__line {
  display: block;
  width: 40px;
  height: 2px;
  background: currentColor;
  margin-top: 40px;
}

.lp-section + .lp-section { margin-top: var(--section-gap); }
.section-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.section-layout--accent {
  padding: 120px var(--accent-padding-inline);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 20px;
}

.section-copy { width: var(--copy-width); flex: 0 0 var(--copy-width); }
.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 36px;
  color: var(--color-accent);
}
.section-label[id] {
  scroll-margin-top: 196px;
}
.section-label__icon {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 6px;
}
.section-label__text {
  display: flex;
  align-items: center;
  width: max-content;
  height: 36px;
  border-bottom: 1px solid currentColor;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.section-layout--accent .section-label { color: var(--color-white); }
.section-copy__title {
  margin: 60px 0 40px;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.06em;
}
html[lang="en"] .section-copy__title {
   line-height: 1.3;
   letter-spacing: 0.02em;
   margin: 60px 0 20px;
}
.section-copy__body {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
  text-align: justify;
}
.section-copy__note { margin-top: 60px; }
.section-copy__note-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 4px;
  color: var(--color-white);
  background: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
}
.section-copy__note p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: justify;
}
/* English paragraphs use ragged-right alignment; Japanese remains justified. */
html[lang="en"] .section-copy__body {
  text-align: left;
  line-height: 1.6;
}

html[lang="en"] .section-copy__note p {
  text-align: left;
  line-height: 1.5;
}

.section-layout--accent .section-copy__note-label {
  color: var(--color-accent);
  background: var(--color-white);
}

.section-visual,
.section-visual-stack { flex: 0 0 auto; }
.section-visual--670 { width: 670px; }
.section-visual--590 { width: 590px; }
.section-visual--500 { width: 500px; }
.section-visual--bordered {
  border: var(--diagram-border-width) solid var(--color-accent);
  border-radius: var(--diagram-radius);
  overflow: hidden;
}
.section-visual img { display: block; width: 100%; height: auto; }
.section-visual-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.section-visual-stack__icon { display: block; width: 60px; height: auto; }

.section-group-divider {
  height: 1px;
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
  background: var(--color-accent);
}

/* Section 04 caption and multiline body blocks. */
.section-copy__body > p { margin: 0; }
.section-copy__caption {
  margin: 60px 0 0;
  color: var(--color-accent);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.03em;
}


/* Section 05 supplementary comparison. */
.json-benefits .section-copy__title {
  margin-top: 0;
}
.json-benefits__comparison {
  display: flex;
  flex: 0 0 610px;
  gap: 30px;
}
.json-benefits__column {
  flex: 0 0 290px;
  width: 290px;
  font-size: 14px;
}
.json-benefits__header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 0;
  border-radius: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}
.json-benefits__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.json-benefits__rows li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-bottom: 1px dashed var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  color: var(--color-accent);
}
.json-benefits__sample {
  display: flex;
  height: 184px;
  justify-content: center;
  align-items: center;
  border-bottom: 1px dashed var(--color-accent);
}
.json-benefits__json-example {
  color: var(--color-accent);
  font-size: 14px;
  line-height: 2;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: left;
  white-space: nowrap;
}
.json-benefits__sample img {
  display: block;
  width: 180px;
  height: auto;
}
.json-benefits__column--image .json-benefits__header {
  background: #999999;
}
.json-benefits__column--image .json-benefits__rows li {
  border-bottom-color: #7f7f7f;
  color: var(--color-text);
}
.json-benefits__column--image .json-benefits__sample {
  border-bottom-color: #7f7f7f;
}

/* Features and operating environment. */
.features-section { --features-label-width: 330px; }
.features-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}
.features-table__label-column { width: var(--features-label-width); }
.features-table th,
.features-table td {
  height: 60px;
  padding: 0 30px;
  border-top: 1px solid #999999;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 500;
}
.features-table th { border-right: 1px solid #999999; }
.features-table tr:last-child th,
.features-table tr:last-child td { border-bottom: 1px solid #999999; }

.features-note {
  display: grid;
  /* Align its divider 330px from the outer edge, including the 1px border. */
  grid-template-columns: calc(var(--features-label-width) - 1px) minmax(0, 1fr);
  margin-top: 60px;
  border: 1px solid var(--color-accent);
  background: #f4f6ff;
  border-radius: 10px;
}
.features-note__identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px;
  text-align: center;
}
.features-note__identity img {
  display: block;
  width: 64px;
  height: auto;
}
.features-note__identity h3 {
  margin: 0;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.features-note__details {
  margin: 40px 0;
  padding: 0 40px 0 30px;
  border-left: 1px solid #999999;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}
.features-note__details p { margin: 0; }
.features-note__details p + p { margin-top: 20px; }

/* Hero and closing CTA share their content and visual styling. */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #ced5ff;
  color: var(--color-text);
  text-align: center;
}
.cta-section--hero {
  padding: 120px 0;
  margin-bottom: var(--section-gap);
}
.cta-section--bottom {
  padding: 100px 0;
  margin-top: var(--section-gap);
}
.cta-section__logo {
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 18px;
  margin-bottom: 50px;
}
.cta-section__copy { max-width: var(--content-width); }
.cta-section__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
html[lang="en"] .cta-section__title {
  letter-spacing: 0.04em;
}
.cta-section__body {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-top: 20px;
}
.cta-section__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 280px;
  height: 50px;
  margin-top: 50px;
  border-radius: 30px;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cta-section__note {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
@media (min-width: 961px) {
  .cta-section__button:hover { background: var(--color-accent-strong); }
}
.cta-section__button::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Header (desktop layout; fixed at top during scroll). */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-width: 1440px;
  padding: 20px 0;
  background: var(--color-white);
}
.lp-header__inner {
  display: flex;
  align-items: center;
}
.lp-header__brand {
  color: inherit;
  text-decoration: none;
}
.lp-header__nav {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-left: 120px;
}
.lp-header__nav-item {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: max-content;
  height: 36px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.lp-header__nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  display: none;
}
.lp-header__nav-item:hover::after {
  display: block;
}
.lp-header__language {
  position: relative;
  display: flex;
  width: 120px;
  height: 28px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}
.lp-header__language::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 28px;
  border-radius: 4px;
  background: var(--color-accent);
  transform: translateX(60px);
  transition: transform 200ms ease;
  pointer-events: none;
}
.lp-header__language[data-active-language="en"]::before {
  transform: translateX(0);
}
.lp-header__language-option {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.lp-header__language[data-active-language="en"] .lp-header__language-option[data-language="en"],
.lp-header__language[data-active-language="ja"] .lp-header__language-option[data-language="ja"] {
  color: var(--color-white);
}

/* Footer (desktop layout). */
.lp-footer {
  min-width: 1440px;
  padding: 40px 0;
  background: var(--color-white);
}
.lp-footer__inner {
  display: flex;
  align-items: center;
}
.lp-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.lp-brand__symbol {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 6px;
}
.lp-brand__wordmark-group {
  display: flex;
  align-items: center;
  align-self: flex-end;
}
.lp-brand__wordmark {
  display: block;
  width: 45px;
  height: 25px;
  margin-left: 10px;
}
.lp-brand__beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #606060;
  color: var(--color-white);
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}
.lp-footer__description {
  margin: 0 0 0 40px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.lp-footer__instagram {
  display: block;
  width: 35px;
  height: 35px;
  margin-left: auto;
  background: url("../assets/icon_instagram.png") center / contain no-repeat;
}
.lp-footer__instagram:hover,
.lp-footer__instagram:focus-visible {
  background-image: url("../assets/icon_instagram_hover.png");
}

/* Two layout designs: desktop (1440px basis) and single-column (414px basis).
   Only the 960px layout boundary changes the document structure. */
.section-layout--image-left {
  flex-direction: row-reverse;
}

/* Scale the unchanged desktop design proportionally down to the layout switch.
   CSS zoom participates in layout, unlike transform: scale(). */
.lp-header,
.lp-content,
.lp-footer {
  zoom: 1;
  zoom: clamp(0.6674, calc(100vw / 1440px), 1);
}

@media (max-width: 960px) {
  :root {
    --section-gap: 60px;
  }

  .lp-header,
  .lp-content,
  .lp-footer {
    zoom: 1;
    min-width: 0;
  }

  /* One fixed layout with fluid width and no tablet-specific configuration. */
  .page-container {
    width: calc(100% - 32px);
    max-width: 560px;
  }

  .lp-header {
    padding: 0;
  }

  .lp-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    grid-template-rows: 60px 52px;
    grid-template-areas:
      "brand language"
      "nav nav";
    align-items: center;
  }

  .lp-header__brand {
    grid-area: brand;
    justify-self: start;
  }

  .lp-header__language {
    grid-area: language;
    justify-self: end;
    margin-left: 0;
  }

  .lp-header__nav {
    grid-area: nav;
    width: 100%;
    min-width: 0;
    height: 52px;
    gap: 40px;
    margin-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .section-label[id] {
    scroll-margin-top: 152px;
  }

  .section-label__text {
    font-size: 14px;
  }

  .section-layout,
  .section-layout--image-left {
    flex-direction: column;
    gap: 60px;
  }

  .section-layout--accent {
    padding: 40px;
  }

  .section-copy {
    width: 100%;
    flex: 0 1 auto;
  }

  .section-copy__title {
    margin: 40px 0 20px;
    font-size: 26px;
  }

  .section-copy__body {
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .section-copy__note {
    margin-top: 40px;
  }
  .section-copy__caption {
    margin-top: 32px;
  }

  .section-visual,
  .section-visual-stack {
    max-width: 100%;
  }

  .section-visual-stack > .section-visual {
    width: 100%;
  }

  .json-benefits__comparison {
    width: 100%;
    max-width: 610px;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 32px;
  }

  .json-benefits__column {
    width: 100%;
    flex: 0 1 auto;
  }

  .json-benefits__rows li {
    min-height: 46px;
    height: auto;
    padding: 8px;
    white-space: normal;
  }

  .section-group-divider {
    display: none;
  }

  .section-group-heading {
    margin-top: 80px;
    margin-bottom: 80px;
  }

  .section-group-heading h2 {
    font-size: 20px;
  }

  .cta-section {
    padding-inline: 16px;
  }

  .cta-section__logo {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
  }

  .cta-section--hero,
  .cta-section--bottom {
    padding-block: 64px;
  }

  .cta-section__copy {
    width: 100%;
    max-width: 560px;
  }

  .cta-section__title {
    font-size: 26px;
  }

  .cta-section__body {
    font-size: 15px;
  }

  .cta-section__body br {
    display: none;
  }

  .cta-section__button {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
    max-width: 100%;
    margin-top: 32px;
    font-size: 15px;
    width: 240px;
    height: 46px;
  }

  /* Keep the existing two-column feature table, wrapping long strings. */
  .features-section {
    --features-label-width: 150px;
  }

  .features-table th,
  .features-table td {
    height: auto;
    padding: 14px 10px;
    font-size: 14px;
    line-height: 1.7;
    vertical-align: top;
    overflow-wrap: anywhere;
  }

  .features-note {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 60px;
  }

  .features-note__identity {
    padding: 30px 30px 0px;
  }

  .features-note__identity h3 {
    font-size: 15px;
    white-space: normal;
  }

  .features-note__details {
    margin: 0;
    padding: 30px;
    border-left: 0;
    font-size: 14px;
    text-align: justify;
  }
  
  html[lang="en"] .features-note__details {
    text-align: left;
  }

  .features-note__details br {
    display: none;
  }

  .lp-footer {
    padding: 24px 0;
  }

  .lp-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "identity instagram"
      "description description";
    gap: 16px;
  }

  .lp-footer__brand {
    grid-area: identity;
  }

  .lp-footer__instagram {
    grid-area: instagram;
    justify-self: end;
    margin-left: 0;
  }

  .lp-footer__description {
    grid-area: description;
    margin: 0;
    white-space: normal;
  }

  .lp-footer__description br {
    display: none;
  }
}
