/* ============================================================
   堕落ビルド特集ページ 共通スタイル (/conanexiles/corrupted/*)
   ダークカルト系: 黒〜濃紺ベース + 血の赤 / 禍々しい紫アクセント
   ============================================================ */

.corrupted-body img {
  max-width: 100%;
  height: auto;
}

.corrupted-body {
  background:
    radial-gradient(ellipse at top, rgba(74,25,66,0.25), transparent 60%),
    #14100d;
  color: #d8cfc4;
}

.corrupted-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.corrupted-body h1,
.corrupted-body h2,
.corrupted-body h3 {
  color: #efe4d3;
  font-family: Georgia, "Hiragino Mincho ProN", serif;
  letter-spacing: 0.5px;
}

.corrupted-body a {
  color: #d88a8a;
}
.corrupted-body a:hover {
  color: #ff9e9e;
}

/* --- クラック調の見出し装飾 --- */
.corrupted-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.corrupted-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #8B1A1A 0%, #4A1942 60%, transparent 100%);
  clip-path: polygon(0 0, 4% 100%, 9% 0, 14% 100%, 20% 0, 27% 100%, 34% 0,
    41% 100%, 48% 0, 55% 100%, 62% 0, 70% 100%, 78% 0, 86% 100%, 93% 0, 100% 100%, 100% 0);
}

/* --- ヒーロー --- */
.corrupted-hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0 28px;
  border: 1px solid rgba(139,26,26,0.4);
}
.corrupted-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.corrupted-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,13,0.15) 0%, rgba(20,16,13,0.92) 88%),
    linear-gradient(90deg, rgba(74,25,66,0.35), transparent 55%);
}
.corrupted-hero .hero-text {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.corrupted-hero .hero-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #b95c5c;
}
.corrupted-hero .hero-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: bold;
  margin: 8px 0;
  color: #f2e6d6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.corrupted-hero .hero-lead {
  max-width: 560px;
  line-height: 1.8;
  color: #d8cfc4;
  font-size: 14px;
  margin: 0;
}

/* --- サブナビ(堕落セクション内パンくず的リンク) --- */
.corrupted-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 24px;
}
.corrupted-subnav a {
  padding: 6px 14px;
  border: 1px solid rgba(139,26,26,0.5);
  border-radius: 4px;
  background: rgba(139,26,26,0.08);
  text-decoration: none;
  font-size: 13px;
  color: #d8cfc4;
}
.corrupted-subnav a:hover,
.corrupted-subnav a.active {
  background: #8B1A1A;
  color: #fff;
  border-color: #8B1A1A;
}

/* --- 汎用パネル --- */
.corrupted-panel {
  background: #1e1712;
  border: 1px solid rgba(139,26,26,0.35);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
}

.corrupted-panel h2,
.corrupted-body section > h2 {
  border-left: 4px solid #8B1A1A;
  padding-left: 12px;
}

.corrupted-list {
  padding-left: 1.2em;
  line-height: 1.9;
}
.corrupted-list.merit li::marker {
  color: #7fae7f;
}
.corrupted-list.demerit li::marker {
  color: #b95c5c;
}

/* --- 注意書き・コラムの枠 --- */
.corrupted-note {
  background: rgba(74,25,66,0.15);
  border: 1px solid #4A1942;
  border-left: 4px solid #4A1942;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.8;
}
.corrupted-note strong {
  color: #c98bd9;
}

.corrupted-warn {
  background: rgba(139,26,26,0.12);
  border: 1px solid #8B1A1A;
  border-left: 4px solid #8B1A1A;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- カード共通(場所紹介・手順画像など) --- */
.corrupted-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.corrupted-media-card {
  background: #1e1712;
  border: 1px solid rgba(139,26,26,0.3);
  border-radius: 8px;
  overflow: hidden;
}
.corrupted-media-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid rgba(139,26,26,0.3);
}
.corrupted-media-card .body {
  padding: 14px 16px;
}
.corrupted-media-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.corrupted-media-card .loc {
  font-size: 0.85rem;
  color: #a89686;
  margin: 0;
}

/* --- 手順ステップ --- */
.corrupted-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.corrupted-steps > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 24px 52px;
  border-left: 2px solid rgba(139,26,26,0.4);
  margin-left: 20px;
}
.corrupted-steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.corrupted-steps > li::before {
  content: counter(step);
  position: absolute;
  left: -21px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #8B1A1A;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.corrupted-steps img {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  border-radius: 6px;
  border: 1px solid rgba(139,26,26,0.3);
}

/* --- Q&A --- */
.corrupted-qa {
  margin: 24px 0;
}
.corrupted-qa .q {
  font-weight: bold;
  color: #d88a8a;
  margin-bottom: 6px;
}
.corrupted-qa .q::before {
  content: "Q. ";
}
.corrupted-qa .a {
  margin: 0 0 8px;
}
.corrupted-qa .a::before {
  content: "A. ";
  color: #7fae7f;
  font-weight: bold;
}

.corrupted-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.corrupted-compare figure {
  margin: 0;
}
.corrupted-compare img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(139,26,26,0.3);
}
.corrupted-compare figcaption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #a89686;
}

/* --- 装備カード(既存armor-cardの構造を踏襲・ダーク配色) --- */
.abyssal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.abyssal-card {
  background: #1e1712;
  border: 1px solid rgba(139,26,26,0.4);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.abyssal-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(139,26,26,0.5));
}
.abyssal-card .name-ja {
  font-weight: bold;
  font-size: 15px;
  margin: 0 0 2px;
  color: #efe4d3;
}
.abyssal-card .name-en {
  font-size: 12px;
  color: #a89686;
  margin: 0 0 10px;
}
.abyssal-card .stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 12px;
  color: #d8cfc4;
}
.abyssal-card .bonus {
  font-size: 11px;
  color: #c98bd9;
  margin: 8px 0 0;
  line-height: 1.6;
}
.abyssal-card .modifier-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(139,26,26,0.25);
  color: #e6a5a5;
}

/* --- 動画埋め込み(YouTube公式iframe / レスポンシブ比率固定) --- */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0;
  align-items: flex-start;
}
.video-embed {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(139,26,26,0.35);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed.ratio-16-9 {
  padding-top: 56.25%;
}
.video-embed-item {
  flex: 1 1 340px;
  max-width: 480px;
}
.video-embed-item.is-shorts {
  flex: 0 1 240px;
  max-width: 240px;
}
.video-embed.ratio-9-16 {
  padding-top: 177.78%;
}
.video-caption {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #d8cfc4;
  line-height: 1.6;
}

/* --- ビルドカード --- */
.build-card {
  background: #1e1712;
  border: 1px solid rgba(139,26,26,0.35);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.build-card h3 {
  margin-top: 0;
}
.build-stats-summary {
  color: #c98bd9;
  font-weight: bold;
  margin: 0 0 16px;
}
.build-screenshot {
  margin: 0 0 16px;
  max-width: 640px;
}
.build-screenshot img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(139,26,26,0.3);
}
.build-screenshot figcaption {
  text-align: center;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #a89686;
}

/* --- 関連ページ導線カード --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0 8px;
}
.related-card {
  display: block;
  background: #1e1712;
  border: 1px solid rgba(139,26,26,0.35);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
  color: #efe4d3;
  transition: border-color 0.15s, transform 0.15s;
}
.related-card:hover {
  border-color: #8B1A1A;
  transform: translateY(-2px);
}
.related-card .label {
  font-weight: bold;
  font-size: 1rem;
}
.related-card .sub {
  display: block;
  font-size: 0.8rem;
  color: #a89686;
  margin-top: 4px;
}

/* --- テーブル(スキル一覧など) --- */
.corrupted-body table {
  width: 100%;
  border-collapse: collapse;
  background: #1e1712;
}
.corrupted-body tr {
  background: #1e1712;
}
.corrupted-body tr:nth-child(even) {
  background: #241b15;
}
.corrupted-body th,
.corrupted-body td {
  border: 1px solid rgba(139,26,26,0.3);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  color: #d8cfc4;
}
.corrupted-body th {
  background: rgba(139,26,26,0.28);
  color: #f2e6d6;
  white-space: nowrap;
  font-weight: bold;
}
.corrupted-body .footnote {
  font-size: 0.8rem;
  color: #a89686;
}

@media (max-width: 760px) {
  .corrupted-wrap {
    padding: 14px;
  }
  .corrupted-compare {
    grid-template-columns: 1fr;
  }
  .skill-bar-row {
    grid-template-columns: 80px 1fr 34px;
    font-size: 0.82rem;
  }
  .video-embed-item,
  .video-embed-item.is-shorts {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
