:root {
  --ink: #0a0a0a;
  --ink-soft: #2f343a;
  --muted: #6b7280;
  --paper: #f5f2ee;
  --paper-strong: #eee8df;
  --white: #fffdf9;
  --line: rgba(196, 168, 130, 0.32);
  --blue: #7b9bad;
  --blue-dark: #0a0a0a;
  --orange: #c4a882;
  --orange-soft: #e7d7bf;
  --green: #788c83;
  --shadow: 0 22px 60px rgba(10, 10, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  background: var(--paper);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(245, 242, 238, 0.9);
  border-bottom: 1px solid rgba(196, 168, 130, 0.34);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--blue-dark);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.brand-mark::before {
  inset: 8px 7px 13px 7px;
  background: var(--orange);
}

.brand-mark::after {
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  background: var(--paper);
}

.header-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.header-nav a {
  padding: 8px 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 10px 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  background: var(--blue);
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(123, 155, 173, 0.24);
}

.hero {
  position: relative;
  min-height: min(760px, 86svh);
  overflow: hidden;
  background-image: url("assets/images/hero-ai-route.png");
  background-position: center top;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 242, 238, 0.98) 0%, rgba(245, 242, 238, 0.9) 31%, rgba(245, 242, 238, 0.38) 60%, rgba(245, 242, 238, 0.08) 100%),
    linear-gradient(180deg, rgba(245, 242, 238, 0.78) 0%, rgba(245, 242, 238, 0) 38%, rgba(245, 242, 238, 0.66) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  padding: clamp(60px, 9vw, 110px) 0 64px;
  margin-left: clamp(24px, 7vw, 96px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.7;
}

.hero-service {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 8px 14px;
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.hero-sub,
.route-definition {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.7;
}

.route-definition {
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.72);
  border-left: 4px solid var(--orange);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  border-radius: 4px;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 18px 36px rgba(123, 155, 173, 0.26);
}

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

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.two-column,
.decision-layout,
.fit-layout,
.profile-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.two-column > *,
.check-layout > *,
.decision-layout > *,
.fit-layout > *,
.profile-layout > *,
.contact-layout > * {
  min-width: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  letter-spacing: 0;
}

.body-copy {
  color: var(--ink-soft);
  font-size: 17px;
}

.body-copy p {
  margin: 0 0 18px;
}

.lead-line {
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 800;
}

.section-intro {
  background: var(--paper);
}

.section-checks {
  background: var(--white);
}

.section-pain,
.section-examples,
.section-fit,
.section-profile {
  background: var(--white);
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.check-panel {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 36px);
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.check-panel li {
  position: relative;
  padding-left: 34px;
}

.check-panel li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
  content: "□";
}

.section-heading {
  max-width: 800px;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.section-heading.compact {
  max-width: 920px;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

.wide-figure {
  margin: 0 0 30px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

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

.plain-card,
.route-card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.plain-card p,
.route-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.section-service {
  background: linear-gradient(180deg, var(--paper) 0%, #eef3f4 100%);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.route-card {
  min-height: 220px;
  background: var(--white);
}

.route-icon {
  display: block;
  position: relative;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  background: #eef3f4;
  border: 1px solid rgba(123, 155, 173, 0.34);
  border-radius: 4px;
}

.route-icon::before,
.route-icon::after {
  position: absolute;
  content: "";
}

.route-icon.report::before {
  top: 13px;
  left: 15px;
  width: 24px;
  height: 4px;
  background: var(--blue);
  box-shadow: 0 10px 0 rgba(123, 155, 173, 0.7), 0 20px 0 rgba(123, 155, 173, 0.7);
  border-radius: 999px;
}

.route-icon.training::before {
  top: 13px;
  left: 10px;
  width: 13px;
  height: 13px;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 20px 0 0 var(--orange);
}

.route-icon.training::after {
  right: 11px;
  bottom: 10px;
  width: 30px;
  height: 19px;
  border: 2px solid rgba(123, 155, 173, 0.7);
  border-radius: 4px;
}

.route-icon.trouble::before {
  top: 11px;
  left: 17px;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-bottom: 22px solid var(--orange);
  border-left: 10px solid transparent;
}

.route-icon.trouble::after {
  right: 10px;
  bottom: 11px;
  width: 20px;
  height: 3px;
  background: var(--blue);
  box-shadow: 0 -8px 0 var(--blue);
  border-radius: 999px;
}

.route-icon.meeting::before {
  inset: 12px 10px 18px;
  border: 2px solid var(--blue);
  border-radius: 4px;
}

.route-icon.meeting::after {
  right: 9px;
  bottom: 9px;
  width: 24px;
  height: 3px;
  background: var(--orange);
  box-shadow: -8px -8px 0 rgba(123, 155, 173, 0.7);
  border-radius: 999px;
}

.example-list {
  display: grid;
  gap: 18px;
}

.example-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.example-row:last-child {
  border-bottom: 1px solid var(--line);
}

.example-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 900;
  background: var(--blue);
  border-radius: 999px;
}

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

.comparison-block {
  padding: 22px;
  border-radius: 4px;
}

.comparison-block.before {
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.comparison-block.after {
  background: #eef3f4;
  border: 1px solid rgba(123, 155, 173, 0.34);
}

.comparison-block p,
.example-note {
  margin: 0;
  color: var(--ink-soft);
}

.comparison-label {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.example-note {
  grid-column: 2;
  padding-left: 22px;
  border-left: 4px solid var(--orange);
}

.section-decision {
  background: var(--paper);
}

.decision-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.decision-copy {
  max-width: 520px;
}

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

.check-list li,
.fit-list li,
.contact-tags li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before,
.fit-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--orange);
  border-radius: 999px;
}

.section-flow {
  background: var(--blue-dark);
  color: var(--white);
}

.section-flow .section-kicker,
.section-flow h2 {
  color: var(--white);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-list li {
  min-height: 260px;
  padding: 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.flow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--blue-dark);
  font-weight: 900;
  background: var(--orange-soft);
  border-radius: 999px;
}

.flow-list h3 {
  color: var(--white);
}

.flow-list p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.fit-list {
  display: grid;
  gap: 14px;
  padding: 28px;
  margin: 0;
  color: var(--ink-soft);
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.section-price {
  background: var(--white);
}

.price-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 54px);
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.price-band p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.price-box {
  padding: 28px;
  text-align: center;
  background: var(--ink);
  border: 1px solid rgba(196, 168, 130, 0.52);
  border-radius: 4px;
}

.price-box p {
  margin: 0 0 8px;
  color: var(--orange-soft);
  font-size: 14px;
  font-weight: 800;
}

.price-box strong {
  display: block;
  color: var(--white);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}

.section-subsidy {
  background: #eef3f4;
}

.subsidy-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  background: var(--white);
  border: 1px solid rgba(123, 155, 173, 0.34);
  border-radius: 4px;
}

.subsidy-band p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.profile-head {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
  max-width: 980px;
  margin-bottom: 34px;
}

.profile-avatar {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.profile-name {
  margin: 20px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.profile-copy p:last-child {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 20px;
}

.profile-links a,
.profile-links span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.profile-links a {
  color: var(--white);
  background: var(--ink);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.achievement-card {
  min-height: 260px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.achievement-label {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievement-card h3 {
  font-size: 20px;
}

.achievement-card p:last-child {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

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

.profile-points p {
  min-height: 84px;
  padding: 18px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 800;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.section-contact {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(10, 10, 10, 0.94), rgba(47, 52, 58, 0.9)),
    url("assets/images/hero-ai-route.png") center / cover;
}

.section-contact h2,
.section-contact .section-kicker {
  color: var(--white);
}

.contact-box {
  padding: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.contact-tags li {
  padding: 8px 14px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.contact-button {
  width: 100%;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 0 20px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    min-height: 78svh;
    background-position: 58% top;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(245, 242, 238, 0.98) 0%, rgba(245, 242, 238, 0.92) 45%, rgba(245, 242, 238, 0.48) 100%),
      linear-gradient(180deg, rgba(245, 242, 238, 0.66) 0%, rgba(245, 242, 238, 0.28) 45%, rgba(245, 242, 238, 0.8) 100%);
  }

  .hero-content {
    width: min(650px, calc(100% - 40px));
    padding-top: 52px;
    margin-left: 20px;
  }

  .two-column,
  .check-layout,
  .decision-layout,
  .fit-layout,
  .profile-layout,
  .contact-layout,
  .price-band,
  .subsidy-band {
    grid-template-columns: 1fr;
  }

  .pain-grid,
  .route-grid,
  .achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-row {
    grid-template-columns: 1fr;
  }

  .example-note {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    gap: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .header-cta {
    min-width: 92px;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    background-position: 67% top;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(245, 242, 238, 0.98) 0%, rgba(245, 242, 238, 0.92) 56%, rgba(245, 242, 238, 0.74) 100%),
      linear-gradient(90deg, rgba(245, 242, 238, 0.98), rgba(245, 242, 238, 0.44));
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 42px 0 48px;
    margin-left: 16px;
  }

  .hero h1 {
    font-size: clamp(27px, 8.2vw, 34px);
    max-width: 100%;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-sub,
  .route-definition {
    font-size: 14px;
  }

  .hero h1,
  .hero-lead,
  .hero-sub,
  .route-definition,
  h2,
  h3,
  p,
  li {
    word-break: break-all;
  }

  .section-heading h2,
  .check-layout h2 {
    font-size: clamp(25px, 7.1vw, 32px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .section {
    padding: 58px 0;
  }

  .section-inner {
    width: calc(100% - 32px);
  }

  .wide-figure {
    margin-right: -16px;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .wide-figure img {
    max-width: none;
    width: 190%;
    transform: translateX(-23%);
  }

  .pain-grid,
  .route-grid,
  .achievement-grid,
  .comparison,
  .flow-list,
  .check-list,
  .profile-points,
  .profile-head {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    width: 132px;
    height: 132px;
  }

  .plain-card,
  .route-card,
  .achievement-card,
  .comparison-block,
  .flow-list li,
  .fit-list,
  .price-band,
  .price-box,
  .contact-box {
    padding: 22px;
  }

  .flow-list li {
    min-height: 0;
  }

  .profile-points p {
    min-height: 0;
  }
}
