:root {
  color-scheme: light;
  --ink: #17384f;
  --muted: #4c616c;
  --accent: #00acd7;
  --link: #00538e;
  --green: #176341;
  --red: #e7354b;
  --line: #d9e9f0;
  --wash: #f4fafc;
  --width: 1120px;
  --header-height: 76px;
  font-family: Roboto, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  line-height: 1.75;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a:focus-visible {
  outline: 3px solid #006e98;
  outline-offset: 5px;
}

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

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  background: #fff;
  transform: translateY(-170%);
}

.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.header-inner { min-height: calc(var(--header-height) - 1px); padding-block: 12px; }
.brand { display: block; width: 255px; flex-shrink: 0; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 22px;
  font-size: 0.875rem;
}

nav a { text-decoration: none; }
nav a:hover { color: var(--link); text-decoration: underline; }

.hero {
  background: #fff url("../home/home-grid.png") repeat center top;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  place-items: center;
  padding-block: clamp(36px, 6vw, 72px);
  text-align: center;
}

.hero-content { width: 100%; }
.hero-stage { display: grid; align-items: center; }
.hero-stage > * { grid-area: 1 / 1; min-width: 0; }
.hero-copy { opacity: 0; pointer-events: none; }

.intro-skip {
  position: absolute;
  bottom: clamp(12px, 4vh, 32px);
  left: 50%;
  display: none;
  transform: translateX(-50%);
  padding: 8px 16px;
  min-height: 44px;
  border: 1px solid var(--link);
  border-radius: 5px;
  background: #fff;
  color: var(--link);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.intro-skip:hover { background: var(--wash); }
.intro-skip:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

h1 {
  color: #074ea2;
  font-size: clamp(2.15rem, 6.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.hero-title-line { display: block; position: relative; width: fit-content; margin-inline: auto; }
.hero-title-line > span { display: block; }
.hero-title-first { color: #00aace; }

@media (prefers-reduced-motion: no-preference) {
  [data-home-intro] .intro-skip { display: block; }

  [data-home-intro] .hero-stage {
    --typing-duration: 1176ms;
    --title-hold: 900ms;
    --title-fade: 250ms;
    --title-end: calc(2 * var(--typing-duration) + var(--title-hold));
  }

  .hero-title-first { --delay: 0s; --steps: steps(9, end); }
  .hero-title-second { --delay: var(--typing-duration); --steps: steps(7, end); }

  [data-home-intro] .hero-title-line > span {
    animation: reveal-hero-title var(--typing-duration) var(--steps) var(--delay) both;
  }

  [data-home-intro] .hero-title-line::after {
    position: absolute;
    top: 0.13em;
    bottom: 0.12em;
    left: 0;
    width: 0.04em;
    background: currentColor;
    visibility: hidden;
    content: "";
    animation: move-hero-caret var(--typing-duration) var(--steps) var(--delay) forwards;
  }

  [data-home-intro] .hero-copy { animation: dismiss-hero-title var(--title-fade) ease var(--title-end) both; }
  [data-home-intro] .audience { animation: reveal-audience 320ms ease calc(var(--title-end) + var(--title-fade)) both; }
}

@keyframes reveal-hero-title {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes move-hero-caret {
  from { left: 0; visibility: visible; }
  to { left: 100%; visibility: hidden; }
}

@keyframes dismiss-hero-title {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes reveal-audience {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}

.services { padding-block: clamp(36px, 5vw, 64px); }

h2 {
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.4;
}

.service-list { margin-top: 20px; }

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:first-child { border-top: 1px solid var(--line); }
.service-row h3 { font-size: 1.075rem; }
.service-row p, .audience-list p { color: var(--muted); font-size: 0.925rem; }

.service-link {
  flex-shrink: 0;
  color: var(--link);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.service-link span { margin-left: 0.3em; }

.status {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 4px;
  background: #eaf2f6;
  color: var(--muted);
  font-size: 0.8125rem;
}

.audience h2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.16em;
  row-gap: 0.2em;
  padding: 0 0 0.1em;
  border: 0;
  margin-bottom: clamp(15px, 2.2vw, 26px);
  font-size: clamp(1.35rem, 3.7vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.audience-phrase {
  display: inline-block;
  padding-bottom: 0.18em;
  white-space: nowrap;
}

.audience-phrase-word { position: relative; display: inline-block; }

.audience-phrase-word::after {
  position: absolute;
  inset: auto 0.12em -0.18em;
  height: 0.12em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.28;
  content: "";
}

.audience-phrase-home { color: var(--green); }
.audience-phrase-pro { color: #074ea2; }
.audience-phrase-b2b { color: var(--red); }

.audience-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.audience-pro { --card-color: var(--link); --card-tint: #eef9ff; }
.audience-home { --card-color: var(--green); --card-tint: #f0f8ef; }
.audience-b2b { --card-color: var(--red); --card-tint: #fff2f3; }

.audience-card {
  display: block;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  text-decoration: none;
}

a.audience-card:hover {
  border-color: var(--card-color);
}

.audience-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(108px, 14vw, 158px);
  padding: 8px 5px 0;
  border-radius: 5px;
  background: var(--card-tint);
}

.audience-art img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

.audience-copy { min-width: 0; padding: 10px 0 3px; }
.audience-logo { width: min(100%, 285px); margin-inline: auto; }
.audience-list p { margin-top: 6px; }
.audience-list .status { margin-top: 9px; }

.footer-back {
  padding: clamp(30px, 5vw, 68px) max(5%, 20px);
  background: var(--accent);
}

.footer {
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 60px);
  border-radius: 12px;
  background: #fff;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 30px;
  margin-top: 30px;
  padding: clamp(16px, 3vw, 42px);
  border-radius: 5px;
  background: #f5f9fc;
}

.footer-cols h2 { margin-bottom: 6px; padding: 0; border: 0; font-size: 1rem; }
.footer-cols a { display: block; padding-block: 5px; color: #52687d; font-size: 0.875rem; }
.footer-copyright { margin-top: 24px; color: #52687d; font-size: 0.75rem; text-align: center; }

.information { max-width: 840px; padding-block: clamp(32px, 7vw, 76px); }
.information h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.information section, .information nav { margin-top: 32px; }
.information p, .information-list, .information-links { margin-top: 14px; }
.information a:not(nav a) { color: var(--link); text-underline-offset: 3px; }
.information-list dt { margin-top: 16px; font-weight: 800; }
.information-list dd { margin: 4px 0 0; }
.information-links li + li { margin-top: 8px; }

@media (max-width: 780px) {
  .container { width: calc(100% - 40px); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  :root { --header-height: 89px; }
  .header-inner { flex-flow: column nowrap; justify-content: center; gap: 7px; padding-block: 8px; }
  .brand { width: min(220px, 62vw); }
  nav { gap: 5px 15px; }
  .hero-copy h1 { font-size: clamp(1.8rem, 8vw, 2.65rem); }
  .service-row { align-items: flex-start; flex-wrap: wrap; row-gap: 8px; }
  .hero-inner { padding-block: 23px; }
  .audience-list { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .audience-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 7px; }
  .audience-art { grid-column: 2; grid-row: 1; height: 90px; padding: 2px 1px 0; }
  .audience-copy { grid-column: 1; grid-row: 1; padding: 0; }
  .audience-copy p { font-size: 0.83rem; }
  .audience-logo { width: min(100%, 195px); }
  .footer-cols { column-gap: 14px; }
  .footer-cols h2 { font-size: 0.875rem; }
  .footer-cols a { font-size: 0.8125rem; }
}
