/* /r/help.css (HONDA BEAT help page only) */

/* =========================
   Base / Reset
   ========================= */
:root {
  --teal: #30B0C7;
  --bg: #1a1a1a;
  --panel: #222222;
  --panel2: #111111;
  --text: #ffffff;
  --dim: rgba(255,255,255,0.72);
  --line: rgba(255,255,255,0.08);
  --line-teal: rgba(48,176,199,0.22);
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.help-mode {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--teal); }

.help-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* =========================
   Header
   ========================= */
.help-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 8px 0;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--teal); }

h1 {
  font-size: 24px;
  margin: 0 0 10px 0;
  letter-spacing: 0.01em;
}

.lead-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.9;
}

/* =========================
   Media (OGP placeholder)
   ========================= */
.media-section { margin: 18px 0 10px 0; }

.media-ogp {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel2);
  border: 1px solid var(--line);
}

.media-ogp img { width: 100%; height: auto; }

.media-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(48,176,199,0.35);
  border-radius: var(--radius);
}

/* YouTube版に差し替える場合の枠 */
.video-section { margin: 18px 0 10px 0; }
.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.video-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================
   Guide Cards (①〜⑤)
   ========================= */
.guide-section { margin-top: 12px; }

.spec-card {
  display: flex;
  width: 100%;
  background: var(--panel);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.spec-info {
  flex: 1.3;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.spec-visual {
  flex: 1;
  min-width: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spec-visual img { width: 100%; height: auto; }

.spec-no {
  font-weight: 800;
  color: var(--teal);
  margin-right: 8px;
  font-size: 18px;
}

.spec-label {
  font-size: 10px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-info h2 {
  font-size: 18px;
  margin: 6px 0 12px 0;
  font-weight: 800;
  color: var(--text);
}

.spec-content { margin-top: 2px; }

.description {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.70);
  line-height: 1.9;
  text-align: left;
}

/* badges */
.setting-badge {
  background: rgba(48, 176, 199, 0.12);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  margin: 0 8px 10px 0;
  display: inline-block;
  border: 1px solid rgba(48, 176, 199, 0.20);
}

/* emphasis */
.teal-val { color: var(--teal); font-weight: 800; }
.from-val { color: #ddd; font-weight: 800; }

/* optional small tag look (your HTML uses "tag") */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  line-height: 1.6;
}

/* =========================
   Column (always open)
   ========================= */
.column-section {
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid #333;
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.column-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.column-label {
  font-size: 10px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.column-title {
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

.column-body p {
  margin: 0 0 10px 0;
  color: rgba(255,255,255,0.70);
  font-size: 13.5px;
  line-height: 1.9;
}
.column-body p:last-child { margin-bottom: 0; }

/* =========================
   Engines link mini
   ========================= */
.engine-link-mini {
  margin-top: 26px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  border: 1px solid #333;
}
.engine-link-mini p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.76);
  line-height: 1.8;
}
.teal-link {
  color: var(--teal);
  font-weight: 800;
}
.teal-link:hover { color: #7ad9e6; }

/* =========================
   Table section
   ========================= */
.table-section {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid #333;
}

.table-intro {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

.table-title {
  margin: 0 0 14px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.table-center {
  max-width: 760px;      /* 広がりすぎ防止 */
  margin: 0 auto;        /* センタリング */
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: var(--panel2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
}

.data-table {
  width: 100%;
  min-width: 520px; /* スマホ横スクロールで破綻しない最低幅 */
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th,
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}

.data-table th {
  color: var(--teal);
  background: #181818;
  text-align: center;
  width: 50%;
}

.data-table td {
  color: #ddd;
  text-align: center;
}

/* section row */
.data-table tr.sec td {
  padding: 10px 12px;
  color: var(--teal);
  font-weight: 800;
  background: rgba(48,176,199,0.08);
  border-bottom: 1px solid rgba(48,176,199,0.20);
  text-align: center;
}

/* footer nav */
.footer-nav { margin-top: 24px; text-align: center; }
.back-link { margin: 0; font-size: 13px; }

/* =========================
   Footer (original taste)
   ========================= */
.help-footer {
  margin-top: 56px;
  padding: 25px 0;
  background: #222222;
}

.help-footer-box {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-floatR {
  float: right;
  margin: 0 0 0 20px;
  text-align: right;
}

.footer-note {
  margin: 0;
  color: var(--teal);
  font-size: 11px;
  line-height: 1.7;
  text-align: left;
}

.footer-clearR { clear: right; }

.footer-copy {
  margin: 10px 0 0 0;
  color: var(--teal);
  font-size: 11px;
  text-align: center;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 800px) {
  .spec-card { flex-direction: column; }
  .spec-info { padding: 20px; order: 1; }
  .spec-visual { order: 2; }

  /* keep footer layout same (no stacking),
     but reduce sizes to avoid "主張が強い" */
  .footer-note { font-size: 10px; }
  .footer-floatR img { width: 60px; height: auto; }
}

@media (max-width: 480px) {
  .help-container { padding: 28px 14px; }
  h1 { font-size: 21px; }
  .lead-text { font-size: 13px; }
  .data-table { font-size: 12px; }
}

/* ===========================
   Help Index ( /r/ja/help/ )
   =========================== */

.help-index { margin-top: 10px; }

.help-index-section { margin-top: 26px; }

.help-index-head { margin: 0 0 12px 0; }

.help-index-title {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}

.help-index-sub {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #bbb;
  line-height: 1.8;
}

/* grid */
.help-index-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(420px, 1fr));
  gap:12px;
}

@media (min-width: 860px) {
  .help-index-grid { grid-template-columns: 1fr 1fr; }
}

/* card */
/* card：OGPサムネを上（1200x630）に固定する */
.help-link-card{
  display:block;                 /* flexをやめて縦カードに */
  background:#222;
  border-left:3px solid #30B0C7;
  border-radius:4px;
  overflow:hidden;
  text-decoration:none;
  border-top:1px solid rgba(255,255,255,0.06);
  border-right:1px solid rgba(255,255,255,0.06);
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.help-link-card:hover{
  border-top-color:rgba(48,176,199,0.35);
  border-right-color:rgba(48,176,199,0.35);
  border-bottom-color:rgba(48,176,199,0.35);
}

.help-link-card.is-disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  border-left-color: rgba(48,176,199,0.25);
}

/* thumb */
.help-link-thumb{
  width:100%;
  aspect-ratio:1200 / 630;       /* ★ OGP比率固定 */
  background:#000;
  position:relative;
}

.help-link-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;              /* 比率一致なので基本的に切れません */
  display:block;
}

.help-link-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #30B0C7;
  font-weight: bold;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(48,176,199,0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.help-link-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  background: #111;
}

/* body */
.help-link-body {
  width: 58%;
  padding: 16px;
  min-width: 0;
}

.help-link-topline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.help-link-badge {
  color: #30B0C7;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid rgba(48,176,199,0.35);
  padding: 1px 7px;
  border-radius: 3px;
}

.help-link-q {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-link-tags { margin: 0 0 8px 0; }

.help-link-desc {
  margin: 0;
  font-size: 12.5px;
  color: #bbb;
  line-height: 1.8;
}

/* tags (beatページでも使えるよう共通寄り) */
.tag {
  display: inline-block;
  color: #ddd;
  font-weight: bold;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* responsive: stacked card on small screens */
@media (max-width: 800px) {
  .help-link-card { flex-direction: column; }
  .help-link-thumb { width: 100%; }
  .help-link-body { width: 100%; }
  .help-link-q { white-space: normal; }
}
