:root {
  --color-primary: #0091c2;
  --color-primary-hover: #0077a3;
  --color-accent: #00a6cc;
  --color-navy: #003f75;
  --color-navy-deep: #062a4d;
  --color-bg: #f2f7fb;
  --color-surface: #ffffff;
  --color-surface-muted: #e7f3fa;
  --color-border: #cfe1ec;
  --color-border-soft: #e3edf4;
  --color-text: #16283f;
  --color-body: #37454f;
  --color-muted: #5c7186;
  --font-heading: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  --font-mono: "DM Sans", "Noto Sans JP", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-label: "DM Sans", "Noto Sans JP", system-ui, sans-serif;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 14px rgba(0, 63, 117, 0.08);
  --shadow: 0 10px 28px rgba(0, 63, 117, 0.1);
  --shadow-md: 0 18px 42px rgba(0, 63, 117, 0.16);
  --max-width: 1140px;
  --header-height: 76px;
  --section-pc: 88px;
  --section-sp: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-body);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  margin-bottom: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.narrow-container {
  width: min(calc(100% - 48px), 900px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 234, 242, 0.9);
  backdrop-filter: saturate(170%) blur(16px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 700;
}

.site-logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.site-logo-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-logo-text {
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0;
}

.site-logo-text em {
  color: var(--color-muted);
  font-style: normal;
  font-weight: 600;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color-body);
  font-size: 14px;
}

.global-nav a:not(.button) {
  transition: color 0.2s ease;
}

.global-nav a:not(.button):hover {
  color: var(--color-primary-hover);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-navy) !important;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}

.menu-toggle-line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-navy);
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle-line:first-child {
  top: 17px;
}

.menu-toggle-line:nth-child(2) {
  top: 25px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 145, 194, 0.22);
}

.button-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 14px 30px rgba(0, 145, 194, 0.3);
}

.button-secondary {
  border: 1px solid var(--color-primary);
  color: var(--color-navy);
  background: #fff;
}

.button-secondary:hover {
  background: var(--color-surface-muted);
}

.button-light {
  background: #fff;
  color: var(--color-navy);
}

.button-light:hover {
  background: #f7fbfe;
}

.button-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-sm {
  min-height: 36px;
  padding: 8px 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--color-navy);
  font-weight: 700;
}

.text-link::after {
  content: ">";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.section {
  padding-block: var(--section-pc);
  background: var(--color-surface);
}

.section-soft {
  background: var(--color-bg);
}

.section-label,
.eyebrow,
.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-primary-hover);
  font-family: var(--font-label);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-label::before,
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid rgba(0, 166, 204, 0.55);
  border-radius: var(--radius-sm);
  background: rgba(0, 166, 204, 0.22);
}

.section-label.on-dark {
  color: #e6f6fc;
}

.section-label.on-dark::before {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.section h2,
.hero-title {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0;
}

.section h2 {
  margin-bottom: 20px;
  font-size: 38px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section h3 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  text-wrap: balance;
}

.section-copy > p,
.section-heading > p {
  max-width: 680px;
  color: var(--color-body);
  font-size: 18px;
  line-height: 1.75;
  text-wrap: pretty;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 80px;
  align-items: start;
}

.align-center {
  align-items: center;
}

.health-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding-block: calc(var(--header-height) + 74px) 72px;
  background: linear-gradient(180deg, #d8ecf7 0%, #eef7fb 46%, #ffffff 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: -18% -12%;
  z-index: 0;
  background:
    radial-gradient(ellipse 64% 50% at 18% 26%, rgba(0, 166, 204, 0.85), rgba(0, 166, 204, 0.14) 48%, rgba(0, 166, 204, 0) 76%),
    radial-gradient(ellipse 60% 46% at 86% 22%, rgba(0, 145, 194, 0.6), rgba(0, 145, 194, 0.1) 52%, rgba(0, 145, 194, 0) 78%),
    radial-gradient(ellipse 62% 44% at 66% 84%, rgba(6, 42, 77, 0.32), rgba(6, 42, 77, 0.06) 54%, rgba(6, 42, 77, 0) 80%);
  opacity: 0.92;
  animation: heroGradientBloom 12s ease-in-out infinite;
}

.hero::after {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 74% 50% at 50% 42%, rgba(0, 166, 204, 0.4), rgba(255, 255, 255, 0.08) 58%, rgba(255, 255, 255, 0) 76%);
  opacity: 0.34;
  animation: heroGradientGlow 9s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
  max-width: 700px;
  padding-right: 8px;
}

.hero-title {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: 40px;
  line-height: 1.3;
  text-wrap: balance;
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
}

.hero-break {
  display: block;
}

.hero-lead {
  max-width: 700px;
  color: var(--color-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-note {
  max-width: 680px;
  margin-top: 16px;
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
}

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

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.hero-image-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  box-shadow: var(--shadow-md);
}

.hero-image-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #ffffff 52%, var(--color-accent) 100%);
}

.hero-image-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  background: #fff;
}

.status-chip,
.service-list span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checklist-card {
  padding: 8px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-soft);
}

.list-row:last-child {
  border-bottom: 0;
}

.checkbox-mark {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
}

.checkbox-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 238px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(131, 189, 226, 0.75);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: rgba(131, 189, 226, 0.14);
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 700;
}

.service-icon .icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary-hover);
}

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

.service-card p {
  color: var(--color-body);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-list span {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}

.migration {
  background: var(--color-navy);
  color: #fff;
}

.migration h2,
.migration h3,
.migration .section-copy > p {
  color: #fff;
}

.migration .section-copy > p {
  color: rgba(255, 255, 255, 0.8);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chip-row span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.pathway-card {
  padding: 10px;
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pathway-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid var(--color-border-soft);
}

.pathway-row:last-child {
  border-bottom: 0;
}

.pathway-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--color-surface-muted);
  color: var(--color-primary-hover);
}

.pathway-number .icon {
  width: 18px;
  height: 18px;
}

.pathway-number small {
  display: none;
}

.pathway-row strong {
  color: var(--color-text);
  font-weight: 700;
  font-size: 17px;
}

.pathway-row p {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
}

.reason-image {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.reason-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.reason-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.reason-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-border-soft);
  border-left: 2px solid transparent;
  transition: border-color 0.22s ease;
}

.reason-item:hover {
  border-left-color: var(--color-accent);
}

.reason-item:last-child {
  border-bottom: 0;
}

.reason-item > span {
  color: var(--color-primary-hover);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.reason-item h3 {
  margin-bottom: 6px;
}

.reason-item p {
  color: var(--color-body);
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  border-left: 2px solid transparent;
  transition: border-color 0.22s ease;
}

.faq-item:hover {
  border-left-color: var(--color-accent);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  color: var(--color-text);
  text-align: left;
  font-size: 19px;
  font-weight: 700;
}

.faq-question-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.faq-qmark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-surface-muted);
  color: var(--color-primary-hover);
  font-size: 14px;
}

.faq-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  background: var(--color-navy);
  transform: translateY(-50%);
}

.faq-toggle::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  padding: 0 52px 24px 40px;
  color: var(--color-body);
}

.company-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.company-card h2 {
  margin-bottom: 16px;
  color: var(--color-text);
  font-size: 38px;
  line-height: 1.28;
}

.company-card p {
  color: var(--color-body);
}

.company-data {
  align-self: center;
  border-top: 1px solid var(--color-border-soft);
}

.company-data div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.company-data dt {
  color: var(--color-muted);
  font-size: 14px;
}

.company-data dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 600;
  word-break: break-word;
}

.company-data a {
  color: var(--color-primary-hover);
}

.final-cta {
  padding-block: 84px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fff;
}

.final-cta-inner {
  max-width: 900px;
}

.final-cta h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 38px;
  line-height: 1.28;
  letter-spacing: 0;
}

.final-cta p:not(.section-label) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.site-footer {
  padding: 36px 0 96px;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-muted);
  font-size: 14px;
}

.footer-logo {
  color: var(--color-text);
  font-weight: 700;
}

.footer-logo em {
  color: var(--color-muted);
  font-style: normal;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a:hover {
  color: var(--color-primary-hover);
}

.mobile-fixed-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  transform: translateY(120%);
  transition: transform 0.28s ease;
}

.mobile-fixed-cta.is-visible {
  transform: translateY(0);
}

body.is-menu-open .mobile-fixed-cta {
  display: none;
}

.mobile-fixed-cta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.mobile-fixed-cta .icon {
  width: 16px;
  height: 16px;
}

.mobile-fixed-cta a:first-child {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.mobile-fixed-cta a:last-child {
  color: #fff;
  background: var(--color-primary);
}

.animate-in {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFade 0.66s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGradientBloom {
  0% {
    opacity: 0.58;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    opacity: 0.66;
    transform: scale(1);
  }
}

@keyframes heroGradientGlow {
  0% {
    opacity: 0.18;
  }

  45% {
    opacity: 0.54;
  }

  100% {
    opacity: 0.24;
  }
}

.reveal,
.reveal-child {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.66s var(--ease), transform 0.66s var(--ease);
}

.reveal.is-visible,
.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal-child:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal-child:nth-child(4) {
  transition-delay: 0.18s;
}

.reveal-child:nth-child(5) {
  transition-delay: 0.24s;
}

.reveal-child:nth-child(6) {
  transition-delay: 0.3s;
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .split-layout,
  .company-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    max-width: 430px;
  }

  .hero-title {
    max-width: 780px;
    font-size: 40px;
  }

  .split-layout,
  .hero-inner {
    gap: 44px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-icon {
    margin-bottom: 28px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .narrow-container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-logo-text {
    font-size: 14px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    position: relative;
    z-index: 210;
  }

  .global-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 200;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px 16px 40px;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 20px 44px rgba(60, 60, 60, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .global-nav a:not(.button) {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    background: var(--color-surface-muted);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
  }

  .global-nav .button {
    width: 100%;
    margin-top: 8px;
  }

  .section {
    padding-block: var(--section-sp);
  }

  .section h2 {
    font-size: 32px;
    line-height: 1.34;
  }

  .hero {
    padding-block: calc(var(--header-height) + 52px) 56px;
  }

  .hero-title {
    max-width: 680px;
    font-size: 36px;
    line-height: 1.36;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .mobile-fixed-cta {
    display: grid;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .site-logo-mark {
    width: 34px;
    height: 34px;
  }

  .site-logo-mark img {
    width: 25px;
    height: 25px;
  }

  .site-logo-text {
    max-width: calc(100vw - 128px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-title {
    font-size: 29px;
    line-height: 1.42;
    text-wrap: balance;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-note {
    font-size: 14px;
  }

  .hero-visual {
    width: min(82vw, 310px);
    max-width: none;
  }

  .hero-image-card {
    padding: 8px;
  }

  .section h2 {
    font-size: 28px;
    line-height: 1.38;
  }

  .section h3 {
    font-size: 19px;
  }

  .section-copy > p,
  .section-heading > p,
  .final-cta p:not(.section-label) {
    font-size: 16px;
  }

  .list-row {
    align-items: flex-start;
    min-height: auto;
    padding: 14px;
  }

  .pathway-row {
    grid-template-columns: 1fr;
  }

  .reason-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .faq-question {
    align-items: flex-start;
    font-size: 17px;
    padding: 20px 0;
  }

  .faq-question-text {
    align-items: flex-start;
  }

  .faq-answer p {
    padding-right: 0;
    padding-left: 0;
  }

  .company-card {
    padding: 22px;
  }

  .company-data div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .container,
  .narrow-container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.5;
  }

  .section h2,
  .company-card h2,
  .final-cta h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .animate-in,
  .reveal,
  .reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Layout and typography refinement */
.title-line { display: block; }

@media (min-width: 1041px) {
  :root {
    --max-width: 1200px;
    --section-pc: 104px;
  }

  .container { width: min(calc(100% - 64px), var(--max-width)); }

  .hero {
    min-height: 760px;
    padding-block: calc(var(--header-height) + 70px) 78px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(64px, 7vw, 96px);
  }

  .hero-copy { max-width: 700px; padding-right: 12px; }

  .hero-title {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(38px, 2.8vw, 46px);
    line-height: 1.28;
    letter-spacing: -0.02em;
  }

  .hero-lead {
    max-width: 700px;
    font-size: 17px;
    line-height: 1.85;
  }

  .hero-note {
    max-width: 680px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-visual { max-width: 300px; }

  .section h2 {
    font-size: clamp(34px, 2.5vw, 42px);
    line-height: 1.32;
    letter-spacing: -0.02em;
  }

  .section-copy > p,
  .section-heading > p {
    font-size: 16px;
    line-height: 1.9;
  }

  .split-layout {
    grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.04fr);
    gap: clamp(64px, 7vw, 96px);
  }

  .migration .split-layout,
  .reasons .split-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  }

  .migration .section-copy { max-width: 590px; }
  .reasons .section-copy { max-width: 560px; }

  .final-cta-inner { max-width: 980px; }
  .final-cta h2 {
    max-width: 940px;
    font-size: 42px;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 1040px) {
  .title-line { display: inline; }
  .title-line + .title-line::before { content: ""; }
  .hero-break { display: none; }
}

@media (min-width: 861px) and (max-width: 1040px) {
  .hero-title { max-width: 760px; font-size: 38px; line-height: 1.32; }
  .hero-copy { max-width: 820px; }
  .section h2 { max-width: 760px; }
}

@media (max-width: 640px) {
  .hero {
    padding-block: calc(var(--header-height) + 38px) 52px;
  }

  .hero-title {
    font-size: clamp(27px, 8vw, 32px);
    line-height: 1.45;
    letter-spacing: -0.015em;
  }

  .hero-lead,
  .hero-note,
  .section-copy > p,
  .section-heading > p,
  .reason-item p,
  .service-card p,
  .pathway-row p {
    text-wrap: auto;
  }

  .section h2,
  .company-card h2,
  .final-cta h2 {
    font-size: clamp(26px, 7vw, 30px);
    line-height: 1.45;
    letter-spacing: -0.015em;
  }

  .hero-actions { margin-top: 26px; }
  .section-heading { margin-bottom: 30px; }
  .service-card { padding: 22px 20px; }
  .service-icon { margin-bottom: 24px; }
  .reason-item { padding: 20px; }
  .final-cta { padding-block: 68px 92px; }
}

/* Final visual polish: hero image scale and readable Japanese wrapping */
.hero-lead,
.hero-note,
.section-copy > p,
.section-heading > p,
.service-card p,
.pathway-row p,
.reason-item p,
.company-card p,
.final-cta p:not(.section-label),
.faq-answer p,
.list-row {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.service-card p,
.pathway-row p,
.reason-item p,
.company-card p,
.faq-answer p {
  line-height: 1.8;
}

.list-row {
  line-height: 1.7;
}

@media (min-width: 1041px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(58px, 6vw, 88px);
  }

  .hero-visual {
    max-width: 330px;
  }

  .hero-copy {
    max-width: 700px;
    padding-right: 0;
  }

  .hero-lead {
    max-width: 680px;
  }

  .hero-note {
    max-width: 660px;
  }

  .section-copy > p,
  .section-heading > p {
    line-height: 1.85;
  }

  .service-card p,
  .reason-item p,
  .company-card p {
    font-size: 15px;
  }

  .pathway-row p {
    max-width: 430px;
    font-size: 14px;
  }

  .migration .section-copy {
    max-width: 620px;
  }

  .reasons .section-copy {
    max-width: 590px;
  }

  .final-cta p:not(.section-label) {
    max-width: 760px;
    line-height: 1.85;
  }
}

@media (max-width: 1040px) {
  .hero-visual {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .hero-visual {
    width: min(86vw, 320px);
  }

  .hero-lead,
  .hero-note,
  .section-copy > p,
  .section-heading > p,
  .service-card p,
  .pathway-row p,
  .reason-item p,
  .company-card p,
  .final-cta p:not(.section-label),
  .faq-answer p,
  .list-row {
    text-wrap: pretty;
  }

  .service-card p,
  .reason-item p,
  .company-card p,
  .pathway-row p {
    line-height: 1.75;
  }
}


/* Copy-only wrap refinement: keep original text and improve readability */
.hero-lead,
.hero-note,
.section-copy > p,
.section-heading > p,
.service-card p,
.pathway-row p,
.reason-item p,
.company-card p,
.final-cta p:not(.section-label),
.faq-answer p,
.list-row {
  hanging-punctuation: allow-end;
  hyphens: none;
}

.section-copy > p,
.section-heading > p,
.final-cta p:not(.section-label) {
  max-width: 64ch;
}

.hero-lead { max-width: 42em; }
.hero-note { max-width: 44em; }

.service-card p {
  max-width: 22em;
  margin-inline: auto;
}

.pathway-row p {
  max-width: 31em;
}

.reason-item p {
  max-width: 34em;
}

.company-card p {
  max-width: 40em;
}

.faq-answer p {
  max-width: 52em;
  line-height: 1.85;
}

.list-row {
  align-items: flex-start;
}

@media (min-width: 1041px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(56px, 5.8vw, 84px);
  }

  .hero-visual {
    max-width: 340px;
  }

  .service-grid {
    gap: 24px;
  }

  .service-card p {
    font-size: 14.5px;
    line-height: 1.82;
  }

  .reason-item p,
  .company-card p,
  .faq-answer p {
    font-size: 15px;
  }

  .faq-answer p {
    padding-right: 28px;
  }

  .problems .section-copy > p {
    max-width: 34em;
  }

  .migration .section-copy > p {
    max-width: 35em;
  }

  .reasons .section-copy > p {
    max-width: 33em;
  }

  .company-card {
    gap: 40px;
  }
}

@media (max-width: 1040px) {
  .section-copy > p,
  .section-heading > p,
  .final-cta p:not(.section-label),
  .service-card p,
  .pathway-row p,
  .reason-item p,
  .company-card p,
  .faq-answer p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hero-lead,
  .hero-note,
  .section-copy > p,
  .section-heading > p,
  .final-cta p:not(.section-label),
  .service-card p,
  .pathway-row p,
  .reason-item p,
  .company-card p,
  .faq-answer p,
  .list-row {
    line-height: 1.8;
  }

  .faq-answer p {
    padding: 0 0 22px 0;
  }

  .hero-visual {
    width: min(88vw, 332px);
  }
}


/* Safe body-wrap refinement without changing text content */
.hero-lead,
.hero-note,
.section-copy > p,
.section-heading > p,
.service-card p,
.pathway-row p,
.reason-item p,
.faq-answer p,
.company-card p,
.final-cta p:not(.section-label),
.list-row {
  word-break: auto-phrase;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: pretty;
  hanging-punctuation: allow-end;
}

@supports not (word-break: auto-phrase) {
  .hero-lead,
  .hero-note,
  .section-copy > p,
  .section-heading > p,
  .service-card p,
  .pathway-row p,
  .reason-item p,
  .faq-answer p,
  .company-card p,
  .final-cta p:not(.section-label),
  .list-row {
    word-break: normal;
  }
}

@media (min-width: 1041px) {
  .section-copy > p,
  .section-heading > p,
  .final-cta p:not(.section-label) {
    max-width: 62ch;
  }

  .hero-lead { max-width: 40em; }
  .hero-note { max-width: 42em; }
  .service-card p { max-width: 22em; }
  .pathway-row p { max-width: 30em; }
  .reason-item p { max-width: 33em; }
  .company-card p { max-width: 39em; }
  .faq-answer p { max-width: 50em; }
}

/* Stronger mobile navigation safety */
@media (max-width: 860px) {
  .header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .global-nav {
    display: none;
  }

  .global-nav.is-open {
    display: grid;
  }

  .site-logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-logo-text {
    white-space: nowrap;
  }

  .hero-copy,
  .section-copy,
  .section-heading,
  .company-card,
  .final-cta-inner {
    min-width: 0;
  }
}

/* WordPress admin bar compatibility */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 860px) {
  body.admin-bar .global-nav {
    top: calc(var(--header-height) + 32px);
    height: calc(100vh - var(--header-height) - 32px);
    height: calc(100dvh - var(--header-height) - 32px);
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar .global-nav {
    top: calc(var(--header-height) + 46px);
    height: calc(100vh - var(--header-height) - 46px);
    height: calc(100dvh - var(--header-height) - 46px);
  }
}

/* Mobile content-width refinement */
@media (max-width: 640px) {
  .container,
  .narrow-container {
    width: min(calc(100% - 44px), var(--max-width));
  }

  .hero-visual {
    width: min(76vw, 288px);
    max-width: 288px;
    margin-inline: auto;
  }
}

@media (max-width: 380px) {
  .container,
  .narrow-container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero-visual {
    width: min(76vw, 272px);
    max-width: 272px;
  }
}

/* Mobile hero copy and visual refinement */
.hero-title-keep {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.5;
  }

  .hero-visual {
    width: min(70vw, 252px);
    max-width: 252px;
  }
}

@media (max-width: 380px) {
  .hero-visual {
    width: min(70vw, 238px);
    max-width: 238px;
  }
}

/* Mobile line-length correction: use the available width without forced phrase wrapping. */
@media (max-width: 640px) {
  .container,
  .narrow-container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero-title {
    font-size: clamp(20px, 5.65vw, 22px);
    line-height: 1.52;
    letter-spacing: -0.01em;
    text-wrap: wrap;
  }

  .section h2,
  .company-card h2,
  .final-cta h2,
  .hero-lead,
  .hero-note,
  .section-copy > p,
  .section-heading > p,
  .service-card p,
  .pathway-row p,
  .reason-item p,
  .company-card p,
  .final-cta p:not(.section-label),
  .faq-answer p,
  .list-row {
    word-break: normal;
    text-wrap: wrap;
  }
}




/* Content alignment and density refinements */
.checkbox-mark {
  margin-top: 0.28em;
}

.service-icon {
  margin-bottom: 22px;
}

.service-list {
  margin-top: 14px;
}

.service-list span {
  padding: 5px 13px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

@media (min-width: 1041px) {
  .service-card {
    min-height: 218px;
  }

  .reason-item p {
    max-width: 36em;
  }
}

@media (min-width: 641px) {
  .pathway-row {
    align-items: center;
  }

  .reason-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
}

/* Compact mobile layouts: place marks and headings on the same row. */
@media (max-width: 640px) {
  .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
  }

  .service-icon,
  .service-card h3 {
    margin-bottom: 0;
  }

  .service-card p {
    grid-column: 1 / -1;
    margin-top: 12px;
  }

  .pathway-row {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
  }

  .reason-item {
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: start;
  }
}

/* Smooth mobile menu transition */
@media (max-width: 860px) {
  .global-nav {
    display: grid;
    transform: translateY(-12px);
    transition:
      opacity 0.28s var(--ease),
      transform 0.28s var(--ease),
      visibility 0s linear 0.28s;
  }

  .global-nav.is-open {
    transition:
      opacity 0.28s var(--ease),
      transform 0.28s var(--ease),
      visibility 0s linear 0s;
  }
}
