:root {
  --bg-top: #e8effa;
  --bg-bottom: #f7f9fe;
  --surface: #ffffff;
  --surface-soft: #f3f6fc;
  --text: #172039;
  --muted: #5a6682;
  --accent: #2f6fda;
  --accent-soft: #dbe8ff;
  --border: #d8e1f2;
  --shadow-lg: 0 22px 45px rgba(26, 43, 76, 0.14);
  --shadow-md: 0 14px 30px rgba(26, 43, 76, 0.1);
  --page-gutter: clamp(16px, 4vw, 42px);
  --section-space: clamp(44px, 8vw, 98px);
  --card-radius: clamp(18px, 2.4vw, 24px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1300px 700px at 85% -5%, #d6e3fb 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 0%, #e0e9fc 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 45%, #f9fbff 100%);
  line-height: 1.65;
}

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

.container {
  width: min(1120px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 255, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(10px, 1.6vw, 14px) 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
}

.brand-link span {
  overflow-wrap: anywhere;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(25, 44, 82, 0.1);
  background: #eef3fc;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

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

.hero {
  position: relative;
  min-height: clamp(420px, 74svh, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(19, 33, 64, 0.82) 0%, rgba(34, 79, 152, 0.58) 45%, rgba(47, 111, 218, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #f4f8ff;
  padding: clamp(58px, 12vw, 108px) 0;
  max-width: 760px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-content p {
  margin: 16px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  color: rgba(244, 248, 255, 0.94);
  max-width: 52ch;
}

.section {
  padding: var(--section-space) 0;
}

.about-intro {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 4.2vw, 40px);
}

.about-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.25;
}

.about-intro p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.9vw, 1.08rem);
  white-space: pre-line;
}

.about-intro p:last-of-type {
  margin-bottom: 0;
}

.about-head {
  margin-bottom: clamp(20px, 4vw, 36px);
}

.about-head .eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: #2b5bb3;
  border: 1px solid #c7d9ff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.2;
  text-wrap: balance;
}

.about-head p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 66ch;
}

.steps {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

.step-card {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: var(--shadow-md);
  min-height: clamp(240px, 30vw, 360px);
}

.step-card.reverse {
  grid-template-columns: 1fr 1.12fr;
}

.step-card.reverse .step-media { order: 2; }
.step-card.reverse .step-content {
  order: 1;
  border-right: 1px solid #e1e8f8;
  border-left: 0;
}

.step-media {
  position: relative;
  min-height: clamp(210px, 24vw, 320px);
  isolation: isolate;
}

.step-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 34, 66, 0.05) 0%, rgba(18, 34, 66, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(20px, 4vw, 42px);
  border-left: 1px solid #e1e8f8;
}

.step-tag {
  width: fit-content;
  background: #ecf3ff;
  color: #2855a7;
  border: 1px solid #d2e0fb;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  text-transform: uppercase;
}

.step-content h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  text-wrap: balance;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  max-width: 34ch;
}

.contact {
  padding-top: clamp(46px, 7vw, 78px);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(18px, 3.2vw, 34px);
  align-items: start;
}

.contact-text {
  background: linear-gradient(180deg, #fcfdff 0%, #f5f8ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: clamp(22px, 4.2vw, 38px);
  box-shadow: var(--shadow-md);
}

.contact-text h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.contact-text p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.9vw, 1.08rem);
}

.contact-text p:last-of-type {
  margin-bottom: 0;
}

.socials-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dbe4f5;
}

.socials-title {
  margin: 0 0 10px;
  color: #2a4f9f;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials a {
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(22, 37, 69, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.socials .social-static {
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed #cddaf3;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: default;
}

.socials a,
.socials .social-static {
  overflow-wrap: anywhere;
}

.socials a:hover {
  transform: translateY(-1px);
  border-color: #c6d8fb;
  box-shadow: 0 10px 18px rgba(22, 37, 69, 0.1);
}

.contact-form-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 4vw, 34px);
}

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

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2b4f99;
}

.required {
  color: #c2403f;
  margin-left: 4px;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  border: 1px solid #cddcf8;
  background: #ffffff;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #8494b3;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #8ba9e2;
  box-shadow: 0 0 0 4px rgba(139, 169, 226, 0.2);
  background: #fcfdff;
}

.contact-submit {
  margin-top: 4px;
  border: 1px solid #2b5fc7;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6fda 0%, #2a56b0 100%);
  color: #f4f8ff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 18px;
  width: fit-content;
  min-width: 146px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 20px rgba(42, 86, 176, 0.28);
}

.contact-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 24px rgba(42, 86, 176, 0.3);
}

.contact-note {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #66738f;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #2d61c8;
}

.form-status.is-error {
  color: #b33f3f;
}

.footer {
  margin-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--border);
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 0.93rem;
}

.fade-in {
  --delay: 0ms;
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 820ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay),
    transform 820ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay),
    filter 720ms ease var(--delay);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@supports (height: 100dvh) {
  .hero {
    min-height: clamp(420px, 74dvh, 860px);
  }
}

@media (max-width: 940px) {
  .step-card,
  .step-card.reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .step-card.reverse .step-media,
  .step-card.reverse .step-content {
    order: initial;
  }

  .step-media {
    min-height: clamp(200px, 46vw, 300px);
  }

  .step-content,
  .step-card.reverse .step-content {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #e1e8f8;
  }

  .step-content p { max-width: none; }
  .contact-content { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner {
    justify-content: center;
    gap: 10px;
  }

  .brand-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 10px 14px;
  }
}

@media (max-width: 620px) {
  :root {
    --page-gutter: clamp(12px, 4.2vw, 18px);
    --section-space: clamp(38px, 10vw, 66px);
  }

  .header-inner {
    min-height: 66px;
  }

  .nav {
    gap: 10px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: clamp(360px, 62svh, 520px);
  }

  .hero-content {
    padding: clamp(42px, 10vw, 70px) 0;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 8.8vw, 2.9rem);
  }

  .hero-content p {
    margin-top: 12px;
    font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  }

  .about-intro,
  .contact-text,
  .contact-form-card,
  .step-content {
    padding: clamp(16px, 4.8vw, 24px);
  }

  .socials a,
  .socials .social-static {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .contact-submit {
    width: 100%;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 620px) {
    .hero {
      min-height: clamp(360px, 62dvh, 520px);
    }
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .step-media {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .step-media img,
  .socials a,
  .contact-submit { transition: none; }
}
