/* ========================================
   セキュリティゲート選定ガイド専用CSS
   ======================================== */

   :root {
    --guide-primary: #0066cc;
    --guide-primary-dark: #004d99;
    --guide-primary-light: #3385d6;
    --guide-bg: #f5f7fa;
    --guide-white: #ffffff;
    --guide-text: #1a1a1a;
    --guide-text-light: #6b7280;
    --guide-border: #d1d5db;
    --guide-selected: #e6f2ff;
}

.guide-header {
    background: linear-gradient(135deg, var(--guide-primary-dark) 0%, var(--guide-primary) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.guide-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path fill="rgba(255,255,255,0.05)" d="M0,100 Q300,150 600,100 T1200,100 L1200,200 L0,200 Z"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.guide-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.guide-header p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.guide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 15px;
}

.guide-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--guide-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.question-section {
    background: var(--guide-white);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.question-section.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.question-number {
    background: var(--guide-primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.question-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--guide-text);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* 2つの選択肢の場合は2列、5つの場合は最大3列 */
@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.option-button {
    background: var(--guide-white);
    border: 2px solid var(--guide-border);
    border-radius: 8px;
    padding: 1.125rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--guide-text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.option-button:hover {
    border-color: var(--guide-primary);
    background: var(--guide-selected);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.option-button.selected {
    background: var(--guide-primary);
    border-color: var(--guide-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.option-label {
    font-size: 0.95rem;
    font-weight: 700;
}

.option-description {
    font-size: 0.8rem;
    opacity: 0.8;
}

.result-section {
    background: linear-gradient(135deg, #e6f2ff 0%, #ffffff 100%);
    border: 3px solid var(--guide-primary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2.5rem;
    display: none;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.result-section.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-badge {
    display: inline-block;
    background: var(--guide-primary);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.875rem;
}

.result-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--guide-primary-dark);
    margin-bottom: 0.875rem;
}

.result-description {
    font-size: 0.95rem;
    color: var(--guide-text-light);
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.result-details {
    background: white;
    border-radius: 8px;
    padding: 1.375rem;
    margin-top: 1.375rem;
}

.result-details h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--guide-text);
    margin-bottom: 0.875rem;
    padding-left: 0.875rem;
    border-left: 4px solid var(--guide-primary);
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 0.625rem;
    padding-left: 0;
}

.feature-list li {
    padding: 0.75rem 0.875rem;
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    border-radius: 6px;
    position: relative;
    padding-left: 2.25rem;
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0.875rem;
    color: var(--guide-primary);
    font-weight: 700;
    font-size: 1rem;
}

.spec-table {
    width: 100%;
    margin-top: 1.375rem;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--guide-border);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table th,
.spec-table td {
    padding: 0.75rem 0.875rem;
    text-align: left;
    font-size: 0.9rem;
}

.spec-table th {
    font-weight: 600;
    color: var(--guide-text-light);
    width: 35%;
}

.spec-table td {
    font-weight: 600;
    color: var(--guide-text);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.guide-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 200px;
}

.guide-btn-primary {
    background: var(--guide-primary);
    color: white;
}

.guide-btn-primary:hover {
    background: var(--guide-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.guide-btn-secondary {
    background: white;
    color: var(--guide-primary);
    border: 2px solid var(--guide-primary);
}

.guide-btn-secondary:hover {
    background: var(--guide-primary);
    color: white;
}

.summary-section {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 1.375rem;
    margin-top: 1.375rem;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
}

.summary-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
}

.summary-items {
    display: grid;
    gap: 0.625rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem;
    background: var(--guide-bg);
    border-radius: 6px;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--guide-text-light);
}

.summary-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--guide-text);
}

.result-notice {
    background: #e9ecef;
    border-left: 4px solid #495057;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}

.gate-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--guide-primary-dark);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--guide-primary);
}

.gate-category-title:first-child {
    margin-top: 0;
}

/* よくある質問・お問い合わせ横並びボタン */
.selection-guide-cta-buttons {
    display: flex;
    gap: 1.25rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sg-cta-btn {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3.5rem 1.25rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sg-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sg-cta-btn:hover::before {
    opacity: 1;
}

.sg-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sg-faq-btn {
    background: linear-gradient(135deg, #00a8cc 0%, #0077b6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

.sg-faq-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 168, 204, 0.4);
}

.sg-contact-btn {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.sg-contact-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.sg-btn-text {
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.sg-btn-subtext {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.sg-btn-arrow {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    z-index: 1;
}

.sg-cta-btn:hover .sg-btn-arrow {
    transform: translateY(-50%) translateX(4px);
}

/* 製品カードスタイル */
.product-cards-section {
    margin-top: 2rem;
}

.product-cards-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--guide-text);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--guide-primary);
}

/* 診断結果のカード高さを調整 */
.product-cards-section .blog-card {
    height: auto !important;
    min-height: 250px !important;
}

@media (min-width: 767px) {
    .product-cards-section .blog-card {
        height: auto !important;
        min-height: 280px !important;
    }
}

/* 診断結果セクションのレスポンシブ調整 */
@media screen and (max-width: 1024px) {
    .result-section {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
    
    .selection-guide-cta-buttons {
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media screen and (max-width: 767px) {
    /* 全体のフォントサイズを調整 */
    body {
        font-size: 14px;
    }
    
    /* ヘッダー */
    .guide-header {
        padding: 2rem 1.5rem;
    }
    
    .guide-header h1 {
        font-size: 1.5rem;
    }
    
    .guide-header p {
        font-size: 0.9rem;
    }
    
    /* コンテナ */
    .guide-container {
        padding: 1.5rem 1rem;
    }
    
    /* イントロ文 */
    .guide-intro {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }
    
    /* 質問セクション */
    .question-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .question-number {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .question-title {
        font-size: 1rem;
    }
    
    /* 選択肢ボタン */
    .option-button {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        min-height: auto;
    }
    
    .option-label {
        font-size: 0.875rem;
    }
    
    .option-description {
        font-size: 0.75rem;
    }
    
    /* 診断結果 */
    .result-section {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        padding: 1.5rem;
    }
    
    .result-badge {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
    }
    
    .result-title {
        font-size: 1.35rem;
    }
    
    .gate-category-title {
        font-size: 1.25rem;
    }
    
    /* CTAボタン */
    .selection-guide-cta-buttons {
        gap: 0.75rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .sg-cta-btn {
        padding: 0.75rem 2rem 0.75rem 0.875rem !important;
    }
    
    .sg-contact-btn {
        gap: 0.2rem;
    }
    
    .sg-btn-text {
        font-size: 0.8rem !important;
        line-height: 1.3;
    }
    
    .sg-btn-subtext {
        font-size: 0.6rem !important;
        line-height: 1.3;
    }
    
    .sg-btn-arrow {
        font-size: 1rem !important;
        right: 0.75rem !important;
    }
    
    /* アクションボタン */
    .guide-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-width: 160px;
    }
    
    .product-cards-section .blog-card {
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 390px) {
    /* 極小スマホ */
    .guide-header h1 {
        font-size: 1.35rem;
    }
    
    .question-section {
        padding: 1rem;
    }
    
    .option-button {
        padding: 0.75rem 0.875rem;
    }
    
    .result-section {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        padding: 1rem;
    }
    
    .selection-guide-cta-buttons {
        gap: 0.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .sg-cta-btn {
        padding: 0.6rem 1.75rem 0.6rem 0.75rem !important;
    }
    
    .sg-contact-btn {
        gap: 0.15rem;
    }
    
    .sg-btn-text {
        font-size: 0.75rem !important;
    }
    
    .sg-btn-subtext {
        font-size: 0.55rem !important;
    }
    
    .sg-btn-arrow {
        font-size: 0.9rem !important;
        right: 0.6rem !important;
    }
    
    .guide-btn {
        min-width: 140px;
        font-size: 0.8rem;
    }
}