/* ════════════════════════════════════════════════
   pages/system.css — システム・ご入会の流れ
   ════════════════════════════════════════════════ */

/* ── App vs Agency comparison ────────────────────── */
.vs-table-section {}

.vs-intro {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--sp-12);
}

.vs-intro p {
  font-size: var(--fs-md);
  color: var(--c-text-light);
  line-height: var(--lh-loose);
}

/* Custom VS table styling */
.vs-table {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.vs-table th,
.vs-table td {
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: middle;
  text-align: center;
  line-height: var(--lh-snug);
}

.vs-table th:first-child,
.vs-table td:first-child {
  text-align: left;
  font-weight: var(--fw-medium);
  padding-left: var(--sp-6);
  color: var(--c-text);
  background: var(--c-bg-alt);
  width: 28%;
}

.vs-table thead th {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  border-bottom: 2px solid var(--c-border);
}

.vs-table thead th.col-app {
  background: var(--c-bg-warm);
  color: var(--c-text-light);
}

.vs-table thead th.col-agency {
  background: #f0f0f0;
  color: var(--c-text-light);
}

.vs-table thead th.col-orizuru {
  background: var(--c-gold);
  color: var(--c-white);
}

.vs-table thead th:first-child {
  background: var(--c-text);
  color: var(--c-white);
  text-align: left;
}

.vs-table tbody tr:last-child td {
  border-bottom: none;
}

.vs-table tbody tr:hover td {
  background: var(--c-gold-ultra);
}

.vs-table tbody tr:hover td:first-child {
  background: var(--c-bg-alt);
}

.vs-table .col-orizuru {
  font-weight: var(--fw-medium);
  color: var(--c-gold-dark);
  background: var(--c-gold-ultra);
}

.vs-table .check { color: var(--c-gold); font-size: 1.1em; }
.vs-table .check-partial { color: #9E9090; font-size: 0.9em; }
.vs-table .cross { color: #CCC; font-size: 1.1em; }


/* ── IBJ Network section ─────────────────────────── */
.ibj-section {
  background: var(--c-bg-warm);
}

.ibj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-12);
  align-items: center;
}

.ibj-content {}

.ibj-visual {
  background: var(--c-washi);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-xs);
}

/* IBJネットワークの取次ぎ図 */
.ibj-diagram {
  margin: var(--sp-10) auto 0;
  max-width: 1040px;
  text-align: center;
}

.ibj-diagram img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent; /* 透過WebPを背景に溶け込ませる（白カード枠は撤去） */
}

.ibj-diagram figcaption {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
}

.ibj-emblem {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1.5px solid var(--c-gold);
  background: var(--c-gold-ultra);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ibj-emblem::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--c-border-gold);
  border-radius: 50%;
}

.ibj-emblem__mark {
  font-family: var(--f-serif);
  font-size: 2.75rem;
  font-weight: var(--fw-semi);
  color: var(--c-gold-dark);
  letter-spacing: 0.06em;
  line-height: 1;
}

.ibj-emblem__sub {
  font-family: var(--f-accent);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin-top: var(--sp-3);
}

.ibj-emblem__line {
  width: 32px;
  height: 1px;
  background: var(--c-gold);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-4);
  opacity: 0.6;
}

.ibj-emblem__tag {
  font-family: var(--f-serif);
  font-size: var(--fs-sm);
  color: var(--c-dark);
  letter-spacing: 0.08em;
}

.ibj-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.ibj-stat {
  text-align: center;
  background: var(--c-gold-ultra);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-4);
  border: 1px solid rgba(196, 162, 101, 0.15);
}

.ibj-stat__num {
  font-family: var(--f-sans);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--c-gold-dark);
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}

.ibj-stat__num sup {
  font-size: 0.55em;
  vertical-align: baseline;
  margin-left: 2px;
  font-weight: var(--fw-medium);
}

.ibj-stat__label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  letter-spacing: var(--ls-wide);
}

@media (max-width: 600px) {
  .vs-table { min-width: 520px; }
}

@media (max-width: 768px) {
  .ibj-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ── Step flow section ──────────────────────────── */
.flow-section {}

/* Already defined in components.css */


/* ── FAQ section ─────────────────────────────────── */
.faq-section {}

/* Already defined in components.css */


/* ── System note ─────────────────────────────────── */
.system-note {
  background: var(--c-gold-ultra);
  border: 1px solid rgba(196, 162, 101, 0.2);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
  max-width: 680px;
  margin-inline: auto;
}

.system-note p {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
}

.system-note p + p {
  margin-top: var(--sp-2);
}


/* ── Features highlight ──────────────────────────── */
.system-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.system-feature {
  background: var(--c-washi);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-xs);
}

.system-feature__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background: var(--c-gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
}

.system-feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--c-gold);
}

.system-feature__title {
  font-family: var(--f-serif);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  margin-bottom: var(--sp-3);
  letter-spacing: var(--ls-wide);
}

.system-feature__body {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: var(--lh-loose);
}

@media (max-width: 768px) {
  .system-features {
    grid-template-columns: minmax(0, 1fr);
    max-width: 400px;
    margin-inline: auto;
  }
}
