:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f5f5f;
  --line: #d7d7d7;
  --soft: #f5f5f5;
  --paper: #ffffff;
  --pink: #f2d6d9;
  --green: #d8e7df;
  --max-width: 72rem;
  --radius: 1.25rem;
  --shadow: 0 0.75rem 2rem rgb(0 0 0 / 7%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select,
summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 0.5rem;
  transform: translateY(-180%);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}

.header-inner,
.footer-inner,
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #363636;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--soft);
}

.site-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink);
}

main {
  min-height: 60vh;
}

.hero {
  padding-block: clamp(3.5rem, 10vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 4.75rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 5vw, 2.45rem);
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.lead {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: #3f3f3f;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
}

.app-icon {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 22%;
  background: var(--paper);
}

.app-icon--hero {
  width: min(62vw, 17rem);
  justify-self: center;
  box-shadow: var(--shadow);
}

.app-icon--card {
  width: 5.5rem;
  height: 5.5rem;
  flex: 0 0 auto;
  margin-bottom: 1.25rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 45rem;
  margin-bottom: 2rem;
}

.section-heading p {
  margin: -0.5rem 0 0;
  color: var(--muted);
}

.cards,
.feature-grid,
.policy-grid {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.4rem, 5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card--pink {
  border-top: 0.55rem solid var(--pink);
}

.card--green {
  border-top: 0.55rem solid var(--green);
}

.card p {
  margin: 0 0 1.25rem;
  color: #474747;
}

.card .button {
  align-self: flex-start;
  margin-top: auto;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: var(--ink);
  background: var(--paper);
}

.button--secondary {
  color: var(--ink);
  background: var(--paper);
}

.button--secondary:hover {
  color: var(--paper);
  background: var(--ink);
}

.badge {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid #999;
  border-radius: 999px;
  color: #444;
  background: var(--soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.feature p,
.policy-item p {
  margin: 0;
  color: #494949;
}

.steps {
  margin: 0;
  padding-left: 1.5rem;
}

.steps li {
  padding: 0.45rem 0 0.45rem 0.4rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  min-height: 56px;
  padding: 1rem 2.5rem 1rem 0;
  font-weight: 800;
}

details > div {
  max-width: 48rem;
  padding: 0 0 1.5rem;
  color: #424242;
}

details p {
  margin: 0.4rem 0;
}

.notice {
  padding: 1.25rem;
  border-left: 0.4rem solid var(--ink);
  background: var(--soft);
}

.notice p {
  margin: 0;
}

.policy-item {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-form {
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.field {
  margin-bottom: 1.25rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #777;
  border-radius: 0.55rem;
  background: var(--paper);
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 700;
}

.site-footer {
  color: #ededed;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem;
}

.footer-brand {
  margin: 0;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.copyright {
  margin: 0;
  color: #bdbdbd;
  font-size: 0.88rem;
}

.noscript-note {
  margin-top: 1rem;
}

@media (min-width: 44rem) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav ul {
    justify-content: flex-end;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  }

  .cards,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1.25fr);
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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