:root{
  --ink:#0b2a55;
  --muted:#6b7a90;
  --bg:#f6f8fb;
  --card:#ffffff;

  --line:rgba(11,42,85,.14);
  --line2:rgba(11,42,85,.10);

  --shadow:0 16px 40px rgba(11,42,85,.12);
  --shadow2:0 10px 26px rgba(11,42,85,.10);
  --shadow3:0 24px 70px rgba(11,42,85,.14);

  --r:18px;

  --accent:#ff6b3d;
  --accent2:#2aa6ff;

  /* 4Kの間抜け対策：ここで全体の“締まり”を決める */
  --max:1100px;

  --topbarH:0px;
  --headerH:68px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Sans",sans-serif;
  color:var(--ink);
  line-height:1.65;

  background:
    radial-gradient(900px 520px at 12% 0%, rgba(42,166,255,.14), transparent 60%),
    radial-gradient(900px 560px at 110% 12%, rgba(255,107,61,.14), transparent 62%),
    radial-gradient(1200px 700px at 30% -10%, rgba(255,255,255,.55), transparent 60%),
    var(--bg);
}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
strong{font-weight:800}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

.muted{color:var(--muted)}
.fine{color:var(--muted);font-size:.92rem;margin:.75rem 0 0}

/* focus */
a:focus-visible, button:focus-visible{
  outline:3px solid rgba(42,166,255,.35);
  outline-offset:3px;
  border-radius:16px;
}

/* Header */
.header{
  position:sticky;top:var(--topbarH);z-index:40;
  background:rgba(246,248,251,.76);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(11,42,85,.10);
  box-shadow:0 10px 30px rgba(11,42,85,.08);
}
.header__inner{
  height: var(--headerH);
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;
}
.brand{display:flex;align-items:center;gap:10px}
.brand__logo{
  height:40px;width:auto;
  filter: drop-shadow(0 8px 18px rgba(11,42,85,.10));
}
.header__right{display:flex;gap:10px;align-items:center}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;
  border-radius:16px;
  padding:12px 14px;
  font-weight:900;
  border:1px solid rgba(11,42,85,.12);
  background:rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(11,42,85,.10);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select:none;
  transform: translateZ(0);
}
.btn:hover{transform: translateY(-2px); box-shadow: var(--shadow3)}
.btn:active{transform: translateY(0px); box-shadow: var(--shadow2)}

.btn--primary{
  background: linear-gradient(135deg, rgba(255,107,61,1), rgba(255,143,98,1));
  color:#fff;
  border-color: rgba(255,107,61,.45);
  box-shadow: 0 18px 36px rgba(255,107,61,.28);
}
.btn--primary:hover{
  background: linear-gradient(135deg, rgba(255,120,80,1), rgba(255,160,120,1));
  box-shadow: 0 26px 64px rgba(255,107,61,.34);
}
.btn--ghost{background:rgba(255,255,255,.84)}
.btn--full{width:100%}
.btn--lg{padding:14px 16px;border-radius:18px}
.btn--sm{padding:10px 12px;border-radius:14px;font-weight:900}

/* HERO */
.hero{
  position:relative;
  overflow:hidden;

  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* PCは「次セクションがチラ見え」する高さに */
  min-height: calc(78svh - var(--topbarH) - var(--headerH));
  display:flex;
  align-items:stretch;
  padding: 18px 0 22px;

  border-bottom:1px solid rgba(255,255,255,.12);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(
    180deg,
    rgba(11,42,85,.55) 0%,
    rgba(11,42,85,.40) 30%,
    rgba(11,42,85,.20) 70%,
    rgba(11,42,85,.10) 100%
  );
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(246,248,251,.72) 90%, rgba(246,248,251,.92) 100%);
  pointer-events:none;
}

.hero__inner{
  width:100%;
  position:relative;
  z-index:1;

  display:flex;
  flex-direction:column;

  /* PCは中央寄せ、モバイルは下寄せに切替（後でmediaで） */
  justify-content:center;
  align-items:center;
  text-align:center;

  gap:14px;
}

.hero__logos{
  display:grid;
  gap:10px;
  justify-items:center;
  margin-top: 4px;
}

.hero__logoTop{
  width:min(520px, 52vw);
  height:auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.28));
}
.hero__logoMain{
  width:min(760px, 68vw);
  height:auto;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.28));
}

/* CTA：右寄り防止の“決定版” */
.hero__cta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;

  width:100%;
  max-width: 640px;
  margin-inline:auto;        /* ←これで必ず中央 */
  justify-content:center;

  padding: 12px 12px 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
}
.hero__cta .btn{
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 1rem;
}

.hero__note{
  margin-top:6px;
  max-width: 720px;
  color: rgba(255,255,255,.78);
  text-align:center;
}

/* Sections */
.section{padding:34px 0}
.section--alt{
  background:rgba(255,255,255,.55);
  border-top:1px solid var(--line2);
  border-bottom:1px solid var(--line2);
}

.h2{
  font-size:1.45rem;line-height:1.15;margin:0 0 14px;letter-spacing:-.01em;
  display:inline-block;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(11,42,85,.16);
  box-shadow:0 18px 44px rgba(11,42,85,.12);
  position:relative;
}
.h2::before,.h2::after{
  content:"";position:absolute;width:14px;height:14px;border:2px solid rgba(11,42,85,.20);opacity:.9;
}
.h2::before{left:-8px;top:-8px;border-right:none;border-bottom:none;border-radius:6px 0 0 0}
.h2::after{right:-8px;bottom:-8px;border-left:none;border-top:none;border-radius:0 0 6px 0}

.h3{font-size:1.05rem;margin:0 0 6px; letter-spacing:-.01em}

/* Essay（横幅いっぱい過ぎ問題を解消） */
.essay{padding:44px 0}
.essay__inner{
  width: min(720px, 100%);     /* ← これで“でかすぎ”が止まる */
  margin: 0 auto;              /* ← 中央に締める */
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(11,42,85,.10);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 10px 24px rgba(11,42,85,.08);
  backdrop-filter: blur(10px);
}
.essay__title{
  font-size:1.5rem;
  font-weight:900;
  margin:0 0 18px;
  line-height:1.25;
  letter-spacing:-.02em;
}
.essay p{
  margin:0;
  line-height:1.9;
  color: rgba(11,42,85,.72);
}
.essay strong{color:var(--ink)}

/* Steps（共通） */
.steps{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:14px}
.step{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;

  background:rgba(255,255,255,.86);
  border:1px solid rgba(11,42,85,.12);
  border-radius:22px;
  box-shadow: 0 14px 30px rgba(11,42,85,.08);
  padding:16px;
  position:relative;
  overflow:hidden;
}
.step:nth-child(-n+3)::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:rgba(255,107,61,.95);
}
.step:nth-child(4)::before{display:none}

.step__num{
  width:48px;height:48px;border-radius:18px;
  display:grid;place-items:center;
  background: rgba(255,107,61,.14);
  border: 1px solid rgba(255,107,61,.45);
  color: #c55c10;
  font-weight:900;
  font-size:1.05rem;
  box-shadow:0 10px 20px rgba(255,107,61,.12);
}
.step:nth-child(4) .step__num{
  background:#f2f4f8;border:1px solid rgba(11,42,85,.14);color:#6b7a90;
  box-shadow:none;
}
.step__body p{margin:0;color: rgba(11,42,85,.70); line-height:1.8;}
.step__body p + p{margin-top:8px}
.step__body .fine{color: rgba(11,42,85,.62);}

.step--free{
  border-color: rgba(42,166,255,.16);
  background: rgba(255,255,255,.92);
}
.step--free .step__num{
  background: rgba(42,166,255,.10);
  border: 1px solid rgba(42,166,255,.22);
  color: rgba(11,42,85,.70);
}

/* Flow（番号 + アイコン + 本文） */
.steps--flow .step{
  grid-template-columns:52px 140px minmax(0,1fr);
  align-items:start;
}

/* アイコン枠：不要なので“完全撤去” */
.steps--flow .step__icon{
  width:140px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:0;               /* ←余計な余白を殺す */
}
.steps--flow .step__icon::before{display:none !important;} /* ←枠撤去 */
.steps--flow .step__icon img{
  width:120px;
  max-width:none;
  filter: drop-shadow(0 14px 22px rgba(11,42,85,.12));
  opacity:1;
}

/* Step1 actions */
.steps--flow .step__actions{
  display:flex;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}
.steps--flow .step__actions .btn{white-space:nowrap; border-radius:18px}

/* FAQ */
.faq{display:grid;gap:10px;margin-top:14px}
.faq__item{
  border-radius:20px;border:1px solid rgba(11,42,85,.10);
  background:rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
  padding:8px 10px;
}
.faq__item summary{
  cursor:pointer;padding:12px 10px;font-weight:900;list-style:none;
}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary:after{content:"＋";float:right;font-weight:900;color:var(--muted)}
.faq__item[open] summary:after{content:"−"}
.faq__body{padding:0 10px 12px;color:var(--muted);font-weight:700}
.faq__body p{margin:0; line-height:1.85;}

/* Contact */
.contactCard{
  border-radius:24px;border:1px solid rgba(11,42,85,.10);
  background:rgba(255,255,255,.88);
  box-shadow: 0 10px 24px rgba(11,42,85,.08);
  padding:14px;margin-top:14px;
}
.contactCard__row{display:grid;gap:8px;padding:10px 0}
.contactCard__value{display:grid;gap:10px}

/* Sticky CTA (mobile) */
.stickyCta{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(246,248,251,.86);
  backdrop-filter: blur(14px);
  border-top:1px solid rgba(11,42,85,.10);
  box-shadow: 0 -10px 30px rgba(11,42,85,.10);
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:10px;
}
.stickyCta__btn{
  display:flex;align-items:center;justify-content:center;
  border-radius:18px;
  padding:12px 10px;
  font-weight:1000;
  border:1px solid rgba(11,42,85,.12);
  background:rgba(255,255,255,.88);
  box-shadow: var(--shadow2);
}
.stickyCta__btn--primary{
  background: linear-gradient(135deg, rgba(255,107,61,1), rgba(255,143,98,1));
  color:#fff;
  border-color: rgba(255,107,61,.45);
}
.stickyCta__btn--ghost{color:var(--ink)}

/* Footer */
.footer{padding:18px 0 calc(18px + 70px);color:var(--muted)}
.footer__inner{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.footer__brand{color:var(--ink);font-weight:1000}
.footer__right{display:flex;gap:12px;flex-wrap:wrap}
.footer__right a{padding:6px 8px;border-radius:12px}
.footer__right a:hover{background:rgba(11,42,85,.06);color:var(--ink)}

/* Responsive */
@media (min-width: 880px){
  :root{ --headerH:72px; }
  .container{padding:0 22px}
  .brand__logo{height:44px}
  .section{padding:46px 0}
  .stickyCta{display:none}
  .footer{padding-bottom:18px}
}

/* ===== Mobile tune ===== */
@media (max-width: 560px){
  /* モバイルは「CTAまで1画面に入れる」 */
  .hero{
    min-height: calc(92svh - var(--topbarH) - var(--headerH));
    padding: 10px 0 12px;
  }
  .hero__inner{
    justify-content:flex-end;  /* ←下に集めてCTAまで見せる */
    gap:10px;
  }
  .hero__logos{gap:6px; margin-top:6px}
  .hero__logoTop{width:min(72vw, 320px)}
  .hero__logoMain{width:min(88vw, 520px)}

  /* CTAを縦積み＆中央固定（右寄り撲滅） */
  .hero__cta{
    grid-template-columns:1fr;
    max-width: 520px;
    width:100%;
    margin-inline:auto;
  }

  /* 文章箱は“余白いっぱい”にならないように */
  .essay__inner{
    width: min(720px, 100%);
    padding: 18px 16px;
    border-radius: 22px;
  }

  /* Flow：スマホは上段に「番号+アイコン」、下段に本文 */
  .steps--flow .step{
    grid-template-columns:52px 1fr;
    grid-template-areas:
      "num icon"
      ".   body";
  }
  .steps--flow .step__num{grid-area:num;}
  .steps--flow .step__icon{
    grid-area:icon;
    width:auto;
    justify-content:flex-start;
  }
  .steps--flow .step__icon img{
    width: 112px; /* スマホはデカいけど暴れない絶妙値 */
  }
  .steps--flow .step__body{grid-area:body;}
  .steps--flow .step__actions{
    flex-direction:column;
    align-items:stretch;
  }
  .steps--flow .step__actions .btn{width:100%;}
}