:root {
    --primary-color: #0066cc;
    --secondary-color: #00d2ff;
    --bg-color: #f0f4f8;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-color: #333;
    --accent-bg: #e3f2fd;
    --header-bg: linear-gradient(135deg, #004a99 0%, #0077ee 100%);
}

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 102, 204, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 210, 255, 0.05) 0, transparent 50%);
}

header {
    background: var(--header-bg);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 1.5rem auto 0;
}

.container {
    max-width: 1100px;
    margin: -60px auto 5rem;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

section {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 4rem;
    margin-bottom: 4rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
}

h2::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 40px;
    background: var(--primary-color);
    margin-right: 20px;
    border-radius: 6px;
}

h3 {
    color: #444;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

h3::before {
    content: '✓';
    color: var(--secondary-color);
    margin-right: 15px;
    font-weight: bold;
}

.screenshot {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 1.5rem auto 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

/* PC version screenshots can be wider */
.pc-manual .screenshot {
    max-width: 100%;
}

.screenshot:hover {
    transform: scale(1.02);
}

.steps-box {
    background: var(--accent-bg);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border-left: 6px solid var(--primary-color);
    margin-top: 1.5rem;
}

.steps-box ol {
    margin: 0;
    padding-left: 1.2rem;
}

.steps-box li {
    margin-bottom: 1rem;
    font-weight: 500;
}

.badge {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

ul.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
    margin-top: 20px;
}

ul.grid li {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

ul.grid li strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

footer {
    background: #333;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Print Button Styling */
.print-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.print-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* Print Styles */
@media print {
    /* Reset everything that can block multi-page printing */
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    html, body {
        height: auto !important;
        overflow: visible !important;
        min-height: 0 !important;
        width: 100% !important;
        background: white !important;
        background-image: none !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-btn,
    header a[href="index.html"] {
        display: none !important;
    }

    header {
        position: static !important;
        padding: 2rem 1rem !important;
        overflow: visible !important;
        background: white !important;
        color: #000 !important;
        border-bottom: 3px solid #0066cc;
    }

    header h1 {
        color: #0066cc !important;
        font-size: 2rem !important;
    }

    header p {
        color: #333 !important;
        opacity: 1 !important;
    }

    .container {
        position: static !important;
        z-index: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    section {
        position: static !important;
        display: block !important;
        width: 100% !important;
        background: white !important;
        border: none !important;
        border-bottom: 1px solid #ccc !important;
        border-radius: 0 !important;
        padding: 1.5rem 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        page-break-before: always;
        break-before: page;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    section:first-of-type {
        page-break-before: auto;
        break-before: auto;
    }

    h2 {
        color: #0066cc !important;
        font-size: 1.5rem !important;
        border-bottom: 2px solid #ccc !important;
    }

    h2::before {
        background: #0066cc !important;
    }

    .screenshot {
        max-width: 200px !important;
        width: 200px !important;
        height: auto !important;
        page-break-inside: avoid;
        break-inside: avoid;
        display: block;
        margin: 1rem auto !important;
    }

    /* PC版のみ：スクリーンショットを大きく表示 */
    .pc-manual .screenshot {
        max-width: 90% !important;
        width: 90% !important;
    }

    /* 特定の小タイトルを次ページから開始 */
    .print-page-break {
        page-break-before: always !important;
        break-before: page !important;
    }

    .steps-box {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
        border-left: 4px solid #0066cc !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* メニュー概要セクションを1ページに収めるための調整 */
    #menu-overview {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    #menu-overview .badge {
        margin-bottom: 0.5rem !important;
    }

    #menu-overview h2 {
        margin-bottom: 0.5rem !important;
    }

    #menu-overview .screenshot {
        max-width: 70% !important;
        width: 70% !important;
        margin-bottom: 1rem !important;
    }

    #menu-overview ul.grid {
        margin-top: 0.5rem !important;
        gap: 8px !important;
    }

    #menu-overview ul.grid li {
        padding: 10px 15px !important;
    }

    #menu-overview ul.grid li strong {
        margin-bottom: 2px !important;
        font-size: 1rem !important;
    }

    #menu-overview .logout-section {
        margin-top: 0.8rem !important;
    }

    #menu-overview .logout-section h3 {
        margin-top: 0 !important;
        margin-bottom: 0.2rem !important;
    }

    footer {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 { font-size: 2.2rem; }
    section { padding: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .container { margin-top: -30px; }
}

/* Q&A Styles */
.qa-list {
    margin-top: 2rem;
}

.qa-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 102, 204, 0.08);
}

.qa-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1.2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qa-question-icon {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    flex-shrink: 0;
}

.qa-answer {
    color: #444;
}

.qa-answer p {
    margin: 0 0 1rem 0;
    line-height: 1.8;
}

.qa-answer p:last-child {
    margin-bottom: 0;
}

.qa-answer-category {
    display: inline-block;
    background: #f0f4f8;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* Q&A Table Styling */
.qa-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.qa-table th, .qa-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    text-align: left;
}

.qa-table th {
    background: #f0f4f8;
    color: var(--primary-color);
    font-weight: 700;
}

.qa-table tr:nth-child(even) {
    background: #fcfdfe;
}

/* Accordion Styles */
.qa-accordion {
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.3s;
}

.qa-accordion:hover {
    border-color: rgba(0, 102, 204, 0.3);
}

.qa-accordion-summary {
    padding: 14px 20px;
    font-weight: 700;
    color: var(--primary-color);
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
}

.qa-accordion-summary::-webkit-details-marker {
    display: none;
}

.qa-accordion-summary::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #a0aec0;
}

details[open] .qa-accordion-summary::after {
    transform: rotate(180deg);
}

.qa-accordion-content {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

/* Print Styles for Accordions */
@media print {
    details.qa-accordion {
        border: 1px solid #ccc !important;
        margin-bottom: 1.5rem !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    details.qa-accordion .qa-accordion-content {
        display: block !important;
        border-top: 1px solid #ccc !important;
        padding: 10px !important;
    }
    
    .qa-accordion-summary::after {
        display: none !important;
    }
    
    .qa-accordion-summary {
        background: #f5f5f5 !important;
        color: #000 !important;
        padding: 8px 12px !important;
    }
}


