:root {
  --ink: #20313e;
  --brand: #2855a0;
  --brand-deep: #173f7d;
  --surface: #ffffff;
  --pale-blue: #eaf2fb;
  --surface-soft: #f5f7f8;
  --line: #d9e2ea;
  --muted: #566875;
  --accent: #db7947;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

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

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 48px;
}

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

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--brand);
}

.skip:focus {
  top: 12px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
  padding: 10px 4%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 62px;
  padding: 4px 10px;
  background: var(--brand);
  border-radius: 6px;
}

.brand img {
  display: block;
  width: 106px;
  height: 54px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

nav a:not(.nav-service) {
  padding-block: 8px;
  border-bottom: 2px solid transparent;
}

nav a:not(.nav-service):hover,
nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

.nav-service {
  padding: 10px 16px;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
}

.nav-service:hover {
  color: #fff;
  background: var(--brand-deep);
}

.menu {
  display: none;
}

.hero {
  overflow: hidden;
  background: var(--pale-blue);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 54px;
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--brand);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.48;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 78%, #c6ddf8 78%);
}

.hero p {
  max-width: 510px;
  margin: 0 0 28px;
  line-height: 2;
}

.hero-image {
  position: relative;
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.image-note {
  position: absolute;
  right: -12px;
  bottom: -18px;
  padding: 10px 16px;
  color: var(--brand-deep);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  box-shadow: 0 8px 26px #20313e18;
  font-size: 12px;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid #cbdceb;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.hero-bottom strong {
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
}

.round-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.round-link:hover .arrow,
.bottom-links a:hover .arrow {
  transform: translate(3px, -3px);
}

.arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  transition: transform .2s ease;
}

.section-page-link {
  margin-top: 28px;
}

.section-label {
  margin: 0 0 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.section-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin-right: 10px;
  border: 1px solid #aebfd1;
  border-radius: 50%;
  font-size: 11px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 72px;
  padding-top: 96px;
  padding-bottom: 100px;
}

.intro h2,
.section-heading h2 {
  margin: 0;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.5;
}

.intro p:not(.section-label) {
  margin: 0;
  color: var(--muted);
  line-height: 2.1;
}

.intro p:not(.section-label) + p {
  margin-top: 20px;
}

.services {
  padding-block: 88px 96px;
  background: var(--surface-soft);
}

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

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

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card .visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 28px;
  background: #e8eef5;
}

.service-card:nth-of-type(2) .visual {
  background: #f6eee9;
}

.visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid #d7dee5;
  border-radius: 4px;
  box-shadow: 0 12px 28px #20313e14;
}

.service-body {
  align-self: center;
  padding: 36px 40px;
}

.service-num {
  color: var(--brand);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.service-body h3 {
  margin: 14px 0;
  font-size: 23px;
  line-height: 1.5;
}

.service-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.service-body .round-link {
  margin-top: 22px;
}

.company {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 64px;
  padding-top: 95px;
  padding-bottom: 100px;
}

.company h2 {
  margin: 0;
  font-size: 33px;
  font-weight: 600;
}

.company dl {
  margin: 0;
}

.company dl > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.company dl > div:first-child {
  border-top: 1px solid var(--line);
}

.company dt {
  color: var(--muted);
  font-size: 14px;
}

.company dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.bottom-links {
  padding-block: 48px;
  color: #fff;
  background: var(--brand-deep);
}

.bottom-links .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}

.bottom-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 600;
}

.bottom-links a:hover {
  color: #fff;
}

.bottom-links small {
  display: block;
  margin-bottom: 4px;
  color: #c4d6eb;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
}

footer {
  padding-top: 48px;
  padding-bottom: 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
}

.copyright {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.subpage-head {
  padding: 45px 0 58px;
  background: var(--pale-blue);
  border-bottom: 1px solid var(--line);
}

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

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subpage-head .section-label {
  margin-bottom: 8px;
}

.subpage-head h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.4;
}

.subpage-section {
  padding-top: 80px;
  padding-bottom: 90px;
}

.subpage-services {
  padding-top: 80px;
  padding-bottom: 90px;
}

.legal {
  width: min(100%, 900px);
  padding-top: 60px;
  padding-bottom: 85px;
}

.legal h1 {
  margin: 0 0 32px;
  font-size: 31px;
  line-height: 1.5;
}

.legal .text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 2;
}

@media (max-width: 1050px) {
  .wrap {
    padding-inline: 30px;
  }

  nav {
    gap: 16px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .intro,
  .company {
    gap: 40px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 80px;
  }

  .wrap {
    padding-inline: 22px;
  }

  header {
    min-height: 76px;
    padding: 8px 22px;
  }

  .brand {
    min-width: 108px;
    height: 56px;
  }

  .brand img {
    width: 90px;
    height: 48px;
  }

  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 40px;
    padding: 0 12px;
    color: var(--brand-deep);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
  }

  nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 22px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px #20313e12;
  }

  nav.open {
    display: flex;
  }

  nav a:not(.nav-service) {
    padding: 11px 4px;
  }

  .nav-service {
    margin-top: 6px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-image {
    max-width: 540px;
  }

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

  .intro,
  .company {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 66px;
    padding-bottom: 72px;
  }

  .service-body {
    padding: 28px;
  }

  .company dl > div {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero p,
  .intro p:not(.section-label),
  .service-body p {
    font-size: 15px;
  }

  .image-note {
    right: -8px;
    bottom: -12px;
    padding: 8px 11px;
    font-size: 10px;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
  }

  .hero-bottom strong {
    font-size: 16px;
  }

  .intro h2,
  .section-heading h2,
  .company h2 {
    font-size: 28px;
  }

  .services {
    padding-block: 62px 70px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
  }

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

  .service-card .visual {
    grid-row: 1;
    min-height: 190px;
    padding: 20px;
  }

  .visual img {
    max-height: 220px;
  }

  .service-body h3 {
    font-size: 21px;
  }

  .company dl > div {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding-block: 17px;
  }

  .company dd {
    font-size: 14px;
  }

  .bottom-links .wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bottom-links a + a {
    border-top: 1px solid #ffffff40;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .subpage-head {
    padding: 34px 0 42px;
  }

  .subpage-head h1 {
    font-size: 30px;
  }

  .subpage-section,
  .subpage-services {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .legal {
    padding-top: 38px;
    padding-bottom: 65px;
  }

  .legal h1 {
    font-size: 25px;
  }

  .legal .text {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .arrow {
    transition: none;
  }
}
