:root {
  --ink: #101827;
  --muted: #526173;
  --teal: #087f86;
  --teal-dark: #00545a;
  --teal-soft: #e9f7f5;
  --orange: #ef8f20;
  --orange-soft: #fff2df;
  --surface: #ffffff;
  --page: #f5f8f7;
  --line: #dce5e3;
  --danger: #b42318;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

img {
  display: block;
  max-width: 100%;
}

button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  min-height: min(720px, calc(100svh - 68px));
  position: relative;
  overflow: hidden;
  background-color: #f3c8ae;
  background-image: url("app-icon.png");
  background-repeat: no-repeat;
  background-position: calc(50% + 390px) 50%;
  background-size: min(530px, 48vw);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(238, 248, 246, 0.72);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max));
  min-height: inherit;
  margin: 0 auto;
  padding: 76px 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 15px;
  font-weight: 800;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: #334357;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.8;
  font-weight: 650;
}

.search-demo {
  width: min(100%, 620px);
  margin-top: 34px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border: 2px solid #59c8bf;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 84, 90, 0.12);
}

.search-mark {
  width: 22px;
  height: 22px;
  border: 3px solid #708198;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 3px;
  right: -7px;
  bottom: -4px;
  background: #708198;
  transform: rotate(45deg);
}

.search-demo strong {
  font-size: 18px;
}

.search-demo span {
  margin-left: auto;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--teal);
}

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

.button-disabled {
  color: #6b7280;
  background: #e7eceb;
  cursor: default;
}

.section {
  padding: 72px 0;
}

.section-white { background: var(--surface); }
.section-orange { background: var(--orange-soft); }

.section-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.section h2,
.document h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 900;
}

.section-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
}

.feature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  min-height: 190px;
  padding: 24px;
  background: #f5f8f7;
  border-radius: 8px;
}

.feature-number {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  font-weight: 550;
}

.privacy-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.privacy-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-points li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(168, 66, 0, 0.16);
  font-weight: 750;
}

.cta {
  text-align: center;
}

.cta .hero-actions { justify-content: center; }

.site-footer {
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  color: #d7e2e1;
  background: #153238;
}

.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a { text-decoration: none; }

.copyright {
  margin: 8px 0 0;
  color: #9db2b0;
  font-size: 12px;
}

.document {
  width: min(calc(100% - 32px), 820px);
  margin: 0 auto;
  padding: 58px 0 80px;
}

.document-lead {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 600;
}

.effective-date {
  margin: 10px 0 0;
  color: #718096;
  font-size: 13px;
  font-weight: 700;
}

.document-body {
  margin-top: 36px;
  padding: 34px;
  background: var(--surface);
  border-radius: 8px;
}

.document-body section + section { margin-top: 34px; }

.document-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.document-body p,
.document-body li {
  color: #435166;
  font-size: 15px;
  line-height: 1.9;
}

.document-body p { margin: 8px 0 0; }
.document-body ul, .document-body ol { margin: 8px 0 0; padding-left: 24px; }
.document-body a { color: var(--teal-dark); font-weight: 750; }

.support-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-form {
  display: grid;
  gap: 20px;
}

.support-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd7d5;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
}

.support-form textarea {
  min-height: 150px;
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(8, 127, 134, 0.14);
}

.support-form .button { width: 100%; }
.form-note { margin: -6px 0 0 !important; font-size: 12px !important; }
.form-notice { display: none; margin: 0 !important; padding: 11px 13px; border-radius: 8px; font-weight: 750; }
.form-notice.is-visible { display: block; }
.form-notice.is-success { color: var(--teal-dark); background: var(--teal-soft); }
.form-notice.is-error { color: var(--danger); background: #fff0ef; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal-dark);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

@media (max-width: 760px) {
  .header-nav a:not(.keep-mobile) { display: none; }
  .hero {
    min-height: auto;
    background-position: calc(50% + 130px) 38px;
    background-size: 340px;
  }
  .hero::after { background: rgba(238, 248, 246, 0.82); }
  .hero-inner {
    min-height: 650px;
    padding: 72px 0 42px;
    justify-content: flex-end;
  }
  h1 { font-size: 50px; }
  .search-demo { align-items: flex-start; }
  .search-demo span { display: none; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; gap: 26px; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .document-body { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
