:root {
  --blue: #005be1;
  --navy: #003aab;
  --ink: #303439;
  --text: #333;
  --band: #f0f3f9;
  --gray: #acacac;
  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: Roboto, sans-serif;
  --header-h: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--jp); font-weight: 500; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center;
  height: var(--header-h); padding-inline: 72px;
  background: #fff; box-shadow: 0 4px 16px rgba(56, 63, 73, .16);
}
.logo { color: var(--navy); font: 300 40px/1.4 var(--en); text-decoration: none; }

/* ヒーロー */
.hero { padding: 152px 24px 120px; }
.hero-inner { width: min(782px, 100%); margin-inline: auto; }
.hero-eyebrow { color: var(--blue); font: 900 24px/1 var(--en); }
.hero h1 { margin: 24px 0 16px; color: var(--ink); font: 900 50px/1.25 var(--jp); }
.hero img { width: 100%; }

/* セクション共通 */
.band { background: var(--band); }
.section-title { text-align: center; }
.section-title p { color: var(--blue); font: 900 16px/1.4 var(--en); }
.section-title h2 { color: var(--ink); font: 900 32px/1.4 var(--jp); }
.section-title h2::after {
  content: ""; display: block; width: 64px; height: 4px;
  margin: 16px auto 0; background: #bccde9;
}

/* 課題 */
.problem { padding: 96px 24px 64px; }
.problem-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
  max-width: 1178px; margin: 66px auto 0;
}
.problem-list li {
  width: min(366px, calc((100% - 80px) / 3)); padding: 24px 24px 32px; border-radius: 8px;
  background: #fff; box-shadow: 0 17px 24px rgba(0, 66, 164, .26);
}
.problem-list img { width: 100%; height: 200px; object-fit: cover; }
.problem-list h3 { margin-top: 24px; color: var(--blue); font: 900 28px/1.4 var(--jp); text-align: center; }
.problem-list p { margin-top: 8px; color: var(--ink); font-size: 18px; line-height: 1.5; }
.dots { margin: 66px auto 0; }
.problem-lead { margin-top: 32px; color: var(--ink); font: 900 38px/1.3 var(--jp); text-align: center; }
.band-arrow {
  width: 80px; height: 40px; margin: 0 auto -40px; position: relative;
  background: var(--band); clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* 特長 */
.features { padding: 96px 24px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: 1152px; margin: 80px auto 0;
}
.section-title + .feature { margin-top: 56px; }
.feature > img { width: 100%; }
.feature-no { color: var(--blue); font: 900 20px/1 var(--en); }
.feature-body h3 { margin-top: 32px; color: var(--ink); font: 900 30px/1.3 var(--jp); }
.feature-body > p:last-child { margin-top: 40px; color: var(--ink); font-size: 18px; line-height: 1.8; }

/* 流れ */
.flow { padding: 96px 24px; }
.flow-list { max-width: 850px; margin: 55px auto 0; }
.flow-list li {
  position: relative; display: flex; align-items: center; gap: 48px;
  padding: 40px 48px; border-radius: 8px; background: #fff;
}
.flow-list li + li { margin-top: 55px; }
.flow-list li + li::before {
  content: ""; position: absolute; top: -40px; left: 50%;
  width: 54px; height: 25px; transform: translateX(-50%);
  background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.flow-no { flex: none; width: 36px; color: var(--gray); font: italic 900 64px/1.4 var(--en); text-align: center; }
.flow-list h3 { color: var(--text); font: 700 24px/1.4 var(--jp); }
.flow-list p { margin-top: 16px; font-size: 16px; line-height: 1.8; }

/* フッター */
.site-footer { display: flex; background: #fff; }
.footer-main {
  flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 64px; row-gap: 24px;
  min-height: 272px; padding: 40px 24px; background: var(--navy); color: #fff;
}
.footer-logo { font: 100 min(80px, 20vw)/1.4 var(--en); white-space: nowrap; }
.footer-company { text-align: center; font-size: 18px; line-height: 1.4; }
.footer-contact-label { margin-top: 25px; }
.footer-office { font-size: 14px; line-height: 1.4; }
.footer-office-label { margin-bottom: 9px; font-size: 18px; }
.footer-copy {
  flex: none; width: 33px; color: var(--navy); font: 400 12px/33px var(--en);
  writing-mode: vertical-rl; text-align: center;
}

/* ~1140px: カード 3 列を保ったまま文字を縮める */
@media (max-width: 1140px) {
  .problem-list { gap: 24px; }
  .problem-list li { width: calc((100% - 48px) / 3); padding: 16px 16px 24px; }
  .problem-list img { height: auto; aspect-ratio: 318 / 200; }
  .problem-list h3 { font-size: 24px; }
  .problem-list p { font-size: 15px; text-align: center; text-wrap: balance; }
}

/* ~960px: フッターはロゴを 1 段目、会社情報を 2 段目にする */
@media (max-width: 960px) {
  .footer-logo { flex-basis: 100%; text-align: center; }
}

/* ~840px */
@media (max-width: 840px) {
  .hero { padding-inline: clamp(24px, 9.5vw, 80px); }
  .hero h1 { font-size: clamp(28px, 5.8vw, 46px); }
  .problem-list { gap: 40px; margin-top: 56px; }
  .problem-list li { width: min(640px, 100%); padding: 24px 24px 32px; text-align: center; }
  .problem-list h3 { font-size: 28px; }
  .problem-list p { font-size: 18px; }
  .problem-list img { height: auto; aspect-ratio: 592 / 320; }
  .problem-lead { font-size: clamp(22px, 4.2vw, 34px); }
  .feature { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 24px; margin-top: 72px; }
  .features { padding-inline: 40px; }
  .feature-body h3 { margin-top: 16px; }
  .feature-body > p:last-child { margin-top: 32px; }
  .flow { padding-inline: 40px; }
  .footer-main { column-gap: 40px; }
}

/* ~540px */
@media (max-width: 540px) {
  :root { --header-h: 112px; }
  .site-header { padding-inline: 48px; }
  .hero { padding: 152px 24px 0; }
  .hero-eyebrow { font-size: 18px; }
  .footer-logo { flex-basis: auto; }
  .hero h1 { font-size: 28px; line-height: 1.3; }
  .section-title p { font-size: 13px; }
  .section-title h2 { font-size: 24px; }
  .section-title h2::after { width: 48px; }
  .problem { padding: 80px 34px 40px; }
  .problem-list { margin-top: 58px; }
  .problem-list img { height: 200px; aspect-ratio: auto; }
  .problem-list h3 { font-size: 22px; }
  .problem-list p { font-size: 16px; }
  .problem-lead { font-size: 22px; line-height: 1.4; }
  .features { padding: 96px 24px 80px; }
  .section-title + .feature { margin-top: 48px; }
  .feature-no { font-size: 18px; }
  .feature-body h3 { font-size: 22px; }
  .feature-body > p:last-child { font-size: 16px; }
  .flow { padding: 80px 24px; }
  .flow-list { margin-top: 48px; }
  .flow-list li { flex-direction: column; align-items: stretch; gap: 16px; padding: 0 24px 24px; }
  .flow-no { align-self: center; }
  .flow-list li + li { margin-top: 40px; }
  .flow-list li + li::before { top: -29px; width: 38px; height: 18px; }
  .flow-list h3 { font-size: 20px; text-align: center; }
  .flow-list p { font-size: 14px; }
  .site-footer { display: block; }
  .footer-main { flex-direction: column; flex-wrap: nowrap; row-gap: 24px; padding: 80px 24px 96px; }
  .footer-logo { margin-bottom: 16px; }
  .footer-company { font-size: 16px; font-weight: 400; }
  .footer-contact-label { margin-top: 22px; }
  .footer-office { font-size: 12px; }
  .footer-office-label { margin-bottom: 16px; font-size: 12px; }
  .footer-copy { width: auto; padding: 24px; line-height: 1.4; writing-mode: horizontal-tb; }
}
