:root {
  color-scheme: light;
  --ivory: #fff6e8;
  --paper: #fffbf2;
  --paper-strong: #f7efdf;
  --coral: #ff8e7a;
  --coral-soft: #ffd8cf;
  --sage: #a8c5a1;
  --sage-soft: #ddebcf;
  --yellow: #ffd97a;
  --blue-soft: #d9e7f4;
  --ink: #4d3b2f;
  --muted: #6b584b;
  --action: #8a352c;
  --outline: #d8c5ae;
  --shadow: 0 18px 55px rgba(77, 59, 47, 0.12);
  --radius: 28px;
  font-family: "M PLUS 1p", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 217, 122, 0.35), transparent 28rem),
    radial-gradient(circle at 96% 18%, rgba(168, 197, 161, 0.28), transparent 26rem),
    var(--ivory);
  line-height: 1.75;
}

a {
  color: var(--action);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}

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

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

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.3rem;
}

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

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px 12px 12px 4px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: 660px;
  padding-block: 5rem 7rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.32rem 0.8rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.75);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

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

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.memo-board {
  position: relative;
  min-height: 410px;
}

.note {
  position: absolute;
  width: min(78%, 310px);
  padding: 1.35rem;
  border: 2px solid var(--ink);
  border-radius: 22px 22px 22px 7px;
  box-shadow: 8px 8px 0 rgba(77, 59, 47, 0.86);
}

.note p:last-child {
  margin-bottom: 0;
}

.note-one {
  top: 0;
  right: 0;
  z-index: 3;
  transform: rotate(3deg);
  background: var(--coral-soft);
}

.note-two {
  top: 135px;
  left: 0;
  z-index: 2;
  transform: rotate(-4deg);
  background: var(--sage-soft);
}

.note-three {
  right: 10%;
  bottom: 0;
  z-index: 1;
  transform: rotate(2deg);
  background: var(--blue-soft);
}

.note-label {
  margin-bottom: 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding-block: 5.5rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.policy-header h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-heading p,
.policy-lead,
.muted {
  color: var(--muted);
}

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

.card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: rgba(255, 251, 242, 0.9);
  box-shadow: var(--shadow);
}

.card-number {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 900;
}

.card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.english-panel,
.contact-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 36px;
  background: var(--ink);
  color: var(--paper);
}

.english-panel p,
.contact-panel p {
  color: #e8ddd0;
}

.english-panel .eyebrow,
.contact-panel .eyebrow {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f6e9da;
}

.contact-panel {
  background: #5f7960;
}

.contact-panel a {
  color: white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2.2rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.policy-main {
  width: min(860px, calc(100% - 2rem));
  padding-block: 3.5rem 7rem;
}

.policy-header {
  margin-bottom: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--outline);
  border-radius: 32px;
  background: rgba(255, 251, 242, 0.92);
  box-shadow: var(--shadow);
}

.policy-header h1 {
  max-width: none;
}

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

.language-jump a {
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.policy-content {
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 28px;
  background: rgba(255, 251, 242, 0.74);
}

.policy-content + .policy-content {
  margin-top: 2rem;
}

.policy-content h2 {
  margin-top: 2.7rem;
  padding-top: 0.4rem;
  font-size: 1.45rem;
  line-height: 1.4;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h3 {
  margin-top: 1.6rem;
}

.policy-content li + li {
  margin-top: 0.55rem;
}

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.policy-content th,
.policy-content td {
  padding: 0.8rem;
  border: 1px solid var(--outline);
  text-align: left;
  vertical-align: top;
}

.policy-content th {
  background: var(--paper-strong);
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 3.5rem 5rem;
  }

  .memo-board {
    min-height: 390px;
  }

  .feature-grid,
  .english-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 4rem;
  }

  .policy-content {
    overflow-x: auto;
  }
}

@media (max-width: 440px) {
  .site-header,
  .site-footer,
  main,
  .policy-main {
    width: min(100% - 1.2rem, 1120px);
  }

  .brand {
    font-size: 0.94rem;
  }

  .site-nav {
    font-size: 0.84rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .memo-board {
    min-height: 350px;
  }

  .note {
    width: 84%;
    padding: 1rem;
  }
}

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

  .button {
    transition: none;
  }
}

@media print {
  .site-nav,
  .skip-link,
  .language-jump {
    display: none;
  }

  body {
    background: white;
  }

  .policy-header,
  .policy-content {
    box-shadow: none;
  }
}
