.seminar-detail {
    max-width: 900px;
    margin: 0 auto;
}
.seminar-detail__header {
    margin-bottom: 30px;
}
.seminar-detail__title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}
.seminar-detail__banner {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* .seminar-detail__section の枠・背景・余白は 4438（renewal-common.css の
   body#page_seminar_detail .seminar-detail__section）で制御するため、ここでは重複定義しない。
   detail/preview とも seminar_detail ルート＝body#page_seminar_detail のため両方に適用される */
.seminar-detail__section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}
.seminar-info-table {
    width: 100%;
}
.seminar-info-table th {
    width: 120px;
    padding: 10px 0;
    vertical-align: top;
    color: #666;
    font-weight: normal;
}
.seminar-info-table td {
    padding: 10px 0;
}
.seminar-info-table tr {
    border-bottom: 1px solid #eee;
}
.seminar-info-table tr:last-child {
    border-bottom: none;
}
.seminar-description {
    line-height: 1.8;
}
.ticket-list {
    margin-top: 15px;
}
.ticket-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ticket-item:last-child {
    margin-bottom: 0;
}
.ticket-item__info {
    flex: 1;
}
.ticket-item__name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}
.ticket-item__price {
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
}
.ticket-item__price--free {
    color: #28a745;
}
.ticket-item__remaining {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}
.ticket-item__remaining--few {
    color: #d98d10;
    font-weight: bold;
}
.ticket-item__remaining--full {
    color: #dc3545;
    font-weight: bold;
}
.ticket-item__action {
    margin-left: 20px;
}
.btn-apply {
    background: #007bff;
    color: #fff;
    padding: 10px 30px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.btn-apply:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}
.btn-apply:disabled,
.btn-apply.disabled {
    background: #6c757d;
    cursor: not-allowed;
}
.btn-login {
    background: #28a745;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}
.btn-login:hover {
    background: #1e7e34;
    color: #fff;
    text-decoration: none;
}
.seminar-signup-form {
    margin-top: 10px;
}
.btn-signup {
    background: #fff;
    color: #5bb73c;
    padding: 10px 30px;
    border-radius: 4px;
    border: 1px solid #5bb73c;
    font-weight: bold;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.btn-signup:hover {
    background: #5bb73c;
    color: #fff;
}
.event-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}
.event-type-badge--real {
    background: #17a2b8;
    color: #fff;
}
.event-type-badge--online {
    background: #6f42c1;
    color: #fff;
}
.event-type-badge--both {
    background: #fd7e14;
    color: #fff;
}
.seminar-map {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}
.seminar-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
}
.seminar-map__link {
    margin-top: 10px;
}
.detail-action-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.detail-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 4px;
}
.detail-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.detail-qty-btn:hover:not([disabled]) { background: #f0f0f0; }
.detail-qty-btn[disabled] { opacity: .4; cursor: not-allowed; }
.detail-qty-val {
    width: 28px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}
.ec-off4Grid {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
}
.ec-off4Grid .ec-off4Grid__cell {
    margin-left: 0;
}
.ec-off4Grid .ec-off4Grid__cell a {
    width: 100%;
    outline: none;
    text-decoration: none !important;
}

/* リニューアル後の /entry の .ps-btn-primary（赤・角丸10px・影なし）に揃える */
.ec-off4Grid .ec-off4Grid__cell a.btn.btn-warning {
    background-color: var(--pr-accent);
    border: none;
    border-radius: 10px;
    box-shadow: none;
    text-shadow: none;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    outline: none;
    transition: opacity .15s ease;
    margin-bottom: 0;
}

.ec-off4Grid .ec-off4Grid__cell a.btn.btn-warning:is(:hover,:focus) {
    background-color: var(--pr-accent);
    opacity: .88;
}

.detail-action-wrap .btn {
    cursor: pointer;
}

/* カート追加ボタンも style.css の旧オレンジ .btn-primary を上書きして赤・角丸10px・影なしにそろえる */
.detail-action-wrap .btn-primary,
.detail-action-wrap .btn-primary.js-cart-add {
    background-color: var(--pr-accent);
    border: none;
    border-radius: 10px;
    box-shadow: none;
    outline: none !important;
}

.detail-action-wrap .btn-primary:is(:hover, :focus, :active),
.detail-action-wrap .btn-primary.js-cart-add:is(:hover, :focus, :active) {
    background-color: var(--pr-accent);
    opacity: .88;
    transform: none;
}

.detail-action-wrap .js-cart-remove {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

@media only screen and (max-width: 767px) {
    .ec-off4Grid {
        display: inline-grid;
        margin: 0 auto;
        width: 100%;
    }
}

@media only screen and (max-width: 475px) {
    .ec-role {
        padding-left: 0;
        padding-right: 0;
    }
    .ticket-list .ticket-item {
        flex-direction: column;
        gap: 10px;
    }
    .ticket-item__info {
        align-self: flex-start;
        width: 100%;
    }
    .ticket-item__action {
        margin-left: 0;
    }
    .detail-action-wrap {
        gap: 8px;
    }
    .ec-off4Grid {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    .ec-off4Grid .ec-off4Grid__cell {
        width: 100%;
    }
}
