:root {
  color-scheme: light;
  --bg: #fbf8ee;
  --paper: #fffdf7;
  --text: #203128;
  --muted: #657064;
  --line: #d9d2bd;
  --green: #28543b;
  --green-2: #6b7c42;
  --moss: #a0a56b;
  --wood: #9b6f43;
  --danger: #672121;
  --shadow: 0 18px 44px rgba(32, 49, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}

body.is-overlay-open {
  overflow: hidden;
}

body.truth-mode {
  color-scheme: dark;
  --bg: #11150f;
  --paper: #191d17;
  --text: #d8d4c6;
  --muted: #9a9588;
  --line: #3c4037;
  --green: #1f2f24;
  --green-2: #5c5746;
  --moss: #74654d;
  --wood: #796141;
  --danger: #7d2c28;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

img {
  display: block;
  width: 100%;
  height: auto;
  background: #ece7d8;
}

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

button {
  min-height: 44px;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #c49743;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(70, 78, 59, 0.18);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
}

.brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
}

.brand strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1rem;
  line-height: 1.2;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.menu-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  padding: 8px 12px;
}

.header-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 20px 16px;
}

.header-panel.is-open {
  display: block;
}

.header-panel nav,
.debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
}

.header-panel a,
.debug-actions button,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  padding: 8px 12px;
  text-decoration: none;
}

.debug-actions {
  margin-top: 10px;
}

.debug-actions button {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 58px 20px;
}

.section-band {
  background: color-mix(in srgb, var(--green) 8%, transparent);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 18px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.section-lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--muted);
}

.hero {
  min-height: 72svh;
  display: grid;
  align-items: end;
  padding: 0;
  background: var(--green);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(18, 30, 23, 0.16), rgba(18, 30, 23, 0.72));
}

.hero .section-inner {
  position: relative;
  width: 100%;
  padding: 160px 20px 54px;
  color: #fffdf7;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.4rem, 12vw, 6rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.2rem;
}

.muted {
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 8px 12px;
}

.case-card {
  display: grid;
  gap: 0;
}

.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.case-images img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-flip {
  width: 100%;
  min-height: 170px;
  border: 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, var(--green) 8%);
  color: var(--text);
  padding: 18px;
  text-align: left;
}

.case-record {
  position: relative;
  display: grid;
  gap: 4px;
}

.stone-trigger {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 1.2rem;
}

.sgd-link,
.inline-action,
.redaction {
  border: 0;
  background: transparent;
  color: var(--danger);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pricing-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
}

td:last-child,
th:last-child {
  text-align: right;
}

tr:last-child td {
  border-bottom: 0;
}

.shake-once {
  animation: shake 0.56s ease-in-out 0.2s 1;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-2px);
  }
  40% {
    transform: translateX(2px);
  }
  60% {
    transform: translateX(-1px);
  }
  80% {
    transform: translateX(1px);
  }
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 16px 0;
  text-align: left;
}

.faq-panel {
  display: none;
  padding: 0 0 16px;
  color: var(--muted);
}

.faq-panel.is-open {
  display: block;
}

.redaction {
  display: block;
  width: 100%;
  margin: 12px 0;
  background: #090909;
  color: #090909;
  line-height: 1.5;
  text-decoration: none;
  user-select: none;
}

.redaction.is-revealed {
  background: color-mix(in srgb, var(--paper) 88%, #090909 12%);
  color: var(--text);
  padding: 12px;
  text-align: left;
  user-select: text;
}

.recovery {
  border-left: 4px solid var(--danger);
  padding-left: 14px;
  white-space: pre-line;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 1.6em;
  color: var(--green);
  font-weight: 700;
}

.truth-mode .form-status {
  color: #ba9c68;
}

.primary-button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fffdf7;
  padding: 12px 18px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: 24px 20px;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

.noscript {
  padding: 16px 20px;
  background: #fff3cd;
  color: #503b00;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020202;
  padding: 24px;
}

.noise-overlay.is-active {
  display: flex;
}

.noise-overlay__noise {
  position: absolute;
  inset: -30%;
  background:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(139, 0, 0, 0.1) 0 1px, transparent 1px 6px);
  animation: noise 0.22s steps(2) infinite, flash 2.4s linear infinite;
}

.noise-overlay__content {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
  border: 1px solid rgba(125, 22, 22, 0.7);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #8f2525;
  padding: 24px;
  text-align: center;
  text-shadow: 2px 0 #1d0000, -1px 0 #450000;
  animation: textGlitch 0.9s steps(2) infinite;
}

.noise-overlay__message {
  font-size: 1.28rem;
  font-weight: 700;
}

.noise-overlay__hint {
  color: #b7a9a1;
  font-size: 0.9rem;
}

@keyframes noise {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-4%, 3%);
  }
}

@keyframes flash {
  0%,
  92%,
  100% {
    opacity: 0.75;
  }
  94% {
    opacity: 1;
  }
}

@keyframes textGlitch {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1px);
  }
}

@media (min-width: 760px) {
  .menu-button {
    display: none;
  }

  .header-panel {
    display: block;
    border-top: 0;
    padding: 0 20px 10px;
  }

  .header-panel nav {
    justify-content: flex-end;
  }

  .debug-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 44px 16px;
  }

  .header-inner,
  .header-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .case-images {
    grid-template-columns: 1fr;
  }
}
