/* =============================================
   日本ソシオニクス協会 — リニューアルページ専用スタイル
   全セレクタを .renewal でスコープし、既存CSSに干渉しない
   ============================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --r-bg: #ffffff;
  --r-bg-alt: #f7f7f5;
  --r-bg-dark: #0a0a0e;
  --r-bg-dark2: #12121a;
  --r-text: #1a1a2e;
  --r-text-muted: #666677;
  --r-text-light: rgba(255,255,255,0.85);
  --r-text-light-muted: rgba(255,255,255,0.55);
  --r-primary: #2563eb;
  --r-primary-dark: #1d4ed8;
  --r-accent: #3b82f6;
  --r-border: #e5e5ea;
  --r-border-dark: rgba(255,255,255,0.12);
  --r-font: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-container: 1160px;
  --r-transition: 0.2s ease;
}

/* ---------- SCOPED RESET ---------- */
.renewal *, .renewal *::before, .renewal *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.renewal img { max-width: 100%; display: block; }
.renewal a { color: inherit; text-decoration: none; }
.renewal { font-family: var(--r-font); font-size: 16px; color: var(--r-text); line-height: 1.7; -webkit-font-smoothing: antialiased; text-align: left; width: 100%; max-width: 100%; margin: 0; padding: 0; }

/* ---------- CONTAINER ---------- */
.renewal .container {
  max-width: var(--r-container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  float: none;
}

/* ---------- BUTTONS ---------- */
.renewal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--r-transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.renewal .btn-sm { padding: 8px 18px; font-size: 13px; }
.renewal .btn-lg { padding: 16px 36px; font-size: 16px; }

.renewal .btn-primary   { background: var(--r-primary); color: #fff; border-color: var(--r-primary); }
.renewal .btn-primary:hover { background: var(--r-primary-dark); border-color: var(--r-primary-dark); }

.renewal .btn-secondary { background: #f0f0f5; color: var(--r-text); }
.renewal .btn-secondary:hover { background: #e5e5ea; }

.renewal .btn-white     { background: #fff; color: var(--r-text); }
.renewal .btn-white:hover { background: #f0f0f5; }

.renewal .btn-outline   { background: transparent; color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.35); }
.renewal .btn-outline:hover { background: rgba(255,255,255,0.1); }

.renewal .btn-outline-light { background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.renewal .btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ---------- SECTION LABELS ---------- */
.renewal .section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--r-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.renewal .section-label--light { color: rgba(255,255,255,0.5); }

.renewal .section-heading {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.renewal .section-heading--light { color: #fff; }

.renewal .section-sub {
  font-size: 15px;
  color: var(--r-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.renewal .section-sub--light { color: rgba(255,255,255,0.65); }

.renewal .section-header { text-align: center; margin-bottom: 56px; }
.renewal .section-header--light { color: #fff; }

.renewal .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--r-primary);
  margin-top: 8px;
}
.renewal .link-arrow::after { content: '→'; }
.renewal .link-arrow:hover { gap: 10px; }

/* ---------- HERO ---------- */
.renewal .hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--r-bg-dark);
}

.renewal .hero-bg {
  position: absolute;
  inset: 0;
}
.renewal .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.45;
}
.renewal .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,10,20,0.92) 0%,
    rgba(10,10,20,0.75) 45%,
    rgba(10,10,20,0.25) 100%
  );
}

.renewal .hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.renewal .hero-content { max-width: 560px; }

.renewal .hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--r-text-light-muted);
  margin-bottom: 20px;
}

.renewal .hero-heading {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.renewal .hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--r-text-light);
  line-height: 1.75;
  margin-bottom: 36px;
}

.renewal .hero-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- INTRO SECTION ---------- */
.renewal .section-intro {
  padding: 80px 0;
  background: var(--r-bg);
}

.renewal .intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.renewal .intro-heading {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.renewal .intro-body {
  font-size: 15px;
  color: var(--r-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.renewal .intro-stats {
  display: flex;
  gap: 0;
  align-items: center;
  border: 1px solid var(--r-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 32px 0;
}

.renewal .stat-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.renewal .stat-num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--r-text);
  line-height: 1;
}
.renewal .stat-label {
  font-size: 12px;
  color: var(--r-text-muted);
  font-weight: 500;
  margin-top: 6px;
  display: block;
}
.renewal .stat-divider {
  width: 1px;
  height: 60px;
  background: var(--r-border);
}

/* ---------- TYPES SECTION ---------- */
.renewal .section-types {
  padding: 80px 0;
  background: var(--r-bg-alt);
}

.renewal .types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.renewal .types-cta {
  text-align: center;
  margin-top: 48px;
}

.renewal .type-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--r-border);
  border-radius: var(--r-md);
  transition: all var(--r-transition);
  text-decoration: none;
  color: var(--r-text);
}
.renewal .type-card:hover {
  border-color: var(--r-primary);
  box-shadow: 0 2px 12px rgba(37,99,235,0.10);
  transform: translateY(-2px);
}

.renewal .type-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.renewal .type-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.renewal .type-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.renewal .type-card-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.renewal .type-card-name {
  font-size: 12px;
  color: var(--r-text-muted);
}

/* ---------- CORPORATE SECTION ---------- */
.renewal .section-corporate {
  padding: 96px 0;
  background: var(--r-bg-dark);
  color: #fff;
}

.renewal .corp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.renewal .corp-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: background var(--r-transition);
}
.renewal .corp-card:hover { background: rgba(255,255,255,0.08); }

.renewal .corp-icon {
  color: var(--r-accent);
  margin-bottom: 20px;
}

.renewal .corp-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.renewal .corp-card-body {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

.renewal .corp-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  width: 100%;
}

/* ---------- FINAL CTA ---------- */
.renewal .section-final-cta {
  background: var(--r-bg-dark2);
  padding: 96px 0;
  text-align: center;
  color: #fff;
}

.renewal .final-cta-heading {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.renewal .final-cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}

.renewal .final-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   ABOUT PAGE SPECIFIC
   ======================================== */

/* PAGE HERO */
.renewal .page-hero {
  background: var(--r-bg-dark);
  padding: 80px 0 64px;
  color: #fff;
  text-align: center;
}
.renewal .page-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.renewal .page-hero-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.renewal .page-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
}

/* ANCHOR NAV */
.renewal .anchor-nav {
  background: #fff;
  border-bottom: 1px solid var(--r-border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.renewal .anchor-nav .container {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.renewal .anchor-nav a {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--r-text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--r-transition);
}
.renewal .anchor-nav a:hover {
  color: var(--r-text);
  border-bottom-color: var(--r-primary);
}

/* ABOUT SECTIONS */
.renewal .about-section { padding: 80px 0; }
.renewal .about-section--alt { background: var(--r-bg-alt); }

.renewal .about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.renewal .about-heading {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  margin-top: 8px;
}

.renewal .about-body {
  font-size: 15px;
  color: var(--r-text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.renewal .about-body--center { text-align: center; max-width: 680px; margin: 0 auto 40px; }

.renewal .section-divider {
  border: none;
  border-top: 1px solid var(--r-border);
  margin: 0;
}

/* CONCEPT CARDS */
.renewal .about-visual { display: flex; flex-direction: column; gap: 20px; }

.renewal .concept-card {
  background: var(--r-bg-alt);
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid var(--r-border);
}
.renewal .concept-card .concept-icon { margin-bottom: 16px; }
.renewal .concept-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.renewal .concept-card p {
  font-size: 13px;
  color: var(--r-text-muted);
  line-height: 1.7;
}

/* TIMELINE */
.renewal .timeline { max-width: 780px; margin-top: 40px; }

.renewal .timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding-bottom: 40px;
  position: relative;
}
.renewal .timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 139px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--r-border);
}

.renewal .timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--r-primary);
  padding-top: 4px;
  letter-spacing: 0.05em;
}

.renewal .timeline-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.renewal .timeline-content p {
  font-size: 14px;
  color: var(--r-text-muted);
  line-height: 1.8;
}

/* MODEL K CARDS */
.renewal .model-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0 24px;
}

.renewal .model-card {
  border: 1px solid var(--r-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.renewal .model-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.renewal .model-card-header--q { background: #eff6ff; }
.renewal .model-card-header--d { background: #f0fdf4; }

.renewal .model-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
}
.renewal .model-card-header--q .model-tag { background: #2563eb; color: #fff; }
.renewal .model-card-header--d .model-tag { background: #16a34a; color: #fff; }

.renewal .model-card-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.renewal .model-card {
  display: flex;
  flex-direction: column;
}
.renewal .model-card p {
  padding: 0 24px;
  font-size: 14px;
  color: var(--r-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.renewal .model-card p:first-of-type { margin-top: 20px; }
.renewal .model-card p:last-of-type { margin-bottom: 0; }

.renewal .model-example {
  font-size: 12px !important;
  color: var(--r-text-muted);
  background: var(--r-bg-alt);
  padding: 10px 24px !important;
  border-top: 1px solid var(--r-border);
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

.renewal .model-note {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 32px;
}
.renewal .model-note p {
  font-size: 13px;
  color: #713f12;
  line-height: 1.7;
}

.renewal .model-cta { text-align: center; }

/* COMPARISON TABLE */
.renewal .comparison-table-wrap {
  overflow-x: auto;
  margin: 40px 0 40px;
  border-radius: var(--r-lg);
  border: 1px solid var(--r-border);
}

.renewal .comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.renewal .comparison-table thead { background: var(--r-bg-alt); }

.renewal .comparison-table th {
  padding: 16px 20px;
  font-weight: 700;
  text-align: left;
  font-size: 13px;
  border-bottom: 2px solid var(--r-border);
}

.renewal .comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--r-border);
  vertical-align: top;
  line-height: 1.6;
}
.renewal .comparison-table small {
  display: block;
  font-size: 11px;
  color: var(--r-text-muted);
  margin-top: 2px;
}

.renewal .comparison-table tr:last-child td { border-bottom: none; }

.renewal .highlight-col { background: #eff6ff; }
.renewal .comparison-table th.highlight-col {
  color: var(--r-primary);
  background: #dbeafe;
}

.renewal .mbti-note {
  background: var(--r-bg-alt);
  border: 1px solid var(--r-border);
  border-radius: var(--r-lg);
  padding: 32px 36px;
}
.renewal .mbti-note h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.renewal .mbti-note p {
  font-size: 14px;
  color: var(--r-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* FOR WHOM */
.renewal .forwho-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.renewal .forwho-card {
  background: var(--r-bg-alt);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--r-border);
  transition: transform var(--r-transition);
}
.renewal .forwho-card:hover { transform: translateY(-4px); }

.renewal .forwho-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--r-primary);
  margin-bottom: 12px;
}

.renewal .forwho-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.renewal .forwho-card p {
  font-size: 13px;
  color: var(--r-text-muted);
  line-height: 1.75;
}

/* ASSOCIATION */
.renewal .association-meta {
  background: var(--r-bg-alt);
  border: 1px solid var(--r-border);
  border-radius: var(--r-lg);
  padding: 32px;
}

.renewal .meta-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--r-border);
}
.renewal .meta-item:last-child { border-bottom: none; }

.renewal .meta-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--r-text-muted);
}
.renewal .meta-value {
  font-size: 13px;
  color: var(--r-text);
}

.renewal .association-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 960px) {
  .renewal .intro-inner { grid-template-columns: 1fr; gap: 40px; }
  .renewal .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .renewal .corp-cards { grid-template-columns: 1fr; }
  .renewal .types-grid { grid-template-columns: repeat(2, 1fr); }
  .renewal .forwho-grid { grid-template-columns: repeat(2, 1fr); }
  .renewal .model-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .renewal .hero { min-height: 520px; }
  .renewal .hero-heading { font-size: clamp(28px, 8vw, 44px); }
  .renewal .forwho-grid { grid-template-columns: 1fr; }
  .renewal .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .renewal .timeline-item::before { display: none; }
  .renewal .meta-item { grid-template-columns: 1fr; gap: 4px; }
  .renewal .corp-cta, .renewal .final-cta-btns, .renewal .hero-btns { flex-direction: column; align-items: stretch; }
}
