
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Yu Gothic UI",
    Meiryo,
    sans-serif;
}

body {
  color: #111827;
  background:
    radial-gradient(circle at 15% 10%, rgba(59,130,246,.18), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(34,197,94,.16), transparent 32%),
    linear-gradient(135deg, #eef8ff, #f8fffb);
}

button,
label {
  font: inherit;
}

#front {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
}

.card {
  width: min(940px, 100%);
  padding: clamp(24px, 5vw, 52px);
  background: rgba(255,255,255,.97);
  border: 1px solid #dbe3ee;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15,23,42,.16);
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  color: white;
  background: #111827;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.card h1 {
  margin: 20px 0 0;
  font-size: clamp(46px, 9vw, 90px);
  line-height: .95;
  letter-spacing: -.07em;
}

.lead {
  color: #374151;
  line-height: 1.8;
}

.stage {
  margin-top: 26px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  margin: 4px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  color: white;
  background: #111827;
}

.secondary {
  color: #111827;
  background: #e5e7eb;
}

.file-button input {
  display: none;
}

.accepted {
  display: inline-block;
  padding: 6px 10px;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

#front-status {
  margin-top: 16px;
  padding: 14px;
  color: #1e3a8a;
  background: #eff6ff;
  border-radius: 14px;
  white-space: pre-wrap;
}

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.notes article {
  padding: 15px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
}

.notes p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
}

footer {
  margin-top: 25px;
  padding-top: 15px;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  line-height: 1.7;
}

#terms-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15,23,42,.74);
  backdrop-filter: blur(6px);
}

#terms-modal {
  width: min(820px, 100%);
  max-height: 94vh;
  overflow: auto;
  padding: 22px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
}

.terms-section {
  margin: 12px 0;
  padding: 13px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.terms-section li {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.6;
}

.check-row {
  display: flex;
  gap: 10px;
  padding: 11px;
  margin: 8px 0;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  cursor: pointer;
}

.check-row input {
  width: 19px;
  height: 19px;
}

.terms-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding-top: 14px;
  background: white;
}

#accept-terms:disabled {
  opacity: .4;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .card {
    padding: 22px 16px;
  }

  .primary,
  .secondary {
    width: 100%;
    margin: 5px 0;
  }

  .terms-actions {
    flex-direction: column;
  }
}
/* OULOCATION_FRONT_BACKGROUND_AND_LEGAL */

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  color: #111827;
  background-color: #111827;
  background-image:
    linear-gradient(
      rgba(7, 14, 26, 0.58),
      rgba(7, 14, 26, 0.72)
    ),
    url("./image/1.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(59, 130, 246, 0.22),
      transparent 38%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(16, 185, 129, 0.18),
      transparent 40%
    );
}

.card {
  background:
    rgba(255, 255, 255, 0.94);
  border:
    1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter:
    blur(14px);
  -webkit-backdrop-filter:
    blur(14px);
}

.legal-notice {
  margin-top: 22px;
  padding: 18px;
  color: #3f1d0b;
  background:
    rgba(255, 247, 237, 0.96);
  border:
    1px solid #fdba74;
  border-radius: 16px;
}

.legal-notice h2 {
  margin:
    0 0 10px;
  font-size: 17px;
}

.legal-notice ul {
  margin:
    0;
  padding-left:
    1.4em;
}

.legal-notice li {
  margin:
    8px 0;
  font-size:
    12px;
  line-height:
    1.75;
}

.terms-liability {
  color: #3f1d0b;
  background: #fff7ed;
  border-color: #fdba74;
}

.creator-line {
  margin-bottom: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.creator-line a {
  color: #0369a1;
  overflow-wrap: anywhere;
}

.creator-line a:hover {
  text-decoration-thickness: 2px;
}

footer p {
  margin:
    6px 0;
}

@media (max-width: 600px) {
  body {
    background-attachment:
      scroll;
  }

  #front {
    align-items:
      flex-start;
    padding:
      18px 10px;
  }

  .legal-notice {
    padding:
      15px;
  }
}

/* OULOCATION_LEGAL_AND_MOBILE_FINAL */
/* OULOCATION_LEGAL_AND_MOBILE_FINAL */

html {
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  min-width: 0;
  overflow-x: hidden;
  color: #111827;
  background-color: #111827;
  background-image:
    linear-gradient(
      rgba(7, 14, 26, 0.58),
      rgba(7, 14, 26, 0.72)
    ),
    url("./image/1.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

#front {
  width: 100%;
  min-width: 0;
  padding:
    max(18px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
}

.card {
  min-width: 0;
  background:
    rgba(255, 255, 255, 0.95);
  border:
    1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-notice {
  margin-top: 22px;
  padding: 18px;
  color: #3f1d0b;
  background:
    rgba(255, 247, 237, 0.98);
  border: 1px solid #fdba74;
  border-radius: 16px;
}

.legal-notice h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.legal-notice ul {
  margin: 0;
  padding-left: 1.4em;
}

.legal-notice li {
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.75;
}

.terms-liability {
  color: #3f1d0b;
  background: #fff7ed;
  border-color: #fdba74;
}

.creator-line {
  margin-bottom: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.creator-line a {
  color: #0369a1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

footer p {
  margin: 6px 0;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  #front {
    display: block;
    min-height: 100dvh;
    padding:
      max(12px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .card {
    width: 100%;
    padding: 22px 16px;
    border-radius: 20px;
  }

  .card h1 {
    margin-top: 16px;
    font-size:
      clamp(38px, 14vw, 64px);
    letter-spacing: -0.06em;
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .stage {
    margin-top: 20px;
    padding: 17px 14px;
    border-radius: 16px;
  }

  .stage h2 {
    font-size: 20px;
  }

  .stage p {
    font-size: 13px;
    line-height: 1.7;
  }

  .primary,
  .secondary {
    width: 100%;
    min-height: 48px;
    margin: 5px 0;
    padding: 12px 14px;
  }

  #front-status {
    font-size: 13px;
    line-height: 1.6;
  }

  .notes {
    grid-template-columns: 1fr;
  }

  .notes article {
    min-width: 0;
  }

  .legal-notice {
    padding: 15px 14px;
  }

  .legal-notice li {
    font-size: 12px;
  }

  #terms-backdrop {
    align-items: flex-start;
    padding:
      max(6px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom))
      max(6px, env(safe-area-inset-left));
  }

  #terms-modal {
    width: 100%;
    max-height:
      calc(
        100dvh
        - env(safe-area-inset-top)
        - env(safe-area-inset-bottom)
        - 12px
      );
    padding: 17px 13px;
    border-radius: 16px;
  }

  #terms-modal h2 {
    margin-top: 0;
    font-size: 20px;
  }

  .terms-section {
    padding: 12px 10px;
  }

  .terms-section h3 {
    font-size: 16px;
  }

  .terms-section ul {
    padding-left: 1.25em;
  }

  .terms-section li {
    font-size: 12px;
  }

  .check-row {
    align-items: flex-start;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.55;
  }

  .check-row input {
    flex: 0 0 20px;
  }

  .terms-actions {
    flex-direction: column;
    padding:
      10px 0
      max(4px, env(safe-area-inset-bottom));
  }

  footer {
    font-size: 11px;
  }
}

/* OULOCATION_QA_SECTION */

.qa-section {
  margin-top: 24px;
  padding: 20px;
  color: #172033;
  background:
    rgba(248, 250, 252, 0.97);
  border: 1px solid #cbd5e1;
  border-radius: 18px;
}

.qa-section h2 {
  margin: 0;
  font-size: 22px;
}

.qa-lead {
  margin: 8px 0 16px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.qa-item {
  margin: 10px 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
}

.qa-item summary {
  position: relative;
  padding: 15px 44px 15px 15px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: white;
  background: #111827;
  border-radius: 999px;
  transform: translateY(-50%);
}

.qa-item[open] summary::after {
  content: "\2212";
}

.qa-item[open] summary {
  border-bottom: 1px solid #e2e8f0;
}

.qa-answer {
  padding: 14px 15px 16px;
  color: #475569;
  background: #f8fafc;
}

.qa-answer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  white-space: normal;
}

@media (max-width: 760px) {
  .qa-section {
    padding: 15px 12px;
    border-radius: 16px;
  }

  .qa-section h2 {
    font-size: 19px;
  }

  .qa-item summary {
    padding:
      13px 42px 13px 12px;
    font-size: 13px;
  }

  .qa-answer {
    padding: 12px;
  }

  .qa-answer p {
    font-size: 12px;
  }
}

/* OULOCATION FRONT QUESTION FLASH GUARD */

/*
  index.html内の初期文言が疑問符へ破損している場合でも、
  front.jsとfront-extra.jsによる置換が終わるまで表示しない。
*/

#front {
  visibility: hidden;
}

body.ou-front-text-ready #front {
  visibility: visible;
}
