:root {
  --ink: #061631;
  --ink-soft: #243552;
  --navy: #020d20;
  --navy-2: #061a36;
  --blue: #0969e8;
  --blue-bright: #2e8cff;
  --cyan: #22d7ff;
  --aqua: #edf8ff;
  --paper: #fbfaf7;
  --white: #fff;
  --line: rgba(6, 22, 49, .16);
  --muted: #63718a;
  --header-height: 76px;
  --container: 1180px;
  --section-space: clamp(88px, 9vw, 148px);
  --radius: 8px;
  --shadow: 0 14px 34px rgba(0, 16, 38, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #56a8ff; outline-offset: 4px; }
.container { width: min(var(--container), calc(100% - 80px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--navy);
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* Shared header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(2,8,20,.74);
  backdrop-filter: blur(10px);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled,
.site-header:focus-within {
  background: rgba(2,8,20,.9);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; color: #fff; font-weight: 800; line-height: 1; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(34,215,255,.22)); }
.brand-name { font-size: 1.08rem; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  color: rgba(247,251,255,.82);
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active { color: #fff; background: rgba(34,215,255,.08); outline: none; }
.site-nav a.is-active::after { content: ""; position: absolute; right: 11px; bottom: 5px; left: 11px; height: 2px; border-radius: 2px; background: linear-gradient(90deg,var(--blue),var(--cyan)); }
.site-nav .nav-contact { margin-left: 6px; color: #02101f; background: linear-gradient(135deg,#fff,#bdeeff); box-shadow: 0 0 14px rgba(34,215,255,.14); }
.site-nav .nav-contact:hover,
.site-nav .nav-contact:focus-visible,
.site-nav .nav-contact.is-active { color: #02101f; background: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(255,255,255,.08); cursor: pointer; }

/* Shared lower-page hero */
.page-shell { position: relative; overflow: clip; background: var(--paper); }
.subpage-hero {
  position: relative;
  min-height: clamp(420px, 48vw, 590px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 70px) 0 clamp(58px, 7vw, 94px);
  color: #fff;
  background:
    radial-gradient(circle at 70% 12%, rgba(27,105,211,.22), transparent 34%),
    linear-gradient(115deg, #020b1b 0%, #03142d 68%, #061b37 100%);
  overflow: hidden;
}
.subpage-hero__earth {
  position: absolute;
  width: clamp(470px, 58vw, 850px);
  aspect-ratio: 1;
  right: clamp(-230px, -10vw, -100px);
  top: clamp(-210px, -15vw, -90px);
  opacity: .76;
  filter: saturate(.88) brightness(.82);
}
.subpage-hero__earth picture, .subpage-hero__earth img { width: 100%; height: 100%; object-fit: contain; }
.subpage-hero__earth::after {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  box-shadow: inset 28px 4px 56px rgba(2,7,19,.7), 0 0 35px rgba(39,137,255,.35);
}
.subpage-hero__orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.subpage-hero__orbit path {
  fill: none;
  stroke: #2c82ff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(39,133,255,.64));
}
.subpage-hero__content { position: relative; z-index: 3; width: min(var(--container), calc(100% - 80px)); max-width: none; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; color: rgba(255,255,255,.62); font-size: .72rem; letter-spacing: .12em; }
.breadcrumb a:hover { color: #fff; }
.subpage-hero__label, .section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font: 700 .8rem/1.2 "Arial Narrow", "Helvetica Neue", sans-serif;
  letter-spacing: .2em;
}
.subpage-hero__label { color: #70b5ff; }
.subpage-hero h1 {
  margin: 0;
  max-width: 830px;
  font-size: clamp(3.2rem, 7.4vw, 7.2rem);
  line-height: .94;
  letter-spacing: -.055em;
}
.subpage-hero__lead { max-width: 620px; margin: 26px 0 0; color: rgba(255,255,255,.76); font-size: clamp(.92rem, 1.25vw, 1.08rem); }

/* Shared page decoration and sections */
.page-orbit-decoration {
  position: absolute;
  z-index: 3;
  inset: 360px 0 0;
  width: 100%;
  height: calc(100% - 360px);
  pointer-events: none;
}
.page-orbit-decoration path { fill: none; stroke: rgba(12,105,235,.82); stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.page-orbit-decoration .orbit-mobile { display: none; }
.content-section { position: relative; padding: var(--section-space) 0; }
.content-section--white { background: var(--paper); }
.content-section--aqua { background: var(--aqua); }
.content-section > .container { position: relative; z-index: 4; }
.section-heading { max-width: 760px; margin-bottom: clamp(42px, 5vw, 72px); }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1.24;
  letter-spacing: -.045em;
}
.section-heading p:last-child { margin: 22px 0 0; color: var(--ink-soft); }
.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-width: 210px;
  min-height: 52px;
  margin-top: 30px;
  padding: 13px 18px;
  border: 1px solid rgba(8,50,109,.42);
  color: var(--ink);
  background: rgba(255,255,255,.18);
  font: 700 .76rem/1.2 "Arial Narrow", "Helvetica Neue", sans-serif;
  letter-spacing: .13em;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease;
}
.line-button::after { content: "→"; color: var(--blue); font-size: 1.15rem; }
.line-button:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.line-button:hover::after { color: #fff; }

.photo-placeholder {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(6,34,70,.88), rgba(16,99,183,.46)),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,.06) 75px 76px),
    repeating-linear-gradient(0deg, transparent 0 74px, rgba(255,255,255,.06) 75px 76px),
    #0a2a50;
  overflow: hidden;
}
.photo-placeholder::before {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(93,176,255,.5);
  border-radius: 50%;
  right: -18%;
  top: -38%;
  box-shadow: 0 0 60px rgba(32,132,246,.2);
}
.photo-placeholder__label { position: relative; text-align: center; font: 700 .76rem/1.8 "Arial Narrow", sans-serif; letter-spacing: .2em; }
.photo-placeholder__label span { display: block; color: rgba(255,255,255,.62); font-size: .62rem; letter-spacing: .11em; }

/* About */
.philosophy-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 120px); align-items: end; }
.philosophy-copy h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.28; letter-spacing: -.05em; }
.philosophy-copy p:last-child { max-width: 520px; margin: 26px 0 0; color: var(--ink-soft); }
.philosophy-visual { margin-top: clamp(50px, 7vw, 90px); aspect-ratio: 2.35 / 1; min-height: 0; }
.message-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; align-items: stretch; }
.message-title-block { padding: 44px 34px; color: #fff; background: linear-gradient(150deg, #0874e8, #024ba8); }
.message-title-block .section-kicker { color: rgba(255,255,255,.72); }
.message-title-block h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.15; }
.message-copy { padding: 38px clamp(30px, 4vw, 62px); background: rgba(255,255,255,.82); }
.message-copy p { margin: 0 0 1.15em; }
.message-sign { margin-top: 28px !important; font-weight: 700; letter-spacing: .04em; }
.message-photo { position: relative; margin: 0; background: #dcecff; overflow: hidden; }
.message-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.message-photo figcaption { position: absolute; inset: auto 0 0; padding: 14px 18px; color: #fff; background: linear-gradient(transparent, rgba(1,12,29,.85)); font-size: .76rem; }
.company-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.55); }
.company-table th, .company-table td { padding: 19px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 230px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; }
.location-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 46px; align-items: stretch; }
.location-copy { display: flex; flex-direction: column; justify-content: center; }
.location-copy h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.2; }
.location-copy address { margin-top: 24px; font-style: normal; color: var(--ink-soft); }
.location-map { min-height: 390px; border: 1px solid rgba(4,67,143,.16); background: #dfeefa; overflow: hidden; }
.location-map iframe { width: 100%; height: 100%; min-height: 390px; border: 0; }

/* Service */
.service-intro { padding-bottom: 54px; }
.service-detail { position: relative; padding: clamp(80px, 8vw, 132px) 0; }
.service-detail--white { background: var(--paper); }
.service-detail--aqua { background: var(--aqua); }
.service-detail > .container { position: relative; z-index: 4; }
.service-detail__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(46px, 7vw, 104px); align-items: center; }
.service-detail--reverse .service-detail__copy { order: 2; }
.service-detail--reverse .service-detail__visual { order: 1; }
.service-detail__number { margin: 0 0 10px; color: var(--blue); font: 700 clamp(2.4rem, 4vw, 4rem)/1 "Arial Narrow", sans-serif; }
.service-detail__copy h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.05; letter-spacing: -.05em; }
.service-detail__en { display: block; margin: 13px 0 22px; color: var(--blue); font: 700 .78rem/1 "Arial Narrow", sans-serif; letter-spacing: .18em; }
.service-detail__copy > p:last-child { color: var(--ink-soft); }
.service-detail__visual { aspect-ratio: 16 / 9; min-height: 0; }
.feature-grid { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border: 1px solid rgba(6,22,49,.13); background: rgba(255,255,255,.88); box-shadow: 0 18px 48px rgba(10,53,101,.08); }
.feature-card { min-width: 0; padding: 28px 24px; border-right: 1px solid var(--line); }
.feature-card:last-child { border-right: 0; }
.feature-card svg, .business-icon svg { width: 34px; height: 34px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 18px 0 8px; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.7; }

/* Contact, policy, thanks */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(46px, 7vw, 92px); align-items: start; }
.contact-form { padding: clamp(28px, 4vw, 54px); border: 1px solid var(--line); background: rgba(255,255,255,.78); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; font-size: .84rem; }
.required { display: inline-flex; padding: 2px 7px; color: #fff; background: var(--blue); font-size: .62rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid rgba(6,22,49,.2);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
}
.form-field textarea { min-height: 190px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(9,105,232,.15); }
.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid { border-color: #b4233d; background: #fff8f9; box-shadow: 0 0 0 2px rgba(180,35,61,.1); }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 28px 0; font-size: .86rem; }
.check-field input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--blue); }
.check-field input:user-invalid { outline: 2px solid #b4233d; outline-offset: 2px; }
.check-field a { color: var(--blue); text-decoration: underline; }
.submit-button { width: 100%; border: 0; cursor: pointer; }
.contact-note { padding: 34px; color: #fff; background: var(--navy); }
.contact-note h2 { margin: 0 0 18px; font-size: 1.7rem; }
.contact-note ul { margin: 26px 0 0; padding: 0; list-style: none; }
.contact-note li { padding: 10px 0 10px 20px; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.contact-note li::before { content: ""; position: absolute; left: 0; top: 20px; width: 5px; height: 5px; border-radius: 50%; background: #48a3ff; }
.policy-content { max-width: 880px; }
.policy-block { padding: 0 0 36px; margin: 0 0 38px; border-bottom: 1px solid var(--line); }
.policy-block h2 { margin: 0 0 14px; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.policy-block p, .policy-block li { color: var(--ink-soft); }
.thanks-panel { max-width: 820px; padding: clamp(48px, 8vw, 90px); margin: 0 auto; text-align: center; border: 1px solid var(--line); background: rgba(255,255,255,.8); }
.thanks-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.3; }
.thanks-panel p { margin: 24px 0 0; color: var(--ink-soft); }

/* CTA and footer */
.contact-band { position: relative; z-index: 4; padding: clamp(68px, 7vw, 100px) 0; color: #fff; background: var(--navy); }
.contact-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.contact-band h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 5rem); line-height: 1; letter-spacing: -.04em; }
.contact-band p { margin: 14px 0 0; color: rgba(255,255,255,.68); }
.contact-band .line-button { flex: 0 0 auto; color: #fff; border-color: rgba(255,255,255,.44); }
.site-footer { position: relative; z-index: 10; padding: 52px 0 24px; color: #fff; background: #010a18; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 50px; }
.footer-brand { max-width: 410px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { margin: 0; color: rgba(255,255,255,.58); font-size: .8rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 36px; }
.footer-nav a { color: rgba(255,255,255,.78); font: 700 .72rem/1.4 "Arial Narrow", sans-serif; letter-spacing: .15em; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: .68rem; }

[data-reveal] { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .header-inner {
    width: auto;
    max-width: none;
    margin-right: clamp(32px,2.8vw,48px);
    margin-left: clamp(32px,2.8vw,48px);
    padding-top: 10px;
  }
}

@media (max-width: 1060px) {
  .container { width: min(100% - 48px, var(--container)); }
  .message-grid { grid-template-columns: 180px minmax(0, 1fr) 250px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(2) { border-right: 0; }
  .feature-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 899px) {
  :root { --header-height: 68px; }
  .container { width: calc(100% - 36px); }
  .header-inner { width: calc(100% - 28px); }
  .site-header { background: rgba(2,8,20,.92); backdrop-filter: none; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: .98rem; }
  .nav-toggle {
    width: 44px;
    height: 44px;
    display: block;
  }
  .nav-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 14px;
    color: #fff;
    background: rgba(2,8,20,.96);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .site-nav a { min-height: 46px; padding: 0 12px; }
  .site-nav .nav-contact { margin-left: 0; }
  .subpage-hero { min-height: 500px; }
  .subpage-hero__content { width: calc(100% - 36px); }
  .subpage-hero__earth { width: 570px; right: -230px; top: -52px; }
  .page-orbit-decoration .orbit-desktop { display: none; }
  .page-orbit-decoration .orbit-mobile { display: block; }
  .philosophy-layout, .location-grid, .service-detail__layout, .contact-layout { grid-template-columns: 1fr; }
  .philosophy-layout { gap: 34px; }
  .message-grid { grid-template-columns: 150px minmax(0, 1fr); }
  .message-photo { grid-column: 1 / -1; min-height: 360px; }
  .service-detail--reverse .service-detail__copy, .service-detail--reverse .service-detail__visual { order: initial; }
  .service-detail__layout { row-gap: 0; }
  .service-detail__copy { display: contents; }
  .service-detail__number { grid-row: 1; margin-bottom: 0; }
  .service-detail__copy h2 { grid-row: 2; }
  .service-detail__en { grid-row: 3; margin: 12px 0 0; }
  .service-detail__visual { grid-row: 4; margin-top: 26px; }
  .service-detail__copy > p:last-child { grid-row: 5; margin: 24px 0 0; }
  .contact-band__inner { align-items: flex-start; flex-direction: column; }
  .footer-main { flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --section-space: 74px; }
  .container { width: calc(100% - 28px); }
  .subpage-hero { min-height: 510px; padding-bottom: 54px; }
  .subpage-hero__content { width: calc(100% - 28px); }
  .subpage-hero__earth { width: 520px; right: -270px; top: -8px; opacity: .65; }
  .subpage-hero h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .subpage-hero__lead { max-width: 86%; font-size: .86rem; }
  .breadcrumb { margin-bottom: 20px; }
  .section-heading h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .philosophy-visual { aspect-ratio: 1.45 / 1; }
  .message-grid { grid-template-columns: 1fr; }
  .message-title-block { padding: 30px 26px; }
  .message-copy { padding: 30px 24px; }
  .message-photo { grid-column: auto; min-height: 330px; }
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table tr { padding: 17px 0; border-bottom: 1px solid var(--line); }
  .company-table th, .company-table td { padding: 0; border: 0; }
  .company-table th { margin-bottom: 6px; }
  .location-map, .location-map iframe { min-height: 310px; }
  .feature-grid { grid-template-columns: 1fr 1fr; margin-top: 30px; }
  .feature-card { padding: 22px 18px; }
  .feature-card h3 { font-size: .9rem; }
  .feature-card p { font-size: .7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .contact-form, .contact-note { padding: 24px 20px; }
  .contact-band .line-button { width: 100%; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
