:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --soft: #f2f7f6;
  --ink: #20242a;
  --muted: #69717d;
  --line: #dfe5ea;
  --rose: #d94f76;
  --rose-dark: #b9365c;
  --teal: #217c75;
  --lavender: #efeafa;
  --shadow: 0 14px 34px rgba(30, 41, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pr-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.header-link {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 6vw, 54px);
  max-width: 760px;
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.button:focus-visible,
.header-link:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(33, 124, 117, 0.32);
  outline-offset: 3px;
}

.primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 79, 118, 0.22);
}

.primary:hover {
  background: var(--rose-dark);
}

.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.chat-visual {
  justify-self: center;
  width: min(100%, 360px);
}

.phone-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf5f7;
  box-shadow: var(--shadow);
  padding: 16px;
}

.chat-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #4b5d63;
  font-size: 12px;
  font-weight: 800;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  margin: 10px 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

.bubble.right {
  margin-left: auto;
  background: #dff6df;
}

.typing {
  display: flex;
  gap: 5px;
  width: fit-content;
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa7ad;
}

.section,
.final-cta {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.update-strip {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.update-strip p {
  margin: 0;
}

.update-strip p + p {
  margin-top: 4px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card .label {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.disabled-cta {
  background: #eef2f5;
  color: #78828d;
  border-color: var(--line);
  box-shadow: none;
  cursor: not-allowed;
}

.disabled-cta:hover {
  background: #eef2f5;
}

.cta-note {
  font-size: 11px;
  line-height: 1.55;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-list span,
.worry-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.soft {
  width: 100%;
  max-width: none;
  padding: 38px max(16px, calc((100% - 1080px) / 2));
  background: var(--soft);
}

.worry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 920px;
}

.note-text {
  max-width: 800px;
  margin: 18px 0 0;
  color: var(--muted);
}

.criteria {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.criteria p {
  margin: 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #f7f9fb;
  font-size: 13px;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.small-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.caution {
  padding: 24px;
  border: 1px solid #f2d4dc;
  border-radius: 8px;
  background: #fff8fa;
}

.caution p {
  margin: 12px 0 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 15px 16px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.final-cta {
  margin-top: 18px;
  margin-bottom: 30px;
  padding: 26px;
  border-radius: 8px;
  background: var(--lavender);
}

.final-cta p:not(.pr-label) {
  max-width: 780px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #171a20;
  color: #d8dde4;
}

.site-footer nav,
.footer-text {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 0 10px;
}

.site-footer a {
  color: #fff;
  font-size: 13px;
}

.footer-text {
  padding: 0 0 28px;
  color: #b8c0cb;
  font-size: 12px;
}

.footer-text p {
  margin: 8px 0;
}

.subpage {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.subpage h1 {
  font-size: clamp(28px, 6vw, 42px);
}

.subpage section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.subpage section:last-child {
  border-bottom: 0;
}

.subpage p,
.subpage li {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

@media (max-width: 820px) {
  .header-inner {
    width: min(100% - 24px, 1080px);
  }

  .hero {
    width: min(100% - 24px, 1080px);
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .final-cta {
    width: min(100% - 24px, 1080px);
  }

  .soft {
    padding-right: 12px;
    padding-left: 12px;
  }

  .final-cta {
    padding: 20px;
  }
}
