/* ガイダンスページ用スタイル */

.guidance-section {
    background: var(--surface-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .guidance-section {
        padding: 1.5rem 1rem;
    }
}

.section-num {
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 10px;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* タブスタイル */
.ai-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--muted-surface-color);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--surface-color);
    color: var(--primary-color);
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--surface-color);
}

.tab-icon {
    margin-right: 0.3rem;
    font-size: 1.1em;
}

.gemini-icon {
    color: #2a9d5b;
}

.chatgpt-icon {
    color: #4a90e2;
}

.claude-icon {
    color: #9b59b6;
}

.tab-label {
    display: inline;
}

@media (max-width: 428px) {
    .ai-tabs {
        gap: 0.3rem;
    }

    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .tab-label {
        display: none;
    }

    .tab-icon {
        margin-right: 0;
    }
}

/* タブコンテント */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AIガイドコンテナ */
.ai-guide {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    background: var(--surface-color);
    margin-bottom: 1.5rem;
}

.ai-guide h3 {
    margin-top: 0;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid;
}

.chatgpt-guide {
    border-top: 5px solid #4a90e2;
}

.chatgpt-guide h3 {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.gemini-guide {
    border-top: 5px solid #2a9d5b;
}

.gemini-guide h3 {
    color: #2a9d5b;
    border-bottom-color: #2a9d5b;
}

.claude-guide {
    border-top: 5px solid #9b59b6;
}

.claude-guide h3 {
    color: #9b59b6;
    border-bottom-color: #9b59b6;
}

.ai-icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* ステップスタイル */
.step {
    background: var(--surface-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

.step1-section .step,
.step2-section .step {
    border-left: none;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.step-num {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 0.8rem;
    min-width: 50px;
    text-align: center;
}

.step-title {
    font-weight: bold;
    color: var(--primary-color);
}

.step-content {
    color: #555;
    line-height: 1.6;
}

.step-content p {
    margin: 0.5rem 0;
}

.step-content a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

.step-content a:hover {
    text-decoration: underline;
}

/* メモと注釈 */
.note {
    background: #fffbf0;
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.note strong {
    color: var(--accent-color);
}

.prompt-example {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    margin: 0.8rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.prompt-example strong {
    color: var(--accent-color);
    display: block;
    margin-top: 0.5rem;
}

.prompt-example strong:first-child {
    margin-top: 0;
}

.pricing-note {
    background: #f0f7ff;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* セキュリティ設定セクション */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.security-card {
    background: var(--surface-color);
    border: 1px solid #e4e4e4;
    border-top: 5px solid #999;
    border-radius: 8px;
    padding: 1rem;
}

.security-chatgpt {
    border-top-color: #4a90e2;
}

.security-gemini {
    border-top-color: #2a9d5b;
}

.security-claude {
    border-top-color: #9b59b6;
}

.security-card h3 {
    margin-top: 0;
}

.security-card ol,
.security-card ul {
    margin: 0.5rem 0 0.8rem 1.2rem;
    padding: 0;
    line-height: 1.6;
}

.security-sub {
    margin: 0.4rem 0;
    font-weight: 700;
    color: var(--primary-color);
}

.security-warning {
    margin-top: 1rem;
}

.pricing-note h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.pricing-note ul {
    margin: 0;
    padding-left: 1.5rem;
}

.pricing-note li {
    margin: 0.3rem 0;
}

/* ティップコンテナ */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (max-width: 428px) {
    .tips-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.tip {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #eee;
    border-top: 2px solid rgba(230, 126, 34, 0.45);
}

.step3-section .tip {
    border-top-color: rgba(44, 62, 80, 0.28);
}

.tip h4 {
    color: var(--accent-color);
    margin-top: 0;
}

.step3-section .tip h4 {
    color: #2f3e4d;
}

.tip p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

.tip ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.tip li {
    margin: 0.3rem 0;
    color: #555;
}

@media (max-width: 768px) {
    .step3-section .tip {
        padding: 1rem;
    }

    .step3-section .tip h4 {
        margin: 0;
    }

    .step3-section .tip .tip-toggle {
        position: relative;
        padding-right: 1.4rem;
        cursor: pointer;
        line-height: 1.35;
    }

    .step3-section .tip .tip-toggle::after {
        content: '▾';
        position: absolute;
        right: 0;
        top: 0;
        color: #7a7a7a;
        transition: transform 0.2s ease;
    }

    .step3-section .tip .tip-content {
        display: none;
        margin-top: 0.6rem;
    }

    .step3-section .tip.is-open .tip-content {
        display: block;
    }

    .step3-section .tip.is-open .tip-toggle::after {
        transform: rotate(180deg);
    }

    .step3-section .tip .tip-toggle:focus-visible {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .step1-section .tab-content.active,
    .step2-section .tab-content.active,
    .step4-section .tab-content.active {
        display: block;
    }

    .step1-section .tab-content.active > :not(h3),
    .step2-section .tab-content.active > :not(h3),
    .step4-section .tab-content.active > :not(h3) {
        display: none;
    }

    .step1-section .tab-content.active > h3,
    .step2-section .tab-content.active > h3,
    .step4-section .tab-content.active > h3 {
        cursor: pointer;
    }

    .step1-section .pricing-note {
        margin-top: 0.9rem;
    }

    .step1-section .pricing-note .pricing-toggle {
        position: relative;
        padding-right: 1.4rem;
        margin-bottom: 0;
        cursor: pointer;
    }

    .step1-section .pricing-note .pricing-toggle::after {
        content: '▾';
        position: absolute;
        right: 0;
        top: 0;
        color: #7a7a7a;
        transition: transform 0.2s ease;
    }

    .step1-section .pricing-note ul,
    .step1-section .pricing-note p {
        display: none;
    }

    .step1-section .pricing-note.is-open ul,
    .step1-section .pricing-note.is-open p {
        display: block;
    }

    .step1-section .pricing-note.is-open .pricing-toggle::after {
        transform: rotate(180deg);
    }

    .step1-section .pricing-note .pricing-toggle:focus-visible {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .step1-section.show-details .tab-content.active > :not(h3),
    .step2-section.show-details .tab-content.active > :not(h3),
    .step4-section.show-details .tab-content.active > :not(h3) {
        display: block;
    }
}

/* FAQ */
.faq {
    background: var(--surface-color);
    border-radius: 8px;
}

.faq-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-bottom: 2px solid #eee;
    margin-bottom: 1rem;
}

.faq-item:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.faq-item ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.faq-item li {
    margin: 0.4rem 0;
}

/* 次のステップ */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (max-width: 428px) {
    .next-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.step-box {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    text-align: left;
}

.step-box h4 {
    color: var(--accent-color);
    margin-top: 0;
}

.step-box p {
    color: #555;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.step-box a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

.step-box a:hover {
    text-decoration: underline;
}

.guide-duration {
    color: #e67e22;
    font-weight: bold;
}

.step0-summary {
    margin: 0 0 1rem;
    color: #555;
}

.ai-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.compare-card {
    background: var(--surface-color);
    border: 2px solid #eee;
    border-top: 5px solid;
    border-radius: 8px;
    padding: 1rem;
}

.compare-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.compare-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.compare-card li {
    margin: 0.4rem 0;
    color: #555;
    font-size: 0.95rem;
}

.compare-chatgpt {
    border-top-color: #4a90e2;
}

.compare-chatgpt h3 {
    color: #4a90e2;
}

.compare-gemini {
    border-top-color: #2a9d5b;
}

.compare-gemini h3 {
    color: #2a9d5b;
}

.compare-claude {
    border-top-color: #9b59b6;
}

.compare-claude h3 {
    color: #9b59b6;
}

@media (max-width: 768px) {
    .ai-compare-grid .compare-card {
        padding: 0.9rem 1rem;
    }

    .ai-compare-grid .compare-card h3 {
        margin: 0;
    }

    .ai-compare-grid .compare-card .compare-toggle {
        position: relative;
        padding-right: 1.4rem;
        cursor: pointer;
        line-height: 1.35;
    }

    .ai-compare-grid .compare-card .compare-toggle::after {
        content: '▾';
        position: absolute;
        right: 0;
        top: 0;
        color: #666;
        transition: transform 0.2s ease;
    }

    .ai-compare-grid .compare-card ul {
        display: none;
        margin-top: 0.75rem;
    }

    .ai-compare-grid .compare-card.is-open ul {
        display: block;
    }

    .ai-compare-grid .compare-card.is-open .compare-toggle::after {
        transform: rotate(180deg);
    }

    .ai-compare-grid .compare-card .compare-toggle:focus-visible {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
        border-radius: 4px;
    }
}

.next-steps-card {
    background: #f0f9ff;
    border-top-color: #4cae4c;
}

.back-home-wrap {
    margin-top: 2rem;
    text-align: center;
}

/* スマートフォン最適化（国内主要幅 375px 基準） */
@media (max-width: 375px) {
    .guidance-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .section-num {
        font-size: 1.3rem;
    }

    .step {
        padding: 0.8rem;
        border-left-width: 3px;
    }

    .step-num {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
        min-width: 40px;
    }

    .step-title {
        font-size: 0.9rem;
    }

    .note {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .prompt-example {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .tip {
        padding: 1rem;
    }

    .tip h4 {
        font-size: 0.95rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-item h4 {
        font-size: 1rem;
    }
}
