/* ダウンロードページ専用スタイル */

.download-page {
    padding: 180px 0 80px;
    background-color: #fff;
}

.download-page .container {
    max-width: 1000px;
    margin: 0 auto;
}
/* ページタイトル */
.download-title-section {
    margin-bottom: 40px;
}

.page-title {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: #444;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.title-bar {
    display: inline-block;
    width: 4px;
    height: 28px;
    background-color: #dc3545;
    margin-right: 12px;
}

/* メインダウンロードボタン */
.main-download-section {
    text-align: center;
    margin: 60px 0;
}

.download-button-wrapper {
    display: inline-block;
}

.main-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(180deg, #ff6b6b 0%, #dc3545 100%);
    color: #fff;
    padding: 30px 60px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    min-width: 300px;
}

.main-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(180deg, #ff7878 0%, #e04848 100%);
}

.download-icon {
    width: 40px;
    height: 40px;
    stroke: #fff;
}

.download-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-text-ja {
    font-size: 32px;
    line-height: 1.2;
}

.download-text-en {
    font-size: 16px;
    opacity: 0.9;
    font-weight: normal;
}

/* インストールガイド */
.install-guide-section {
    margin: 60px 0;
    padding: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.install-guide-header {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: linear-gradient(180deg, #fff0f0 0%, #ffe5e5 100%);
    border-radius: 999px;
    border: 1px solid #fca5a5;
    margin-bottom: 32px;
}

.install-guide-label {
    font-size: 16px;
    font-weight: 700;
    color: #d3273b;
    letter-spacing: 0.08em;
}

.install-guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: center;
}

.install-guide-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #444;
}

.install-guide-title {
    font-size: 24px;
    color: #d3273b;
    margin: 0;
    line-height: 1.4;
}

.install-guide-lead {
    font-size: 16px;
    font-weight: 600;
    color: #57534e;
    margin: 0;
}

.install-guide-text p {
    margin: 0;
    line-height: 1.8;
    font-size: 15px;
}

.install-guide-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.install-guide-placeholder {
    width: 100%;
    max-width: 420px;
    min-height: 240px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.install-guide-placeholder img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* 情報ボックス（点線ボーダー） */
.info-box {
    padding: 20px;
    margin: 20px 0;
    background-color: #fff;
}

.dotted-border {
    border: 1px dashed #999;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    line-height: 1.8;
    color: #444;
    font-size: 15px;
}

.info-box a {
    color: #007bff;
    text-decoration: underline;
}

.info-box a:hover {
    color: #0056b3;
}

/* マニュアルリンク */
.manual-links {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.manual-links a {
    color: #007bff;
    text-decoration: underline;
    font-size: 15px;
}

.manual-links a:hover {
    color: #0056b3;
}

/* セクション区切り */
.section-divider {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 40px 0;
}

/* セクションヘッディング */
.section-heading {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #444;
    margin: 40px 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.heading-bar {
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: #dc3545;
    margin-right: 12px;
}

/* 警告ボックス */
.warning-box {
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    border: 1px solid #dc3545;
}

.security-warning {
    background-color: #fff5f5;
}

.policy-warning {
    background-color: #fff5f5;
}

.old-version-warning {
    background-color: #fff5f5;
}

.warning-title {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    margin: 0 0 15px 0;
}

.warning-box p {
    margin: 0;
    line-height: 1.8;
    color: #444;
    font-size: 15px;
}

.red-underline {
    text-decoration: underline;
    text-decoration-color: #dc3545;
    text-underline-offset: 2px;
}

/* 一般情報 */
.general-info {
    margin: 30px 0;
}

.general-info p {
    line-height: 1.8;
    color: #444;
    font-size: 15px;
}

/* ブラウザ情報ボックス */
.browser-info-container {
    margin: 30px 0;
}

.browser-info-box {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.browser-info-box:hover {
    border-color: #bbb;
}

.browser-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.browser-info-header:hover {
    background-color: #f0f0f0;
}

.expand-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.browser-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.browser-info-box.open .browser-info-content {
    padding: 15px 20px;
}

.browser-info-content p {
    margin: 0;
    line-height: 1.8;
    color: #444;
    font-size: 14px;
}

/* ダウンロードできない場合のトラブルシューティング */
.download-troubleshooting {
    margin: 60px 0;
    padding: 32px 28px;
    background: linear-gradient(180deg, #fffdfd 0%, #fff6f6 100%);
    border: 1px solid #fca5a5;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 18px 36px rgba(220, 53, 69, 0.08);
}

.download-troubleshooting .section-heading.alt {
    margin-top: 0;
    margin-bottom: 16px;
    color: #b91c1c;
}

.troubleshooting-lead {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
}

.troubleshooting-item {
    border: 1px solid #fca5a5;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.08);
}

.troubleshooting-item:last-of-type {
    margin-bottom: 0;
}

.troubleshooting-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #b91c1c;
    font-size: 16px;
    background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
}

.troubleshooting-item[open] summary {
    background: linear-gradient(180deg, #fecaca 0%, #fca5a5 100%);
}

.troubleshooting-item summary::-webkit-details-marker {
    display: none;
}

.item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #b91c1c;
    font-weight: 700;
}

.item-body {
    padding: 24px;
    background: #fff;
    display: grid;
    gap: 20px;
}

.item-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #b91c1c;
}

.item-section p {
    margin: 0;
    line-height: 1.8;
    color: #374151;
    font-size: 15px;
}

.item-callout {
    padding: 16px 18px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    line-height: 1.7;
    font-size: 14px;
}

.item-callout strong {
    display: block;
    margin-bottom: 8px;
}

/* 旧バージョンリンク */
.old-version-link {
    color: #444;
    text-decoration: underline;
    font-size: 15px;
}

.old-version-link:hover {
    color: #007bff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .download-page {
        padding: 20px 0 40px;
    }

    .page-title {
        font-size: 24px;
    }

    .main-download-btn {
        flex-direction: column;
        padding: 25px 40px;
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .download-text-ja {
        font-size: 28px;
    }

    .download-text-en {
        font-size: 14px;
    }

    .download-icon {
        width: 35px;
        height: 35px;
    }

    .section-heading {
        font-size: 20px;
    }

    .info-box {
        padding: 15px;
    }

    .warning-box {
        padding: 15px;
    }

    .manual-links {
        flex-direction: column;
        gap: 10px;
    }

    .manual-links a {
        display: block;
    }

    .install-guide-section {
        padding: 28px 24px;
        margin: 40px 0;
    }

    .install-guide-header {
        margin-bottom: 24px;
    }

    .install-guide-content {
        grid-template-columns: 1fr;
    }

    .install-guide-title {
        font-size: 20px;
    }

    .install-guide-placeholder {
        min-height: 200px;
    }

    .download-troubleshooting {
        padding: 24px 20px;
        margin: 40px 0;
    }

    .troubleshooting-item summary {
        padding: 16px 20px;
        font-size: 15px;
    }

    .item-body {
        padding: 20px;
    }

    .item-callout {
        font-size: 13px;
    }
}






