:root {
  --navy: #082a6a;
  --blue: #006dc5;
  --sky: #eaf7ff;
  --ink: #10234a;
  --muted: #52647f;
  --line: #d9e6f4;
  --soft: #f6fbff;
  --white: #ffffff;
  --orange: #f47b25;
  --teal: #21a9be;
  --shadow: 0 22px 54px rgba(13, 61, 118, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 18px clamp(22px, 5vw, 74px);
  color: var(--navy);
  transition: background 180ms ease, box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 74px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(20, 62, 112, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 56px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-word {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-kanji {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-roman {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5em;
}

.global-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.global-nav a {
  position: relative;
  padding: 10px 0;
}

.global-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
  content: "";
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(135deg, #07347c, #0056b8);
  box-shadow: 0 14px 34px rgba(8, 42, 106, 0.22);
}

.header-contact svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 166px clamp(24px, 7.3vw, 94px) 122px;
  overflow: hidden;
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.99) 0 38%, rgba(255, 255, 255, 0.88) 51%, rgba(238, 249, 255, 0.18) 100%),
    radial-gradient(ellipse at 24% 25%, #ffffff 0 20%, rgba(232, 246, 255, 0.74) 48%, rgba(255, 255, 255, 0) 72%);
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 44%, rgba(255, 255, 255, 0) 0 38%, rgba(255, 255, 255, 0.92) 60%, #ffffff 82%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 33%, rgba(255, 255, 255, 0.32) 56%, rgba(255, 255, 255, 0) 76%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: 1;
  left: -8%;
  right: -8%;
  bottom: -80px;
  height: 210px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 530px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.hero .section-kicker {
  display: none;
}

.mobile-break {
  display: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.55;
}

h1 {
  font-size: clamp(38px, 5.1vw, 58px);
  letter-spacing: 0.07em;
}

h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: 0.06em;
}

h3 {
  margin: 18px 0 18px;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: 0.09em;
}

.hero-lead {
  max-width: 480px;
  margin: 28px 0 0;
  color: #173867;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.button::after {
  content: "→";
  font-size: 19px;
  line-height: 1;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, #05276b, #0066c9);
  box-shadow: 0 18px 36px rgba(2, 59, 139, 0.22);
}

.button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(8, 42, 106, 0.36);
}

.hero-visual {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(980px, 70vw);
  height: 720px;
  overflow: hidden;
  clip-path: ellipse(78% 70% at 78% 34%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.05);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 40%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  content: "";
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 70px;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.26em;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 1px;
  height: 50px;
  background: var(--navy);
  opacity: 0.55;
}

.section {
  padding: 88px clamp(24px, 6vw, 74px);
}

.section-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 40px;
  text-align: center;
}

.section-heading h2::after {
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--blue);
  content: "";
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 408px;
  flex-direction: column;
  padding: 30px 30px 24px;
  overflow: hidden;
  border: 1px solid rgba(218, 231, 244, 0.75);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 65%);
  box-shadow: 0 18px 42px rgba(23, 68, 120, 0.08);
}

.service-card.accent-card {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 65%);
}

.service-icon {
  width: 34px;
  height: 34px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon-blue {
  color: #287df1;
}

.icon-teal {
  color: var(--teal);
}

.icon-orange {
  color: var(--orange);
}

.icon-indigo {
  color: #3a4a9d;
}

.service-card p {
  min-height: 106px;
  margin: 0 0 24px;
  color: #263b5c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-card img {
  width: calc(100% + 60px);
  max-width: none;
  height: 176px;
  margin: auto -30px -24px;
  object-fit: cover;
}

.round-link {
  position: absolute;
  right: 18px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(5, 43, 94, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.round-link:hover,
.round-link:focus-visible {
  transform: translateX(3px);
  box-shadow: 0 16px 28px rgba(5, 43, 94, 0.22);
}

.round-link:focus-visible {
  outline: 3px solid rgba(0, 109, 197, 0.55);
  outline-offset: 3px;
}

.purpose {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  min-height: 430px;
  background: var(--soft);
}

.purpose-copy {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(56px, 8vw, 92px) clamp(28px, 7vw, 92px);
  background:
    linear-gradient(135deg, rgba(217, 239, 255, 0.92), rgba(255, 255, 255, 0.72)),
    var(--sky);
}

.purpose-copy p:not(.section-kicker) {
  max-width: 470px;
  margin: 26px 0 34px;
  color: #173867;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.purpose-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 430px;
}

.purpose-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.gallery-wide {
  grid-column: span 1;
}

.works {
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.works-panel {
  display: grid;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(216, 230, 244, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.works-statement {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.works-statement p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.works-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.works-stats dl {
  margin: 0;
  padding: 26px 20px;
  text-align: center;
  background: #ffffff;
}

.works-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.works-stats dd {
  margin: 6px 0 0;
  color: var(--navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

.client-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 18px 0 4px;
}

.client-strip span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #59708d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 1px solid rgba(210, 225, 241, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f5faff);
}

.company {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 7vw, 96px);
  padding: 92px clamp(24px, 7vw, 94px);
  background: #ffffff;
}

.company-intro {
  max-width: 460px;
  margin: 26px 0 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.company-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

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

.company-list dt {
  color: var(--navy);
  font-weight: 800;
}

.company-list dd {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.recruit-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.recruit,
.news {
  padding: clamp(44px, 6vw, 76px) clamp(24px, 6vw, 74px);
  background: #f8fcff;
}

.recruit p:not(.section-kicker) {
  max-width: 610px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.text-link::after {
  content: "→";
  font-size: 18px;
}

.news-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.news-list a {
  color: var(--muted);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 7vw, 84px);
  padding: 100px clamp(24px, 7vw, 94px);
  background:
    linear-gradient(105deg, rgba(7, 43, 106, 0.94), rgba(0, 100, 190, 0.84)),
    url("assets/hero-sky-city.png") center / cover;
  color: var(--white);
}

.contact .section-kicker,
.contact h2 {
  color: var(--white);
}

.contact-copy p:not(.section-kicker) {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 54px rgba(0, 22, 70, 0.22);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d9e5f0;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 109, 197, 0.14);
}

.form-button {
  width: fit-content;
  margin-top: 8px;
}

.form-button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* スパム対策のハニーポット（画面外に隠す） */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  white-space: pre-line;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: #1f7a4d;
}

.form-status.is-error {
  color: #c4362f;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(24px, 6vw, 74px);
  color: var(--navy);
  background: #ffffff;
}

.footer-brand {
  min-width: auto;
}

.footer-logo {
  display: block;
  width: 176px;
  height: auto;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 1080px) {
  .site-header {
    gap: 18px;
  }

  .global-nav {
    gap: 24px;
  }

  .header-contact {
    padding: 0 18px;
  }

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

  .service-card p {
    min-height: 76px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 78px;
  }

  .menu-button {
    position: relative;
    z-index: 61;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(8, 42, 106, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
  }

  .menu-button span {
    grid-area: 1 / 1;
    width: 18px;
    height: 2px;
    background: var(--navy);
    transition: transform 180ms ease;
  }

  .menu-button span:first-child {
    transform: translateY(-4px);
  }

  .menu-button span:last-child {
    transform: translateY(4px);
  }

  .menu-open .menu-button span:first-child {
    transform: rotate(40deg);
  }

  .menu-open .menu-button span:last-child {
    transform: rotate(-40deg);
  }

  .global-nav,
  .header-contact {
    position: fixed;
    z-index: 60;
    left: 22px;
    right: 22px;
    width: calc(100% - 44px);
    justify-self: auto;
    display: none;
  }

  .menu-open .global-nav,
  .menu-open .header-contact {
    display: flex;
  }

  .global-nav {
    top: 94px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    border: 1px solid rgba(213, 230, 246, 0.9);
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 54px rgba(7, 42, 106, 0.18);
    backdrop-filter: blur(18px);
  }

  .global-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(217, 230, 244, 0.8);
  }

  .global-nav a::after {
    display: none;
  }

  .header-contact {
    top: 399px;
    border-radius: 0 0 8px 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
    padding-bottom: 104px;
  }

  .hero::before {
    background:
      radial-gradient(ellipse at 78% 36%, rgba(255, 255, 255, 0) 0 30%, rgba(255, 255, 255, 0.82) 58%, #ffffff 84%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 28%, rgba(255, 255, 255, 0.28) 62%, rgba(255, 255, 255, 0) 82%);
  }

  .hero-visual {
    width: 78vw;
    height: 560px;
    opacity: 0.72;
    clip-path: ellipse(88% 70% at 82% 32%);
  }

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

  .purpose,
  .company,
  .recruit-news,
  .contact {
    grid-template-columns: 1fr;
  }

  .purpose-copy {
    min-height: auto;
  }

  .purpose-gallery {
    min-height: 360px;
  }

  .company {
    gap: 22px;
  }

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

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

  .site-header {
    padding: 14px 18px;
  }

  .brand {
    min-width: auto;
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 46px;
  }

  .brand-kanji {
    font-size: 24px;
  }

  .brand-roman {
    font-size: 9px;
    letter-spacing: 0.42em;
  }

  .hero {
    padding: 118px 22px 100px;
  }

  .mobile-break {
    display: block;
  }

  h1 {
    font-size: clamp(34px, 9.5vw, 38px);
    letter-spacing: 0.02em;
  }

  .hero-lead {
    max-width: 100%;
    letter-spacing: 0.01em;
  }

  .hero::before {
    background:
      radial-gradient(ellipse at 82% 32%, rgba(255, 255, 255, 0) 0 29%, rgba(255, 255, 255, 0.8) 58%, #ffffff 84%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0 25%, rgba(255, 255, 255, 0.42) 67%, rgba(255, 255, 255, 0) 90%);
  }

  .hero-visual {
    right: -166px;
    width: 590px;
    height: 530px;
    clip-path: ellipse(82% 69% at 74% 32%);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero-actions {
    gap: 12px;
  }

  .scroll-cue {
    bottom: 42px;
  }

  .scroll-cue span {
    height: 34px;
  }

  .section {
    padding: 68px 18px;
  }

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

  .service-card {
    min-height: 390px;
    padding: 26px 24px 22px;
  }

  .service-card img {
    width: calc(100% + 48px);
    height: 184px;
    margin-right: -24px;
    margin-bottom: -22px;
    margin-left: -24px;
  }

  .purpose-copy,
  .company,
  .recruit,
  .news,
  .contact {
    padding-right: 22px;
    padding-left: 22px;
  }

  .purpose-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 180px);
    min-height: auto;
  }

  .works-stats {
    grid-template-columns: 1fr;
  }

  .company-list div,
  .news-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-form {
    padding: 20px;
  }
}

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