/* ==========================================================================
   service-page.css - サービス別商品ページ
   ========================================================================== */

/* ヒーロー */
.service-hero {
    padding: 40px 0;
    background: var(--bg-primary, #fff);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.service-hero-image img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.service-hero-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    background: var(--bg-secondary, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #666);
}

.service-hero-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-primary, #1a1a1a);
}

.service-hero-desc {
    color: var(--text-secondary, #666);
    margin: 0 0 24px;
    line-height: 1.6;
}

/* 価格カード */
.service-price-card {
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.price-row + .price-row {
    border-top: 1px solid var(--border-color, #e0e5eb);
}

.price-row.highlight {
    padding: 12px 0;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary, #666);
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
}

.price-row.highlight .price-value {
    font-size: 24px;
    color: var(--primary-color, #0668E1);
}

/* CTAボタン */
.service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-color, #0668E1);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.service-cta-btn:hover {
    background: var(--primary-hover, #0554b8);
    color: #fff;
}

/* スペック */
.service-specs {
    padding: 48px 0;
    background: var(--bg-secondary, #f8f9fa);
}

.service-specs h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

.spec-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e0e5eb);
}

.spec-table th {
    width: 40%;
    font-weight: 600;
    color: var(--text-secondary, #666);
    font-size: 14px;
}

.spec-table td {
    color: var(--text-primary, #1a1a1a);
}

/* サービス特徴 */
.service-features {
    padding: 48px 0;
}

.service-features h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 32px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    background: var(--bg-secondary, #f8f9fa);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color, #0668E1);
    color: #fff;
    font-size: 20px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary, #666);
    line-height: 1.5;
    margin: 0;
}

/* 利用の流れ */
.service-flow {
    padding: 48px 0;
    background: var(--bg-secondary, #f8f9fa);
}

.service-flow h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 32px;
    text-align: center;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color, #0668E1);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.flow-step h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
}

.flow-step p {
    font-size: 13px;
    color: var(--text-secondary, #666);
    line-height: 1.5;
    margin: 0;
}

/* FAQ */
.service-faq {
    padding: 48px 0;
}

.service-faq h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color, #e0e5eb);
}

.faq-item summary {
    padding: 16px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--text-secondary, #666);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 0 16px;
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

/* 関連商品 */
.service-related {
    padding: 48px 0;
    background: var(--bg-secondary, #f8f9fa);
}

.service-related h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.related-card {
    display: block;
    text-decoration: none;
    color: var(--text-primary, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary, #fff);
    transition: box-shadow 0.2s;
}

.related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.related-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.related-name {
    display: block;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

/* Hubリンク */
.service-hub-link {
    padding: 48px 0;
}

.hub-link-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 32px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 16px;
}

.hub-link-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.hub-link-card p {
    color: var(--text-secondary, #666);
    margin: 0 0 20px;
    font-size: 14px;
}

.hub-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--primary-color, #0668E1);
    color: var(--primary-color, #0668E1);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.hub-link-btn:hover {
    background: var(--primary-color, #0668E1);
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-hero-content h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* カテゴリ一覧ページ */
.listing-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    color: var(--text-secondary, #666);
    font-size: 14px;
}

.brand-group {
    margin-bottom: 40px;
}

.brand-group-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color, #0668E1);
}

.brand-group-title a {
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
}

.brand-group-title a:hover {
    color: var(--primary-color, #0668E1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    display: block;
    text-decoration: none;
    color: var(--text-primary, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary, #f8f9fa);
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.product-card-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-secondary, #999);
    background: var(--bg-secondary, #eee);
}

.product-card-info {
    padding: 12px;
}

.product-card-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.product-card-price {
    font-size: 13px;
    color: var(--primary-color, #0668E1);
    font-weight: 600;
}

.other-categories {
    padding: 48px 0;
}

.other-categories h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}

.category-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-link-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--bg-secondary, #f8f9fa);
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.category-link-card:hover {
    background: var(--primary-color, #0668E1);
    color: #fff;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
