:root {
  --ink: #302a25;
  --muted: #716b64;
  --paper: #fbf3e7;
  --paper-deep: #f1e7d7;
  --white: #fffdfa;
  --coral: #ec765f;
  --coral-deep: #b84e3f;
  --apricot: #f3ad70;
  --sage: #a9b89d;
  --sage-deep: #596f55;
  --line: rgb(48 42 37 / 0.14);
  --shadow: 0 24px 65px rgb(83 60 44 / 0.12);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 3%, rgb(236 118 95 / 0.15), transparent 25rem),
    radial-gradient(circle at 94% 22%, rgb(243 173 112 / 0.18), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

.shell {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  background: var(--coral);
  color: white;
  font-size: 19px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--coral-deep);
}

.nav-pill {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 250 / 0.7);
}

.hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 64px;
  padding-block: 80px 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.07em;
  line-height: 1.1;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(48px, 7vw, 82px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 56px);
}

h1 em,
h2 em {
  color: var(--coral);
  font-style: normal;
}

.lede {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 14px 30px rgb(48 42 37 / 0.18);
  transform: translateY(-2px);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgb(255 253 250 / 0.72);
  color: var(--ink);
  box-shadow: none;
}

.button-small {
  min-height: 42px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(255 253 250 / 0.66);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hero-art {
  position: relative;
  min-height: 510px;
}

.organic-shape {
  position: absolute;
  inset: 20px 0 0 7%;
  border-radius: 49% 51% 42% 58% / 46% 39% 61% 54%;
  background: linear-gradient(145deg, #f6c7ae, #f3aa74 52%, #b8c2a9);
  box-shadow: var(--shadow);
  transform: rotate(-7deg);
}

.thread {
  position: absolute;
  top: 26px;
  right: -20px;
  width: 76%;
  height: 110px;
  border-top: 2px solid var(--coral-deep);
  border-radius: 50%;
  transform: rotate(12deg);
}

.phone {
  position: absolute;
  top: 52px;
  left: 30%;
  width: 225px;
  height: 448px;
  padding: 9px;
  border-radius: 38px;
  background: #272420;
  box-shadow: 22px 28px 50px rgb(69 53 43 / 0.28);
  transform: rotate(6deg);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(165deg, #ede6db 0 18%, #bd9275 18% 50%, #637b70 78%, #314b43);
}

.phone-screen::before {
  position: absolute;
  top: 82px;
  left: 28px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgb(255 245 208 / 0.3);
  content: "";
}

.phone-island {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 20px;
  border-radius: 999px;
  background: #191817;
  transform: translateX(-50%);
}

.screen-label {
  position: absolute;
  bottom: 32px;
  left: 23px;
  z-index: 2;
  display: grid;
  gap: 5px;
  color: white;
  font-size: 12px;
  font-weight: 750;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.34);
}

.screen-label small {
  font-size: 10px;
  font-weight: 600;
}

.floating-card {
  position: absolute;
  z-index: 3;
  min-width: 172px;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 18px;
  background: rgb(255 253 250 / 0.86);
  box-shadow: 0 16px 38px rgb(67 49 39 / 0.15);
  backdrop-filter: blur(14px);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  font-size: 12px;
}

.floating-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.card-top {
  top: 84px;
  right: 0;
}

.card-bottom {
  right: 20px;
  bottom: 45px;
}

.section {
  padding-block: 100px;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

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

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 253 250 / 0.7);
}

.feature-card {
  min-height: 245px;
}

.card-number {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 44px;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  background: var(--paper-deep);
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 800;
}

.feature-card:nth-child(2) .card-number {
  background: #dfe6d7;
  color: var(--sage-deep);
}

.feature-card:nth-child(3) .card-number {
  background: #f8dfca;
}

.card h3 {
  margin-bottom: 11px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.card p,
.section-copy,
.policy-block p,
.policy-block li,
.faq-item p,
.notice p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.workflow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

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

.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  border-top: 1px solid var(--line);
}

.steps span {
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 800;
}

.steps strong,
.steps small {
  display: block;
}

.steps strong {
  margin-bottom: 6px;
}

.steps small {
  color: var(--muted);
  font-size: 13px;
}

.privacy-callout {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  max-width: 920px;
  margin-inline: auto;
  padding: 56px 62px;
  border-radius: 30px;
  background: #dfe7d8;
}

.privacy-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 19px 19px 19px 5px;
  background: var(--white);
  color: var(--sage-deep);
  font-size: 25px;
}

.text-link {
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.subpage-hero {
  padding-block: 92px 72px;
}

.subpage-hero h1 {
  max-width: 760px;
}

.policy-meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.content-narrow {
  width: min(780px, calc(100% - 48px));
  margin-inline: auto;
}

.policy-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.policy-list {
  gap: 42px;
}

.policy-block h2,
.faq-item h2 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.045em;
}

.faq-item {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(255 253 250 / 0.72);
}

.faq-item p {
  margin-bottom: 0;
}

.memo-panel {
  margin-top: 64px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgb(255 253 250 / 0.78);
  box-shadow: var(--shadow);
}

.memo-intro {
  margin-bottom: 30px;
}

.memo-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.memo-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.privacy-chip {
  display: inline-flex;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e3eadc;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 800;
}

.memo-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.field small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d8d0c5;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.field input,
.field select {
  min-height: 52px;
  padding: 0 15px;
}

.field textarea {
  min-height: 170px;
  padding: 14px 15px;
  line-height: 1.65;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--coral-deep);
  box-shadow: 0 0 0 4px rgb(236 118 95 / 0.13);
}

.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.memo-result {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: #f0eee6;
}

.memo-result h3 {
  margin-bottom: 12px;
}

.memo-output {
  max-height: 360px;
  overflow: auto;
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 700;
}

.notice {
  margin-top: 36px;
  padding: 22px 24px;
  border-left: 3px solid var(--coral);
  background: #f9e7df;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.issue-panel {
  margin-top: 38px;
  padding: 42px;
  border-radius: 26px;
  background: var(--ink);
  color: white;
}

.issue-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 48px);
}

.issue-panel > p:not(.eyebrow, .issue-link-status),
.issue-panel li {
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
  line-height: 1.85;
}

.issue-panel ul {
  margin: 18px 0 26px;
  padding-left: 1.25em;
}

.issue-panel .button {
  background: var(--coral);
}

.issue-link-status {
  margin: 13px 0 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 11px;
}

.notice p {
  margin-bottom: 0;
  color: #765e55;
}

.site-footer {
  margin-top: 80px;
  padding-block: 34px 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
}

.footer-copy,
.footer-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.footer-meta {
  text-align: right;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgb(184 78 63 / 0.35);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .shell,
  .content-narrow {
    width: min(100% - 36px, 640px);
  }

  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    gap: 11px;
    font-size: 11px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .nav-pill {
    padding: 8px 10px;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-block: 70px 60px;
  }

  .hero-art {
    max-width: 520px;
    min-height: 490px;
    margin: 20px auto 0;
    transform: scale(0.9);
    transform-origin: center top;
  }

  .feature-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow {
    gap: 42px;
  }

  .feature-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 26px;
  }

  .privacy-callout {
    grid-template-columns: 1fr;
    padding: 34px 28px;
  }

  .memo-panel {
    padding: 32px 24px;
  }

  .issue-panel {
    padding: 32px 24px;
  }

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

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 44px;
  }

  .hero-art {
    left: 50%;
    width: 440px;
    margin-left: -220px;
    transform: scale(0.78);
  }

  .section {
    padding-block: 74px;
  }

  .floating-card {
    min-width: 155px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
