:root {
    --pop-bg: linear-gradient(135deg, #8b0000 0%, #6a0d2f 50%, #4b0e2f 100%);
    --pop-ink: #ffffff;
    --pop-sub: #f1d0d0;
    --pop-accent: #ff5ab5;
    --pop-accent-2: #3ed4ff;
    --pop-card: rgba(255, 255, 255, 0.08);
    --pop-border: rgba(255, 255, 255, 0.2);
    --pop-hero-grad: linear-gradient(135deg, rgba(139, 0, 0, .4) 0%, rgba(106, 13, 47, .4) 100%);
    --header-bg: linear-gradient(90deg, #6a0d2f 0%, #8b0000 100%);
    --nav-pad: 6px;
    --brand-h-sm: 40px;
    --brand-h-lg: 48px;
    --page-max: 1200px;
}

/* ---- ベース ---- */
html,
body {
    font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--pop-bg);
    color: var(--pop-ink);
}

body {
    padding-top: calc(var(--brand-h-sm) + 2*var(--nav-pad) + 6px);
}

@media (min-width: 992px) {
    body {
        padding-top: calc(var(--brand-h-lg) + 2*var(--nav-pad) + 6px);
    }
}

a {
    text-decoration: none;
}

/* ---- コンテンツ幅 ---- */
.page-container.container-fluid {
    max-width: var(--page-max) !important;
    margin: 0 auto;
}

/* ---- ヘッダー ---- */
.custom-header {
    background: var(--header-bg) !important;
    color: #fff !important;
}

.custom-header h5,
.custom-header a {
    color: #fff !important;
}

.navbar-pop,
.navbar.fixed-top,
.fixed-top,
.sticky-top,
.navbar.bg-transparent,
.bg-transparent {
    background: var(--header-bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    color: #fff !important;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #fff !important;
}

.nav-link {
    color: #f4d6d6 !important;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

/* ---- ヒーロー（1920x540最適化） ---- */
.hero-section.banner-540 {
    position: relative;
    width: 100%;
    height: clamp(300px, 40vh, 540px);
    /* モバイル可変／上限540 */
    overflow: hidden;
    margin: 0 0 1rem;
}

@media (min-width: 992px) {
    .hero-section.banner-540 {
        height: 540px;
    }

    /* PCは固定540 */
}

.hero-section.banner-540 .hero-image,
.hero-section.banner-540 .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* トリミングで対応（引き伸ばさない） */
    object-position: center;
    /* 必要なら center top などに調整 */
    z-index: 0;
}

.hero-section.banner-540 .hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, 0));
}

.hero-section.banner-540 .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 左寄せにしたい場合は flex-start */
    text-align: center;
    /* 左寄せにしたい場合は left */
    color: #fff;
}

.hero-section.banner-540 .hero-content h1 {
    font-weight: 900;
    letter-spacing: .3px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.hero-section.banner-540 .hero-content p {
    opacity: .95;
    font-size: clamp(.95rem, 1.6vw, 1.05rem);
}

/* ---- カード ---- */
.card {
    border-color: var(--pop-border);
    background: var(--pop-card);
}

.card-header.bg-dark {
    background: var(--header-bg) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

/* 画像は角丸ナシ */
.card img.card-img-top {
    border-radius: 0 !important;
}

/* ---- ボタン ---- */
.btn-secondary {
    background-color: #6a0d2f !important;
    border-color: #6a0d2f !important;
    color: #fff !important;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(106, 13, 47, .4);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #8b0000 !important;
    border-color: #8b0000 !important;
    color: #fff !important;
}

.btn-accent {
    --bs-btn-bg: var(--pop-accent);
    --bs-btn-border-color: var(--pop-accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #ff7fcc;
    --bs-btn-hover-border-color: #ff7fcc;
    --bs-btn-active-bg: #ff92d4;
    --bs-btn-active-border-color: #ff92d4;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 90, 181, .3);
}

/* ---- 細部 ---- */
.section-title .bi {
    margin-right: .3rem;
}

.page-wrap {
    padding: 16px 0 0;
}

.modal-body .main-photo {
    max-height: 450px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ---- フッター（全幅黒＋中身は中央ブロック） ---- */
.custom-footer {
    background: linear-gradient(180deg, #111 0%, #000 100%) !important;
    color: #ddd !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* 親にmax-widthがあっても全幅化（保険） */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.custom-footer a {
    color: #bbb !important;
    text-decoration: none;
}

.custom-footer a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.custom-footer .border-top {
    border-top: 1px solid rgba(255, 255, 255, .1) !important;
}

.custom-footer .text-muted {
    color: #bfbfbf !important;
}

/* ---- オプション（ガラス効果） ---- */
.hero-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.2);
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 0,
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px,
            transparent 6px);
    background-size: 8px 8px;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-logo {
    max-width: 240px;
}

/* ---- カード内：名前／説明＋ボタン ---- */
.card-name-top {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    color: #fff;
    font-weight: 700;
    padding: .5rem;
}

.card-info-bottom {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: .6rem .75rem;
}

.card-info-bottom .small {
    color: #ddd !important;
}