/* ============================================================
   support.css
   beginner/support/ 配下の全ページ共通スタイル
   ============================================================ */

/* ── ヒーロー（beginner-hero を流用） ── */
.bph-support-faq::before      { background-image: url('/assets/img/pages/beginner/support-faq-hero.jpg'); }
.bph-support-mistakes::before { background-image: url('/assets/img/pages/beginner/support-mistakes-hero.jpg'); }
.bph-support-frames::before   { background-image: url('/assets/img/pages/beginner/support-frames-hero.jpg'); }

.sp-hero__label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--neon-cyan);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.sp-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 14px;
}
.sp-hero__sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ── 共通テキスト ── */
.sp-lead {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.75;
    margin-bottom: 18px;
}
.sp-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    border-left: 2px solid rgba(255,255,255,0.15);
    padding-left: 12px;
    margin-top: 12px;
    line-height: 1.65;
}
.sp-h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--neon-cyan);
}
.sp-list {
    margin: 10px 0;
    padding-left: 20px;
}
.sp-list li {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.8;
    margin-bottom: 4px;
}
.sp-list li strong { color: #fff; }

/* テーブル共通 */
.sp-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}
.sp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
}
.sp-table thead th {
    background: rgba(255,255,255,0.05);
    padding: 9px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.07em;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sp-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.sp-table tbody tr:last-child { border-bottom: none; }
.sp-table tbody td {
    padding: 12px 14px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    vertical-align: top;
}
.sp-table td strong { color: #fff; }

/* 注意ボックス */
.sp-notice {
    padding: 14px 18px;
    border: 1px solid rgba(0,255,255,0.2);
    border-left: 3px solid var(--neon-cyan);
    background: rgba(0,255,255,0.04);
    border-radius: 4px;
    margin-top: 16px;
}
.sp-notice strong {
    display: block;
    font-size: 0.88rem;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}
.sp-notice p { margin: 0; font-size: 0.81rem; color: rgba(255,255,255,0.62); line-height: 1.65; }

/* コード */
.sp-code {
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: var(--neon-cyan);
    background: rgba(0,255,255,0.08);
    padding: 2px 6px;
    border-radius: 3px;
}

/* BACK リンク */
.sp-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.sp-back a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.sp-back a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   FAQ（faq.html）
   ============================================================ */
.sp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}
.sp-faq {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sp-faq:last-child { border-bottom: none; }

.sp-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    list-style: none;
    background: rgba(255,255,255,0.025);
    transition: background 0.15s, color 0.15s;
    line-height: 1.5;
}
.sp-faq__q::-webkit-details-marker { display: none; }
.sp-faq__q::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
    transition: transform 0.2s;
}
details[open] .sp-faq__q { color: #fff; background: rgba(0,255,255,0.05); }
details[open] .sp-faq__q::after { transform: rotate(45deg); color: var(--neon-cyan); }
.sp-faq__q:hover { background: rgba(255,255,255,0.04); color: #fff; }

.sp-faq__a {
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}
.sp-faq__a p {
    margin: 0 0 10px;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
}
.sp-faq__a p:last-child { margin-bottom: 0; }
.sp-faq__a strong { color: #fff; }

/* ============================================================
   ミス（common-mistakes.html）
   ============================================================ */
.sp-mistake-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 24px;
}
.sp-mistake {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sp-mistake:last-child { border-bottom: none; }
.sp-mistake__num {
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(255,255,255,0.55);
    flex-shrink: 0;
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    line-height: 1;
    min-width: 70px;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.sp-mistake__body { padding: 22px 22px 22px 20px; flex: 1; }
.sp-mistake__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.4;
}
.sp-mistake__tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 10px;
}
.sp-mistake__tag--bad { background: rgba(255,50,50,0.12); color: #ff6060; border: 1px solid rgba(255,50,50,0.25); }
.sp-mistake__desc {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.75;
    margin: 0 0 16px;
}
.sp-mistake__fix {
    padding: 14px 16px;
    background: rgba(0,255,255,0.04);
    border: 1px solid rgba(0,255,255,0.15);
    border-radius: 3px;
}
.sp-mistake__fix-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}
.sp-mistake__fix p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.68); line-height: 1.7; }
.sp-mistake__fix strong { color: #fff; }

/* ============================================================
   フレーム（frames.html）
   ============================================================ */
/* ステップ */
.sp-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0 16px;
}
.sp-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sp-step:last-child { border-bottom: none; }
.sp-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.3);
    color: var(--neon-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sp-step__body { font-size: 0.83rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
.sp-step__body strong { color: #fff; }

/* フレーム図 */
.sp-frame-explain {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
}
.sp-frame-example {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Courier New', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    justify-content: center;
}
.sp-frame-paren { color: rgba(255,255,255,0.3); font-size: 2rem; }
.sp-frame-val { padding: 4px 12px; border-radius: 4px; }
.sp-frame-val--startup  { background: rgba(0,255,255,0.12); color: var(--neon-cyan); border: 1px solid rgba(0,255,255,0.3); }
.sp-frame-val--active   { background: rgba(255,200,0,0.1); color: #ffd060; border: 1px solid rgba(255,200,0,0.25); }
.sp-frame-val--recovery { background: rgba(255,0,150,0.1); color: var(--neon-magenta); border: 1px solid rgba(255,0,150,0.25); }

.sp-frame-legend { display: flex; flex-direction: column; gap: 12px; }
.sp-frame-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sp-frame-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.sp-frame-dot--startup  { background: var(--neon-cyan); }
.sp-frame-dot--active   { background: #ffd060; }
.sp-frame-dot--recovery { background: var(--neon-magenta); }
.sp-frame-legend-item strong { display: block; font-size: 0.88rem; color: #fff; margin-bottom: 3px; }
.sp-frame-legend-item p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* 有利・不利カード */
.sp-adv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}
.sp-adv-card {
    padding: 18px 20px;
    border: 1px solid;
    border-radius: 4px;
}
.sp-adv-card--plus  { border-color: rgba(0,255,100,0.2); background: rgba(0,255,100,0.03); }
.sp-adv-card--minus { border-color: rgba(255,50,50,0.2); background: rgba(255,50,50,0.03); }
.sp-adv-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}
.sp-adv-card--plus  .sp-adv-label { color: #40ff80; }
.sp-adv-card--minus .sp-adv-label { color: #ff5050; }
.sp-adv-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.sp-adv-card p { margin: 0 0 8px; font-size: 0.81rem; color: rgba(255,255,255,0.62); line-height: 1.7; }
.sp-adv-card p:last-child { margin-bottom: 0; }
.sp-adv-example { font-size: 0.77rem !important; color: rgba(255,255,255,0.4) !important; border-left: 2px solid rgba(255,255,255,0.1); padding-left: 8px !important; }

/* カウンターカード */
.sp-counter-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 12px;
    margin: 16px 0;
}
.sp-counter-card {
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
}
.sp-counter-card--ch  { border-color: rgba(255,200,0,0.2); background: rgba(255,200,0,0.03); }
.sp-counter-card--hch { border-color: rgba(255,0,150,0.2); background: rgba(255,0,150,0.03); }
.sp-counter-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}
.sp-counter-card--ch  .sp-counter-label { color: #ffd060; }
.sp-counter-card--hch .sp-counter-label { color: var(--neon-magenta); }
.sp-counter-card p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* 参考リンク */
.sp-ref-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.sp-ref {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 0.83rem;
    transition: border-color 0.2s, color 0.2s;
}
.sp-ref:hover { border-color: rgba(0,255,255,0.25); color: #fff; }
.sp-ref__icon { color: var(--neon-cyan); font-size: 0.85rem; flex-shrink: 0; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
    .sp-adv-grid     { grid-template-columns: 1fr; }
    .sp-counter-grid { grid-template-columns: 1fr; }

    .sp-mistake { flex-direction: column; }
    .sp-mistake__num { padding: 16px 20px; min-width: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }

    .sp-frame-example { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .sp-table { min-width: 380px; }
    .sp-hero__title { font-size: 1.6rem; }
}