/* ==================================================
 * Single Card Layout
 * ================================================== */
.card-layout-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 2em;
}
.card-image-section {
    flex: 0 0 40%; /* 幅40%で固定 */
}
.card-details-section {
    flex: 1;
}

/* ==================================================
 * Section Title
 * ================================================== */
.section-title {
    font-size: 1.5em !important;
    border-bottom: 2px solid #003366 !important;
    padding-bottom: 0.5em !important;
    margin-bottom: 1em !important;
    color: #003366 !important;
}

/* ==================================================
 * Card Info Buttons (NEW)
 * ================================================== */
.card-info-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2em;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.info-label {
    font-weight: bold;
    color: #333;
    flex: 0 0 100px; /* ラベルの幅を固定 */
}
.info-value {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.info-button {
    display: inline-block;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    border: 1px solid #ddd !important;
    transition: all 0.2s ease !important;
}
.info-button:hover {
    background-color: #e0e0e0 !important;
    border-color: #ccc !important;
    color: #000 !important;
}

/* ==================================================
 * Price Table
 * ================================================== */
.cardgame-price-table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important; /* 上のh2でマージン管理 */
    font-size: 1rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: none !important;
}

.cardgame-price-table th,
.cardgame-price-table td {
    padding: 12px 15px !important;
    text-align: left !important;
    border: none !important;
    vertical-align: middle !important;
}

.cardgame-price-table thead th {
    background-color: #003366 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-align: center !important;
}

.cardgame-price-table tbody tr {
    border-bottom: 1px solid #dddddd !important;
}
.cardgame-price-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9 !important;
}
.cardgame-price-table tbody tr:last-of-type {
    border-bottom: none !important;
}
.cardgame-price-table tbody tr:hover {
    background-color: #f1f1f1 !important;
}
.cardgame-price-table td[data-label="価格"] {
    font-weight: bold;
    color: #d9534f;
}
.cardgame-price-table td a {
    font-weight: bold;
    color: #1176d4 !important;
    text-decoration: none !important;
}
.cardgame-price-table td a:hover {
    text-decoration: underline !important;
}


/* ==================================================
 * Responsive for Mobile
 * ================================================== */
@media (max-width: 767px) {
    .card-layout-wrapper {
        flex-direction: column;
    }
    .card-image-section {
        max-width: 300px;
        margin: 0 auto;
    }
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .info-label {
        flex-basis: auto;
    }
    
    /* Responsive Table */
    .cardgame-price-table thead {
        display: none !important;
    }
    .cardgame-price-table,
    .cardgame-price-table tbody,
    .cardgame-price-table tr,
    .cardgame-price-table td {
        display: block !important;
        width: 100% !important;
    }
    .cardgame-price-table tr {
        margin-bottom: 15px !important;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
    }
    .cardgame-price-table td {
        padding: 8px 0 !important;
        text-align: right !important;
        position: relative !important;
        border-bottom: 1px solid #eee;
    }
    .cardgame-price-table td:last-child {
        border-bottom: 0;
    }
    .cardgame-price-table td::before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 0 !important;
        width: 50% !important;
        padding-right: 10px !important;
        white-space: nowrap !important;
        text-align: left !important;
        font-weight: bold !important;
    }
}