:root {
    --primary-color: #0021cd; /* ForTuna 信頼のブルー */
    --accent-color: #ff4500;  /* アクティビティの情熱オレンジ */
}
/* スムーズスクロール */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* 固定ヘッダーの高さ分だけ余裕を持たせる */
}

/* ナビゲーションの微調整 */
.navbar-nav .nav-link {
    color: #333 !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* スマホ表示時のメニュー背景 */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem 0;
    }
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #333;
}

/* ヒーロー画像とオーバーレイ */
.hero {
    background-size: cover;
    background-position: center;
    min-height: 80vh;
}

.hero-content {
    background: rgba(255, 255, 255, 0.65);
    border-top: 5px solid var(--primary-color);
}

.hero-rogo-img {
    width: 180px;
    height: 180px;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { background-color: var(--primary-color); border: none; }
.btn-primary:hover { background-color: #0019a3; }

.transition-up {
    transition: transform 0.3s ease;
}
.transition-up:hover {
    transform: translateY(-5px);
}

.feature-icon-small {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

/* テーブル装飾 */
.table thead th {
    border: none;
    font-weight: bold;
    padding: 15px;
}

/* アニメーション */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* スマホ対応 */
@media (max-width: 991px) {
    body { padding-bottom: 80px; } /* フローティングボタン分 */
    .hero-rogo-img {
        width: 120px;
        height: 120px;
    }
    .hero h1 { font-size: 1.5rem; }
}

/* フッターSNSアイコン */
.footer-sns a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 12px;
    text-decoration: none;
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-sns a:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

/* Lemon8 テキストリンク用の微調整 */
.lemon8-text {
    font-weight: bold;
    font-family: sans-serif;
    vertical-align: middle;
    line-height: 1;
    position: relative;
    top: -4px;
}

/* モバイル時のフローティングボタン対策 */
@media (max-width: 767px) {
    .pb-5-mobile {
        padding-bottom: 100px !important; /* フローティングボタンの高さ+α */
    }
}

.footer-links a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* --- 共通設定 --- */
.floating-cta-container {
    position: fixed;
    z-index: 1050;
    transition: all 0.3s ease;
}

.back-to-top {
    position: fixed; /* 常に固定 */
    z-index: 1060;   /* バナーより少し上に */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* --- PC版 (992px以上) --- */
@media (min-width: 992px) {
    /* バナー：右中央 */
    .floating-cta-container {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }

    .cta-link {
        display: flex;
        writing-mode: vertical-rl;
        padding: 25px 12px;
        background-color: var(--accent-color);
        color: #fff !important;
        border-radius: 10px 0 0 10px;
        text-decoration: none !important;
        letter-spacing: 2px;
    }

    /* ボタン：右下独立 */
    .back-to-top {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
    }
}

/* --- スマホ版 (991px以下) --- */
@media (max-width: 991px) {
    /* バナー：下部固定の帯 */
    .floating-cta-container {
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px 15px;
        border-top: 1px solid #eee;
        display: flex;
        transform: none;
        top: auto;
    }
    .cta-link {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        background-color: var(--accent-color);
        color: #fff !important;
        border-radius: 50px;
        font-size: 0.95rem;
        text-decoration: none !important;
    }

    /* ボタン：スマホ時もバナーと同じ高さに固定して右端へ */
    .back-to-top {
        bottom: 12px; /* バナーのpaddingに合わせる */
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    /* スマホ時、バナーとボタンが重ならないようバナーに右余白を作る */
    .floating-cta-container {
        padding-right: 70px; 
    }
}

/* フッターがボタンに被らないよう調整 */
@media (max-width: 991px) {
    footer { padding-bottom: 90px !important; }
}

/* --- 拡大画像設定 --- */
.gallery-container img {
    transition: transform 0.3s ease;
    cursor: pointer;
}
.gallery-container img:hover { transform: scale(1.05); }

.btn-modal-close {
    top: 5px;
    right: 5px;
    font-size: 2.5em;
}

@media (max-width: 991px) {
    .btn-modal-close {
        top: 0;
        right: 0;
        font-size: 2.0em;
    }
}