/* paozip.css - paozip 製品ページ固有のスタイル */

/* ═══ 2×2 ダイアグラム（SVG マトリクス） ═══ */
.paozip-matrix-svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 2rem auto;
    display: block;
}

/* ═══ Studio ハイライトセクション ═══ */
.studio-highlight {
    background: linear-gradient(135deg, #f8f5ff, #ede7f6);
    border: 2px solid #D1C4E9;
    border-radius: 16px;
    padding: 2rem !important;
}

.studio-tagline {
    font-size: 1.1rem;
    color: #512BD4;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.studio-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.studio-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.studio-features li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: #512BD4;
    font-weight: bold;
}

.studio-download-area {
    margin: 1.5rem 0;
}

.studio-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #512BD4, #7B1FA2);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(81,43,212,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.studio-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81,43,212,0.4);
}

/* ═══ プラットフォーム別ダウンロード（2列グリッド） ═══ */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1rem 0;
}

.platform-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    border: 1px solid rgba(81,43,212,0.1);
}

.platform-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a40;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.studio-download-btn.mac {
    background: linear-gradient(135deg, #1a1a40 0%, #333366 100%);
    box-shadow: 0 4px 12px rgba(26,26,64,0.3);
}

.studio-download-btn.mac:hover {
    box-shadow: 0 6px 20px rgba(26,26,64,0.4);
}

/* セカンダリボタン（ZIP/ポータブル） */
.studio-download-btn-alt {
    display: inline-block;
    background: #fff;
    color: #512BD4;
    padding: 0.7rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #512BD4;
    margin-top: 0.8rem;
    transition: all 0.2s ease;
}

.studio-download-btn-alt:hover {
    background: #512BD4;
    color: #fff;
    transform: translateY(-1px);
}

.studio-download-btn-alt.mac {
    color: #1a1a40;
    border-color: #1a1a40;
}

.studio-download-btn-alt.mac:hover {
    background: #1a1a40;
    color: #fff;
}

.download-common-note {
    text-align: center;
    font-size: 0.88rem;
    color: #888;
    margin-top: 0.8rem;
}

/* ═══ アコーディオン（言語別セクション折りたたみ） ═══ */
.lang-accordion {
    margin: 1.5rem 0;
}

.lang-accordion-item {
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.lang-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #1a1a40;
    color: #00ff88;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.3s ease;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 1px;
}

.lang-accordion-header:hover {
    background: #2a2a50;
}

/* コンパイル型言語のアコーディオンヘッダー（紫系） */
.lang-accordion-header.compiled {
    background: linear-gradient(135deg, #2d1b69, #1a1a40);
    color: #b388ff;
}

.lang-accordion-header.compiled:hover {
    background: linear-gradient(135deg, #3d2b79, #2a2a50);
}

.lang-accordion-header.compiled .accordion-arrow {
    color: #b388ff;
}

.lang-accordion-header .lang-icon {
    font-size: 1.3rem;
    margin-right: 0.8rem;
}

.lang-accordion-header .lang-title {
    flex: 1;
}

.lang-accordion-header .accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #00cc6a;
}

.lang-accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.lang-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
}

.lang-accordion-item.open .lang-accordion-body {
    max-height: 5000px;
}

.lang-accordion-content {
    padding: 1.5rem;
}

/* ═══ アコーディオン内ダウンロードボタン ═══ */
.accordion-download {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1rem 0 0;
}

.accordion-download .sample-download {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.accordion-download .sample-download.demo {
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}

.accordion-download .sample-download.demo:hover {
    background: #e0e0e0;
}

/* ═══ 取扱い注意ボックス ═══ */
.accordion-caution {
    background: rgba(255,152,0,0.08);
    border-left: 4px solid #FF9800;
    padding: 1rem 1.2rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.accordion-caution h4 {
    color: #E65100;
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.accordion-caution p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.caution-files {
    background: #fff;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.caution-files code {
    background: #FFF3E0;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-weight: bold;
    color: #E65100;
}

.caution-note {
    color: #888;
    font-size: 0.88rem !important;
}

/* ═══ コード表示スタイル ═══ */
.paozip-code-example {
    background: #1E1E1E;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #D4D4D4;
    overflow-x: auto;
}

.paozip-code-example code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
    white-space: pre;
}

/* ═══ ライセンス種別テーブル ═══ */
.license-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.license-table th {
    background: #1a1a40;
    color: #00ff88;
    padding: 1rem;
    text-align: left;
    font-weight: 500;
}

.license-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #fff;
}

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

.license-table tr:hover td {
    background: #f8f9fa;
}

/* ═══ ダウンロード関連（残存スタイル） ═══ */
.download-note {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.4rem;
}

.studio-demos {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.studio-demos summary {
    cursor: pointer;
    font-size: 0.95rem;
    color: #512BD4;
    font-weight: 600;
}

.studio-demos summary:hover {
    text-decoration: underline;
}

.demos-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0.8rem 0;
    line-height: 1.6;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
}

.demo-grid li {
    margin: 0;
}

.demo-grid .sample-download {
    display: block;
    text-align: center;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ═══ リリース情報（折りたたみ） ═══ */
.release-info details summary {
    cursor: pointer;
    user-select: none;
}

.release-info details summary:hover h3 {
    color: #00cc6a;
}

/* ═══ レスポンシブ ═══ */
@media (max-width: 599px) {
    .paozip-matrix-svg {
        max-width: 100%;
    }

    .lang-accordion-header {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .studio-highlight {
        padding: 1rem !important;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .studio-download-btn {
        display: block;
        text-align: center;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .accordion-download {
        flex-direction: column;
    }

    .accordion-download .sample-download {
        text-align: center;
    }
}
