:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #333333;
  --muted: #666666;
  --line: #d9e2f4;
  --primary: #4a76e1;
  --primary-dark: #3558b0;
  --accent: #ffb0d8;
  --accent-soft: #ffd2ec;
  --green-soft: #d6e2f8;
  --blue-soft: #edf3ff;
  --shadow: 0 24px 80px rgba(53, 88, 176, 0.14);
  --radius: 8px;
  --max: 1120px;
  --font: "Noto Sans JP", sans-serif;
  --font-heading: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-en: "Montserrat", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(74, 118, 225, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(74, 118, 225, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: var(--font);
  line-height: 1.75;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.intro-is-playing {
  overflow: hidden;
}

body.intro-is-playing .site-header,
body.intro-is-playing main,
body.intro-is-playing .site-footer {
  opacity: 0;
  transform: translateY(12px);
}

body.intro-has-finished .site-header,
body.intro-has-finished main,
body.intro-has-finished .site-footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--primary-dark);
}

.skip-link:focus {
  top: 16px;
}

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(74, 118, 225, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(74, 118, 225, 0.06) 1px, transparent 1px),
    #fff;
  background-size: 48px 48px;
}

.intro-loader::before {
  position: absolute;
  inset: auto 14% 18% 14%;
  height: 24px;
  border-radius: 50%;
  background: rgba(74, 118, 225, 0.08);
  filter: blur(16px);
  content: "";
}

.intro-loader-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.intro-loader-label {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.intro-loader-copy {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.08em;
  margin: 0;
  font-family: var(--font-heading);
  max-width: 100%;
  font-size: clamp(26px, 6.8vw, 66px);
  font-weight: 800;
  line-height: 1.18;
  white-space: nowrap;
}

.intro-loader-word {
  position: relative;
  display: inline-flex;
  min-width: 5.6em;
  justify-content: center;
  color: var(--primary-dark);
  font-family: "Zen Kurenaido", "Noto Sans JP", cursive;
  font-size: 1.08em;
  line-height: 1;
  transform: rotate(-1deg);
  transition: opacity 240ms ease, transform 240ms ease;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .intro-loader-copy {
    font-size: clamp(22px, 7.4vw, 31px);
  }
}

.intro-loader-word::after {
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.09em;
  height: 0.16em;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: rotate(-1.2deg);
}

.intro-loader-word.is-changing {
  opacity: 0;
  transform: translateY(0.18em) rotate(1deg);
}

.intro-loader.is-finished {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 760ms ease, transform 760ms ease;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid rgba(32, 35, 34, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--primary);
}

.nav-toggle {
  display: none;
}

main {
  isolation: isolate;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-heading);
  margin-bottom: 22px;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-title {
  display: grid;
  gap: 8px;
}

.hero-tagline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.08em;
  margin: 22px 0 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.35;
}

.hero-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.08em;
}

.hero-word-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-width: 5.6em;
  color: var(--primary-dark);
  font-family: "Zen Kurenaido", "Noto Sans JP", cursive;
  font-size: 1.08em;
  line-height: 1;
}

.hero-word-wrap::after {
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: -0.09em;
  height: 0.16em;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: rotate(-1.2deg);
}

.hero-word {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform: rotate(-1deg);
  transition: opacity 260ms ease, transform 260ms ease;
  white-space: nowrap;
}

.hero-word.is-changing {
  opacity: 0;
  transform: translateY(0.18em) rotate(1deg);
}

h2 {
  font-family: var(--font-heading);
  margin-bottom: 14px;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.45;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  border: 0;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 32px rgba(74, 118, 225, 0.24);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border: 3px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.hero-panel {
  position: relative;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 3px solid rgba(51, 51, 51, 0.12);
  border-radius: 16px;
  background: var(--accent-soft);
  content: "";
}

.hero-visual-panel {
  overflow: hidden;
  padding: 0;
}

.hero-visual {
  display: grid;
  min-height: clamp(360px, 42vw, 520px);
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 176, 216, 0.44), transparent 30%),
    radial-gradient(circle at 76% 74%, rgba(74, 118, 225, 0.18), transparent 34%),
    #f8faff;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.support-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius);
  background: #f8faff;
}

.support-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.support-list strong,
.support-list small {
  display: block;
  grid-column: 2;
}

.support-list small {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  scroll-margin-top: 92px;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

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

.problem-grid article {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 190px;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.problem-grid article:hover,
.problem-grid article:focus-within {
  box-shadow: 8px 8px 0 var(--accent);
  transform: translate(-3px, -3px);
}

.problem-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.problem-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease, transform 220ms ease;
}

.problem-image-after {
  opacity: 0;
  transform: scale(1.04);
}

.problem-grid article:hover .problem-image-before,
.problem-grid article:focus-within .problem-image-before {
  opacity: 0;
  transform: scale(0.98);
}

.problem-grid article:hover .problem-image-after,
.problem-grid article:focus-within .problem-image-after {
  opacity: 1;
  transform: scale(1);
}

.problem-grid span {
  display: inline-block;
  margin-bottom: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.problem-grid h3 {
  margin: 0;
}

.problem-grid p {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.problem-grid small {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
}

.case-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 12px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  transition: background 160ms ease, transform 160ms ease;
}

.case-link:hover,
.case-link:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.services {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background: var(--surface);
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  scroll-margin-top: 92px;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--surface-strong);
}

.service-number {
  color: var(--primary);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 800;
}

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

.service-card .service-audience {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 10px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.approach {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 70px);
  align-items: start;
}

.approach-copy p:not(.eyebrow) {
  color: var(--muted);
}

.approach-items {
  display: grid;
  gap: 12px;
}

.approach-items div {
  padding: 22px;
  border-left: 6px solid var(--primary);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.approach-items strong,
.approach-items span {
  display: block;
}

.approach-items span {
  margin-top: 6px;
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.process-list li {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.process-list span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

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

.works {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  background: var(--blue-soft);
}

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

.work-card {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--surface-strong);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line);
}

.work-card div {
  padding: 18px;
}

.work-card span {
  color: var(--primary);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
}

.work-card h3 {
  margin: 6px 0 0;
}

.work-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(28px, 6vw, 64px);
  align-items: center;
}

.profile-image {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}

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

.profile-copy p:not(.eyebrow) {
  color: var(--muted);
}

.follow {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 56px);
  align-items: start;
  padding-top: 24px;
}

.follow-copy p:not(.eyebrow) {
  color: var(--muted);
}

.follow-actions {
  display: grid;
  gap: 12px;
}

.follow-card {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.follow-card:hover,
.follow-card:focus-visible {
  box-shadow: 8px 8px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.follow-card span {
  color: var(--primary);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
}

.follow-card strong {
  font-family: var(--font-heading);
  font-size: 18px;
}

.follow-card small {
  color: var(--muted);
  font-size: 13px;
}

.contact {
  padding-top: 32px;
}

.contact-box {
  padding: clamp(30px, 6vw, 60px);
  border-radius: 16px;
  color: #fff;
  background: var(--primary);
}

.contact-box .eyebrow,
.contact-box p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-box h2 {
  max-width: 860px;
}

.contact-box .button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: transparent;
}

.contact-box .button.primary {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: none;
}

.contact-page {
  min-height: calc(100vh - 72px);
  padding-top: clamp(54px, 8vw, 88px);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.contact-panel {
  padding: clamp(24px, 5vw, 42px);
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: 14px;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

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

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer span {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease, background 160ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-socials .footer-note-link {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
}

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

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

  .nav-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
  }

  .nav-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .nav-toggle span:first-child {
    transform: translateY(-4px);
  }

  .nav-toggle span:last-child {
    transform: translateY(4px);
  }

  .nav-open .nav-toggle span:first-child {
    transform: rotate(45deg);
  }

  .nav-open .nav-toggle span:last-child {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 24px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    font-size: 22px;
  }

  .hero,
  .approach,
  .profile,
  .follow,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .problem-grid,
  .works-grid,
  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

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

  h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

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

  .service-number {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

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

  .site-footer {
    display: grid;
  }
}
