/* CTIA SG visual correction pass: overlay navigation, full-screen hero, and media-aware service layouts. */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, 0));
  border: 0;
  backdrop-filter: none;
  transition: inset .28s ease, background-color .28s ease, box-shadow .28s ease, border-radius .28s ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  inset: 12px 16px auto;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(29, 94, 238, .12);
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(16, 33, 61, .12);
  backdrop-filter: blur(18px);
}

.header-inner { height: 88px; transition: height .28s ease; }
.site-header.is-scrolled .header-inner,
.site-header.is-solid .header-inner { height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-size: 1.04rem; font-weight: 800; letter-spacing: .095em; line-height: 1; }
.brand-name strong { color: var(--cobalt); font-weight: 800; }

.language-switcher { position: relative; margin-left: 2px; }
.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid rgba(16, 33, 61, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.language-trigger svg { width: 14px; height: 14px; transition: transform .2s ease; }
.language-switcher.open .language-trigger svg { transform: rotate(180deg); }
.language-flag {
  display: inline-block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(16, 33, 61, .13);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.flag-jp { background-image: url("../images/japanes-icon.svg"); }
.flag-gb {
  background-image: url("../images/english-icon.svg");
}
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  padding: 7px;
  border: 1px solid var(--soft);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: .18s ease;
}
.language-switcher.open .language-menu { opacity: 1; visibility: visible; transform: none; }
.language-menu a,
.language-menu .language-current {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}
.language-menu .language-current { background: var(--pale); color: var(--cobalt); }
.language-menu a:hover { background: #f7f9ff; }

main > .hero:not(.page-hero) { min-height: 100svh; }
.page-hero { min-height: min(78svh, 760px); }
.hero-content { width: min(var(--max), calc(100% - 48px)); max-width: none; padding-block: 138px 96px; }
.hero-content > h1,
.hero-content > .hero-sub { max-width: 850px; }
.hero h1 { font-size: clamp(3rem, 6.25vw, 5.8rem); }
.hero h1 .phrase { white-space: nowrap; }
@media (min-width: 901px) {
  html[lang="ja"] .hero h1 { font-size: clamp(2.9rem, 5vw, 4.7rem); word-break: keep-all; }
}
.hero:after { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 31%, rgba(255,255,255,.28) 55%, transparent 75%); }
.hero:not(.page-hero) .hero-media img { object-position: right center; }
.page-hero {
  min-height: clamp(360px, 54svh, 560px);
  text-align: center;
}
.page-hero:after { display: none; }
.page-hero .hero-media img { object-position: center center; }
.page-hero .hero-content {
  justify-self: center;
  display: grid;
  place-items: center;
  padding-block: 128px 78px;
  color: var(--ink);
  text-shadow: none;
}
.page-hero .hero-sub { color: var(--muted); }
.hero-ja {
  display: block;
  margin-top: 8px;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: .08em;
}

.service-layout { grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr); }
.service-media { min-height: 420px; aspect-ratio: 4 / 3; }
.service-media:before { display: none; }
.service-media img { z-index: 1; }
.service-media.media-line img { width: 78%; height: 78%; object-fit: contain; }
.service-media.media-field {
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, #e7edff, #f7f8ff);
  box-shadow: inset 0 0 0 1px rgba(29, 94, 238, .08);
}
.service-media.media-field img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.service-media.media-atmosphere img { object-fit: contain; }
.service-media.media-portrait img {
  width: min(78%, 460px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 24px 70px rgba(29, 94, 238, .12);
}

.footer-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand .brand-name { font-size: 1.08rem; }
.footer-brand .brand-name strong { color: var(--cyan); }
.footer-brand .footer-logo { width: 42px; height: 42px; object-fit: contain; }

@media (max-width: 900px) {
  .nav { inset: 82px 16px auto; border: 1px solid var(--soft); border-radius: 14px; }
  .site-header.is-scrolled .nav,
  .site-header.is-solid .nav { inset: 92px 16px auto; }
  .language-switcher { width: 100%; margin: 4px 0 0; }
  .language-trigger { width: 100%; justify-content: flex-start; }
  .language-trigger svg { margin-left: auto; }
  .language-menu { position: static; width: 100%; margin-top: 8px; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .language-switcher.open .language-menu { display: block; }
  .hero-content { width: min(var(--max), calc(100% - 48px)); }
  .service-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header.is-scrolled,
  .site-header.is-solid { inset: 8px 10px auto; }
  .header-inner { height: 74px; }
  .site-header.is-scrolled .header-inner,
  .site-header.is-solid .header-inner { height: 62px; }
  .brand { gap: 9px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: .91rem; }
  main > .hero:not(.page-hero) { min-height: 760px; align-items: center; }
  .page-hero { min-height: 360px; align-items: center; }
  .hero:not(.page-hero) .hero-media img { object-position: center center; }
  .hero:after { background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.66) 52%, rgba(255,255,255,.97) 100%); }
  .hero-content { width: min(100% - 40px, var(--max)); padding: 136px 0 70px; align-self: center; }
  .page-hero .hero-content { padding: 118px 0 56px; }
  .page-hero .hero-media img { object-position: center center; }
  .hero h1 { font-size: clamp(2.3rem, 11.3vw, 3.5rem); }
  .hero-sub { font-size: 1rem; }
  .service-media { min-height: 280px; }
  .service-media.media-field { padding: 10px; border-radius: 17px; }
}



@media (prefers-reduced-motion: reduce) {
  .site-header, .header-inner, .language-trigger svg, .language-menu { transition: none; }
}

/* Launch-readiness layout and motion pass */
:root {
  --max: 1280px;
  --deep: #002dc1;
  --blue: #002dc1;
  --cobalt: #002dc1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-switcher { display: none; }
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 8px;
  border-left: 1px solid rgba(16, 33, 61, .12);
}
.language-circle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 33, 61, .14);
  border-radius: 50%;
  background: rgba(255,255,255,.68);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.language-circle:hover { transform: translateY(-2px); border-color: var(--cobalt); }
.language-circle.is-active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(16,33,61,.18);
}
.language-circle .language-flag { width: 21px; height: 21px; flex-basis: 21px; }

.home-services-layout {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.home-services-copy h2 { max-width: 620px; }
.home-services-copy .summary-rail { grid-template-columns: 1fr; }
.home-services-copy .summary-item { padding-inline: 0; border-right: 0; }
.home-services-visual { position: relative; min-width: 0; }
.home-services-visual:before { display: none; }
.home-services-visual img { position: relative; width: 100%; height: auto; mix-blend-mode: normal; }
.clean-illustration img { max-width: 560px; margin-inline: auto; }

.service-layout { grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: clamp(48px, 7vw, 108px); }
.service-media { min-height: 0; aspect-ratio: 3 / 2; }
.service-copy h3 { font-size: clamp(1.9rem, 3.4vw, 3.45rem); line-height: 1.17; }
.service-copy p { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.9; max-width: 620px; }

.form-shell { width: min(900px, calc(100% - 48px)); margin-inline: auto; }
.form-shell > .lead { margin-bottom: 38px; }
.form-shell .form { gap: 26px; }
.form-shell .field input,
.form-shell .field textarea { border-radius: 8px; background: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
}
.reveal .service-media img,
.reveal .home-services-visual img {
  opacity: 0;
  transform: translateY(22px) scale(.975);
  transition: opacity .9s .08s ease, transform 1.05s .08s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.in-view .service-media img,
.reveal.in-view .home-services-visual img { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .language-toggle { margin-top: 8px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--soft); }
  .home-services-layout { grid-template-columns: 1fr; }
  .home-services-visual { order: -1; }
  .service-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home-services-layout { gap: 30px; }
  .home-services-visual { margin-inline: -12px; }
  .service-media { aspect-ratio: 3 / 2; }
  .service-copy h3 { font-size: 2rem; }
  .form-shell { width: min(100% - 40px, 900px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal .service-media img,
  .reveal .home-services-visual img { opacity: 1; transform: none; transition: none; }
.language-circle { transition: none; }
}

.kicker:before { display: none; }
.kicker { gap: 0; }

.hero-media picture,
.hero-media picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.section-intro,
.home-workflow-head {
  max-width: 900px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.preview-grid,
.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.preview-grid article {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  background: var(--ink);
}

.preview-grid article:after {
  content: "";
  position: absolute;
  inset: 34% 0 0;
  background: linear-gradient(180deg, transparent, rgba(16, 33, 61, .88));
}

.preview-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}

.preview-grid span,
.preview-grid h3 {
  position: relative;
  z-index: 1;
}

.preview-grid span {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--cyan);
}

.preview-grid h3 {
  margin: 8px 0 0;
}

.home-workflow,
.workflow-section {
  background: #fff;
}

.home-workflow .preview-grid article {
  min-height: 0;
  display: grid;
  padding: 0;
  color: var(--ink);
  background: #fff;
}

.home-workflow .preview-grid article:after {
  display: none;
}

.home-workflow .preview-grid img {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  opacity: 1;
}

.home-workflow .preview-grid span {
  margin-top: 16px;
  color: var(--blue);
}

.workflow-list {
  display: grid;
  gap: clamp(28px, 5vw, 54px);
}

.workflow-step {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.workflow-step.reverse img {
  order: 2;
}

.workflow-step img,
.service-break img,
.visual-cta-media img,
.company-photo img,
.access-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workflow-step img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: none;
}

.workflow-step span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.workflow-step p,
.visual-card-section .lead,
.value-section .lead,
.visual-cta-copy p {
  color: var(--muted);
}

.service-break {
  height: clamp(280px, 42vw, 520px);
  overflow: hidden;
}

.service-details {
  background: #fff;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--soft);
  border: 1px solid var(--soft);
}

.service-detail-card {
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
}

.service-detail-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.service-detail-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.service-detail-card p {
  margin: 0;
  color: var(--muted);
}

.swap-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.swap-card:hover,
.swap-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(29, 94, 238, .35);
  box-shadow: var(--shadow);
}

.swap-media {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.swap-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .18s ease;
}

.swap-media .fill,
.swap-card:hover .swap-media .line,
.swap-card:focus-visible .swap-media .line {
  opacity: 0;
}

.swap-card:hover .swap-media .fill,
.swap-card:focus-visible .swap-media .fill {
  opacity: 1;
}

.swap-card h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  margin: 0;
}

.value-layout,
.visual-cta {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.value-visual {
  padding: clamp(18px, 3vw, 34px);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(29, 94, 238, .08);
}

.value-visual img,
.message-illustration {
  width: 100%;
  height: auto;
}

.value-cards {
  grid-template-columns: 1fr;
}

.visual-cta-section {
  position: relative;
  padding: 0;
  min-height: 0;
  height: clamp(420px, 33.333vw, 640px);
  aspect-ratio: auto;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}

.visual-cta-bg {
  position: absolute;
  inset: 0;
  display: block;
}

.visual-cta-section:after {
  display: none;
}

.visual-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.visual-cta-overlay {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-inline: clamp(56px, 8vw, 132px) auto;
  padding: 0;
}

.visual-cta-overlay h2 {
  overflow-wrap: anywhere;
}

.visual-cta-overlay h2,
.visual-cta-overlay p {
  max-width: 560px;
}

.visual-cta-overlay p {
  color: var(--muted);
}

.visual-cta-overlay .btn {
  background: transparent;
  color: var(--cobalt);
  border-color: var(--deep);
}

.visual-cta-overlay .btn:hover,
.visual-cta-overlay .btn:focus-visible {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.company-intro-map,
.ceo-illustration-section,
.company-profile-section {
  background: #fff;
}

.company-intro-layout,
.ceo-illustration-layout,
.company-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.company-map img,
.ceo-illustration-layout img {
  width: 100%;
  height: auto;
}

.vision-band {
  background: var(--deep);
  color: #fff;
  text-align: center;
}

.vision-content {
  max-width: 920px;
}

.vision-band .kicker,
.vision-band h2,
.vision-band .lead {
  color: #fff;
}

.vision-band .lead {
  margin-inline: auto;
  color: rgba(255, 255, 255, .84);
}

.company-profile-layout {
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  align-items: start;
}

.company-photo {
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 4 / 5;
  background: #fff;
  box-shadow: none;
}

.company-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.message-illustration {
  max-width: 420px;
  margin-top: 28px;
}

.access-map {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .preview-grid,
  .visual-card-grid,
  .workflow-step,
  .value-layout,
  .visual-cta,
  .company-intro-layout,
  .ceo-illustration-layout,
  .company-profile-layout,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step.reverse img {
    order: initial;
  }

  .preview-grid article {
    min-height: 280px;
  }

  .company-profile-layout .company-photo {
    order: -1;
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .visual-cta-section {
    height: clamp(360px, 41.667vw, 500px);
    aspect-ratio: auto;
  }
}

@media (max-width: 560px) {
  .visual-cta-media {
    min-height: 260px;
  }

  .visual-cta-section {
    display: block;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }

  .visual-cta-section:after {
    display: none;
  }

  .visual-cta-bg {
    position: static;
  }

  .visual-cta-bg img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    object-position: initial;
  }

  .visual-cta-overlay {
    position: static;
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding: 28px 24px 36px;
  }

  .visual-cta-overlay h2 {
    font-size: clamp(1.45rem, 7.2vw, 2.05rem);
    margin-bottom: 12px;
  }

  .company-photo {
    width: min(100%, 360px);
  }

  .swap-media .line {
    opacity: 0;
  }

  .swap-media .fill {
    opacity: 1;
  }
}

/* Authoritative audit tokens and shared component geometry */
:root {
  --space-section: 104px;
  --space-subsection: 64px;
  --space-grid: 48px;
  --radius-control: 8px;
  --copy: 68ch;
}
.section { padding-block: var(--space-section); }
.section h2 { font-size: clamp(1.875rem, 3.1vw, 2.75rem); line-height: 1.15; }
.page-hero { min-height: 440px; }
.page-hero h1 { font-size: clamp(2.375rem, 4vw, 3.5rem); line-height: 1.05; }
.lead { max-width: 58ch; font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.75; }
html[lang="en"] p:not(.hero-sub):not(.kicker):not(.field-error) { max-width: var(--copy); }
.btn, .menu-btn, .language-circle { min-height: 44px; min-width: 44px; }
.btn { min-height: 52px; padding-inline: 24px; border-width: 2px; border-radius: var(--radius-control); }
.site-header, .site-header.is-scrolled, .site-header.is-solid { inset: 0 0 auto; border-radius: 0; }
.header-inner, .site-header.is-scrolled .header-inner, .site-header.is-solid .header-inner { height: 80px; }
.language-circle { width: 44px; height: 44px; }
.nav { gap: 24px; }

.service-thesis { text-align: center; }
.service-thesis h2, .service-thesis .lead { margin-inline: auto; }
.service-thesis img { display: block; width: min(680px,72vw); height: auto; margin: 64px auto 48px; }
.service-stack-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.service-stack { padding: 28px; border: 1px solid var(--soft); border-radius: 12px; background: #fff; }
.service-stack h2 { font-size: clamp(1.75rem,2.5vw,2.25rem); }
.service-stack ul { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--soft); }
.service-stack li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding-block: 14px; border-bottom: 1px solid var(--soft); font-weight: 700; }
.service-stack small, .article-category { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #eaf0ff; color: var(--deep); font-size: .75rem; font-weight: 800; line-height: 1.3; }
.workflow-step { grid-template-columns: repeat(2,minmax(0,1fr)); }
.workflow-step img { object-fit: contain; background: #f7f9ff; }
.swap-media { aspect-ratio: 4/3; }
.swap-media img { position: static; max-width: 160px; max-height: 160px; }
.swap-media .fill { opacity: 1; }
.visual-cta-section { min-height: 420px; }
.visual-cta-section:before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.86) 46%,rgba(255,255,255,0) 72%); }
.visual-cta-overlay { width:min(520px,calc(100% - 48px)); margin-inline:max(24px,calc((100vw - var(--max))/2)) auto; }
.visual-cta-overlay h2 { overflow-wrap:normal; font-size:clamp(1.75rem,3vw,2.5rem); }
.visual-cta-overlay p { color:var(--ink); }
.article { max-width:760px; padding-top:200px; }
.article h1 { max-width:18ch; font-size:clamp(2.125rem,4vw,3.5rem); line-height:1.08; }
.article > p:not(.kicker):not(.article-meta) { font-size:1.0625rem; line-height:1.85; }
.article .kicker { font-size:.78rem; }
.news-row { grid-template-columns:140px minmax(0,1fr) 40px; gap:24px; padding-block:28px; }
.form-shell { width:min(760px,calc(100vw - 48px)); max-width:calc(100vw - 48px); }
.form-shell > .lead { overflow-wrap:anywhere; word-break:normal; }
.form-shell .form { gap:24px; }
.form-shell .field input { min-height:52px; }
.form-shell .field textarea { min-height:180px; }
.form-shell .submit { justify-self:start; width:auto; min-width:200px; }

@media (max-width: 960px) {
  :root { --space-section:80px; --space-subsection:52px; --space-grid:40px; }
  .header-inner, .site-header.is-scrolled .header-inner, .site-header.is-solid .header-inner { height:72px; }
  .nav { inset:80px 16px auto !important; }
  .page-hero { min-height:380px; }
  .service-thesis img { width:min(560px,82vw); }
}
@media (max-width: 760px) {
  :root { --space-section:64px; --space-subsection:40px; --space-grid:32px; }
  .service-stack-grid,.workflow-step { grid-template-columns:1fr; }
  .home-services-layout { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .header-inner, .site-header.is-scrolled .header-inner, .site-header.is-solid .header-inner { height:64px; }
  .page-hero { min-height:340px; }
  .service-thesis img { width:min(320px,88vw); margin-block:48px 32px; }
  .swap-media img { max-width:120px; max-height:120px; }
  .visual-cta-section:before { display:none; }
  .visual-cta-overlay { width:auto; }
  .form-shell .submit { width:100%; }
  .article { padding-top:128px; }
  .news-row { grid-template-columns:1fr auto; gap:8px 16px; padding:20px; }
  .news-row time { grid-column:1/-1; }
  html[lang="ja"] .hero h1 .phrase { display:block; white-space:normal; }
  .hero:not(.page-hero) h1 { font-size:clamp(2.35rem,10.5vw,2.625rem); overflow-wrap:normal; word-break:normal; }
  html[lang="ja"] .hero:not(.page-hero) h1 { word-break:auto-phrase; }
  .hero-sub { width:100%; max-width:100%; overflow-wrap:anywhere; word-break:break-all; }
  .service-thesis h2 { max-width:11em; margin-inline:auto; font-size:1.875rem; overflow-wrap:anywhere; }
}

/* Design discovery correction: hierarchy, density, and visual rhythm */
.page-hero .hero-content { padding-block:112px 50px; }
.page-hero h1 { display:flex; flex-direction:column; align-items:center; }
.hero-eyebrow {
  order:-1;
  margin-bottom:8px;
  color:var(--blue);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.service-opening { padding-block:0 88px; background:#fff; }
.service-thesis-art { display:block; width:min(680px,74vw); height:auto; margin:-70px auto 28px; }
.service-choice-title { margin:0 0 28px; text-align:center; font-size:clamp(1.5rem,2.3vw,2rem) !important; }
.service-stack-grid { align-items:stretch; }
.service-stack { display:flex; flex-direction:column; }
.service-stack > p { min-height:3.5em; }
.workflow-section { background:#fff; }
.workflow-step { grid-template-columns:repeat(2,minmax(0,1fr)); gap:56px; }
.workflow-step img { width:min(100%,480px); aspect-ratio:1; margin-inline:auto; object-fit:contain; background:transparent; }
.workflow-step.reverse > img { order:2; }
.workflow-step.reverse > div { order:1; }

.visual-card-section,.value-section { padding-block:80px; }
.visual-card-section { background:#f5f7fa; }
.value-section { background:#fff; }
.visual-card-section .section-intro,.value-section .section-intro { margin-inline:auto; text-align:center; }
.visual-card-section .section-intro .lead,.value-section .section-intro .lead { margin-inline:auto; }
.swap-card { display:flex; flex-direction:column; align-items:center; text-align:center; }
.swap-card h3 { width:100%; min-height:2.6em; text-align:center; }
.swap-media { width:100%; aspect-ratio:4/3; }
.swap-media img { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); max-width:160px; max-height:160px; }
.swap-media .line { opacity:1; }
.swap-media .fill { opacity:0; }
.swap-card:hover .swap-media .line,.swap-card:focus-visible .swap-media .line { opacity:0; }
.swap-card:hover .swap-media .fill,.swap-card:focus-visible .swap-media .fill { opacity:1; }

.home-services-section { padding-block:80px; }
.home-services-layout { display:block; }
.home-services-copy { display:grid; grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr); gap:20px 72px; align-items:start; }
.home-services-copy > .section-label,.home-services-copy > h2,.home-services-copy > .btn { grid-column:1; }
.home-services-copy .summary-rail { grid-column:2; grid-row:1 / span 4; display:grid; gap:0; border-block:1px solid var(--soft); }
.home-services-copy .summary-item { padding:24px 0; border-bottom:1px solid var(--soft); }
.home-services-copy .summary-item:last-child { border-bottom:0; }
.section-label { margin:0 0 12px; color:var(--blue); font-size:.78rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.home-workflow { padding-block:80px; }
.home-workflow-head { margin-inline:auto; text-align:center; }
.home-workflow-head .lead { margin-inline:auto; }
.home-workflow .preview-grid { max-width:980px; margin-inline:auto; }
.home-workflow .preview-grid article { text-align:center; }
.home-workflow .preview-grid img { width:min(100%,240px); aspect-ratio:1; margin-inline:auto; }
.home-workflow .preview-grid h3 { text-align:center; }
.home-news { padding-block:72px; background:#f5f7fa; }
.home-news-head { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:28px; }
.home-news-head h2 { margin:0; }

.ceo-message-section { padding-block:80px; background:#fff; }
.ceo-message-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(180px,.45fr); gap:64px; align-items:center; }
.ceo-message-layout img { width:min(100%,220px); max-height:330px; object-fit:contain; justify-self:end; }
.company-profile-section { padding-block:80px; background:#f5f7fa; }
.company-info-card { width:min(840px,calc(100% - 48px)); margin-inline:auto; padding:48px 56px; background:#fff; border:1px solid var(--soft); border-radius:10px; }
.company-info-card > .section-label,.company-info-card > h2 { text-align:center; }
.company-info-card .profile { grid-template-columns:180px 1fr; margin-top:32px; }

@media (max-width:760px) {
  .page-hero .hero-content { padding-block:96px 42px; }
  .service-opening { padding-block:0 64px; }
  .service-thesis-art { width:min(560px,88vw); margin:-44px auto 24px; }
  .workflow-step,.home-services-copy,.ceo-message-layout { grid-template-columns:1fr; gap:28px; }
  .workflow-step.reverse > img,.workflow-step.reverse > div { order:initial; }
  .workflow-step img { order:-1 !important; width:min(100%,360px); }
  .home-services-copy > *,.home-services-copy .summary-rail { grid-column:auto; grid-row:auto; }
  .home-workflow .preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ceo-message-layout img { order:-1; justify-self:center; width:180px; max-height:270px; }
  .company-info-card { padding:36px 28px; }
  .company-info-card .profile { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .service-thesis-art { width:min(320px,90vw); }
  .service-choice-title { max-width:12em; margin:0 auto 22px; overflow-wrap:anywhere; }
  .service-stack { padding:24px 20px; }
  .service-stack > p { min-height:0; }
  .home-workflow .preview-grid { grid-template-columns:1fr; }
  .home-workflow .preview-grid img { width:200px; }
  .home-news-head { display:block; }
  .company-info-card { width:calc(100vw - 40px); padding:30px 20px; }
  .swap-media img { max-width:120px; max-height:120px; }
}

/* Approved direction A: conservative refinement with one controlled dark chapter */
:root {
  --ink: #0d1e36;
  --deep: #075aa4;
  --chapter: #0d2948;
  --chapter-muted: rgba(255, 255, 255, .76);
  --max: 1240px;
  --space-section: 112px;
}

body {
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.grid-2 {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.grid-2 > .btn {
  grid-column: 2;
  justify-self: start;
  margin-top: -60px;
}

.home-services-section {
  overflow: hidden;
  padding-block: 96px 108px;
  background: #f5f7fc;
}

.home-services-layout {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 6vw, 84px);
  align-items: center;
}

.home-services-copy {
  display: block;
}

.home-services-copy h2 {
  max-width: 12ch;
  margin-bottom: 34px;
}

.home-services-copy .summary-rail {
  display: grid;
  grid-template-columns: 1fr;
  border-block: 1px solid var(--soft);
}

.home-services-copy .summary-item {
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--soft);
}

.home-services-copy .summary-item:last-child {
  border-bottom: 0;
}

.home-services-copy .summary-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.home-services-layout::after {
  content: "";
  display: block;
  width: min(760px, 100%);
  aspect-ratio: 3 / 2;
  justify-self: end;
  background: #fbfcff;
  border: 1px solid rgba(29, 94, 238, .1);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(20, 61, 112, .1);
}

.home-workflow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 104px 96px;
  background: #fff;
}

.home-workflow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 31%;
  background: var(--chapter);
}

.home-workflow-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.home-workflow-head .kicker {
  justify-content: center;
  color: #7fd8fb;
}

.home-workflow-head h2 {
  color: #fff;
}

.home-workflow-head .lead {
  margin-inline: auto;
  color: var(--chapter-muted);
}

.home-workflow-head .btn.ghost {
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
}

.home-workflow-head .btn.ghost:hover,
.home-workflow-head .btn.ghost:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--chapter);
}

.home-workflow .preview-grid {
  max-width: 1080px;
  gap: 22px;
}

.home-workflow .preview-grid article {
  min-height: 410px;
  align-content: end;
  padding: 26px 26px 24px;
  text-align: left;
  border: 1px solid rgba(29, 94, 238, .12);
  border-radius: 12px;
  box-shadow: 0 22px 52px rgba(9, 45, 82, .12);
}

.home-workflow .preview-grid img {
  width: min(100%, 285px);
  margin: 0 auto 16px;
}

.home-workflow .preview-grid span {
  margin-top: auto;
}

.home-workflow .preview-grid h3 {
  text-align: left;
}

.home-news {
  padding-block: 82px 94px;
  background: #f5f7fa;
}

.home-news .shell {
  max-width: 1040px;
}

.home-news .news-row {
  background: transparent;
}

.service-thesis-art {
  width: min(780px, 76vw);
}

.service-stack-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 24px;
}

.service-stack {
  padding: 34px 36px;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(20, 61, 112, .07);
}

.workflow-section .section-intro {
  max-width: 760px;
}

.workflow-list {
  gap: 72px;
}

.workflow-step {
  gap: clamp(44px, 7vw, 92px);
}

.workflow-step img {
  width: min(100%, 540px);
}

.visual-card-grid {
  gap: 22px;
}

.swap-card {
  padding: 30px 24px 28px;
}

.swap-media {
  aspect-ratio: 5 / 4;
}

.swap-media img {
  max-width: 230px;
  max-height: 230px;
}

.ceo-message-section {
  padding-block: 96px 112px;
}

.ceo-message-layout {
  grid-template-columns: minmax(0, .9fr) minmax(300px, .6fr);
  gap: clamp(48px, 8vw, 112px);
}

.ceo-message-layout img {
  width: min(100%, 380px);
  max-height: 560px;
}

.company-info-card {
  width: min(920px, calc(100% - 48px));
  padding: 54px 64px;
}

.reveal {
  transform: translateY(14px);
  transition-duration: .5s;
}

.reveal .service-media img,
.reveal .home-services-visual img {
  transform: translateY(10px);
  transition-duration: .6s;
}

@media (max-width: 900px) {
  :root {
    --space-section: 84px;
  }

  .grid-2 > .btn {
    grid-column: auto;
    margin-top: 0;
  }

  .home-services-layout,
  .service-stack-grid {
    grid-template-columns: 1fr;
  }

  .home-services-layout::after {
    grid-row: 2;
    width: min(720px, 100%);
    justify-self: center;
  }

  .home-services-copy h2 {
    max-width: 16ch;
  }

  .home-workflow::before {
    bottom: 25%;
  }

  .home-workflow .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-workflow .preview-grid article {
    min-height: 340px;
    padding: 20px;
  }

  .ceo-message-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr);
    gap: 42px;
  }

  .ceo-message-layout img {
    width: min(100%, 320px);
  }
}

@media (max-width: 760px) {
  .home-services-section {
    padding-block: 72px 78px;
  }

  .home-services-layout::after {
    aspect-ratio: 3 / 2;
  }

  .home-workflow {
    padding-block: 78px 72px;
  }

  .home-workflow::before {
    bottom: 42%;
  }

  .home-workflow .preview-grid {
    grid-template-columns: 1fr;
    max-width: 430px;
  }

  .home-workflow .preview-grid article {
    min-height: 0;
    padding: 24px;
  }

  .home-workflow .preview-grid img {
    width: min(100%, 280px);
  }

  .workflow-list {
    gap: 52px;
  }

  .swap-media img {
    max-width: 200px;
    max-height: 200px;
  }

  .ceo-message-layout {
    grid-template-columns: 1fr;
  }

  .ceo-message-layout img {
    order: -1;
    width: min(100%, 300px);
    max-height: none;
  }

  .company-info-card {
    padding: 38px 28px;
  }
}

@media (max-width: 560px) {
  .home-services-layout {
    gap: 38px;
  }

  .home-services-layout::after {
    width: calc(100% + 16px);
    margin-inline: -8px;
    border-radius: 10px;
  }

  .home-workflow-head {
    text-align: left;
  }

  .home-workflow-head .kicker {
    justify-content: flex-start;
  }

  .home-workflow-head .lead {
    margin-inline: 0;
  }

  .home-workflow::before {
    bottom: 49%;
  }

  .home-workflow .preview-grid img {
    width: min(100%, 240px);
  }

  .swap-media img {
    max-width: 180px;
    max-height: 180px;
  }

  .company-info-card {
    width: calc(100vw - 40px);
    padding: 32px 20px;
  }
}

/* Screenshot-led correction pass: service opening, language controls, vision, CEO, and homepage services */
.language-circle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
}

.language-circle .language-flag {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.service-opening {
  padding-block: 64px 96px;
}

.service-thesis-art {
  margin: 0 auto 42px;
}

.vision-band .kicker {
  justify-content: center;
  width: 100%;
}

.ceo-message-layout {
  width: min(1080px, 100%);
  grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr);
  gap: clamp(28px, 4vw, 52px);
  margin-inline: auto;
}

.ceo-message-layout > div {
  max-width: 560px;
}

.ceo-message-layout h2 {
  margin: 0 0 24px;
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: .045em;
}

.ceo-message-layout h2::before {
  content: "技術と創造力で、事業の次をともにつくる。";
  display: block;
  max-width: 15ch;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(2rem, 3.25vw, 3.25rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.035em;
}

html[lang="en"] .ceo-message-layout h2::before {
  content: "Turning technology and creativity into what comes next.";
  max-width: 17ch;
}

.ceo-message-layout .lead {
  max-width: 46ch;
  margin-top: 0;
  font-size: clamp(1.025rem, 1.3vw, 1.16rem);
}

.ceo-message-layout img {
  width: min(100%, 440px);
  max-height: 620px;
  justify-self: start;
}

.home-services-layout {
  display: block;
}

.home-services-layout::after {
  display: none;
}

.home-services-copy {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr);
  gap: 22px clamp(42px, 6vw, 80px);
  align-items: start;
}

.home-services-copy > .section-label,
.home-services-copy > h2,
.home-services-copy > .btn {
  grid-column: 1;
}

.home-services-copy h2 {
  max-width: 11ch;
}

.home-services-copy .summary-rail {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  border: 0;
}

.home-services-copy .summary-item {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 22px 22px 26px;
  border: 1px solid rgba(29, 94, 238, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 61, 112, .08);
}

.home-services-copy .summary-item::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.home-services-copy .summary-item:first-child::before {
  background-image: url("../images/services/home-digital-service.webp");
}

.home-services-copy .summary-item:last-child::before {
  background-image: url("../images/services/home-design-service.webp");
}

.home-services-copy .summary-item h3 {
  margin-bottom: 10px;
  color: var(--deep);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
}

.home-services-copy .summary-item p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.75;
}

@media (max-width: 960px) {
  .home-services-copy {
    grid-template-columns: 1fr;
  }

  .home-services-copy > *,
  .home-services-copy .summary-rail {
    grid-column: auto;
    grid-row: auto;
  }

  .home-services-copy h2 {
    max-width: 16ch;
  }

  .ceo-message-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  }
}

@media (max-width: 760px) {
  .service-opening {
    padding-block: 44px 72px;
  }

  .service-thesis-art {
    margin-bottom: 34px;
  }

  .home-services-copy .summary-rail {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .home-services-copy .summary-item {
    grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
    gap: 0 22px;
    align-items: center;
  }

  .home-services-copy .summary-item::before {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .ceo-message-layout {
    grid-template-columns: 1fr;
  }

  .ceo-message-layout img {
    order: -1;
    width: min(100%, 360px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .language-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .language-circle .language-flag {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .service-opening {
    padding-top: 38px;
  }

  .home-services-copy .summary-item {
    display: block;
    padding: 18px 18px 22px;
  }

  .home-services-copy .summary-item::before {
    aspect-ratio: 4 / 3;
    margin-bottom: 16px;
  }

  .ceo-message-layout h2::before {
    max-width: 14ch;
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  html[lang="en"] .ceo-message-layout h2::before {
    max-width: 17ch;
  }
}

/* Language icons: the SVG is the circle; the wrapper is only the click target. */
.language-circle,
.language-circle.is-active {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.language-circle .language-flag {
  display: block;
  width: 26px;
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border: 1px solid rgba(13, 41, 72, .2);
  border-radius: 50%;
  box-shadow: none;
  opacity: .58;
  filter: grayscale(.45) saturate(.65);
  transition: border-color .2s ease, opacity .2s ease, filter .2s ease;
}

.language-circle.is-active .language-flag {
  border: 2px solid var(--ink);
  opacity: 1;
  filter: none;
}

.language-circle:not(.is-active):hover .language-flag,
.language-circle:not(.is-active):focus-visible .language-flag {
  border-color: rgba(13, 41, 72, .42);
  opacity: .9;
  filter: grayscale(.12) saturate(.9);
}

@media (max-width: 560px) {
  .language-circle,
  .language-circle.is-active {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .language-circle .language-flag {
    width: 25px;
  }
}
