/* 利用ガイドページスタイル - STYLE-GUIDE.md準拠 */

/* ======================================
   ページ固有のレイアウト
   ====================================== */

.guide-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* ======================================
   ナビゲーション
   ====================================== */

.guide-navigation {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guide-navigation h3 {
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bb-accent-color);
}

.guide-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-nav li {
    margin-bottom: 8px;
}

.guide-nav a {
    display: block;
    padding: 8px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.guide-nav a:hover {
    background: var(--bb-accent-color-light);
    color: var(--bb-sub-color);
    transform: translateX(5px);
}

/* ======================================
   メインコンテンツ
   ====================================== */

.guide-content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.guide-section {
    padding: 40px;
    border-bottom: 1px solid #e9ecef;
}

.guide-section:last-child {
    border-bottom: none;
}

.guide-section h2 {
    color: #333;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--bb-accent-color);
    position: relative;
}

.guide-section h3 {
    color: var(--bb-sub-color);
    font-size: 1.4em;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.guide-section h4 {
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
    margin: 20px 0 10px 0;
}

.guide-section p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: #333;
    font-size: 1em;
}

/* ======================================
   ステップ表示
   ====================================== */

.step-list {
    margin: 25px 0;
    counter-reset: step-counter;
}

.step {
    counter-increment: step-counter;
    position: relative;
    margin-bottom: 20px;
    padding: 25px 25px 25px 30px;
    background: #f8f9fa;
    border-left: 4px solid var(--bb-accent-color);
    border-radius: 8px;
    padding-top: 55px;
    /* STEPバッジ用の余白 */
}

.step::before {
    content: "STEP " counter(step-counter);
    position: absolute;
    top: 15px;
    left: 20px;
    background: linear-gradient(135deg, #fffbe6 0%, var(--bb-accent-color) 100%);
    color: var(--bb-sub-color);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.step h3,
.step h4 {
    margin-top: 0;
    border: none !important;
    padding: 0 !important;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.step-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.step-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background: var(--bb-accent-color);
    border-radius: 50%;
}


/* ======================================
   グリッド
   ====================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.feature-item h4 {
    display: inline-block;
    width: 100%;
    padding-bottom: 8px;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--bb-accent-color) !important;
}

.guide-info-list ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.guide-info-list ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.guide-info-list ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background: var(--bb-accent-color);
    border-radius: 50%;
}

.bb-ui-contact-cta {
    grid-column: 1 / -1;
}

/* ======================================
    レスポンシブ
   ====================================== */

@media (max-width: 968px) {
    .guide-container {
        grid-template-columns: 1fr;
    }

    .guide-navigation {
        position: static;
        order: -1;
    }

    .bb-ui-contact-cta {
        order: 3;
    }
}