:root {
  --brand: #0b0071;
  --navy: #00285f;
  --blue: #0068b7;
  --sky: #00a6d6;
  --red: #d4141f;
  --ink: #1d2733;
  --muted: #5d6b78;
  --line: #d7e0e8;
  --pale: #f3f6f9;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0, 40, 95, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  line-height: 1.75;
  background: var(--white);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 999;
  padding: 8px 12px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-140%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.utility {
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
}

.utility-inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility-links {
  display: flex;
  gap: 18px;
}

.header-main {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-orbit {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, var(--white) 0 7px, var(--sky) 8px 15px, var(--brand) 16px 100%);
}

.brand-orbit::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  width: 66px;
  height: 14px;
  border-top: 2px solid var(--red);
  border-radius: 50%;
  transform: rotate(-17deg);
}

.brand-text strong {
  display: block;
  color: var(--brand);
  font-family: "Cambria Math", Cambria, Georgia, serif;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 rgba(11, 0, 113, 0.2), 2px 2px 0 rgba(0, 0, 0, 0.12);
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.site-nav a {
  display: grid;
  min-width: 104px;
  min-height: 54px;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: var(--blue);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #06142d;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 26, 67, 0.94), rgba(0, 57, 105, 0.68) 52%, rgba(0, 0, 0, 0.12)),
    url("assets/hero-sphere.png") center / cover no-repeat;
}

.star-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 66px 112px;
}

.eyebrow {
  margin: 0;
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 860px;
  margin: 6px 0 20px;
  font-size: clamp(2.2rem, 5.4vw, 4.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-brand-title {
  max-width: 860px;
  margin: 10px 0 0;
  color: var(--white);
  font-family: "Cambria Math", Cambria, Georgia, serif;
  font-size: clamp(3rem, 6.8vw, 6.2rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow:
    0 0 10px rgba(255, 244, 180, 0.72),
    0 0 26px rgba(255, 214, 84, 0.7),
    0 0 44px rgba(255, 178, 0, 0.34),
    2px 2px 0 rgba(11, 0, 113, 0.45);
  animation: softGlow 3.6s ease-in-out infinite;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: clamp(1rem, 2.2vw, 1.24rem);
}

.hero p.hero-brand-title {
  max-width: 860px;
  margin: 10px 0 0;
  font-size: clamp(3rem, 6.8vw, 6.2rem);
  line-height: 1.02;
}

@keyframes softGlow {
  0%,
  100% {
    opacity: 0.9;
    text-shadow:
      0 0 10px rgba(255, 244, 180, 0.64),
      0 0 22px rgba(255, 214, 84, 0.56),
      0 0 38px rgba(255, 178, 0, 0.3),
      2px 2px 0 rgba(11, 0, 113, 0.42);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 16px rgba(255, 248, 205, 0.9),
      0 0 36px rgba(255, 218, 82, 0.82),
      0 0 58px rgba(255, 178, 0, 0.46),
      2px 2px 0 rgba(11, 0, 113, 0.48);
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.info-strip {
  position: relative;
  z-index: 5;
  margin-top: -62px;
}

.info-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  min-height: 124px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-head {
  display: grid;
  align-content: center;
  padding: 22px;
  color: var(--white);
  background: var(--brand);
}

.info-head span {
  font-size: 0.82rem;
  opacity: 0.9;
}

.info-head strong {
  font-size: 1.45rem;
  line-height: 1.2;
}

.info-grid a {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}

.info-grid a:hover {
  background: var(--pale);
}

.info-grid time {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.section {
  padding: 88px 0;
}

.section-title {
  margin-bottom: 32px;
}

.section-title.wide {
  max-width: 760px;
}

.section h2 {
  margin: 6px 0 18px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.service-grid span {
  color: var(--red);
  font-weight: 900;
  font-size: 0.84rem;
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.philosophy {
  margin-top: 28px;
  padding: 26px;
  border-left: 5px solid var(--red);
  background: var(--pale);
}

.philosophy h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.24rem;
}

.philosophy p {
  margin: 0 0 12px;
}

.philosophy p:last-child {
  margin-bottom: 0;
}

.company-profile {
  border-top: 4px solid var(--brand);
  background: var(--white);
}

.company-profile div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-profile span {
  color: var(--muted);
  font-weight: 800;
}

.company-profile strong {
  color: var(--ink);
}

.services,
.careers {
  background: var(--pale);
}

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

.service-grid article {
  min-height: 230px;
  padding: 28px;
  border-top: 4px solid var(--blue);
  background: var(--white);
}

.service-grid h3,
.career-list h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.4;
}

.service-grid p,
.career-list p,
.section-title p,
.footer-grid p {
  color: var(--muted);
}

.feature-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 40, 95, 0.94), rgba(11, 0, 113, 0.78)),
    url("assets/feature-grid.png") center / cover no-repeat;
}

.feature-content {
  max-width: 1140px;
}

.feature-band h2 {
  color: var(--white);
}

.feature-band p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.1rem;
}

.career-list {
  display: grid;
  gap: 16px;
}

.career-list article {
  padding: 26px;
  border-left: 4px solid var(--sky);
  background: var(--white);
}

.career-list ul {
  padding-left: 1.2em;
  margin: 10px 0 0;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.text-link::after {
  content: " 〉";
  color: var(--red);
}

.contact {
  background: var(--white);
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-details dd {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-top: 4px solid var(--brand);
  background: var(--pale);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b8c7d6;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(0, 166, 214, 0.24);
  border-color: var(--sky);
}

.form-message {
  min-height: 28px;
  margin: 0;
  color: var(--brand);
  font-weight: 800;
}

.form-message.error {
  color: var(--red);
}

.site-footer {
  color: var(--white);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 170px;
}

.footer-brand .brand-text strong,
.footer-brand .brand-text small {
  color: var(--white);
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer p,
.site-footer small {
  opacity: 0.86;
}

.site-footer small {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 116px;
    display: none;
    flex-direction: column;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-width: 0;
    justify-content: start;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-inline: 18px;
  }

  .info-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .utility-inner {
    justify-content: center;
  }

  .utility-links {
    display: none;
  }

  .header-main {
    min-height: 72px;
  }

  .brand {
    min-width: 0;
  }

  .brand-orbit {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-text strong {
    font-size: 1.15rem;
  }

  .brand-text small {
    display: none;
  }

  .site-nav {
    top: 106px;
  }

  .hero {
    min-height: 630px;
  }

  .hero-content {
    padding-block: 48px 110px;
  }

  .button {
    width: 100%;
  }

  .info-strip {
    margin-top: -54px;
  }

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

  .info-grid a,
  .info-head {
    padding: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .company-profile div,
  .contact-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-form {
    padding: 22px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
