:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: #463d37;
  background: #f7f3ec;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.8;
}

a {
  color: #a94f3d;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #7f392c;
}

.site-header {
  border-bottom: 1px solid #e5ddd2;
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #463d37;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.86rem;
}

.page {
  padding: 64px 0 80px;
}

.hero {
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #bd6653;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  color: #302a26;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.lead {
  margin: 18px 0 0;
  color: #736861;
  font-size: 1rem;
}

.updated {
  display: inline-block;
  margin-top: 18px;
  border-radius: 999px;
  background: #eee6dc;
  padding: 6px 12px;
  color: #6e625a;
  font-size: 0.78rem;
}

.legal-card {
  border: 1px solid #e8dfd5;
  border-radius: 24px;
  background: #fff;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 18px 48px rgba(74, 58, 46, 0.07);
}

.legal-section + .legal-section {
  margin-top: 38px;
  border-top: 1px solid #eee7df;
  padding-top: 38px;
}

h2 {
  margin: 0 0 14px;
  color: #3b332e;
  font-size: 1.18rem;
  line-height: 1.5;
}

p {
  margin: 0;
}

p + p {
  margin-top: 12px;
}

.contact-box {
  margin-top: 18px;
  border-radius: 16px;
  background: #f7f3ec;
  padding: 18px 20px;
}

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

.support-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #a94f3d;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(169, 79, 61, 0.2);
}

.support-button:hover {
  background: #8f4031;
  color: #fff;
}

.support-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field > span {
  color: #3b332e;
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-field small,
.contact-hint {
  color: #80756e;
  font-size: 0.78rem;
  line-height: 1.55;
}

.contact-field b {
  color: #a94f3d;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #ddd3c7;
  border-radius: 12px;
  background: #fff;
  padding: 11px 13px;
  color: #463d37;
  font: inherit;
  line-height: 1.5;
}

.contact-field textarea {
  min-height: 176px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #bd6653;
  outline: 3px solid rgba(189, 102, 83, 0.15);
}

.contact-hint {
  margin: 0;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-status {
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.contact-status.is-error,
.contact-status.is-success {
  display: block;
}

.contact-status.is-error {
  border: 1px solid rgba(169, 79, 61, 0.2);
  background: rgba(169, 79, 61, 0.09);
  color: #8f4031;
}

.contact-status.is-success {
  border: 1px solid rgba(111, 138, 85, 0.2);
  background: rgba(111, 138, 85, 0.1);
  color: #5b7344;
}

.support-list {
  margin: 14px 0 0;
  padding-left: 1.25em;
}

.support-list li + li {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid #e5ddd2;
  background: #fff;
}

.site-footer__inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #80756e;
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  gap: 14px;
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

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

  .page {
    padding: 42px 0 56px;
  }

  .legal-card {
    border-radius: 20px;
  }

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

  .contact-actions .support-button {
    width: 100%;
  }
}

@media print {
  :root,
  body {
    background: #fff;
  }

  .site-header,
  .site-footer {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .legal-card {
    border: 0;
    padding: 0;
    box-shadow: none;
  }
}
