/* ==============================================
   製品ページ: 機能・スペック詳細
============================================== */

.pp-specs {
    background: #fff !important;
    padding: 48px 0 !important;
}

.pp-specs__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- ヘッダー ---- */

.pp-specs__header {
    margin: 0 auto 32px !important;
    text-align: center !important;
}

.pp-specs__title {
    font-size: 28px !important;
    font-weight: 400 !important;
    color: #1A1A1A !important;
    margin: 0 0 16px !important;
    text-align: center !important;
}

.pp-specs__desc {
    font-size: 18px !important;
    color: #1A1A1A !important;
    margin: 0 !important;
    text-align: center !important;
}

/* ---- アコーディオン ---- */

.pp-specs__sections {
    margin-bottom: 32px;
}

.pp-specs__section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.pp-specs__section:hover {
    border-color: #CCFF00;
}

.pp-specs__section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pp-specs__section-header:hover {
    background: #f4f6f8;
}

.pp-specs__section-title {
    font-size: 18px !important;
    color: #1A1A1A !important;
    font-weight: 500;
    text-align: left;
}

.pp-specs__chevron {
    color: #9ca3af;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.pp-specs__section.is-open .pp-specs__chevron {
    transform: rotate(180deg);
    color: #1A1A1A;
}

.pp-specs__section.is-open .pp-specs__section-header {
    background: #f4f6f8;
}

/* ---- スペック行 ---- */

.pp-specs__section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pp-specs__section.is-open .pp-specs__section-body {
    max-height: 2000px;
}

.pp-specs__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
}

.pp-specs__label {
    font-size: 14px !important;
    color: #6b7280 !important;
    flex-shrink: 0;
    margin-right: 16px;
}

.pp-specs__value {
    font-size: 14px !important;
    color: #1A1A1A !important;
    text-align: right;
}

/* ---- 対応ソフトウェア ---- */

.pp-specs__software {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.pp-specs__software-title {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #1A1A1A !important;
    margin: 0 0 24px !important;
    text-align: center !important;
}

.pp-specs__software-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.pp-specs__software-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
}

.pp-specs__software-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

.pp-specs__software-placeholder {
    width: 64px;
    height: 64px;
    background: #f4f6f8;
    border-radius: 8px;
}

.pp-specs__software-name {
    font-size: 14px !important;
    color: #1A1A1A !important;
}

/* ---- CTA ---- */

.pp-specs__cta {
    text-align: center !important;
}

.pp-specs__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    background: #CCFF00;
    color: #1A1A1A;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
}

.pp-specs__cta-btn:hover {
    background-color: #b8e600;
}

/* ---- darkBg 対応 ---- */

.pp-specs.pp-dark-bg .pp-specs__title {
    color: #fff !important;
}

.pp-specs.pp-dark-bg .pp-specs__desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* アコーディオン・ソフトウェアは白背景を維持 */
.pp-specs.pp-dark-bg .pp-specs__section {
    background: #fff !important;
}

.pp-specs.pp-dark-bg .pp-specs__software {
    background: #fff !important;
}

/* ---- レスポンシブ ---- */

@media only screen and (max-width: 640px) {
    .pp-specs__title {
        font-size: 24px !important;
    }

    .pp-specs__row {
        flex-direction: column;
        gap: 4px;
    }

    .pp-specs__value {
        text-align: left;
    }

    .pp-specs__software-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
