/* ============================================================
   parts.css — パーツ一覧 (parts.html) & 詳細 (part-detail.html)
   ============================================================ */

/* ── パーツグリッド ───────────────────────────────────────────── */
.parts-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .parts-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .parts-list-grid { grid-template-columns: 1fr; }
}

/* ── パーツカード ─────────────────────────────────────────────── */
.parts-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.parts-card-img-link { display: block; }
.parts-card-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a2e;
}
.parts-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.parts-card:hover .parts-card-img-wrapper img { transform: scale(1.04); }

.parts-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--clr-accent, #4ecdc4);
    color: #000;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
}

.parts-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.parts-card-name-link { text-decoration: none; color: inherit; }
.parts-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.parts-card-tagline {
    font-size: .82rem;
    color: var(--clr-text-muted, #999);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.parts-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.parts-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-accent, #4ecdc4);
    white-space: nowrap;
}
.parts-card-price-tax { font-size: .7rem; font-weight: 400; color: var(--clr-text-muted, #999); }

.parts-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* デモボタン */
.parts-card-demo-btn {
    font-size: .78rem;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    color: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
}
.parts-card-demo-btn:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.5);
}

/* カートボタン */
.parts-card-cart-btn {
    font-size: .78rem;
    padding: 6px 14px;
    background: var(--clr-accent, #4ecdc4);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity .2s, background .2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.parts-card-cart-btn:hover { opacity: .85; }
.parts-card-cart-btn--added {
    background: rgba(255,255,255,.15);
    color: var(--clr-text-muted, #999);
    cursor: default;
}
.parts-card-cart-btn--service {
    background: var(--clr-accent, #4ecdc4);
    color: #000;
    font-weight: 700;
}

.parts-card-note {
    font-size: .74rem;
    color: #e8a44a;
    margin: 0;
    line-height: 1.5;
}

/* ── FLOW 注意書きバナー ─────────────────────────────────────── */
.flow-notice-section { padding-top: 0; }

.flow-notice-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 16px;
    flex-wrap: wrap;
}
.flow-notice-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.flow-notice-body { flex: 1; min-width: 200px; }
.flow-notice-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.flow-notice-body p  { margin: 0; font-size: .88rem; color: var(--clr-text-muted, #aaa); line-height: 1.7; }
.flow-notice-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── デモモーダル（parts.html 共通） ────────────────────────── */
.parts-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.parts-modal[hidden] { display: none; }

.parts-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
}
.parts-modal-content {
    position: relative;
    z-index: 1;
    width: min(90vw, 960px);
    height: min(80vh, 700px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.parts-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .2s;
}
.parts-modal-close:hover { background: rgba(255,255,255,.3); }
.parts-modal-body {
    flex: 1;
    overflow: hidden;
}
.parts-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── part-detail.html 固有 ───────────────────────────────────── */
.td-description {
    font-size: .96rem;
    line-height: 1.9;
    color: var(--clr-text-muted, #ccc);
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.pd-note {
    background: rgba(232, 164, 74, .12);
    border: 1px solid rgba(232, 164, 74, .3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .8rem;
    color: #e8a44a;
    line-height: 1.6;
    margin: 12px 0;
}
.pd-note-icon { margin-right: 6px; }

.td-bottom-cta {
    padding: 80px 0;
}
.td-cta-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.td-cta-desc {
    font-size: .9rem;
    color: var(--clr-text-muted, #aaa);
    margin-bottom: 32px;
}
.td-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.td-btn-back {
    font-size: .9rem;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.td-btn-back:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.5);
}

/* フッターリンク更新（parts.html 対応） */
