/* FORCE CORE CHECK */
body {
  background:#052A5B !important;
  color:#fff !important;
/* =========================================================
   STRUCTURE FIRST, TECHNOLOGY SECOND.
   Design Series Common CSS
   ========================================================= */

/* =========================================================
   Scope
   ========================================================= */
.design-page {}

/* =========================================================
   Reset
   ========================================================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* =========================================================
   Root Variables（★唯一の定義場所）
   ========================================================= */
:root{
  --bg:#06142a;
  --bg2:#071a36;
  --card:#0b2346;
  --line:#17335a;
  --text:#e9f1ff;
  --muted:#b8c7e6;
  --accent:#4cc9f0;   /* タイトル */
  --accent2:#7CFFB2;!important; /* 直接緑色を指定 */
  --warn:#ffcc66;
  --shadow:0 16px 40px rgba(0,0,0,.35);
  --radius:18px;
  --max:1080px;
}

/* =========================================================
   Base
   ========================================================= */
body{
  font-family: ui-sans-serif, system-ui, -apple-system,
               "Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",
               "Yu Gothic", sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(76,201,240,.12), transparent 60%),
    radial-gradient(1000px 600px at 100% 10%, rgba(124,255,178,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.8;
  letter-spacing: .02em;
}

a{
  color: var(--accent);
  text-decoration: none;
}

a:hover{
  opacity: .9;
  text-decoration: underline;
}

/* =========================================================
   Layout
   ========================================================= */
.wrap {
  max-width: 1200px; /* 129px(var(--max))から1200xに変更 */
  margin: 0 auto;
  padding: 10px 18px 40px;
}

/* =========================================================
   Header / Topbar
   ========================================================= */
.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0 18px;
  border-bottom: 1px solid rgba(233,241,255,.08);
}

.brand{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand .site{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}

.brand .series{
  font-size: 14px;
  font-weight: 800;
  color: rgba(233,241,255,.9);
}

.nav{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.nav a{
  color: var(--muted);
}

.nav a:hover{
  color: var(--text);
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(233,241,255,.06);
  border: 1px solid rgba(233,241,255,.10);
}

/* =========================================================
   HERO CORE STABILIZER
   Design Series 顔固定レイヤー
   ========================================================= */

/* ---------------------------------
   Dot (identity)
--------------------------------- */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.c1 { background: var(--accent); }
.dot.c2 { background: var(--accent2); }

/* ---------------------------------
   Hero Image (fixed tone)
--------------------------------- */
.design-hero {
  width: 100%;
  background: #06142a;
  line-height: 0;
}

.design-hero img {
  width: 100%;
  max-width: 1440px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: saturate(1.05) contrast(1.02);
}

/* ---------------------------------
   Hero Text Block
--------------------------------- */
.hero {
  padding: 10px 0 20px;
}

/* kicker */
.kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  opacity: .9;
}

/* tag = シリーズDNA */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(76,201,240,.12);
  border: 1px solid rgba(76,201,240,.22);

  color: rgba(233,241,255,.95);
  font-weight: 700;
  letter-spacing: .05em;
}

/* ---------------------------------
   Title Stabilization
--------------------------------- */
h1 {
  margin: 0 0 4px; /* 上下12px → 上0/下4pxに */
  font-size: 32px;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: .02em;
}

/* lead */
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 880px;
  line-height: 1.7;
}

/* ---------------------------------
   Section System
--------------------------------- */
.section {
  margin: 64px 0;
}

/* section title */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text); /* 文字は白（または--accentの青） */
  
  /* 左側の縦線を「緑」にする */
  border-left: 5px solid var(--accent2) !important; /* 強制的に緑にする */
  padding-left: 15px;
  
  text-align: left;
  line-height: 1.1;
  margin-top: 0;
}

/* =========================================================
   SERIES STRUCTURE OVERRIDE
   Card / Grid / Adapter Neutralizer
   ========================================================= */

/* ---------------------------------
   Note = Core化
--------------------------------- */
.note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;

  background: rgba(124,255,178,.10);
  border: 1px solid rgba(124,255,178,.22);

  backdrop-filter: blur(4px);
}

/* ---------------------------------
   Grid Core Stabilization
--------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}

/* Card Core */
.card {
  grid-column: span 6;

  background: linear-gradient(
    180deg,
    rgba(11,35,70,.92),
    rgba(7,26,54,.92)
  );

  border: 1px solid rgba(233,241,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 18px;
  position: relative;
  overflow: hidden;

  transition: transform .25s ease, box-shadow .25s ease;
}

/* subtle hover = シリーズ感 */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

/* design-grid = 下位レイヤー化 */
.design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.design-grid .card {
  grid-column: auto;
}

/* Card title */
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #dbe7ff;
  letter-spacing: .02em;
}

/* ---------------------------------
   Diagram Core
--------------------------------- */
.diagram {
  margin-top: 18px;
  border-radius: var(--radius);

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);

  padding: 18px;
}

.diagTitle {
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 12px;
  letter-spacing: .04em;
}

/* ---------------------------------
   Footer Core
--------------------------------- */
.footer {
  margin-top: 48px;
  padding-top: 20px;

  border-top: 1px solid rgba(233,241,255,.06);
  color: var(--muted);
  font-size: 13px;

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---------------------------------
   Responsive Stabilizer
--------------------------------- */
@media (max-width: 860px) {
  h1 { font-size: 26px; }
  .card { grid-column: span 12; }
  .topbar { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   LEGACY ADAPTER KILL SWITCH
   design20系の干渉を無効化
   ========================================================= */

/* container kill */
.container {
  max-width: var(--max) !important;
  padding: 0 !important;
}

/* legacy header neutralize */
.site-header,
.header-inner {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
}

/* legacy hero neutralize */
.hero {
  background: transparent !important;
  padding: 0 !important;
}

.hero-title,
.hero-lead {
  all: unset;
}
/* =========================================================
   ADAPTER FINAL OVERRIDE
   design20 FINAL 無力化レイヤー
   ========================================================= */

/* ---------------------------------
   GRID UNIFICATION
   Adapter版gridをシリーズ仕様に戻す
--------------------------------- */
.grid {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 18px !important;
  margin: 18px 0 !important;
}


/* card spacing */
.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 12px;
}

/* table readability */
.table th,
.table td {
  padding: 10px 14px;
  vertical-align: top;
}
/* =========================================================
   FINAL SANITY LAYER
   design20_04 + experimental isolation
   ========================================================= */

/* ---------------------------------
   BODY FINAL LOCK
   すべてのbody暴走を封印
--------------------------------- */
body {
  background: linear-gradient(180deg, #06142a, #071a36) !important;
  background-image: none !important;
  color: var(--text) !important;
}

/* background-attachment kill */
body {
  background-attachment: scroll !important;
}

/* ---------------------------------
   HERO FINAL LOCK
--------------------------------- */
.hero {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 32px 0 20px !important;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------
   design20_04 GRID QUARANTINE
   特殊UIを隔離
--------------------------------- */
.grid-20-04 {
  display: none !important;
}

.sticky-sidebar {
  position: static !important;
}

/* next-cardをシリーズカードへ吸収 */
.next-card {
  border: 1px solid rgba(233,241,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 24px;
}

/* ---------------------------------
   TOC HACK NEUTRALIZE
--------------------------------- */
.toc a[href*="-step"],
.toc a[href*="-template"],
.toc a[href="#browser"] {
  padding-left: 0;
  font-size: inherit;
  opacity: .9;
}

/* ---------------------------------
   TUNING DIAGRAM → SOFT INTEGRATION
   （価値ある部分は活かす）
--------------------------------- */
.tuning-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 12px 0;
}

.diagram-left {
  min-width: 160px;
  font-size: 13px;
  color: var(--muted);
}

.diagram-flow {
  flex: 1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,.04);
}

/* テキスト統一 */
.flow-row,
.llm-answers div {
  font-size: 13px;
  opacity: .85;
}

/* ---------------------------------
   FLOW COMPARE (design23資産)
--------------------------------- */
.flow-compare {
  display: flex;
  gap: 60px;
  justify-content: center;
  margin: 60px 0;
}

.flow-old,
.flow-new {
  width: 260px;
  text-align: center;
}

.flow-old h4 {
  opacity: 0.5;
}

.flow-new h4 {
  color: var(--accent);
}

.arrow {
  opacity: 0.5;
}