/* デザインコンセプト：オーガニック・モダン（ライフスタイル誌風） */
:root {
    --primary-green: #2d5a27;   /* フォレストグリーン */
    --accent-terracotta: #cc6633; /* テラコッタ */
    --bg-warm: #fdfaf5;         /* 温かいベージュ */
    --off-white: #fffef9;         /* オフホワイトカラー */
    --text-main: #333333;
    --transition: all 0.3s ease;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* 固定ヘッダーの高さ分だけ余裕を持たせる */
}

body {
    background-color: var(--bg-warm);
    color: var(--text-main);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
}

.text-forestgreen {
    color: var(--primary-green) !important;
}

.bg-forestgreen {
    background-color: var(--primary-green) !important;
}

.border-forestgreen {
    border-color: var(--primary-green) !important;
}

.text-off-white {
    color: var(--off-white) !important;
}

.bg-off-white {
    background-color: var(--off-white) !important;
}

.border-off-white {
    border-color: var(--off-white) !important;
}

.font-serif {
    font-family: 'Noto Serif JP', serif;
}

/* Navbar Customization */
.custom-navbar {
    background-color: rgba(255, 255, 255, 0.8) !important; /* 少し透過を強める */
    backdrop-filter: blur(10px); /* 背後をぼかす */
    -webkit-backdrop-filter: blur(10px); /* Safari用 */
    border-bottom: 1px solid #fefefe;/*#f9e9ec;*/
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 影を少し強めて境界をはっきりさせる */
}

.navbar-brand {
    color: var(--primary-green) !important;
    font-weight: 900;
}

/* Hero Section */
.hero-section {
    background-color: #fff;
    padding: 20px 0 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* PCパララックス */
}

@media (max-width: 991px) {
    .hero-section {
        background-attachment: scroll;
    }
}

.hero-quote {
    max-width: 800px;
    border-top: 3px solid var(--primary-green);
}

/* Answer First Styling */
.answer-first {
    background-color: #f0f4ef;
    font-size: 1.1rem;
}

/* Reason Cards */
.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.hover-up { 
    transition: var(--transition); 
    border-radius: 10px; 
    background: #fff; 
}
.hover-up:hover { 
    transform: translateY(-5px); 
}

/* Floating Elements Base */
.floating-container {
    position: fixed;
    z-index: 9999;
}

@media (min-width: 992px) {
    .floating-container {
        /* コンテナは画面全体を覆わず、右端だけに配置 */
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: 60px;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: center; /* 垂直方向の中央に */
        align-items: flex-end;
        z-index: 10000;
    }

    .btn-floating-cta {
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        
        /* 💡 文字を縦書きにする設定 */
        writing-mode: vertical-rl;
        text-orientation: mixed;
        
        background-color: var(--accent-terracotta);
        color: white;
        padding: 25px 12px; /* 縦長になるよう余白を調整 */
        border-radius: 10px 0 0 10px; /* 左側だけを丸める */
        text-decoration: none;
        font-weight: bold;
        box-shadow: -2px 0 15px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
        letter-spacing: 0.1em;
    }

    .btn-floating-cta i {
        /* アイコンも縦書きに合わせて調整 */
        margin-right: 0 !important;
        margin-bottom: 8px;
        transform: rotate(0deg); /* アイコンの向きを微調整 */
    }

    .btn-floating-cta span {
        display: inline-block;
    }

    .btn-floating-cta:hover {
        background-color: var(--primary-green);
        color: #fff;
        padding-right: 20px; /* ホバーで少し左に飛び出す */
    }

    .btn-floating-top {
        pointer-events: auto;
        position: fixed;
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        background-color: var(--primary-green);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
}

/* SP Design: Horizontal bar fixed at bottom */
@media (max-width: 991px) {
    .floating-container {
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        padding: 10px;
        background: rgba(255,255,255,0.9);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        grid-gap: 10px;
    }

    .btn-floating-cta {
        flex: 1;
        background-color: var(--accent-terracotta);
        color: white;
        text-align: center;
        padding: 12px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
    }

    .btn-floating-top {
        width: 50px;
        background-color: #eee;
        color: #333;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
}

/* Additional UI Polish */
.btn-outline-forestgreen {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-outline-forestgreen:hover {
    background-color: var(--primary-green);
    color: #fff;
}

.footer-seo {
    border-top: 5px solid var(--primary-green);
}

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

/* ふくおか縁活カフェ会とは */
.concept-box {
    border-top: 3px solid var(--primary-green);
}


/* 私たちが大切にしている５つの約束 */
.promise-item {
    transition: transform 0.2s ease;
}

.promise-item:hover {
    transform: translateX(5px);
}

.quote-box {
    background-color: rgba(45, 90, 39, 0.03);
}

/* ボタン (Buttons) */
.btn-action {
    background-color: var(--primary-green);
    color: white;
    font-weight: bold;
    border: none;
    transition: var(--transition);
}

.btn-action:hover {
    background-color: var(--primary-green);
    color: white;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 33, 205, 0.2);
}

/* イベントカードの装飾 */
.event-card-other {
    border-top: 3px solid var(--accent-terracotta) !important;
}

.price-amount {
    font-family: 'Noto Serif JP', serif;
}

/* バッジの微調整 */
.badge {
    padding: 0.5em 1em;
}

/* カード内のボタン調整 */
.btn-outline-forestgreen {
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-outline-forestgreen:hover {
    background-color: var(--primary-green);
    color: #fff;
}

#final-cta {
    background-color: var(--primary-green) !important; /* 変数が効かない場合用のバックアップ */
    margin-bottom: 0; /* フッターとの隙間をなくす */
}

.poem-text {
    letter-spacing: 0.1em;
    line-height: 1.8;
}

.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 767px) {
    .poem-text {
        font-size: 1.25rem !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;
    }
}