/* Layout: AdShared LP taste — white sticky header, navy hero, centered section titles with an orange bar, orange pill CTAs, navy footer. Light-only by design. */
/* Mobile-first. Breakpoints: 768px (tablet) / 1024px (desktop). */
/* Fonts: Google Fonts — Noto Sans JP, Montserrat (SIL Open Font License 1.1) */
:root {
  --primary: #002B5B;
  --primary-soft: #E8EEF5;
  --accent: #FF8C00;
  --accent-dark: #E67E00;
  --accent-light: #FFB347;
  --text: #333333;
  --muted: #5F6670;
  --bg-light: #F8F9FA;
  --line: #EEEEEE;
  --white: #FFFFFF;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-num: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --wrap: 1100px;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
/* 横スクロール防止: hidden はフォールバック。clip 対応ブラウザではスクロールコンテナを作らない clip を使い、sticky ヘッダーを維持する */
html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  word-break: break-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.45; text-wrap: balance; }
a { color: var(--primary); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* 見出し・短文: 文節（<wbr>）単位で折り返す。長い本文は body の break-all のまま */
h1, h2, h3, .hero-tag, .hero-text, .problem-item, .problem-close, .aud-for, .section-lead, .faq-item summary, .btn-note {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.section { padding-block: 60px; }
.bg-light { background: var(--bg-light); }
.section-title {
  position: relative; text-align: center; font-size: clamp(22px, 3vw, 28px); font-weight: 700;
  padding-bottom: 18px; margin-bottom: 36px; color: var(--text);
}
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 60px; height: 4px;
  background: var(--accent); transform: translateX(-50%);
}
/* 2行以上は左寄せ。width: fit-content でブロック自体は中央に置く（1行時は見た目上センター） */
.section-lead { width: fit-content; max-width: 640px; margin: -24px auto 40px; text-align: left; color: var(--muted); }

/* Buttons */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 420px;
  min-height: 60px; padding: 16px 24px; border-radius: 50px; border: none;
  background: var(--accent); color: var(--white); font-family: var(--font);
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-main:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4); }
.btn-main svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-note { font-size: 14px; text-align: left; }

/* Header */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 51; background: var(--white); }
.header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; flex-direction: column; justify-content: center; min-height: 44px; line-height: 1.3; text-decoration: none; }
.logo-main { font-size: 20px; font-weight: 700; color: var(--accent); }
.logo-sub { font-size: 11px; color: var(--muted); }

/* Navigation: drawer (< 1024px) */
.hamburger {
  display: flex; width: 48px; height: 48px; border: none; background: transparent; padding: 12px; cursor: pointer;
  flex-direction: column; justify-content: space-between; align-items: stretch;
}
.hamburger span { display: block; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.nav {
  position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); right: 0; bottom: 0;
  width: min(82vw, 320px); z-index: 60; background: var(--white);
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  padding: 8px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; overflow-y: auto;
}
.nav.is-open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-list li { border-bottom: 1px solid var(--line); }
.nav-list a { display: block; padding: 16px 4px; font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; }
.nav-list a:hover { color: var(--accent); }
.btn-header {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 20px; min-height: 52px; padding: 8px 18px; border-radius: 50px;
  background: var(--accent); color: var(--white); font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn-header:hover { background: var(--accent); color: var(--white); }
.nav-overlay {
  display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Hero */
.hero {
  background-color: var(--primary);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 160px, transparent 161px),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 220px, transparent 221px);
  color: var(--white); text-align: center;
}
.hero .wrap { padding-block: 88px 96px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-tag { display: inline-block; background: var(--accent); color: var(--white); font-size: 14px; font-weight: 700; padding: 6px 18px; border-radius: 50px; }
.hero h1 { font-size: clamp(26px, 4.4vw, 42px); font-weight: 700; color: var(--white); }
.hero h1 .solve { display: block; margin-top: 6px; color: var(--accent-light); }
.hero-text { text-align: left; font-size: clamp(16px, 1.8vw, 19px); color: #E3EAF2; max-width: 36em; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.hero .btn-note { color: #E3EAF2; }

/* Problem */
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.problem-item { background: var(--white); border-left: 5px solid #CCCCCC; padding: 26px 28px; font-weight: 700; min-width: 0; }
.problem-close { width: fit-content; margin: 40px auto 0; text-align: left; font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: var(--primary); }

/* Solution */
.reasons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.reason { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.reason-num { font-family: var(--font-num); font-size: 44px; font-weight: 700; line-height: 1; color: var(--accent); opacity: .85; }
.reason h3 { font-size: 20px; color: var(--primary); }
.reason p { color: var(--muted); font-size: 15px; }

/* Flow */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); border-radius: 10px; box-shadow: 0 4px 16px rgba(0, 43, 91, 0.06); min-width: 0; }
.step-label { align-self: flex-start; font-family: var(--font-num); font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--white); background: var(--accent); border-radius: 4px; padding: 2px 10px; }
.step h3 { font-size: 19px; color: var(--primary); }
.step p { color: var(--muted); font-size: 15px; }
.step-time { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--primary); }

/* For whom */
.audiences { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.aud { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 10px; background: var(--primary-soft); min-width: 0; }
.aud-for { font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.aud h3 { font-size: 21px; color: var(--primary); }
.aud p { color: var(--text); }

/* FAQ */
.faq-list { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.faq-item summary { list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 60px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 22px; top: 18px; font-family: var(--font-num); font-size: 20px; color: var(--accent); }
.faq-item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item .ans { position: relative; padding: 0 24px 22px 60px; color: var(--muted); }
.faq-item .ans::before { content: "A"; position: absolute; left: 22px; top: -2px; font-family: var(--font-num); font-weight: 700; font-size: 20px; color: var(--primary); }

/* Contact */
.contact { background: var(--primary); color: var(--white); }
.contact .section-title { color: var(--white); }
.contact .section-lead { color: #E3EAF2; }
.assure { list-style: none; margin: 0 auto 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.assure li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.assure svg { width: 20px; height: 20px; color: var(--accent-light); flex-shrink: 0; }
.contact-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.contact .btn-note { color: #E3EAF2; }

/* Footer */
.footer { background: var(--primary); color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.15);
  /* モバイル固定CTAの高さ分をフッター側で確保（最下部まで紺にする） */
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
.footer .wrap { padding-block: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; text-align: center; }
.footer a { color: var(--white); }
/* タッチターゲット 44px 確保（負マージンで行の高さ・見た目は変えない） */
.footer a { display: inline-block; padding-block: 13px; margin-block: -13px; }
.footer a:hover { color: var(--accent-light); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
/* 2行以上になるため左寄せ。ブロックは fit-content で中央に置く */
.footer-notice {
  width: fit-content; max-width: 46em; margin: 0 auto; font-size: 12px; color: #E3EAF2; text-align: left;
  word-break: keep-all; overflow-wrap: anywhere;
}
.nowrap { white-space: nowrap; }

/* Mobile fixed CTA (< 768px) */
.mobile-cta {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.96); box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  transition: transform .25s ease, visibility 0s;
}
.mobile-cta .btn-main { width: 100%; max-width: none; min-height: 52px; }
/* 非表示中はフォーカス対象から外す（visibility は transform 完了後に切り替え） */
.mobile-cta.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }

/* Small phones */
@media (max-width: 400px) {
  .logo-main { font-size: 17px; }
  .hero .wrap { padding-block: 56px 64px; }
}

/* Tablet (>= 768px) */
@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .footer { padding-bottom: 0; }
  .section { padding-block: 80px; }
  .section-title { margin-bottom: 48px; }
  .btn-main { width: auto; max-width: none; padding-inline: 40px; font-size: 18px; }
  .problem-list, .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cta { display: none; }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .hamburger { display: none; }
  .nav {
    position: static; width: auto; z-index: auto; background: transparent;
    flex-direction: row; align-items: center; gap: 28px;
    padding: 0; box-shadow: none; transform: none; visibility: visible; transition: none; overflow: visible;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 28px; }
  .nav-list li { border-bottom: 0; }
  .nav-list a { display: inline; padding: 0; font-size: 14px; }
  .btn-header { margin-top: 0; min-height: 40px; border-radius: 5px; background: var(--accent-light); color: var(--text); font-size: 14px; }
  .btn-header:hover { background: var(--accent); color: var(--white); }
  .nav-overlay { display: none; }
  .reasons, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
