/* =========================================================
   元画像を基準に、1rem = 画像上の約10px（幅803px換算）で配置。
   画面幅に合わせて全体が同じ比率で拡大縮小します（最大1440px）。
   700px 以下はスマホ用の縦積みレイアウトに切り替わります。
   ========================================================= */
:root {
  --blue: #0a2cff;
  --blue-dark: #0018b3;
  --blue-light: #eef1ff;
  --text: #1a1a1a;
  --gray: #555;
  --line: #d9dce3;
  --bg-gray: #eff1f6;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

html { font-size: calc(min(100vw, 1440px) / 80.3); scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 144rem;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: .3rem solid var(--blue); outline-offset: .3rem; }

/* 共通コンテナ */
.container { width: 100%; padding: 0 3.2rem 0 2.6rem; }

.h2 { font-size: 2.9rem; font-weight: 900; line-height: 1.35; letter-spacing: .03em; }
.h2--bar { position: relative; padding-left: 2.7rem; }
.h2--bar::before { content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: .7rem; background: var(--blue); }


/* ================= Buttons / Logo ================= */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #2a4bff 0%, #0a2cf5 50%, #061fc4 100%);
  color: #fff; border: 0; border-radius: 1.4rem;
  font: inherit; font-weight: 700; white-space: nowrap; letter-spacing: .06em; cursor: pointer;
  box-shadow:
    0 .1rem 0 rgba(255,255,255,.35) inset,
    0 .6rem 1.6rem rgba(10, 44, 245, .30),
    0 1.6rem 3rem -1rem rgba(10, 44, 245, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
.btn:hover { 
  transform: translateY(-.2rem); 
  box-shadow:
    0 .1rem 0 rgba(255,255,255,.35) inset,
    0 .8rem 2rem rgba(10, 44, 245, .35),
    0 2rem 3.5rem -1rem rgba(10, 44, 245, .4);
  filter: brightness(1.05);
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 30%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.4), rgba(255,255,255,0));
  transform: skewX(-25deg); transition: left .6s ease;
}
.btn:hover::after { left: 150%; }
.btn .arrow { display: inline-block; font-size: .9em; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translate(.3rem, -.3rem); }

.btn--small { height: 3.4rem; padding: 0 1.8rem; gap: .5rem; font-size: 1.15rem; }
.btn--large { height: 4.6rem; padding: 0 2.4rem; font-size: 1.5rem; }
.btn--white { width: 28.3rem; height: 4.4rem; background: #fff; color: #111; font-size: 1.7rem; font-weight: 900; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.btn--white::after { background: linear-gradient(to right, rgba(10,44,255,0), rgba(10,44,255,.12), rgba(10,44,255,0)); }
.btn--white:hover { filter: none; background: #f8f9fa; }

.logo { display: flex; align-items: center; flex: none; }
.logo__img { height: 2.6rem; width: auto; }
.logo--small .logo__img { height: 2.1rem; }


/* ================= Header ================= */
.header {
  position: sticky; top: 0; z-index: 100;
  height: 5.6rem; padding: 0 1rem 0 2.6rem;
  background: #fff; border-bottom: 1px solid #eee;
}
.header__inner { display: flex; align-items: center; width: 100%; height: 100%; }
.header__service {
  margin-left: 1.6rem; padding-left: 1.6rem;
  border-left: 1px solid var(--line);
  font-size: 1.15rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.header__nav-wrap { display: flex; align-items: center; flex: 1; min-width: 0; }
.gnav { display: flex; gap: 2.4rem; margin-left: 3.6rem; font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.gnav a { transition: color .3s; }
.gnav a:hover, .header__pro:hover { color: var(--blue); }
.header__nav-wrap .btn { margin-left: 1.6rem; }
.header__pro {
  margin-left: auto; padding-left: 1.6rem;
  border-left: 1px solid var(--line);
  font-size: 1.1rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.menu-toggle { display: none; }


/* ================= Hero ================= */
.hero { position: relative; overflow: hidden; background: #fff; }

/* hero__inner は container クラスを持たないため、ここで padding を指定 */
.hero__inner { 
  position: relative; 
  min-height: 27.4rem; 
  padding: 2.2rem 2.6rem 2rem; 
}

.hero__text { position: relative; z-index: 1; }
.hero__eyebrow { margin-bottom: 1.2rem; font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--blue); }
.hero__title { margin-bottom: 1.4rem; font-size: 3.7rem; font-weight: 900; line-height: 1.28; letter-spacing: .02em; }
.hero__lead { margin-bottom: 1.8rem; font-size: 1.5rem; font-weight: 500; line-height: 1.7; }
.hero__cta { display: flex; align-items: center; gap: 1.8rem; }
.hero__note { padding: .6rem 0 .6rem 1.6rem; border-left: 1px solid var(--line); font-size: 1.15rem; line-height: 1.6; white-space: nowrap; }
.hero__x { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; }

.hero-photo { height: 31rem; background: #dfe5ee; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }


/* ================= Benefit ================= */
.benefit { padding: 5.3rem 0 0; }
.benefit__box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  height: 9.8rem; padding: 0 2.4rem 0 3rem;
  background: var(--blue-light);
  border: .2rem solid var(--blue); border-radius: .8rem;
}
.benefit__label {
  display: inline-flex; align-items: center; justify-content: center;
  height: 4.8rem; padding: 0 2.4rem; margin-right: 4.2rem;
  background: var(--blue); color: #fff;
  font-size: 1.7rem; font-weight: 700; white-space: nowrap;
}
.benefit__main {
  padding: 0 2.4rem;
  border-left: 1px solid #b6bde0; border-right: 1px solid #b6bde0;
  font-size: 2.7rem; font-weight: 900; line-height: 1.3;
}
.benefit__sub { padding-left: 2.4rem; font-size: 1.3rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.benefit__note { margin-top: 1.4rem; text-align: center; font-size: 1.4rem; line-height: 1.7; }


/* ================= Cases ================= */
.cases { padding: 2.4rem 0 2rem; }
.cases__grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  grid-template-rows: auto auto 1fr;
  margin-top: 2rem; 
  column-gap: 0;
}
.case { 
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  padding: 0 2rem; 
  border-left: 1px solid var(--line); 
}
.case:first-child { padding: 0 2.8rem 0 0; border-left: none; }
.case:last-child { padding: 0 0 0 2.8rem; }
.case__title {
  display: flex; align-items: flex-end;
  margin-bottom: 1.4rem; padding-left: 1.6rem;
  font-size: 2rem; font-weight: 900; line-height: 1.4;
}
.case__img { 
  width: 100%;
  aspect-ratio: 1.6 / 1;
  background: #dfe5ee; 
  overflow: hidden; 
}
.case__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.case__text { margin-top: 1.2rem; font-size: 1.2rem; line-height: 1.75; }


/* ================= Talk ================= */
.talk { padding: 0 0 2.4rem; }
.talk__inner { display: flex; align-items: center; justify-content: space-between; gap: 3.2rem; }
.talk__text .h2 { font-size: 2.8rem; line-height: 1.3; margin-bottom: 1rem; }
.talk__text p { padding-left: 2.7rem; font-size: 1.4rem; line-height: 1.8; }
.talk__img { flex: none; width: 29.4rem; height: 14.4rem; background: #dfe5ee; overflow: hidden; }
.talk__img img { width: 100%; height: 100%; object-fit: cover; }


/* ================= Features ================= */
.features { padding: 1.4rem 0 .6rem; background: var(--bg-gray); }
.features__label { margin-bottom: .6rem; font-size: 1.4rem; font-weight: 700; line-height: 1.4; }
.features__list { border-top: 1px solid var(--line); }

/* li を grid コンテナにし、中の span を配置 */
.features__list li {
  display: grid; 
  grid-template-columns: 9rem 36.5rem 1fr; 
  align-items: center;
  height: 5.2rem; 
  border-bottom: 1px solid var(--line);
}
.features__list li:last-child { border-bottom: none; }

.features__no { padding-left: 1.8rem; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--blue); }
.features__title { position: relative; padding-left: 1.9rem; font-size: 2rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.features__title::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 3.2rem; background: #333; transform: translateY(-50%); }
.features__text { position: relative; padding-left: 1.6rem; font-size: 1.3rem; line-height: 1.5; }
.features__text::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 3.2rem; background: var(--line); transform: translateY(-50%); }


/* ================= Reason ================= */
.reason { padding: 3rem 0 0; }
.reason__box { position: relative; padding-left: 2.7rem; }
.reason__box::before { content: ""; position: absolute; left: 0; top: .3rem; bottom: .3rem; width: .7rem; background: var(--blue); }
.reason__box .h2 { font-size: 2.7rem; line-height: 1.3; }
.reason__text { margin-top: .8rem; font-size: 1.4rem; line-height: 1.75; }
.reason__note { margin: 1rem 0 0 2.7rem; font-size: 1.15rem; color: var(--gray); }


/* ================= Flow ================= */
.flow { padding: 2.6rem 0 0; }
.flow__heading, .flow .h2 { font-size: 2.6rem; line-height: 1.35; }

/* PCでは3列表示（元のCSSは4列になっていたため修正） */
.flow__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.6rem; }
.flow__item { padding: 0 1.6rem 0 2rem; border-left: 1px solid var(--line); }
.flow__item:first-child { padding-left: 2.2rem; border-left: none; }
.flow__item h3 { margin-bottom: .6rem; font-size: 1.9rem; font-weight: 900; line-height: 1.5; white-space: nowrap; }
.flow__no { margin-right: 1rem; font-size: 2.4rem; font-weight: 900; color: var(--blue); }
.flow__item p { font-size: 1.25rem; line-height: 1.75; }


/* ================= FAQ ================= */
.faq { padding: 2rem 0 2.4rem; }
.faq__title { margin-bottom: .7rem; font-size: 1.5rem; font-weight: 900; line-height: 1.4; }
.faq__list { border-top: .2rem solid #222; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  display: flex; align-items: center; min-height: 3.4rem;
  padding: 0 4rem 0 2rem; font-size: 1.4rem; font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 1.8rem; top: 50%;
  width: .8rem; height: .8rem;
  border-right: .2rem solid #222; border-bottom: .2rem solid #222;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { padding: .2rem 4rem 1.4rem 2rem; font-size: 1.3rem; line-height: 1.8; color: var(--gray); }


/* ================= CTA ================= */
.cta { background: var(--blue); color: #fff; }

/* cta__inner は container クラスを持たないため、ここで padding を指定 */
.cta__inner { display: flex; align-items: center; justify-content: space-between; height: 7.6rem; padding: 0 3.2rem 0 2.6rem; }
.cta__text { font-size: 3rem; font-weight: 900; line-height: 1.15; letter-spacing: .04em; }


/* ================= Footer ================= */
/* footer__inner は container クラスを持たないため、ここで padding を指定 */
.footer__inner { display: flex; align-items: center; height: 4rem; padding: 0 1rem 0 2.6rem; font-size: 1.15rem; }
.footer__company { margin-left: 1.6rem; padding-left: 1.6rem; border-left: 1px solid var(--line); }
.footer__nav { margin-left: auto; display: flex; }
.footer__nav a { padding: 0 1.8rem; border-left: 1px solid var(--line); line-height: 1.6; }
.footer__nav a:first-child { border-left: none; }
.footer__nav a:last-child { padding-right: 0; }
.footer__nav a:hover { color: var(--blue); }

img.is-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #e3e8f1, #e3e8f1 12px, #dbe1ec 12px, #dbe1ec 24px);
}

/* ===== Anchor Scroll Offset ===== */
#features, #benefit, #flow, #contact { scroll-margin-top: 6rem; }


/* ================= Mobile ================= */
@media (max-width: 700px) {
  html { font-size: calc(100vw / 39); }
  .container { padding: 0 2rem; }
  .hero__lead br, .hero__title br { display: none; }
  .h2 { font-size: 2.6rem; }

  /* --- Header（ハンバーガー） --- */
  .header { height: 5.6rem; padding: 0 1.6rem; }
  .header__service { display: none; }
  .logo__img { height: 2.6rem; }
  .logo--small .logo__img { height: 2.2rem; }

  .menu-toggle {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 2.8rem; height: 2rem; margin-left: auto; padding: 0;
    background: transparent; border: none; cursor: pointer; z-index: 101;
  }
  .menu-toggle__bar { width: 100%; height: .2rem; background: #111; transition: transform .3s, opacity .3s; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(.9rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-.9rem) rotate(-45deg); }

  .header__nav-wrap {
    display: none;
    position: absolute; top: 100%; left: 0; width: 100%;
    flex: none; flex-direction: column; align-items: stretch; gap: 1.6rem;
    padding: 2rem; background: #fff;
    box-shadow: 0 .4rem .6rem rgba(0,0,0,.1);
  }
  .header__nav-wrap.is-open { display: flex; }
  .header__nav-wrap .gnav { flex-direction: column; gap: 1.6rem; margin-left: 0; font-size: 1.5rem; }
  .header__nav-wrap .btn { margin-left: 0; height: 4.8rem; font-size: 1.5rem; width: 100%; }
  .header__nav-wrap .header__pro { margin: 0; padding: 0; border-left: none; font-size: 1.4rem; }

  /* --- Hero --- */
  .hero__inner { height: auto; padding: 2.4rem 2rem 15rem; }
  .hero__eyebrow { font-size: 1.35rem; }
  .hero__title { font-size: 3.2rem; line-height: 1.35; }
  .hero__lead { margin-top: 1.2rem; font-size: 1.4rem; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 1.2rem; margin-top: 2rem; }
  .hero__cta .btn--large { width: 100%; height: 5.4rem; font-size: 1.5rem; }
  .hero__note { padding: 0; border-left: none; text-align: center; }
  .hero__x { top: auto; bottom: 0; height: 12.6rem; width: auto; }
  .hero-photo { height: 22rem; }

  /* --- Benefit --- */
  .benefit { padding-top: 3rem; }
  .benefit__box { grid-template-columns: 1fr; height: auto; gap: 1.4rem; padding: 2rem; text-align: center; }
  .benefit__label { justify-self: center; margin-right: 0; }
  .benefit__main { padding: 0; border: none; font-size: 2.6rem; }
  .benefit__sub { padding: 0; }
  .benefit__note { font-size: 1.25rem; text-align: left; }

  /* --- Cases (スマホは1列) --- */
  .cases { padding: 4rem 0 2rem; }
  .cases__grid { 
    grid-template-columns: 1fr; 
    grid-template-rows: auto;
    gap: 3.2rem; 
    margin-top: 2.4rem; 
  }
  .case, .case:first-child, .case:last-child { 
    padding: 0; 
    border-left: none; 
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }
  .case__title { display: block; min-height: 0; font-size: 2.1rem; }
  .case__img { height: auto; aspect-ratio: 2 / 1; }
  .case__text { font-size: 1.35rem; }

  /* --- Talk --- */
  .talk { padding: 2rem 0 4rem; }
  .talk__inner { flex-direction: column; align-items: stretch; gap: 2.4rem; }
  .talk__text .h2 { font-size: 2.7rem; }
  .talk__text p { padding-left: 2rem; font-size: 1.35rem; }
  .talk__img { width: 100%; height: 20rem; }

  /* --- Features --- */
  .features { padding: 3rem 0 2rem; }
  .features__label { font-size: 1.5rem; }
  .features__list { margin-top: 1.2rem; }
  .features__list li { grid-template-columns: 5.2rem 1fr; height: auto; padding: 1.6rem 0; row-gap: .5rem; align-items: start; }
  .features__no { grid-row: 1 / span 2; padding-left: 0; font-size: 2.6rem; }
  .features__title { padding-left: 0; font-size: 1.9rem; white-space: normal; }
  .features__title::before, .features__text::before { display: none; }
  .features__text { padding: 0; font-size: 1.3rem; }

  /* --- Reason --- */
  .reason { padding-top: 4rem; }
  .reason__box .h2 { font-size: 2.6rem; }
  .reason__text { font-size: 1.35rem; }
  .reason__text br { display: none; }

  /* --- Flow --- */
  .flow { padding-top: 4rem; }
  .flow__grid { grid-template-columns: 1fr; margin-top: 2rem; }
  .flow__item, .flow__item:first-child { padding: 1.6rem 0; border-left: none; border-bottom: 1px solid var(--line); }
  .flow__item:last-child { border-bottom: none; }
  .flow__item h3 { font-size: 1.9rem; }
  .flow__no { font-size: 2.4rem; }
  .flow__item p { font-size: 1.35rem; }

  /* --- FAQ --- */
  .faq { padding: 2.4rem 0 3.4rem; }
  .faq__title { font-size: 1.7rem; margin-bottom: 1.2rem; }
  .faq__item summary { min-height: 5.2rem; padding: 1.2rem 4rem 1.2rem 1rem; font-size: 1.45rem; line-height: 1.5; }
  .faq__item summary::after { right: 1.4rem; }
  .faq__item p { padding: .2rem 1rem 1.6rem; font-size: 1.35rem; }

  /* --- CTA / Footer --- */
  .cta__inner { flex-direction: column; align-items: stretch; justify-content: center; gap: 2.2rem; height: auto; padding: 3.6rem 2rem; text-align: center; }
  .cta__text { font-size: 2.8rem; line-height: 1.3; }
  .btn--white { width: 100%; height: 5.6rem; }

  .footer__inner { flex-wrap: wrap; height: auto; padding: 2rem; gap: 1rem 0; }
  .footer__company { order: 3; width: 100%; margin-left: 0; padding-left: 0; border-left: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}