:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d2034;
  --panel-soft: #102941;
  --line: rgba(115, 186, 236, 0.24);
  --text: #edf5fb;
  --muted: #a7b9c9;
  --blue: #35a9ef;
  --blue-deep: #1684c8;
  --green: #4ade9b;
  --red: #ff7979;
  --red-bg: rgba(151, 35, 48, 0.16);
  font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.7; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.site-header {
  min-height: 76px;
  padding: 12px max(20px, calc((100% - 1204px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.96);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 190, 255, 0.52);
  border-radius: 12px;
  color: #76ccff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 0.95rem; }
.brand small { color: #7791a7; font-size: 0.53rem; letter-spacing: 0.12em; }
.site-header nav { display: flex; align-items: center; gap: 9px; }
.site-header nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #c6d5e1;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
}
.site-header nav a:hover { background: rgba(73, 161, 220, 0.11); color: #fff; }
.site-header nav .nav-cta { background: #208fce; color: #fff; }

main { width: min(calc(100% - 48px), 1120px); margin: 0 auto; padding: 64px 0 90px; }
.page-intro { max-width: 820px; }
.eyebrow { margin: 0 0 10px; color: #54bcfa; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.2; }
h2 { margin-bottom: 8px; font-size: clamp(1.35rem, 3vw, 2rem); }
.page-lead { margin-bottom: 0; color: var(--muted); font-size: 1.02rem; }

.policy-card {
  margin-top: 34px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 121, 121, 0.55);
  border-radius: 18px;
  background: var(--red-bg);
}
.policy-card h2 { color: #ffaaaa; font-size: 1.18rem; }
.policy-card p { margin: 9px 0 0; color: #f1c7ca; }
.policy-card strong { color: #fff; }
.policy-card ul { margin: 13px 0 0; padding-left: 1.25rem; color: #eab8bc; }

.content-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr); gap: 24px; align-items: start; }
.content-grid--contact { grid-template-columns: minmax(0, 1fr); }
.surface {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 39, 62, 0.98), rgba(8, 25, 42, 0.99));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.form-card { padding: 28px; }
.form-heading { margin-bottom: 22px; }
.form-heading p { margin-bottom: 0; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #dae6ef; font-weight: 900; }
label small { color: #7f96a9; font-size: 0.74rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(149, 183, 209, 0.42);
  border-radius: 10px;
  outline: none;
  background: #f7fbfe;
  color: #102033;
  padding: 12px 14px;
}
input, select { min-height: 50px; }
textarea { min-height: 180px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(53, 169, 239, 0.15); }
.check-row { margin-top: 18px; display: flex; align-items: flex-start; gap: 10px; color: #c5d3df; font-size: 0.86rem; font-weight: 700; }
.check-row input { width: 19px; min-height: 19px; margin-top: 4px; accent-color: var(--blue); }
.submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.submit-button:disabled { cursor: wait; opacity: 0.62; }
.form-status { min-height: 1.7em; margin: 14px 0 0; color: #86d7ff; font-weight: 800; }
.form-status.error { color: #ff9999; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.thread-card { overflow: hidden; }
.thread-heading { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.thread-heading p { margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }
.post-list { display: grid; }
.post { padding: 23px 26px; border-bottom: 1px solid rgba(115, 186, 236, 0.14); }
.post:last-child { border-bottom: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; color: #7f98ad; font-size: 0.75rem; }
.post-meta strong { color: #70c9ff; font-size: 0.9rem; }
.post-body { margin: 13px 0 0; color: #e5eef6; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-posts { padding: 44px 26px; color: var(--muted); text-align: center; }

.contact-note { margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--green); background: rgba(74, 222, 155, 0.07); color: #b9d8c9; }

footer {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: #7f91a6;
}
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #dce8f3; }
.footer-brand span { font-size: 0.72rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { color: #9eb0c1; text-decoration: none; font-size: 0.78rem; font-weight: 900; }

@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; }
  .thread-card { grid-row: 2; }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; padding: 10px 16px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 0.82rem; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .site-header nav .nav-cta { padding: 8px 10px; font-size: 0.7rem; }
  main { width: calc(100% - 28px); padding: 44px 0 64px; }
  h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .page-lead { font-size: 0.92rem; }
  .policy-card { margin-top: 26px; padding: 20px 18px; border-radius: 15px; }
  .policy-card p, .policy-card li { font-size: 0.86rem; }
  .content-grid { margin-top: 18px; gap: 18px; }
  .form-card { padding: 21px 17px; border-radius: 16px; }
  .field-grid { grid-template-columns: 1fr; gap: 15px; }
  .field-grid .full { grid-column: 1; }
  .thread-card { border-radius: 16px; }
  .thread-heading, .post { padding: 20px 18px; }
  textarea { min-height: 160px; }
  footer { width: calc(100% - 28px); padding: 22px 0 32px; flex-direction: column; }
}

