:root {
  --navy: #0b2447;
  --ink: #233951;
  --muted: #4b6078;
  --line: #cfdae6;
  --pale: #f3f7fb;
  --white: #fff;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  scroll-padding-top: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid #527eac;
  outline-offset: 4px;
}

.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 1rem; z-index: 1; }
.skip:focus { top: 1rem; background: var(--white); padding: .5rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 1.5rem; }
.header-inner { min-height: 92px; }
.brand {
  display: grid;
  place-items: center;
  width: 110px;
  height: 78px;
  flex: 0 0 auto;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}
.brand img { display: none; width: 100%; height: auto; }
.brand.has-logo img { display: block; }
.brand.has-logo .brand-text { display: none; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); margin-left: auto; }
nav a { color: var(--navy); font-size: .9375rem; font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.2rem;
  border: 1px solid var(--navy);
  border-radius: 4px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.primary { background: var(--navy); color: var(--white); }
.primary:hover { background: #244568; }
.outline { background: transparent; color: var(--navy); }
.outline:hover { background: var(--pale); }

.hero { position: relative; overflow: hidden; background: var(--navy); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 36, 71, .9) 25%, rgba(11, 36, 71, .55) 60%, rgba(11, 36, 71, .3)); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 42rem);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 9vw, 8.5rem);
}
.hero-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: #cfe0f2; }
.hero .lead { color: #e3edf7; }
.hero .primary { background: var(--white); color: var(--navy); }
.hero .primary:hover { background: #eaf1f8; }
.eyebrow { color: var(--muted); font-weight: 700; font-size: .9375rem; letter-spacing: .06em; }
h1, h2, h3 { color: var(--navy); line-height: 1.4; }
h1 { margin-top: 1.25rem; font-size: clamp(2rem, 4.4vw, 3.8rem); letter-spacing: .015em; }
h1 span { display: block; }
.lead { max-width: 28em; margin-top: 1.5rem; color: var(--muted); }
.hero .button { margin-top: 2rem; }


.section { padding-block: clamp(3.25rem, 7.5vw, 6.5rem); }
.tinted { background: var(--pale); }
.dark { color: var(--white); background: var(--navy); }
.dark h2, .dark h3 { color: var(--white); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: 1.15rem; }
h3 + p { margin-top: .5rem; }
.section-heading > p { margin-top: .65rem; color: var(--muted); }
.dark .section-heading > p { color: #d8e4f1; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: .65rem; }
.hero-copy .eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: #527eac; }
.ruled { border-top: 1px solid var(--line); }
.ruled > * { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.problems { padding: 0; list-style: none; }
.problems li { display: flex; align-items: baseline; gap: .85rem; }
.problems li::before { content: ""; width: .45rem; height: .45rem; border: 1px solid var(--navy); flex: 0 0 auto; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.cards article {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.service-icon { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--navy); }
.service-example {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .9375rem;
  color: var(--muted);
}
.service-example strong { margin-right: .35rem; color: var(--navy); }
.values article { border-top: 1px solid #48617c; padding-block: 1.05rem; }
.values p { color: #d8e4f1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; padding: 0; margin-top: 1.75rem; counter-reset: step; list-style: none; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: .6rem; color: var(--muted); font-weight: 700; }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; }
#pricing .price-list { padding: 0 clamp(1rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.price-list div:last-child { border-bottom: 0; }
.price-list dt { font-weight: 700; }
.price-note { flex-basis: 100%; color: var(--muted); font-size: .9375rem; }
.price-list strong { font-size: 1.6rem; color: var(--navy); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: 1rem; color: var(--navy); font-weight: 700; }
.faq p { padding-bottom: 1rem; }
#contact .wrap { align-items: start; }
.contact-guide { margin-top: .65rem; color: var(--muted); }
#contact h2 + p { margin-top: .85rem; }
#contact .primary { margin-top: 1.2rem; }
.contact-meta { margin-top: .75rem; color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.form-panel { background: var(--white); padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 10px; }
.form-panel summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.form-panel p { font-size: .9375rem; }
fieldset { display: grid; gap: .9rem; min-width: 0; padding: 0; margin: 1rem 0 0; border: 0; }
label { display: grid; gap: .25rem; font-size: .9375rem; font-weight: 650; }
input, textarea { width: 100%; min-height: 42px; padding: .45rem; border: 1px solid #8a9cb0; border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; }
textarea { resize: vertical; }
fieldset:disabled .button { justify-self: start; color: var(--muted); border-color: #8a9cb0; background: transparent; }
.footer-inner { min-height: 110px; flex-wrap: wrap; }

.footer-inner small { margin-left: auto; color: #d8e4f1; }

@media (max-width: 760px) {
  .wrap { width: min(1120px, calc(100% - 2rem)); }
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-block: .25rem .7rem; }
  nav { order: 1; width: 100%; margin: 0; justify-content: center; border-top: 1px solid var(--line); padding-top: .55rem; }
  nav a { padding: .35rem .1rem; font-size: .875rem; }
  nav { gap: clamp(.35rem, 2.8vw, 1rem); flex-wrap: wrap; }
  .hero-inner, .split { grid-template-columns: 1fr; }

  .desktop { display: none; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .footer-inner { gap: .5rem 1rem; padding-bottom: 1.25rem; }
  .footer-inner small { width: 100%; margin-left: 0; }
}

.chat-launch[hidden] { display: none; }
.chat-launch {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 2;
  border-radius: 2rem;
  box-shadow: 0 4px 16px #0b244733;
  cursor: pointer;
}
body:has(.chat-launch:not([hidden])) > footer { padding-bottom: 4rem; }
.site-chat {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  margin: 0;
  padding: 0;
  width: min(400px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 0 12px 42px #0b244740;
}
.site-chat[open] { display: flex; flex-direction: column; }
.site-chat::backdrop { background: #0b244733; }
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1rem;
  background: var(--navy);
}
.chat-header h2 { color: var(--white); font-size: 1rem; }
.chat-close {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}
.chat-log {
  display: grid;
  justify-items: start;
  gap: .75rem;
  min-height: 0;
  height: 260px;
  align-content: start;
  overflow-y: auto;
  padding: 1rem;
}
.chat-log p { max-width: 95%; padding: .65rem .8rem; border-radius: 8px; overflow-wrap: anywhere; }
.chat-reply { background: var(--pale); }
.chat-reply a { display: block; margin-top: .35rem; color: var(--navy); font-weight: 700; }
.chat-question { justify-self: end; background: var(--navy); color: var(--white); }
.chat-controls { padding: .85rem 1rem 1rem; border-top: 1px solid var(--line); }
.chat-topics { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .65rem; }
.chat-topics button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--white);
  color: var(--navy);
  padding: .25rem .65rem;
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.chat-topics button:hover { background: var(--pale); }
.chat-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin-top: .25rem; }
.chat-entry .button { cursor: pointer; }
.chat-hint { margin-top: .35rem; font-size: .8125rem; color: var(--muted); }
