/* ==========================================================================
   BLACK SAMURAI SUMMIT 2026 - Campaign Styles
   Design: Minimal dark theme, typography-driven (公式サイト準拠)
   ========================================================================== */

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.main,
.fixed-apply-buttons {
    max-width: 100%;
}

/* Override common style.css */
.main {
    background: transparent !important;
    width: 100% !important;
    margin: 0 auto 0 !important;
    color: #FFFFFF !important;
    padding: 0 !important;
}

.main a {
    color: #FFFFFF;
    text-decoration: none;
}

.main a:hover {
    color: #E20000;
}

.main p,
.main li,
.main small,
.main span,
.main div {
    color: inherit;
}

/* --- Variables --- */
:root {
    --color-primary: #E20000;
    --color-bg: #000000;
    --color-text: #FFFFFF;
    --color-text-muted: #999999;
    --color-border: rgba(255, 255, 255, 0.12);

    --font-en: 'Poppins', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;

    --heading-weight: 900;
    --heading-size-lg: clamp(1.8rem, 4vw, 2.5rem);
    --heading-size-md: clamp(1.4rem, 3vw, 1.8rem);
    --heading-size-sm: clamp(1.1rem, 2.5vw, 1.4rem);

    --btn-radius: 40px;
    --btn-font-size: 18px;
    --btn-font-weight: 900;

    --section-gap: 50px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;

    --container-max: 800px;
    --container-padding: 0 20px;
}

/* --- Body --- */
body {
    background: #000000 url('//d1mts1n1u0bek1.cloudfront.net/std/campaigns/1cm/advance-ticket/blacksamurai2026/images/bg.jpg') no-repeat center top / cover !important;
    background-attachment: fixed !important;
    color: #FFFFFF !important;
    font-family: var(--font-en), var(--font-ja), sans-serif;
    line-height: 1.65;
}

.main {
    background: transparent;
    position: relative;
}

.main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
    pointer-events: none;
}

/* --- Utility --- */
.text-red {
    color: #E20000 !important;
    font-weight: 900 !important;
}

.marker {
    background: linear-gradient(transparent 60%, #FFE44D 60%);
    padding: 0 2px;
    font-weight: 900;
}

.pc-br {
    display: inline;
}

.phone-br {
    display: none;
}

small {
    font-size: 0.85em;
}

/* ==========================================================================
   KV + Title 2-Column Layout
   ========================================================================== */
.kv-title-wrapper {
    display: flex;
    align-items: stretch;
}

.kv-image-wrap {
    flex: 0 0 42%;
    position: relative;
}

.kv-title-wrapper .kv-image {
    position: relative;
    overflow: hidden;
}

.kv-title-wrapper .kv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.kv-copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    border: none;
    padding: 2px 8px;
    display: inline-block;
    letter-spacing: 0.02em;
    position: absolute;
    bottom: 8px;
    right: 16px;
    z-index: 2;
}

/* --- KV Info (right column) --- */
.kv-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border-left: 3px solid #E20000;
}

.kv-badge {
    display: inline-block;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #FFFFFF;
    letter-spacing: 0.2em;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 8px 32px;
    margin-bottom: var(--spacing-md);
}

.kv-divider {
    border: none;
    height: 2px;
    width: 80px;
    background: #E20000;
    margin: 0 auto var(--spacing-md);
}

.kv-title {
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #E20000;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin: 0 0 var(--spacing-md);
}

.kv-reception {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

/* ==========================================================================
   Fixed Bottom Buttons
   ========================================================================== */
.fixed-apply-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    z-index: 1000;
    border-top: 2px solid var(--color-primary);
}

.fixed-button-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.fixed-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px 16px;
    background: var(--color-primary);
    color: var(--color-text);
    text-decoration: none;

    font-weight: var(--btn-font-weight);
    font-size: 1rem;
    border-radius: var(--btn-radius);
    border: 2px solid var(--color-primary);
    transition: background 0.25s, color 0.25s;
}

.fixed-button:hover {
    background: transparent;
    color: var(--color-primary);
}

.fixed-button--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.bs-section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-gap) var(--spacing-md) 0;
    text-align: center;
    font-family: var(--font-ja), sans-serif;
}

.bs-section:last-of-type {
    padding-bottom: 100px;
}

/* ==========================================================================
   Accordion
   ========================================================================== */
.campaign-accordion {
    margin: 0;
    border: 1px solid rgba(226, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    padding-top: 0;
}

.accordion__button {
    background: #E20000;
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    border: none;
}

.accordion__button:hover {
    background: #C80000;
}

.accordion__text {
    font-weight: var(--heading-weight);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #FFFFFF;
    margin: 0;
    text-align: center;
    flex: 1;
    letter-spacing: 0.12em;
}

.accordion__icon {
    color: #FFFFFF;
    font-size: 1.2rem;
    flex: 0 0 30px;
    text-align: center;
    opacity: 0.8;
}

.accordion__body_open {
    list-style: none;
    padding: var(--spacing-lg) var(--spacing-lg);
    margin: 0;
    background: url('//d1mts1n1u0bek1.cloudfront.net/std/campaigns/1cm/advance-ticket/blacksamurai2026/images/bg.jpg') no-repeat center center / cover;
    color: #1A1A1A;
    position: relative;
}

.accordion__body_open::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(160, 169, 160, 0.94);
    pointer-events: none;
}

.accordion__body_open > li {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.accordion__body_open > li:last-child {
    margin-bottom: 0;
    padding-top: var(--spacing-xs);
}

/* --- Sub headings (accordion items) --- */
h3.bs-sub-heading {
    font-weight: var(--heading-weight);
    font-size: var(--heading-size-sm);
    color: #E20000 !important;
    text-align: center;
    margin: 0 0 var(--spacing-sm);
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: none;
    position: relative;
    padding-bottom: var(--spacing-xs);
}

h3.bs-sub-heading::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #E20000;
    margin: 8px auto 0;
}

/* --- Info box --- */
.bs-info-box {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
}

.bs-info-box p {
    margin: 6px 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.bs-info-box a {
    color: var(--color-primary);
}

.bs-info-box:has(.bs-info-box__footer) {
    overflow: hidden;
}

.bs-info-box__footer {
    margin: 12px calc(var(--spacing-lg) * -1) calc(var(--spacing-md) * -1);
    padding: 10px var(--spacing-lg);
    background: rgba(0, 0, 0, 0.06);
}

.bs-info-box__footer p {
    margin: 4px 0;
    color: #555555;
}

.bs-note {
    font-size: 0.85rem !important;
    color: #4A4A4A !important;
}

/* --- Headings --- */
.bs-heading {
    font-weight: var(--heading-weight);
    font-size: var(--heading-size-md);
    color: #E20000 !important;
    text-align: center;
    margin: 0 0 var(--spacing-sm);
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.bs-heading + .bs-heading {
    margin-top: var(--section-gap);
}

/* --- Detail blocks --- */
.bs-detail {
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.bs-detail--center {
    text-align: center;
}

.bs-detail__date {

    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: 0.02em;
}

.bs-detail p {
    margin: 4px 0;
}

/* ==========================================================================
   CTA Buttons
   ========================================================================== */
.bs-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text);

    font-weight: var(--btn-font-weight);
    font-size: var(--btn-font-size);
    padding: 16px 40px;
    border-radius: var(--btn-radius);
    border: 2px solid var(--color-primary);
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.04em;
    transition: background 0.25s, color 0.25s;
    cursor: pointer;
}

.bs-button:hover {
    background: transparent;
    color: var(--color-primary);
}

.bs-button--large {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.bs-button--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.bs-button--primary {
    background: var(--color-primary);
    color: var(--color-text);
}

.bs-cta-wrapper {
    text-align: center;
    padding: var(--spacing-md) 0;
}

/* --- CTA Pair (bottom) --- */
.bs-section--cta-bottom {
    padding-bottom: 120px;
}

.bs-cta-pair {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.bs-cta-pair .bs-button {
    flex: 1;
    max-width: 350px;
    font-size: 1rem;
    padding: 16px 20px;
}

/* ==========================================================================
   Card Join Section
   ========================================================================== */
.bs-card-join {
    padding: var(--spacing-lg) 0;
}

.bs-card-join__note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: var(--spacing-sm) 0 var(--spacing-md);
    line-height: 1.7;
}

.bs-card-join__image {
    text-align: center;
    margin: var(--spacing-md) 0;
}

.bs-card-join__image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
}

/* --- Benefits --- */
.bs-benefits {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
    display: flex;
    flex-direction: row;
    gap: 0;
}

.bs-benefits__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: #FFFFFF;
    color: #333333;
    border-right: 1px solid #E0E0E0;
}

.bs-benefits__item:first-child {
    border-radius: 12px 0 0 12px;
}

.bs-benefits__item:last-child {
    border-right: none;
    border-radius: 0 12px 12px 0;
}

.bs-benefits__item .bs-benefits__text {
    color: #333333;
}

.bs-benefits__item strong {
    color: #333333;
}

.bs-benefits__item .bs-note-list li {
    color: #888888;
}

.bs-benefits__icon {
    width: 120px;
    height: 120px;
}

.bs-benefits__icon img {
    width: 120px;
    height: auto;
}

.bs-benefits__text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.bs-benefits__text strong {
    font-size: 1.1rem;
    font-weight: 900;
}

.bs-benefits__heading {
    text-align: center;

    font-weight: 700;
    font-size: var(--heading-size-sm);
    color: var(--color-primary);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

/* --- Notes --- */
.bs-note-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xs) 0 0;
}

.bs-note-list li {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    padding-left: 1em;
    text-indent: -1em;
}

.bs-note-list li::before {
    content: "※";
}

.bs-notice {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* ==========================================================================
   Modal Overrides (dark theme)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: #FFFFFF;
    color: #333333;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 24px;
    position: relative;
}

.modal-close-button {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666666;
    cursor: pointer;
    line-height: 1;
}

.modal-content h4 {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 20px 0 12px;
}

.modal-content h4:first-child {
    margin-top: 0;
}

.modal-content .button--large {
    display: block;
    text-align: center;
    padding: 14px 20px;
    margin: 8px 0;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.modal-content .button--large:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

.modal-content .dcard-apply-button {
    display: block;
    text-align: center;
    padding: 14px 20px;
    margin: 8px 0;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.modal-content .dcard-apply-button:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

.modal-content .text_small {
    font-size: 0.75rem;
    color: #888888;
    line-height: 1.5;
}

.modal-content .text-bg-muted {
    background: #F5F5F5;
    padding: 12px;
    border-radius: 8px;
}

.mt30 {
    margin-top: 20px;
}

.item_center {
    text-align: center;
}

/* ==========================================================================
   Footer Override (dark theme)
   ========================================================================== */
footer {
    background: #000000 !important;
}

footer .footer-logo-area,
footer .footer-wrapper {
    background: #000000 !important;
}

footer .footer {
    background: #000000 !important;
    padding: 30px 0;
    text-align: center;
}

footer .footer .copy {
    color: rgba(255, 255, 255, 0.5) !important;
    padding-bottom: 100px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* --- Fade In Up (scroll reveal) --- */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Fade In (simple) --- */
.anim-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.anim-fade.is-visible {
    opacity: 1;
}

/* --- Stagger children --- */
.anim-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.anim-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.anim-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.anim-stagger.is-visible > *:nth-child(4) { transition-delay: 0.45s; }
.anim-stagger.is-visible > *:nth-child(5) { transition-delay: 0.6s; }
.anim-stagger.is-visible > *:nth-child(6) { transition-delay: 0.75s; }

.anim-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- KV entrance --- */
.kv-image {
    opacity: 0;
    transition: opacity 1s ease;
}

.kv-image.is-visible {
    opacity: 1;
}

.kv-info .kv-badge,
.kv-info .kv-divider,
.kv-info .kv-title,
.kv-info .kv-reception {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.kv-info.is-visible .kv-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.kv-info.is-visible .kv-divider {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.kv-info.is-visible .kv-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.kv-info.is-visible .kv-reception {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

/* --- Reduce motion: use subtle fade only --- */
@media (prefers-reduced-motion: reduce) {
    .anim-fade-up {
        transform: none;
        transition: opacity 0.5s ease;
    }

    .anim-fade-up.is-visible {
        transform: none;
    }

    .anim-stagger > * {
        transform: none;
        transition: opacity 0.4s ease;
    }

    .anim-stagger.is-visible > * {
        transform: none;
    }

    .kv-info .kv-badge,
    .kv-info .kv-divider,
    .kv-info .kv-title,
    .kv-info .kv-reception {
        transform: none;
        transition: opacity 0.4s ease;
    }
}

/* ==========================================================================
   Responsive - SP (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .pc-br {
        display: none;
    }

    .phone-br {
        display: inline;
    }

    /* KV: 1カラム縦積み */
    .kv-title-wrapper {
        flex-direction: column;
    }

    .kv-title-wrapper .kv-image {
        flex: none;
    }

    .kv-title-wrapper .kv-image img {
        height: auto;
        object-fit: contain;
    }

    .kv-info {
        padding: var(--spacing-lg) var(--spacing-sm);
        border-left: none;
        border-top: 3px solid #E20000;
    }

    .kv-badge {
        font-size: 0.9rem;
        padding: 6px 24px;
    }

    .kv-title {
        font-size: 1.3rem;
    }

    .kv-reception {
        font-size: 0.85rem;
    }

    .kv-copyright {
        font-size: 0.6rem;
        bottom: 6px;
        right: 10px;
    }

    /* Sections */
    .bs-section {
        padding: var(--spacing-lg) var(--spacing-sm) 0;
    }

    .fixed-button-container {
        padding: 0 12px;
        gap: 8px;
    }

    .fixed-button {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .bs-heading {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .bs-detail__date {
        font-size: 1.2rem;
    }

    .bs-cta-pair {
        flex-direction: column;
        align-items: center;
    }

    .bs-cta-pair .bs-button {
        max-width: 100%;
        width: 100%;
    }

    .bs-benefits {
        flex-direction: column;
        gap: 15px;
    }

    .bs-benefits__item {
        flex: 1 1 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--spacing-md);
        border-right: none;
        border-radius: 12px;
    }

    .bs-benefits__item:first-child,
    .bs-benefits__item:last-child {
        border-radius: 12px;
    }

    .bs-benefits__icon {
        width: 100px;
        height: 100px;
    }

    .bs-benefits__icon img {
        width: 100px;
    }

    .bs-button--large {
        max-width: 100%;
        padding: 14px 24px;
    }

    .bs-section--cta-bottom {
        padding-bottom: 100px;
    }
}
