/* ========================================
   openloop/index.html 固有スタイル
   ======================================== */

/* モノスペースフォント */
.font-mono {
    font-family: 'Space Mono', monospace;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar テキスト */
.nav-text-dark {
    color: #1a1a1a;
}

/* ナビゲーションアイテム（英語＋日本語ホバー） */
.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.nav-item .en-text {
    transition: color 0.3s ease;
}

.nav-item .jp-text {
    position: absolute;
    bottom: -14px;
    font-size: 9px;
    color: #888;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 700;
}

.nav-item:hover .jp-text {
    opacity: 1;
    transform: translateY(0);
}

.nav-item:hover .en-text {
    color: #50a69f;
}

/* Red CV ボタン (#DE5D50) */
.red-cv-btn {
    background-color: #DE5D50;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 9999px;
    min-width: 170px;
}

.btn-text-wrapper {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.red-cv-btn:hover {
    box-shadow: 0 0 20px rgba(222, 93, 80, 0.4);
}

.red-cv-btn:hover .btn-text-wrapper {
    transform: translateY(-44px);
}

.btn-slide {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: white;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.05em;
}

/* Ticker アニメーション */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    padding: 1rem 0;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll-left 120s linear infinite;
}

.ticker-track-reverse {
    display: flex;
    width: max-content;
    animation: scroll-right 120s linear infinite;
}

.ticker-item {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    color: #9ca3af;
}

/* CAMPFIRE Shine ボーダー */
@keyframes shineFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.shine-container {
    position: relative;
    border-radius: 1.7rem;
    padding: 4px;
    background: linear-gradient(60deg, #DE5D50, #ffaeae, #DE5D50, #ffcece, #DE5D50);
    background-size: 300% 300%;
    animation: shineFlow 2s linear infinite;
    box-shadow: 0 0 20px rgba(222, 93, 80, 0.3);
}

.shine-content {
    background: #ffffff;
    border-radius: 1.5rem;
    height: 100%;
    width: 100%;
}

/* フォーム */
.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-field {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
    border-radius: 0;
}

.input-field:focus {
    border-bottom-color: #50a69f;
}

.input-label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 0.875rem;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.3s;
}

.input-field:focus~.input-label,
.input-field:not(:placeholder-shown)~.input-label {
    top: -14px;
    font-size: 0.75rem;
    color: #50a69f;
    font-weight: bold;
}

/* select は :placeholder-shown が効かないため、未選択・非フォーカス時はグレーにリセット */
select.input-field:not(:focus):not(:valid)~.input-label {
    top: 10px;
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: normal;
}

/* モーダルオーバーレイ（supporter-modal で使用） */
.modal-overlay {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

/* Vision セクション背景 */
.vision-bg {
    background-image: url('../images/transaction_women2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

@media screen and (max-width: 767px) {
    .vision-bg {
        background-position: 80% center;
    }
}

/* マップコンテナ */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-image: url('../images/openloop_hero.jpg');
    background-size: cover;
    background-position: center;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@media screen and (max-width: 767px) {
    #hero {
        display: flex;
        flex-direction: column;
        height: auto !important;
    }

    .video-bg {
        height: 56vw;
        position: unset;
    }

    .hero-text-container {
        position: unset !important;
        height: auto !important;
    }

    .hero-text-container>div {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-text-container h1 {
        margin-bottom: 2rem !important;
    }

    #hero #news {
        width: 100%;
        position: unset !important;
    }
}



/* フローティングバナー */

/* 発売準備中 */
.btn-coming-soon {
    background: linear-gradient(135deg, #60b6af 0%, #50a69f 100%);
    box-shadow: 0 8px 20px rgba(255, 95, 46, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-coming-soon:hover,
#fixed-coming-soon:hover .btn-coming-soon {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 15px rgba(77, 147, 126, 0.5);
}

#fixed-coming-soon button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#fixed-coming-soon:hover button {
    transform: translateY(-14px) scale(1.01);
    box-shadow: 0 12px 15px rgba(77, 147, 126, 0.5);
}

/* クラファンボタン・メール通知ボタン */
.btn-crowdfunding,
.btn-mail-notify {
    background: linear-gradient(135deg, #FF8C42 0%, #FF5F2E 100%);
    box-shadow: 0 8px 20px rgba(255, 95, 46, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-crowdfunding:hover,
#fixed-mail:hover .btn-mail-notify {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 15px rgba(255, 95, 46, 0.5);
}

#fixed-mail button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#fixed-mail:hover button {
    transform: translateY(-14px) scale(1.01);
    box-shadow: 0 12px 15px rgba(255, 95, 46, 0.5);
}

/* LINE通知ボタン */
.btn-line-notify {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#fixed-line:hover .btn-line-notify {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 25px rgba(6, 199, 85, 0.5);
}

#fixed-line button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#fixed-line:hover button {
    transform: translateY(-14px) scale(1.01);
    box-shadow: 0 12px 25px rgba(6, 199, 85, 0.5);
}

/* プロダクトボタン */
.btn-product {
    background-color: #50a69f;
    transition: all 0.3s ease;
}

.btn-product:hover {
    background-color: #3d8b85;
    box-shadow: 0 4px 12px rgba(80, 166, 159, 0.3);
}


/* ボタンのキラキラエフェクト */
.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}