@import url("https://fonts.googleapis.com/css2?family=Yomogi&display=swap");

:root {
  --navy: #0e3153;
  --blue: #0876c9;
  --sky: #eaf7ff;
  --ink: #182734;
  --muted: #647580;
  --line: #dce7ee;
  --paper: #f6fafc;
  --orange: #e88a22;
  --white: #fff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  background: #fff;
}

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

.wrap {
  width: min(calc(100% - 44px), var(--max));
  margin: auto;
}

header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e6edf1;
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 950;
  font-size: 20px;
  line-height: 1.1;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.brand-tagline {
  padding-left: 64px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 360px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #43535e;
}

nav a:hover {
  color: var(--blue);
}

.navcta {
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
}

.hero {
  margin-top: 78px;
  min-height: 590px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #eef7fc;
}

.heroimg {
  position: absolute;
  top: 70px;
  right: max(22px, calc((100vw - 1160px) / 2));
  bottom: 70px;
  width: calc(450px * 594 / 313);
  background: url("assets/hero_factory.png") right center/100% 100% no-repeat;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#eef7fc 0%,rgba(238,247,252,.99) 32%,rgba(238,247,252,.24) 67%,rgba(238,247,252,0) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 950;
  color: var(--blue);
}

h1 {
  font-size: clamp(40px,5.4vw,70px);
  line-height: 1.22;
  letter-spacing: -.05em;
  color: var(--navy);
  margin: 8px 0 22px;
}

.hero p {
  max-width: 640px;
  color: #526672;
  font-size: 16px;
  margin: 0 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 11px 21px;
  font-size: 13px;
  font-weight: 850;
}

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

.quick {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line);
  background: #fff;
}

.quickitem {
  padding: 27px 22px;
  border-right: 1px solid var(--line);
  min-height: 205px;
}

.quickitem:last-child {
  border: 0;
}

.qicon {
  width: 55px;
  height: 55px;
  border-radius: 17px;
  background: var(--sky);
  display: grid;
  place-items: center;
  font-size: 25px;
}

.quickitem h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 13px 0 4px;
}

.quickitem p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 95px 0;
}

.soft {
  background: var(--paper);
}

.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.sectionhead .lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 14px;
}

h2 {
  font-size: clamp(30px,4vw,47px);
  line-height: 1.35;
  letter-spacing: -.04em;
  color: var(--navy);
  margin: 6px 0 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 68px;
  align-items: center;
}

.photo {
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #dceef8;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-wide {
  height: 310px;
}

.photo-vignette:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 70px 12px rgba(255,255,255,0.85);
  pointer-events: none;
}

.photo label {
  position: absolute;
  bottom: 18px;
  left: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 10px #123;
}

.copy p {
  color: #566771;
}

.quote {
  margin-top: 23px;
  border-left: 4px solid var(--blue);
  background: #eef8fe;
  padding: 16px 20px;
  font-weight: 900;
  color: var(--navy);
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 28px;
  min-height: 220px;
}

.cardnum {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--blue);
  font-weight: 950;
}

.card h3 {
  color: var(--navy);
  font-size: 19px;
  margin: 12px 0 6px;
}

.card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.card .mini {
  margin-top: 16px;
  font-size: 11px;
  color: #6d7b84;
}

.experience {
  display: grid;
  grid-template-columns: .85fr 1.3fr;
  gap: 75px;
  align-items: center;
}

.number {
  font-size: clamp(75px,10vw,125px);
  font-weight: 950;
  line-height: .85;
  color: var(--blue);
  letter-spacing: -.07em;
}

.numbertext {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-top: 17px;
}

.experience h2 {
  margin-bottom: 17px;
}

.experience p {
  color: var(--muted);
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  align-items: center;
  margin-top: 25px;
}

.flowbox {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 17px;
  font-size: 13px;
}

.flowbox strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}

.flowarrow {
  font-size: 27px;
  color: var(--blue);
}

.capability {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
}

.cap {
  padding: 24px 20px;
  border-top: 3px solid var(--navy);
  background: #fff;
}

.cap h3 {
  margin: 7px 0;
  color: var(--navy);
  font-size: 17px;
}

.cap p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.chips {
  margin-top: 12px;
}

.chip {
  display: inline-block;
  border: 1px solid #cbdce6;
  border-radius: 999px;
  padding: 3px 8px;
  margin: 2px;
  font-size: 10px;
  color: #60727e;
  background: #fbfdfe;
}

.region {
  background: linear-gradient(115deg,#e9f7ff,#fff);
}

.regiongrid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 40px;
}

.kyushu {
  display: flex;
  justify-content: center;
}

.kyushu svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

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

.contact h2 {
  color: #fff;
}

.contact p {
  color: #c7d6df;
}

.contactgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.contactphoto {
  height: 305px;
  border-radius: 23px;
  overflow: hidden;
}

.contactphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.orange {
  background: var(--orange);
}

.pagehero {
  margin-top: 78px;
  padding: 82px 0 68px;
  background: linear-gradient(120deg,#eef7fc,#fff);
}

.pagehero h1 {
  margin: 7px 0 14px;
}

.pagehero p {
  max-width: 730px;
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.detailno {
  font-size: 22px;
  font-weight: 950;
  color: var(--blue);
}

.detail h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--navy);
}

.detail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note {
  margin-top: 28px;
  background: #fff8ed;
  border: 1px solid #efd5b4;
  border-radius: 14px;
  padding: 16px 18px;
  color: #6f573e;
  font-size: 12px;
}

.timeline {
  border-left: 2px solid #cfe3ef;
  margin-top: 30px;
  padding-left: 27px;
}

.event {
  position: relative;
  margin-bottom: 29px;
}

.event:before {
  content: "";
  position: absolute;
  left: -35px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px #e8f6fd;
}

.event b {
  font-size: 12px;
  color: var(--blue);
}

.event h3 {
  margin: 2px 0;
  font-size: 17px;
  color: var(--navy);
}

.event p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.profile {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
}

.profile th,
.profile td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.profile th {
  width: 170px;
  color: var(--navy);
  background: #f7fafc;
}

.profile td {
  color: #596a75;
}

footer {
  background: #091d2d;
  color: #b9c8d2;
  padding: 42px 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 11px;
}

.foot strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 7px;
}

.foot-copy {
  text-align: left;
}

.foot-copy .copyright {
  display: block;
  color: #fff;
  font-weight: 400;
}

.foot-copy em {
  font-style: italic;
  color: #b9c8d2;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .heroimg {
    width: calc(450px * 594 / 313);
    right: 0;
    left: auto;
    background-position: right center;
    background-size: 100% 100%;
  }

  .hero:after {
    background: linear-gradient(90deg,#eef7fc 0%,rgba(238,247,252,.96) 50%,rgba(238,247,252,.15) 100%);
  }

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

  .quickitem:nth-child(2) {
    border-right: 0;
  }

  .split,
  .experience,
  .regiongrid,
  .contactgrid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

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

  .sectionhead {
    display: block;
  }

  .sectionhead .lead {
    margin-top: 15px;
  }

  .foot {
    display: block;
  }

  .foot div + div {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-logo {
    width: 190px;
  }

  .hero {
    min-height: 680px;
  }

  .heroimg {
    top: 36%;
    right: 0;
    bottom: 0;
    left: auto;
    width: calc(344px * 594 / 313);
    background-position: right center;
    background-size: 100% 100%;
  }

  .hero:after {
    background: linear-gradient(180deg,#eef7fc 0%,rgba(238,247,252,.96) 50%,rgba(238,247,252,.12) 100%);
  }

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

  .quickitem {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 68px 0;
  }

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

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

  .flowarrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .detail {
    grid-template-columns: 45px 1fr;
  }

  .profile th {
    width: 110px;
  }
}

/* --- illustrated cards --- */

.service-illustration {
  height: 118px;
  margin: -28px -23px 18px;
  background: linear-gradient(135deg,#f1f9fe,#fff);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.big-illust {
  height: 200px;
  margin: -28px -28px 20px;
  background: linear-gradient(135deg,#f1f9fe,#fff);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.big-illust svg {
  width: 170px;
  height: 170px;
}

.illus {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.illus svg {
  width: 78px;
  height: 78px;
}

.techvisual {
  min-height: 125px;
  background: linear-gradient(135deg,#edf8fe,#fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 22px;
  gap: 20px;
}

.techvisual .symbol {
  font-size: 46px;
  color: var(--blue);
  font-weight: 900;
}

.techvisual h3 {
  margin: 0;
  color: var(--navy);
}

.techvisual p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
