:root {
    color-scheme: dark;
    --black: #000000;
    --surface: #0c0c0b;
    --gold: #e6d2a3;
    --gold-light: #f6e8c9;
    --gold-muted: #bdac86;
    --gold-border: rgba(230, 210, 163, .34);
}

/* Local layout utilities keep the page independent of a CSS CDN. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    background: var(--black) url("images/bg-pc.webp") center top / cover no-repeat;
    color: var(--gold);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(230, 210, 163, .15); }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; border-radius: 8px; }
.w-100 { width: 100%; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.position-relative { position: relative; }
.align-items-center, .items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.ps-2 { padding-left: 8px; }
.px-3 { padding-left: 16px; padding-right: 16px; }
.pb-4 { padding-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-5 { margin-bottom: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.container { width: calc(100% - 48px); max-width: 1200px; margin-left: auto; margin-right: auto; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row > * { min-width: 0; }

.header { height: 64px; padding: 12px 18px; background: var(--black); border-bottom: 1px solid var(--gold-border); }
.header img { width: 160px; height: 40px; object-fit: contain; }
.img-header-pc { height: auto; }
.marquee {
    min-height: 44px;
    padding: 9px 14px;
    background: #0b0b0a;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(246, 232, 201, .04);
}
.marquee .img-notify { width: 23px; flex: 0 0 23px; }
.marquee-detail { width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--gold); font-size: 13px; font-weight: 500; }
.marquee-detail span { display: inline-block; padding-left: 100%; animation: marquee 40s linear infinite; }
.marquee:hover span, .marquee:focus-within span { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.content-pc { margin-top: 26px; margin-bottom: 24px; }
.img-content { width: 828px; max-width: 100%; height: auto; }
.content-ping { margin-bottom: 20px; }
.content-link {
    height: 100%;
    padding: 22px 20px 16px;
    background: linear-gradient(145deg, #171610, #070707 70%);
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(246, 232, 201, .06), 0 8px 24px rgba(0, 0, 0, .28);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.content-link:hover, .content-link:focus-within { border-color: var(--gold-muted); box-shadow: inset 0 1px 0 rgba(246, 232, 201, .1), 0 6px 22px rgba(230, 210, 163, .05); }
.content-link .ping {
    width: 50%;
    min-height: 91px;
    margin: 0 auto;
    padding: 12px 8px;
    border: 1px solid #9a6a18;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff5d3 0%, #f2cf75 22%, #d59c2d 55%, #b27211 100%);
    box-shadow: inset 0 1px 0 rgba(255, 249, 222, .9), inset 0 -2px 8px rgba(122, 71, 8, .28), 0 2px 10px rgba(0, 0, 0, .18);
    text-align: center;
}
.title-link { margin-top: 0; color: #6b430c; text-shadow: 0 1px 0 rgba(255, 243, 210, .55); font-size: 21px; font-weight: 700; line-height: 1.5; }
.img-ping { width: 19px; height: auto; flex: 0 0 19px; }
.ping-detail { margin-top: 0; color: #6b430c; text-shadow: 0 1px 0 rgba(255, 243, 210, .45); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.btn-join { width: 100%; max-width: 216px; min-height: 44px; margin-top: 16px; padding: 3px 0; border-radius: 24px; }
.btn-join img { width: 100%; height: auto; transition: filter .2s ease; }
.btn-join:hover img { filter: brightness(1.12); }

.footer {
    width: calc(100% - 48px);
    max-width: 1200px;
    min-height: 152px;
    margin: 48px auto 28px;
    padding: 24px 28px;
    flex-wrap: wrap;
    gap: 22px;
    background: linear-gradient(180deg, #15140f, #050505);
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(246, 232, 201, .08);
}
.footer .text-down { margin-top: 0; color: #ffd700; font-size: clamp(20px, 1.85vw, 26px); font-style: italic; font-weight: 800; line-height: 1.45; text-align: center; }
.footer .img-down { width: 162px; height: auto; }
.footer .img-mobile { width: 231px; height: auto; margin-top: -38px; align-self: flex-end; }

.chat-btn-pc, .fb-btn-pc, .tele-btn-pc { position: fixed; right: clamp(12px, 2vw, 32px); width: 64px; z-index: 20; border-radius: 50%; }
.chat-btn-pc { top: calc(50% - 104px); }
.fb-btn-pc { top: calc(50% - 32px); }
.tele-btn-pc { top: calc(50% + 40px); }
.chat-btn-pc img, .fb-btn-pc img, .tele-btn-pc img { display: block; user-select: none; -webkit-user-drag: none; }

.mobile-banner-carousel { position: relative; width: 100%; aspect-ratio: 880 / 496; overflow: hidden; background: var(--black); }
.mobile-banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.mobile-banner-slide.is-active { opacity: 1; pointer-events: auto; }
.mobile-banner-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mobile-banner-dots { position: absolute; bottom: 2px; left: 50%; z-index: 2; display: flex; transform: translateX(-50%); }
.mobile-banner-dot { display: grid; place-items: center; width: 36px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mobile-banner-dot::before { content: ""; display: block; width: 7px; height: 7px; border: 1px solid var(--gold); border-radius: 50%; background: #11110e; transition: background-color .2s ease, box-shadow .2s ease; }
.mobile-banner-dot.is-active::before { background: var(--gold); box-shadow: 0 0 6px rgba(230, 210, 163, .4); }

.down-mb { width: calc(100% - 32px); max-width: 600px; aspect-ratio: 761 / 200; margin: 0 auto; background: url("images/bg-down-mb2.webp") center / contain no-repeat; }
.down-btn-mb { position: absolute; top: 44%; left: 6%; width: 64%; }
.down-btn-mb a { width: calc((100% - 8px) / 2); min-width: 0; min-height: 38px; border-radius: 12px; }
.down-btn-mb .img-down { width: 100%; height: auto; }
.social-links { width: 100%; max-width: 632px; margin-left: auto; margin-right: auto; }
.social-links a { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; align-items: center; border-radius: 14px; }
.social-links img { display: block; width: 100%; height: auto; }
.social-links:last-of-type { margin-bottom: max(24px, env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}
@media (min-width: 992px) { .content-ping .row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Reserve a support rail so fixed links never cover the entrance cards. */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .container, .footer { width: calc(100% - 132px); margin-left: 24px; margin-right: 108px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
    .chat-btn-pc, .fb-btn-pc, .tele-btn-pc { width: 52px; right: 8px; }
    .content-pc { padding-left: 36px; padding-right: 36px; }
    .content-link .ping { width: 50%; }
    .footer { gap: 16px; }
    .footer .img-down { width: 140px; }
    .footer .img-mobile { width: 190px; margin-top: 0; }
}
@media (min-width: 768px) and (max-width: 991.98px) { .footer .text-down { flex-basis: 100%; } }
@media (max-width: 767.98px) {
    body { background: var(--black) url("images/bg-mb.png") center top / 100% auto no-repeat; }
    .container { width: calc(100% - 24px); }
    .marquee { margin-top: 12px; margin-bottom: 16px; padding: 8px 10px; }
    .marquee-detail { font-size: 12px; }
    .content-ping { margin-bottom: 16px; }
    .content-ping .row { gap: 12px; padding-bottom: 8px; }
    .content-link { padding: 14px 12px 9px; border-radius: 10px; }
    .content-link .ping { width: 76%; min-height: 80px; padding: 9px 4px; }
    .title-link { font-size: 18px; }
    .ping-detail { font-size: 14px; }
    .img-ping { width: 17px; flex-basis: 17px; }
    .btn-join { margin-top: 10px; }
}
@media (max-width: 359.98px) {
    .content-ping .row { gap: 8px; }
    .content-link { padding-left: 8px; padding-right: 8px; }
    .header { height: 58px; }
    .header img { width: 144px; height: 36px; }
    .down-btn-mb { gap: 4px; }
    .down-btn-mb a { width: calc((100% - 4px) / 2); min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
    .mobile-banner-slide, .mobile-banner-dot::before, .content-link, .btn-join img { transition: none; }
    .marquee-detail span { animation: none; padding-left: 0; }
}
