@charset "utf-8";

:root{
    --bg-dark: rgb(48, 25, 89);
    --bg-darker: #1d0f3a;
    --accent: #ff3d81;     /* ネオンピンク */
    --accent2: #29e0ff;    /* ネオンシアン */
    --yellow: #ffe14d;
    --text: #2a1b4a;
    --header-h: 80px;
}

html{
    margin: 0;
}
body{
    font-family: "DotGothic16", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    font-size: 1em;
    line-height: 2;
    margin: 0;
    color: var(--text);
    background-color: aliceblue;
}
img{
    max-width: 100%;
}

/* ---------- ヘッダー ---------- */
header{
    position: relative;
    z-index: 10;
    height: var(--header-h);
    background: linear-gradient(180deg, #3b1f6e 0%, var(--bg-dark) 100%);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 0 14px var(--accent), 0 4px 18px rgba(0, 0, 0, 0.4);
}

.headerflex{
    display: flex;
}

h1{
    height: var(--header-h);
    margin: 0;
    flex-shrink: 0;
}
h1 img{
    height: 100%;
    width: auto;
    display: block;
}

.nav{
    flex: 1;
    height: var(--header-h);
}
.nav ul{
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav ul li{
    flex: 1;
    text-align: center;
    line-height: var(--header-h);
}
.nav ul li a{
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-shadow: 0 0 6px var(--accent2);
    transition: 0.2s;
}
.nav ul li a:hover{
    background-color: #ac1a1a;
    color: var(--yellow);
    text-shadow: 0 0 8px var(--yellow);
}

.main{
    background: url(img/pexels-pablomelo15-9479025.jpg) no-repeat center center / cover;
}

.mainImg{
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-h));
    min-height: 480px;
    background: url(img/oku.png) no-repeat center center / cover;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.mainImg::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 3px,
        rgba(0, 0, 0, 0.08) 4px
    );
    z-index: 3;
}

.slideshow{
    position: absolute;
    inset: 0;
}
.slide{
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    opacity: 0;
    animation: slideFade 12s infinite; /* 4秒 × 3枚 */
}
.slide:nth-child(1){ background-image: url(img/takesi_tati.png); animation-delay: 0s; }
.slide:nth-child(2){ background-image: url(img/takesi_naguri.png);      animation-delay: 4s; }
.slide:nth-child(3){ background-image: url(img/takesi_suwari.png);      animation-delay: 8s; }

@keyframes slideFade{
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    33%  { opacity: 1; }
    41%  { opacity: 0; }
    100% { opacity: 0; }
}

.cont{
    position: relative;
    z-index: 2;
    width: min(80%, 640px);
    padding: 24px 20px 28px;
    box-sizing: border-box;
    text-align: center;
    background: rgba(20, 8, 44, 0.78);
    border: 3px solid var(--accent2);
    border-radius: 18px;
    box-shadow:
        0 0 12px var(--accent2),
        0 0 40px rgba(41, 224, 255, 0.35),
        inset 0 0 18px rgba(41, 224, 255, 0.25);
    backdrop-filter: blur(3px);
    color: #fff;
}

.cont h2{
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.3em;
    color: var(--yellow);
    text-shadow: 0 0 8px var(--yellow);
}
/* 見出しの両脇の飾り */
.cont h2::before,
.cont h2::after{
    content: "★";
    margin: 0 0.5em;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

#taiki{
    margin: 0 auto;
    padding: 12px 8px;
    font-size: 2.5em;
    font-weight: bold;
}

.taiki-label{
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    color: #cfe9ff;
}

.taiki-time{
    display: block;
    margin: 4px 0;
    font-family: "Orbitron", "Courier New", monospace;
    font-weight: 700;
    font-size: clamp(2.6rem, 9vw, 5rem);
    line-height: 1.3;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent), 0 0 28px rgba(255, 61, 129, 0.6);
    font-variant-numeric: tabular-nums;
}

.taiki-note{
    margin: 0;
    font-size: 0.9rem;
    color: #b9a8dd;
}

/* 待ち時間なしのとき:緑で点滅 */
#taiki.is-free .taiki-time{
    font-family: "DotGothic16", sans-serif;
    font-size: clamp(2rem, 7vw, 3.6rem);
    color: #5dff9a;
    text-shadow: 0 0 10px #5dff9a, 0 0 28px rgba(93, 255, 154, 0.6);
    animation: blink 1.4s steps(2, jump-none) infinite;
}
/* 5分を切ったら黄色に */
#taiki.is-soon .taiki-time{
    color: var(--yellow);
    text-shadow: 0 0 10px var(--yellow), 0 0 28px rgba(255, 225, 77, 0.6);
}

@keyframes blink{
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* ---------- フッター ---------- */
.footer{
    padding: 14px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #b9a8dd;
    background: var(--bg-darker);
    border-top: 3px solid var(--accent);
}

/* ---------- スマホ ---------- */
@media (max-width: 600px){
    :root{ --header-h: 64px; }
    .nav ul li a{ letter-spacing: 0.05em; font-size: 0.9rem; }
    .cont{ width: 92%; padding: 18px 12px 22px; }
}

/* 動きを減らす設定の人にはアニメーションを止める */
@media (prefers-reduced-motion: reduce){
    .slide, #taiki.is-free .taiki-time{ animation: none; }
    .slide:nth-child(1){ opacity: 1; }
}