:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #211f1d;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #f41f1f;
  --accent-dark: #8f1010;
  --teal: #6f1717;
  --soft: #eef2f6;
  --cover-ratio: 4 / 3;
}

/* 2026-04-28: スマホファースト刷新で上書き */
:root {
  --bg: #fff8f3;
  --panel: #ffffff;
  --ink: #19110f;
  --muted: #7b6d68;
  --line: #eadbd3;
  --accent: #f41f1f;
  --accent-dark: #8f1010;
  --teal: #6f1717;
  --soft: #fff1ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.35;
  letter-spacing: 0;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.section,
.detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
}

.narrow {
  max-width: 520px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  max-width: 680px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.hero-actions,
.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button-large {
  min-height: 54px;
  padding-inline: 22px;
  font-size: 16px;
}

.button-secondary {
  background: #fff;
  color: var(--accent-dark);
}

.text-danger {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.mini-link {
  font-weight: 700;
  white-space: nowrap;
}

.text-link {
  font-weight: 700;
  white-space: nowrap;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.help-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.notice {
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  color: var(--muted);
}

.success {
  border-left-color: #2e7d32;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 600 !important;
}

.checkbox-line input {
  width: auto;
}

.checkbox-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.info-list dt {
  color: var(--muted);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
}

.action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-form {
  display: inline;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

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

th {
  color: var(--muted);
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 10px max(16px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand > span {
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.site-menu {
  position: relative;
  margin-left: auto;
}

.site-menu summary {
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.site-menu[open] .menu-icon {
  background: transparent;
}

.site-menu[open] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-menu[open] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(25, 17, 15, 0.14);
  white-space: normal;
}

.site-nav a {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
}

.site-nav .nav-current {
  border-color: rgba(181, 39, 53, 0.28);
  color: var(--accent-dark);
}

.site-footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.site-footer-disclaimer {
  max-width: 760px;
  margin: 0 auto 16px;
  color: var(--muted);
  line-height: 1.8;
}

.fanza-web-service-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.fanza-web-service-logo img {
  display: block;
  width: 135px;
  height: 17px;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1080px);
    padding-top: 20px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .site-nav {
    width: 100%;
  }

  .hero,
  .section,
  .detail {
    padding: 20px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
