/* === BASE STYLES (DO NOT TOUCH) === */
:root {
    --border-width: 6px;
}

body {
    background-color: #FFEE00;
    overflow-x: hidden;
    font-family: 'Noto Sans JP', sans-serif;
}

/* === UTILITIES === */

/* 巨大ドットパターン（ベン・デイ・ドット） */
.pattern-dots {
    background-image: radial-gradient(circle, #000000 20%, transparent 20%);
    background-size: 20px 20px;
    opacity: 0.15;
}

.pattern-dots-white {
    background-image: radial-gradient(circle, #FFFFFF 20%, transparent 20%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.pattern-dots-yellow-sm {
    background-image: radial-gradient(circle, #FFEE00 15%, transparent 15%);
    background-size: 10px 10px;
    opacity: 1.0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
}

/* === LP SPECIFIC STYLES (EDITABLE) === */

/* 集中線（アニメーション付き） */
.sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    background: repeating-conic-gradient(#FF0033 0deg 10deg,
            #FF3366 10deg 20deg);
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: spin-slow 30s linear infinite;
}

.sunburst-blue {
    background: repeating-conic-gradient(#0033FF 0deg 15deg,
            #3366FF 15deg 30deg);
}

/* 極太ボーダー */
.border-ink {
    border: var(--border-width) solid #000;
}

/* ギザギザ吹き出し */
.speech-jagged {
    --r: 10px;
    /* radius */
    --s: 20px;
    /* size of spikes */
    background: #fff;
    padding: 30px;
    position: relative;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%,
            80% 100%, 75% 120%, 70% 100%,
            0% 100%);
    /* Note: Basic clip-path for shape, but for true jagged border we need SVG or complex gradient.
       Using simple border radius + pseudo elements for pop feel here to ensure stability */
    border: var(--border-width) solid #000;
}

/* テキストエフェクト */
.text-outline {
    -webkit-text-stroke: 3px #000;
    color: #fff;
    paint-order: stroke fill;
}

.text-outline-thick {
    -webkit-text-stroke: 6px #000;
    color: #FFEE00;
    paint-order: stroke fill;
    text-shadow: 8px 8px 0px #000;
}

.text-pop-shadow {
    text-shadow: 5px 5px 0px #000;
}

/* 傾きレイアウト */
.tilt-r {
    transform: rotate(3deg);
}

.tilt-l {
    transform: rotate(-3deg);
}

.tilt-hard-r {
    transform: rotate(6deg);
}

.tilt-hard-l {
    transform: rotate(-6deg);
}

/* グリッチ風ズレ */
.offset-layer {
    position: relative;
}

.offset-layer::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
    border: 2px solid #000;
}

/* ハサミ線 */
.dashed-cut {
    background-image: linear-gradient(to right, #000 50%, transparent 50%);
    background-size: 40px 4px;
    background-repeat: repeat-x;
    background-position: bottom;
}

/* === ANIMATIONS (EFFECTS) === */

/* アニメーション定義（Offerセクション用） */
@keyframes slideLeft {
    0% {
        transform: translate(100%, -50%);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translate(-100%, -50%);
        opacity: 0;
    }
}

@keyframes driveBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-slide-left-infinite {
    animation: slideLeft 3s linear infinite;
}

.animate-drive-bounce {
    animation: driveBounce 0.3s ease-in-out infinite;
}

/* === VIDEO MODAL === */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #000;
    box-shadow: 12px 12px 0px #000, 0 0 30px rgba(255, 0, 51, 0.5);
    border: 4px solid #fff;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

.video-modal-overlay.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: -10px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
    font-family: 'Bangers', cursive;
    text-shadow: 3px 3px 0 #000;
    transition: transform 0.2s ease, color 0.2s ease;
}

.video-modal-close:hover {
    color: #FF0033;
    transform: scale(1.2) rotate(5deg);
}

.video-modal-close:active {
    transform: scale(0.9);
}