/* ========================================
   AI x SNS ランディングページ スタイル
   ======================================== */

/* リセット & ベース */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* コンテナ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* ヘッダー */
.header {
    width: 100%;
    text-align: center;
    background-color: #ffffff;
}

.header-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========================================
   ビデオセクション
   ======================================== */
.video-section {
    width: 100%;
    background-color: #000000;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #000000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   大きな再生ボタン（中央）
   ======================================== */
.big-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.big-play-button span {
    color: #ffffff;
    font-size: 2rem;
    margin-left: 5px;
}

.big-play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.big-play-button.hidden {
    display: none;
}

/* ========================================
   カスタムコントロール
   ======================================== */
.custom-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 再生ボタン */
.play-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn .pause-icon {
    display: none;
}

.play-btn.playing .play-icon {
    display: none;
}

.play-btn.playing .pause-icon {
    display: inline;
}

/* 時間表示 */
.time-display {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    margin-left: 10px;
}

/* 右側コントロール */
.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 再生速度 */
.speed-control select {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.speed-control select:hover,
.speed-control select:focus {
    background-color: rgba(255, 255, 255, 0.3);
}

.speed-control select option {
    background-color: #333333;
    color: #ffffff;
}

/* フルスクリーンボタン */
.fullscreen-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.fullscreen-btn:hover {
    transform: scale(1.1);
}

/* ========================================
   非表示コンテンツ（17分後に表示）
   ======================================== */
.hidden-content {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CTAセクション（決済ボタン）
   ======================================== */
.cta-section {
    padding: 30px 20px;
    text-align: center;
    background-color: #ffffff;
}

.cta-button {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-image {
    max-width: 100%;
    width: auto;
    max-height: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========================================
   コンテンツセクション（テキスト画像）
   ======================================== */
.content-section {
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
}

.content-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット */
@media screen and (max-width: 768px) {
    .container {
        max-width: 100%;
    }

    .header-image {
        max-width: 100%;
    }

    .video-container {
        max-width: 100%;
    }

    .big-play-button {
        width: 70px;
        height: 70px;
    }

    .big-play-button span {
        font-size: 1.8rem;
    }

    .custom-controls {
        padding: 10px 12px;
    }

    .time-display {
        font-size: 0.8rem;
    }

    .speed-control select {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .cta-section {
        padding: 25px 15px;
    }

    .cta-image {
        max-height: 70px;
    }

    .content-section {
        padding: 15px;
    }

    .content-image {
        max-width: 100%;
    }
}

/* スマートフォン */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .big-play-button {
        width: 60px;
        height: 60px;
    }

    .big-play-button span {
        font-size: 1.5rem;
    }

    .custom-controls {
        padding: 8px 10px;
    }

    .play-btn {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .time-display {
        font-size: 0.75rem;
    }

    .controls-right {
        gap: 10px;
    }

    .speed-control select {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    .fullscreen-btn {
        font-size: 1.1rem;
        padding: 6px;
    }

    .cta-section {
        padding: 20px 10px;
    }

    .cta-image {
        max-height: 60px;
        max-width: 90%;
    }

    .content-section {
        padding: 10px;
    }
}

/* ========================================
   全画面表示時のスタイル
   ======================================== */
.video-container:fullscreen,
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen,
.video-container:-ms-fullscreen {
    width: 100%;
    height: 100%;
    background-color: #000000;
}

.video-container:fullscreen video,
.video-container:-webkit-full-screen video,
.video-container:-moz-full-screen video,
.video-container:-ms-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-container:fullscreen .custom-controls,
.video-container:-webkit-full-screen .custom-controls,
.video-container:-moz-full-screen .custom-controls,
.video-container:-ms-fullscreen .custom-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ========================================
   アクセシビリティ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* フォーカス表示 */
button:focus,
select:focus,
a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* ========================================
   iOS Safari 対応
   ======================================== */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}
