:root {
  --ink: #102c34;
  --muted: #557078;
  --paper: #f7f8fa;
  --cream: #fff8e8;
  --white: #ffffff;
  --yellow: #ffbd1a;
  --yellow-soft: #fff0b7;
  --mint: #167d74;
  --mint-soft: #d8eee8;
  --sky: #beddf2;
  --coral: #f7ddde;
  --line: rgba(16, 44, 52, 0.15);
  --shadow: 0 22px 64px rgba(16, 44, 52, 0.12);
  color-scheme: light;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 500;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 11px 17px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: relative;
  z-index: 20;
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 21px;
  font-weight: 950;
}
.brand-name { display: grid; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.05; }
.brand-name b { display: inline; }
.brand-name small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.topbar-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 94px);
  border: 1px solid var(--line);
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 14%, rgba(190, 221, 242, 0.85), transparent 35%),
    radial-gradient(circle at 4% 93%, rgba(255, 240, 183, 0.78), transparent 29%),
    var(--cream);
  padding: clamp(42px, 6vw, 78px);
}
.hero::before { content: "話してみよう"; position: absolute; right: -10px; bottom: -32px; color: rgba(16, 44, 52, 0.045); font-size: clamp(80px, 14vw, 180px); font-weight: 950; white-space: nowrap; pointer-events: none; }
.hero-copy, .call-preview { position: relative; z-index: 1; }
.eyebrow, .section-label { margin: 0; color: var(--mint); font-size: 12px; font-weight: 950; letter-spacing: 0.13em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255, 189, 26, 0.19); }
.hero h1 { margin: 20px 0 0; font-size: clamp(48px, 6.3vw, 84px); line-height: 0.98; letter-spacing: -0.07em; text-wrap: balance; }
.hero h1 strong { color: var(--mint); font-weight: 950; }
.hero-lead { max-width: 600px; margin: 25px 0 0; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); font-weight: 650; line-height: 1.72; text-wrap: pretty; }
.hero-points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points span { border: 1px solid rgba(22, 125, 116, 0.25); border-radius: 999px; background: rgba(255, 255, 255, 0.66); padding: 9px 13px; color: var(--mint); font-size: 12px; font-weight: 850; }

.call-preview { min-height: 450px; display: grid; place-items: center; }
.preview-orbit { position: absolute; border: 1px solid rgba(22, 125, 116, 0.18); border-radius: 50%; }
.preview-orbit-one { width: 430px; height: 430px; }
.preview-orbit-two { width: 350px; height: 350px; border-style: dashed; }
.phone-card {
  position: relative;
  z-index: 2;
  width: min(330px, 88%);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(16, 44, 52, 0.18);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 20px 24px 24px;
  backdrop-filter: blur(14px);
}
.phone-head { width: 100%; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.07em; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #35ba75; box-shadow: 0 0 0 4px rgba(53, 186, 117, 0.12); }
.phone-card img { width: 148px; height: 148px; margin-top: 30px; border: 7px solid var(--mint-soft); border-radius: 50%; object-fit: cover; }
.phone-card p { margin: 19px 0 0; color: var(--mint); font-size: 12px; font-weight: 900; }
.phone-card strong { margin-top: 7px; text-align: center; font-size: 17px; line-height: 1.4; }
.wave { height: 36px; margin-top: 18px; display: flex; align-items: center; gap: 5px; }
.wave i { width: 4px; border-radius: 99px; background: var(--mint); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(1), .wave i:nth-child(7) { height: 9px; }
.wave i:nth-child(2), .wave i:nth-child(6) { height: 17px; animation-delay: -0.2s; }
.wave i:nth-child(3), .wave i:nth-child(5) { height: 27px; animation-delay: -0.4s; }
.wave i:nth-child(4) { height: 35px; animation-delay: -0.6s; }
.call-actions { width: 100%; margin-top: auto; display: grid; grid-template-columns: 1fr 62px 1fr; align-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: 10px; font-weight: 800; }
.call-actions b { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 11px; }
.preview-caption { position: absolute; z-index: 3; right: 22px; bottom: 5px; margin: 0; border-radius: 999px; background: rgba(16, 44, 52, 0.78); color: #fff; padding: 6px 9px; font-size: 9px; font-weight: 800; }

.capture-zone {
  width: min(1060px, calc(100% - 36px));
  margin: -26px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(470px, 1.2fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
  padding: clamp(30px, 5vw, 54px);
  box-shadow: 0 24px 70px rgba(16, 44, 52, 0.2);
}
.capture-intro .section-label { color: var(--yellow); }
.capture-intro h2 { margin: 14px 0 0; font-size: clamp(29px, 3.5vw, 46px); line-height: 1.16; letter-spacing: -0.055em; }
.capture-intro ol { margin: 27px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); list-style: none; }
.capture-intro li { min-height: 54px; display: grid; grid-template-columns: 42px 1fr; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.capture-intro li span { color: var(--yellow); font: 800 11px/1 Consolas, monospace; }
.capture-intro li b { font-size: 14px; }

.lead-form { min-width: 0; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 24px; background: #fff; color: var(--ink); padding: clamp(22px, 4vw, 34px); }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.form-heading span { border-radius: 999px; background: var(--yellow-soft); padding: 8px 12px; color: var(--ink); font-size: 12px; font-weight: 950; }
.form-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 8px; margin-top: 14px; }
.field > span:first-child { font-size: 13px; font-weight: 900; }
.field em { color: var(--mint); font-size: 10px; font-style: normal; }
.field input, .phone-field { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 13px; background: #f9fbfb; color: var(--ink); }
.field > input { padding: 0 15px; }
.field input { outline: none; }
.field input:focus, .phone-field:focus-within { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(22, 125, 116, 0.11); }
.phone-field { display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 0 15px; }
.phone-field b { padding-right: 2px; font-size: 16px; }
.phone-field input { min-width: 0; min-height: 48px; border: 0; background: transparent; padding: 0; font-size: 16px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent-box { margin-top: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfc; padding: 13px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row + .check-row, .check-row.optional { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.check-row input { width: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--mint); }
.check-row span { display: grid; gap: 3px; }
.check-row b { font-size: 12px; line-height: 1.4; }
.check-row small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.consent-box details { margin: 9px 0 0 29px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.consent-box summary { color: var(--mint); cursor: pointer; font-weight: 850; }
.consent-box dl { margin: 9px 0 0; }
.consent-box dl div { display: grid; grid-template-columns: 62px 1fr; gap: 7px; margin-top: 5px; }
.consent-box dt { font-weight: 900; }
.consent-box dd { margin: 0; }
.consent-box details p { margin: 8px 0 0; }
.form-error { min-height: 19px; margin: 10px 0 0; color: #b52626; font-size: 12px; font-weight: 800; }
.submit-button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-radius: 15px; background: var(--yellow); color: var(--ink); padding: 0 18px; font-weight: 950; cursor: pointer; box-shadow: 0 10px 28px rgba(255, 189, 26, 0.25); }
.submit-button i { font-size: 22px; font-style: normal; }
.submit-button:disabled { cursor: wait; opacity: 0.62; }
.form-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 10px; }

.checkpoints { width: min(1060px, calc(100% - 36px)); margin: clamp(80px, 10vw, 130px) auto; }
.section-heading { max-width: 680px; }
.section-heading h2 { margin: 13px 0 0; font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.06em; }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--muted); line-height: 1.7; }
.checkpoint-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.checkpoint-grid article { min-height: 230px; border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.checkpoint-grid article:nth-child(1) { background: var(--mint-soft); }
.checkpoint-grid article:nth-child(2) { background: var(--sky); }
.checkpoint-grid article:nth-child(3) { background: var(--yellow-soft); }
.checkpoint-grid span { color: var(--mint); font: 850 11px/1 Consolas, monospace; }
.checkpoint-grid h3 { margin: 58px 0 0; font-size: 22px; letter-spacing: -0.035em; }
.checkpoint-grid p { margin: 10px 0 0; color: #456168; font-size: 14px; line-height: 1.65; }

.service-flow { width: min(1060px, calc(100% - 36px)); margin: 0 auto 100px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; border-radius: 30px; background: var(--cream); padding: clamp(28px, 5vw, 56px); }
.service-flow h2 { margin: 13px 0 0; font-size: clamp(31px, 4vw, 50px); line-height: 1.08; letter-spacing: -0.055em; }
.flow-list { border-top: 1px solid var(--line); }
.flow-list p { min-height: 72px; margin: 0; display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.55; }
.flow-list span { color: var(--ink); font-weight: 900; }

footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); background: #fff; padding: 30px max(18px, calc((100vw - 1060px) / 2)); }
footer p { color: var(--muted); font-size: 11px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }

.sticky-cta { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: none; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.sticky-cta button { width: min(440px, 100%); min-height: 54px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(16, 44, 52, 0.2); border-radius: 17px; background: var(--yellow); color: var(--ink); padding: 0 18px; box-shadow: 0 14px 34px rgba(16, 44, 52, 0.28); font-weight: 950; cursor: pointer; pointer-events: auto; }
.sticky-cta.is-hidden { opacity: 0; transform: translateY(18px); visibility: hidden; }

.survey-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; background: transparent; padding: 0; color: var(--ink); }
.survey-dialog::backdrop { background: rgba(8, 25, 29, 0.72); backdrop-filter: blur(7px); }
.survey-card { position: absolute; left: 50%; bottom: 0; width: min(620px, 100%); max-height: min(90dvh, 820px); overflow-y: auto; transform: translateX(-50%); border: 1px solid rgba(255, 189, 26, 0.75); border-bottom: 0; border-radius: 28px 28px 0 0; background: var(--ink); color: #fff; padding: 12px clamp(20px, 5vw, 36px) calc(28px + env(safe-area-inset-bottom)); box-shadow: 0 -28px 80px rgba(0, 0, 0, 0.45); animation: sheet-up 0.25s ease-out both; }
.survey-handle { width: 42px; height: 4px; margin: 0 auto 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.27); }
.survey-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.survey-head p { margin: 0; color: var(--yellow); font-size: 12px; font-weight: 950; letter-spacing: 0.1em; }
.survey-head button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #b7c7ca; font-size: 12px; font-weight: 850; cursor: pointer; }
.survey-progress { height: 4px; margin: 8px 0 22px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.survey-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--yellow); transition: width 0.22s ease; }
.lead-saved { margin: 0; color: #8fe1d4; font-size: 12px; font-weight: 900; }
.survey-card h2 { margin: 10px 0 0; white-space: pre-line; font-size: clamp(27px, 6vw, 38px); line-height: 1.18; letter-spacing: -0.05em; }
.survey-hint { margin: 10px 0 0; color: #b7c7ca; font-size: 13px; line-height: 1.6; }
.survey-options { margin-top: 22px; display: grid; gap: 9px; }
.survey-options button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 15px; background: rgba(255, 255, 255, 0.07); color: #fff; padding: 12px 16px; text-align: left; font-size: 14px; font-weight: 800; cursor: pointer; }
.survey-options button:hover, .survey-options button:focus-visible { border-color: var(--yellow); background: rgba(255, 189, 26, 0.11); }
.survey-options button:disabled { cursor: wait; opacity: 0.55; }
.survey-options i { color: var(--yellow); font-size: 18px; font-style: normal; }
.survey-status { min-height: 20px; margin: 12px 0 0; color: #b7c7ca; text-align: center; font-size: 11px; }
.survey-status.is-error { color: #ffaaa5; }
.survey-complete { min-height: 320px; display: grid; place-content: center; justify-items: center; text-align: center; }
.survey-complete span { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 27px; font-weight: 950; }
.survey-complete h2 { margin-top: 22px; }
.survey-complete p { max-width: 360px; color: #b7c7ca; line-height: 1.65; }
.survey-complete button { min-height: 48px; margin-top: 12px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); padding: 10px 22px; font-weight: 900; cursor: pointer; }

@keyframes wave { 0%, 100% { transform: scaleY(0.55); opacity: 0.58; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes sheet-up { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

@media (min-width: 720px) {
  .survey-dialog { place-items: center; padding: 24px; }
  .survey-dialog[open] { display: grid; }
  .survey-card { position: relative; left: auto; bottom: auto; transform: none; border-bottom: 1px solid rgba(255, 189, 26, 0.75); border-radius: 28px; animation-name: modal-in; }
  @keyframes modal-in { from { transform: translateY(14px) scale(0.985); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .call-preview { min-height: 400px; }
  .capture-zone, .service-flow { grid-template-columns: 1fr; }
  .checkpoint-grid { grid-template-columns: 1fr; }
  .checkpoint-grid article { min-height: 190px; }
  .checkpoint-grid h3 { margin-top: 34px; }
}

@media (max-width: 620px) {
  body { padding-bottom: 82px; }
  .topbar { width: calc(100% - 28px); min-height: 64px; }
  .topbar-link { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { width: calc(100% - 20px); min-height: 0; border-radius: 26px; padding: 34px 20px 24px; }
  .hero h1 { margin-top: 16px; font-size: clamp(44px, 13vw, 61px); }
  .hero-lead { margin-top: 19px; font-size: 15px; line-height: 1.62; }
  .hero-points { margin-top: 19px; }
  .call-preview { min-height: 300px; }
  .preview-orbit-one { width: 300px; height: 300px; }
  .preview-orbit-two { width: 250px; height: 250px; }
  .phone-card { width: 246px; min-height: 284px; border-radius: 25px; padding: 15px 17px; }
  .phone-card img { width: 91px; height: 91px; margin-top: 17px; border-width: 5px; }
  .phone-card p { margin-top: 11px; font-size: 10px; }
  .phone-card strong { margin-top: 4px; font-size: 13px; }
  .wave { height: 25px; margin-top: 8px; }
  .wave i:nth-child(3), .wave i:nth-child(5) { height: 20px; }
  .wave i:nth-child(4) { height: 26px; }
  .call-actions { grid-template-columns: 1fr 46px 1fr; }
  .call-actions b { width: 46px; height: 46px; }
  .preview-caption { right: 9px; bottom: 3px; }
  .capture-zone { width: calc(100% - 20px); margin-top: 10px; border-radius: 25px; padding: 26px 14px 14px; gap: 25px; }
  .capture-intro { padding: 0 7px; }
  .capture-intro h2 { font-size: 30px; }
  .lead-form { border-radius: 20px; padding: 20px 16px; }
  .form-heading { display: grid; }
  .form-heading span { width: fit-content; }
  .field input, .phone-field { min-height: 54px; font-size: 16px; }
  .consent-box { padding: 12px 10px; }
  .check-row b { font-size: 11px; }
  .consent-box details { margin-left: 29px; }
  .checkpoints { width: calc(100% - 28px); margin-block: 84px; }
  .service-flow { width: calc(100% - 20px); margin-bottom: 72px; border-radius: 25px; padding: 30px 20px; }
  .flow-list p { grid-template-columns: 90px 1fr; font-size: 13px; }
  footer { min-height: 128px; align-items: flex-start; flex-direction: column; padding-bottom: 40px; }
  .sticky-cta { display: flex; }
  .survey-card { border-radius: 24px 24px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
