@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        line-height: 1.8;
        letter-spacing: 0.05em;
        font-size: 16px;
        /* 右クリックやコピーを防止（画像やテキスト） */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    img {
        /* 画像に対して角丸とシャドウを使用しない */
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

@layer components {
    /* セクション間の余白設計（SP: 80px / PC: 120px以上） */
    .section-spacing {
        margin-bottom: 80px;
    }
    @media (min-width: 768px) {
        .section-spacing {
            margin-bottom: 120px;
        }
    }
}

/* ブロークングリッドレイアウトの微調整（PC時） */
@media (min-width: 768px) {
    .broken-grid > div:first-child {
        /* 左のテキストボックスを少し右へ寄せて画像と重ねる */
        transform: translateX(8%);
    }
}

/* ハンバーガーメニュー用リンク */
.menu-link {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
}

/* SPハンバーガーメニューの開閉アニメーション用 */
#sp-menu.show {
    opacity: 1;
    pointer-events: auto;
}

/* トップに戻るボタンの表示用 */
#page-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

/* SP追従CTAの表示用 */
#sp-sticky-cta.show {
    transform: translateY(0);
}

/* ギャラリーモーダルの表示用 */
#gallery-modal.show {
    display: flex;
    opacity: 1;
}

/* ========================================
   FV テキストオーバーレイ
======================================== */
.fv-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 48px 32px 72px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.40) 60%,
        transparent 100%
    );
    animation: fv-text-fadein 1.2s ease both;
}

@keyframes fv-text-fadein {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fv-catch {
    font-size: clamp(1.35rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.12em;
    line-height: 1.5;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.fv-sub {
    font-size: clamp(0.9rem, 2.2vw, 1.25rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.1em;
    line-height: 1.7;
    margin-bottom: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.fv-divider {
    width: 48px;
    height: 3px;
    background: #e60012;
    margin: 1.2em 0;
    border-radius: 2px;
}

.fv-detail {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.1em;
    line-height: 1.9;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .fv-text-overlay {
        padding: 64px 64px 96px;
        max-width: 680px;
    }
}

@media (min-width: 1024px) {
    .fv-text-overlay {
        padding: 80px 80px 120px;
    }
}

/* スクロール時のフェードインアニメーション */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SP（スマートフォン）のみ表示するクラス */
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}
