:root {
  --blue: #09699f;
  --blue-dark: #06446a;
  --green: #4d8d57;
  --green-dark: #2f6840;
  --ink: #16232d;
  --muted: #5e6b74;
  --line: #d9e3e8;
  --paper: #ffffff;
  --soft: #eef6f5;
  --soft-blue: #edf6fb;
  --mist: #f5f8f9;
  --shadow: 0 24px 60px rgba(6, 68, 106, 0.16);
  --card-shadow: 0 18px 46px rgba(6, 68, 106, 0.09);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

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

::selection {
  color: #fff;
  background: var(--blue);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(9, 105, 159, 0.32);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 56px;
  padding: 6px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 227, 232, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: block;
  width: clamp(128px, 11vw, 150px);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--blue-dark);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

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

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--blue-dark);
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, calc(100vh - 56px), 680px);
  margin: 0;
  padding: clamp(76px, 8vw, 112px) clamp(24px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 251, 0.92) 32%, rgba(242, 247, 251, 0.5) 48%, rgba(242, 247, 251, 0.06) 68%),
    url("assets/hero-background-v2.png") center right / auto 112% no-repeat,
    #e7f1f8;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  backdrop-filter: blur(1.8px);
  content: "";
  mask-image: linear-gradient(90deg, #000 0%, #000 28%, transparent 54%);
  pointer-events: none;
}

.hero__copy {
  max-width: 560px;
}

.hero__mobile-media {
  display: none;
}

.hero h1 {
  margin: 0 0 24px;
  color: #0a4f7b;
  font-size: clamp(2.6rem, 4.6vw, 4.55rem);
  font-weight: 900;
  line-height: 1.08;
}

.hero p {
  max-width: 560px;
  margin: 0;
  color: #557083;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 2.15;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(9, 105, 159, 0.24);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--blue-dark);
}

.button--secondary {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: rgba(9, 105, 159, 0.28);
  box-shadow: 0 12px 26px rgba(6, 68, 106, 0.1);
}

.section-pad {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 70px);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 44px;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2,
.recruit h2,
.company h2,
.contact h2 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-heading p,
.recruit__copy p,
.contact p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.section-heading p {
  font-size: 1.02rem;
}

.intro {
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(237, 246, 251, 0.72) 100%);
}

.intro__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.intro__grid article,
.service-grid article,
.flow__items article {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.intro__grid article:hover,
.service-grid article:hover,
.flow__items article:hover {
  border-color: rgba(9, 105, 159, 0.22);
  box-shadow: 0 24px 58px rgba(6, 68, 106, 0.13);
  transform: translateY(-3px);
}

.intro__grid article::before,
.flow__items article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
}

.intro__grid article {
  min-height: 230px;
  padding: 32px;
}

.intro__grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 4px 11px;
  color: var(--green-dark);
  background: rgba(77, 141, 87, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.35;
}

article p {
  margin: 0;
  color: var(--muted);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease;
}

.text-link::after {
  width: 34px;
  height: 2px;
  margin-left: 12px;
  background: currentColor;
  content: "";
  transition: width 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--green-dark);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  width: 46px;
}

.work__feature {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto 24px;
  padding: clamp(14px, 2vw, 22px);
  background:
    linear-gradient(135deg, rgba(237, 246, 251, 0.92), rgba(238, 246, 245, 0.94));
  border: 1px solid rgba(217, 227, 232, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.work__feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(6, 68, 106, 0.14);
}

.work__feature div {
  padding: clamp(12px, 3vw, 32px);
}

.work__feature p {
  margin: 0;
  color: var(--muted);
}

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

.service-grid article {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 240ms ease;
}

.service-grid article:hover img {
  transform: scale(1.035);
}

.service-grid h3,
.service-grid p {
  padding-right: 22px;
  padding-left: 22px;
}

.service-grid h3 {
  margin-top: 22px;
}

.service-grid p {
  flex: 1;
  padding-bottom: 24px;
}

.recruit {
  background:
    radial-gradient(circle at 15% 20%, rgba(77, 141, 87, 0.25), transparent 30%),
    linear-gradient(135deg, #063956 0%, var(--blue-dark) 58%, #075b8c 100%);
}

.recruit__panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
}

.recruit h2 {
  color: #fff;
}

.recruit__copy p {
  color: rgba(255, 255, 255, 0.82);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 68px;
  padding: 14px 16px 14px 42px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.55;
}

.check-list li::before {
  position: absolute;
  top: 18px;
  left: 17px;
  width: 12px;
  height: 8px;
  border-bottom: 3px solid #9ed381;
  border-left: 3px solid #9ed381;
  content: "";
  transform: rotate(-45deg);
}

.recruit__image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.recruit__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.flow {
  background: linear-gradient(180deg, var(--mist), #fff);
}

.flow__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.flow__items article {
  min-height: 252px;
  padding: 34px 30px 30px;
}

.flow__items strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  color: var(--green);
  background: rgba(77, 141, 87, 0.1);
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.company {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(380px, 0.95fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  max-width: calc(var(--max) + 140px);
  margin: 0 auto;
  background:
    linear-gradient(90deg, transparent 0%, transparent 42%, rgba(237, 246, 251, 0.72) 42%, rgba(237, 246, 251, 0.72) 100%);
}

.company__image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company__info {
  padding: clamp(8px, 2vw, 26px);
}

.company__image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.company dl {
  margin: 26px 0 0;
}

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

.company dt {
  color: var(--blue-dark);
  font-weight: 800;
}

.company dd {
  margin: 0;
  color: var(--muted);
}

.contact {
  background:
    linear-gradient(135deg, rgba(6, 68, 106, 0.96), rgba(9, 105, 159, 0.94)),
    url("assets/hero-team.png") center / cover no-repeat;
  color: #fff;
}

.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(10px, 2vw, 26px) 0;
}

.contact h2,
.contact p {
  color: #fff;
}

.contact p {
  color: rgba(255, 255, 255, 0.84);
}

.contact__actions {
  margin-top: 30px;
}

.contact-card {
  display: grid;
  gap: 7px;
  min-width: min(100%, 340px);
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.contact-card span {
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-card strong {
  color: var(--blue-dark);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.35;
}

.contact-card small {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 18px;
  color: var(--muted);
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 210px;
  margin-bottom: 10px;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 56px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .work__feature,
  .recruit__panel,
  .company {
    grid-template-columns: 1fr;
  }

  .company {
    background: transparent;
  }

  .hero {
    min-height: auto;
    display: grid;
    gap: 0;
    padding: 0;
    background: #fff;
  }

  .hero__copy {
    max-width: none;
    padding: clamp(34px, 7vw, 58px) clamp(18px, 5vw, 40px) clamp(52px, 8vw, 72px);
    background: linear-gradient(180deg, #fff 0%, #f4f9fb 100%);
  }

  .hero__mobile-media {
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }

  .hero__mobile-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }

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

  .check-list {
    grid-template-columns: 1fr;
  }

  .section-heading--split {
    align-items: start;
    flex-direction: column;
  }

  .company__image img {
    aspect-ratio: 16 / 10;
  }
}

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

  .brand {
    width: 128px;
  }

  .hero {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .button,
  .hero__actions a,
  .contact-card {
    width: 100%;
  }

  .intro__grid article,
  .flow__items article {
    padding: 22px;
  }

  .work__feature {
    padding: 10px;
  }

  .company dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
