@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Noto+Sans+JP:wght@300;400;500&family=Noto+Serif+JP:wght@200;300;400;500;600&display=swap");

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

:root {
  --indigo: #0c1a34;
  --indigo-light: #173c68;
  --paper: #f0e8d0;
  --paper-dim: #c8bea0;
  --gold: #d8b85d;
  --gold-soft: rgba(216, 184, 93, 0.28);
}

html {
  min-height: 100%;
  background: var(--indigo);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--paper);
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  line-height: 1.95;
  background-color: var(--indigo);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(93, 142, 193, 0.16), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(194, 149, 67, 0.08), transparent 32%),
    linear-gradient(rgba(7, 20, 42, 0.34), rgba(8, 25, 49, 0.48)),
    url("/principles-assets/indigo-antique-paper-v1.png") center / cover no-repeat;
}

a {
  color: inherit;
}

.subpage-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(1.4rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgba(216, 184, 93, 0.22);
  background: rgba(8, 23, 45, 0.72);
  backdrop-filter: blur(10px);
}

.subpage-brand,
.subpage-back {
  text-decoration: none;
}

.subpage-brand {
  font-size: clamp(0.78rem, 2vw, 0.94rem);
  letter-spacing: 0.28em;
  color: #fff8e8;
}

.subpage-back {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(216, 184, 93, 0.42);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.subpage-main {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.8rem, 10vw, 8rem) 0 clamp(5rem, 10vw, 8rem);
}

.subpage-kicker {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.76rem;
  letter-spacing: 0.35em;
  color: var(--gold);
}

.subpage-title {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #fff9eb;
}

.subpage-rule {
  width: 72px;
  height: 1px;
  margin: 1.7rem 0 2.2rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.subpage-lead {
  max-width: 720px;
  margin: 0;
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  color: rgba(255, 248, 232, 0.86);
}

.contact-introduction {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: clamp(2.4rem, 6vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid rgba(216, 184, 93, 0.24);
  border-bottom: 1px solid rgba(216, 184, 93, 0.24);
}

.contact-catch {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.15rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.12em;
  color: #fff9eb;
}

.contact-introduction-copy {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.2rem;
}

.contact-introduction-copy p {
  margin: 0;
  font-size: clamp(0.84rem, 2vw, 0.94rem);
  line-height: 2.15;
  color: rgba(255, 248, 232, 0.82);
}

.contact-section {
  margin-top: clamp(4rem, 9vw, 7rem);
}

.contact-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(216, 184, 93, 0.36);
}

.contact-section-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff9eb;
}

.contact-section-kicker {
  order: 2;
  margin: 0;
  font: 400 0.68rem/1.5 "Cormorant Garamond", serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(216, 184, 93, 0.25);
  border-left: 1px solid rgba(216, 184, 93, 0.25);
  background: rgba(7, 25, 49, 0.38);
}

.feature-item {
  position: relative;
  min-height: 250px;
  padding: 2rem 1.6rem;
  border-right: 1px solid rgba(216, 184, 93, 0.25);
  border-bottom: 1px solid rgba(216, 184, 93, 0.25);
}

.feature-number {
  display: block;
  margin-bottom: 1.4rem;
  font: 300 0.74rem/1 "Cormorant Garamond", serif;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.feature-item h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: #fff9eb;
}

.feature-item p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 2;
  color: rgba(255, 248, 232, 0.72);
}

.faq-list {
  margin: 0;
}

.faq-item {
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(216, 184, 93, 0.22);
}

.faq-item:first-child {
  border-top: 1px solid rgba(216, 184, 93, 0.22);
}

.faq-item dt,
.faq-item dd {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.8rem;
  margin: 0;
}

.faq-item dt {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.85;
  color: #fff9eb;
}

.faq-item dd {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  line-height: 2;
  color: rgba(255, 248, 232, 0.72);
}

.faq-item dt span,
.faq-item dd span {
  display: grid;
  place-items: center;
  align-self: start;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(216, 184, 93, 0.52);
  font: 400 0.76rem/1 "Cormorant Garamond", serif;
  color: var(--gold);
}

.faq-item dd span {
  color: var(--paper);
  border-color: rgba(240, 232, 208, 0.24);
}

.paper-panel {
  position: relative;
  margin-top: clamp(2.7rem, 7vw, 4.5rem);
  padding: clamp(2rem, 6vw, 4.4rem);
  border: 1px solid rgba(216, 184, 93, 0.48);
  background:
    linear-gradient(rgba(19, 52, 88, 0.68), rgba(11, 34, 65, 0.82)),
    url("/principles-assets/indigo-antique-paper-v1.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.paper-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(216, 184, 93, 0.16);
}

.status-seal {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.7rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(216, 184, 93, 0.42);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  background: rgba(7, 24, 47, 0.56);
}

.status-seal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #91a1b5;
  box-shadow: 0 0 10px rgba(145, 161, 181, 0.38);
}

.status-title {
  position: relative;
  z-index: 1;
  margin: 0 0 1.4rem;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff9eb;
}

.status-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 248, 232, 0.86);
}

.status-note {
  position: relative;
  z-index: 1;
  margin: 1.7rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(216, 184, 93, 0.22);
  font-size: 0.78rem;
  color: rgba(255, 248, 232, 0.58);
}

.contact-categories {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2.2rem;
  padding: 0;
  list-style: none;
}

.contact-categories li {
  padding: 0.44rem 0.72rem;
  border: 1px solid rgba(216, 184, 93, 0.25);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 232, 0.74);
}

.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

.form-honeypot {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.consent {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #ead28d;
}

.required {
  margin-left: 0.4rem;
  font-size: 0.62rem;
  color: #f2c5ae;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(216, 184, 93, 0.34);
  border-radius: 0;
  padding: 0.86rem 0.95rem;
  color: #fff9eb;
  background: rgba(5, 22, 45, 0.66);
  font: 400 0.84rem/1.7 "Noto Sans JP", sans-serif;
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(216, 184, 93, 0.1);
}

.field select option {
  color: #17233a;
  background: #f2ead7;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.7;
  color: rgba(255, 248, 232, 0.75);
}

.consent input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.25rem;
  accent-color: var(--gold);
}

.consent a,
.subpage-footer a {
  color: #f1d98f;
  text-decoration-color: rgba(241, 217, 143, 0.5);
  text-underline-offset: 0.2em;
}

.consent a:hover,
.consent a:focus-visible,
.subpage-footer a:hover,
.subpage-footer a:focus-visible {
  color: #fff2bf;
  text-decoration-color: currentColor;
}

.consent--optional {
  margin-top: -0.55rem;
}

.consent small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  color: rgba(255, 248, 232, 0.56);
}

.optional {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.06rem 0.35rem;
  border: 1px solid rgba(216, 184, 93, 0.32);
  font-size: 0.58rem;
  color: rgba(255, 248, 232, 0.65);
}

.form-submit {
  justify-self: start;
  min-width: 260px;
  padding: 0.95rem 1.4rem;
  border: 1px solid rgba(216, 184, 93, 0.72);
  color: #fff9eb;
  background: rgba(30, 71, 117, 0.84);
  font: 400 0.72rem/1.5 "Noto Sans JP", sans-serif;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.form-submit:hover,
.form-submit:focus-visible {
  outline: none;
  background: rgba(43, 90, 143, 0.96);
  box-shadow: 0 0 20px rgba(216, 184, 93, 0.13);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  display: none;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(216, 184, 93, 0.34);
  background: rgba(7, 25, 49, 0.74);
  font-size: 0.8rem;
  color: rgba(255, 248, 232, 0.86);
}

.form-status.is-visible {
  display: block;
}

.form-status[data-state="success"] {
  border-color: rgba(166, 204, 167, 0.48);
  background: rgba(15, 55, 50, 0.66);
}

.form-status[data-state="error"] {
  border-color: rgba(235, 163, 142, 0.52);
  background: rgba(76, 30, 36, 0.62);
  color: #ffe6df;
}

.confirm-dialog {
  width: min(680px, calc(100% - 2rem));
  max-height: min(82vh, 760px);
  overflow-y: auto;
  border: 1px solid rgba(216, 184, 93, 0.5);
  padding: 0;
  color: #fff9eb;
  background: rgba(7, 25, 49, 0.98);
  box-shadow: 0 24px 80px rgba(0, 6, 18, 0.62);
}

.confirm-dialog::backdrop {
  background: rgba(2, 10, 23, 0.78);
  backdrop-filter: blur(5px);
}

.confirm-dialog-inner {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.confirm-dialog-kicker {
  margin: 0 0 0.55rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216, 184, 93, 0.72);
}

.confirm-dialog h3 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.confirm-dialog-lead {
  margin: 0.8rem 0 1.5rem;
  font-size: 0.76rem;
  color: rgba(255, 248, 232, 0.68);
}

.confirm-list {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(216, 184, 93, 0.22);
}

.confirm-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(216, 184, 93, 0.17);
}

.confirm-list dt,
.confirm-list dd {
  margin: 0;
}

.confirm-list dt {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #ead28d;
}

.confirm-list dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 0.78rem;
  color: rgba(255, 248, 232, 0.9);
}

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

.confirm-back,
.confirm-send {
  min-height: 46px;
  border: 1px solid rgba(216, 184, 93, 0.52);
  padding: 0.75rem 1.1rem;
  font: 400 0.7rem/1.4 "Noto Sans JP", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.confirm-back {
  color: rgba(255, 248, 232, 0.78);
  background: transparent;
}

.confirm-send {
  color: #fff9eb;
  background: rgba(30, 71, 117, 0.92);
}

.confirm-back:hover,
.confirm-back:focus-visible,
.confirm-send:hover,
.confirm-send:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.confirm-send:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-aside {
  position: relative;
  z-index: 1;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(216, 184, 93, 0.22);
  font-size: 0.76rem;
  color: rgba(255, 248, 232, 0.6);
}

.subpage-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(216, 184, 93, 0.2);
  text-align: center;
  background: rgba(7, 20, 41, 0.62);
}

.subpage-footer p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.17em;
  color: rgba(255, 248, 232, 0.5);
}

.subpage-footer a {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.policy-main {
  max-width: 920px;
}

.policy-panel {
  display: grid;
  gap: 0;
}

.policy-section {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(216, 184, 93, 0.18);
}

.policy-section:first-child {
  padding-top: 0;
}

.policy-section h2 {
  margin: 0 0 0.7rem;
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #ead28d;
}

.policy-section p,
.policy-section ul {
  margin: 0;
  font-size: 0.78rem;
  line-height: 2;
  color: rgba(255, 248, 232, 0.78);
}

.policy-section ul {
  padding-left: 1.25rem;
}

.policy-updated,
.policy-contact {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0;
  font-size: 0.7rem;
  color: rgba(255, 248, 232, 0.56);
}

.policy-contact a {
  color: #f1d98f;
}

@media (max-width: 680px) {
  .subpage-header {
    min-height: 58px;
  }

  .subpage-brand {
    letter-spacing: 0.18em;
  }

  .subpage-title {
    letter-spacing: 0.08em;
  }

  .contact-introduction {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .contact-section-heading {
    display: block;
  }

  .contact-section-kicker {
    margin-top: 0.5rem;
  }

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

  .feature-item {
    min-height: 0;
  }

  .paper-panel {
    padding: 2.2rem 1.45rem;
  }

  .confirm-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .confirm-actions {
    display: grid;
  }

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

  .field--full {
    grid-column: auto;
  }

  .form-submit {
    width: 100%;
    min-width: 0;
  }
}
