@CHARSET "UTF-8";

/* ==============================
   SIM専門 Base CSS
   top.tpl 用 最終版
   ============================== */

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --btn: #111827;
  --btnText: #ffffff;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ==============================
   Layout
   ============================== */

header {
  padding: 24px 16px;
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border-bottom: 1px solid var(--line);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  padding: 20px 0 56px;
}

.stack {
  display: grid;
  gap: 14px;
}

/* ==============================
   Brand / Header text
   ============================== */

.brand {
  display: block;
}

.site-name {
  margin: 0 0 6px 0;
  font-size: 28px;
  font-weight: bold;
  color: #1e293b;
  line-height: 1.4;
}

.brand h1 {
  margin: 0 0 10px 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--text);
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==============================
   Common card / block
   ============================== */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.card h2 {
  margin: 0 0 10px 0;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
}

.card h3 {
  margin: 18px 0 8px 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

.card p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

/* ==============================
   Device badge
   ============================== */

.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
}

.device-badge strong {
  color: var(--text);
  font-weight: 700;
}

/* ==============================
   Intro / guide / FAQ
   ============================== */

.seo-intro p,
.seo-guide p,
.faq-block p {
  color: var(--muted);
}

/* ==============================
   Question area
   ============================== */

.q-title {
  margin: 6px 0 12px;
  font-size: 18px;
  color: var(--text);
}

.note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice {
  display: block;
  cursor: pointer;
}

.choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice .label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
}

.choice:hover .label {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.choice .label strong {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.choice .label span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.choice input[type="radio"]:checked + .label {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #f8fbff;
}

.choice input[type="radio"]:focus + .label {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ==============================
   Buttons
   ============================== */

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  background: var(--btn);
  color: var(--btnText);
  transition: all 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 600;
}

/* ==============================
   Result
   ============================== */

.result-panel {
  display: none;
}

.result-panel.is-active {
  display: block;
}

.result {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.result h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

.result p {
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

a.cta:hover {
  opacity: 0.92;
}

a.cta.secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-weight: 800;
}

/* ==============================
   Footer
   ============================== */

.site-footer {
  margin-top: 48px;
  padding: 24px 16px 28px;
  border-top: 1px solid #dcdcdc;
  background: #fafafa;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: #444;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 10px;
}

.footer-note {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  text-align: center;
  word-break: break-word;
}

.footer-copy {
  margin-top: 14px;
  font-size: 12px;
  color: #888;
}

/* スマホだけ左寄せ */
@media (max-width: 600px) {
  .footer-note {
    text-align: left;
  }
}



/* ==============================
   Debug
   ============================== */

#debug,
.debug {
  padding: 8px;
  border: 1px dashed #999;
  font-size: 14px;
  background: #fff;
  color: #333;
}