/**
 * Flowセクション専用スタイル
 * css/flow-section.css
 * @package Ezodeer_Shop
 */

/* ==========================================================================
   Flowセクション
   ========================================================================== */
   .flow-section {
    background-color: #000000;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 背景の黒レイヤー */
.flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    //background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}


.flow-wave-bottom {
    bottom: 100px; /* 白い余白の上に配置 */
}

/* コンテナ */
.flow-container {
    width: 100%;
    padding: 0;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

/* ヘッダー部分 */
.flow-header {
    text-align: center;
    position: relative;
    margin-top: 120px;
}

/* 波形タイトル */
.flow-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
}

.flow-title-text {
    position: relative;
    z-index: 2;
}

@keyframes drawWave {
    to {
        stroke-dashoffset: 0;
    }
}

/* コンテンツエリア */
.flow-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

/* 背景画像 */
.flow-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.flow-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.98) 15%,
        rgba(0, 0, 0, 0.95) 30%,
        rgba(0, 0, 0, 0.85) 45%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 0.4) 75%,
        rgba(0, 0, 0, 0.1) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 2;
}

.flow-bg-image img {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) scale(1.2);
    width: auto;
    height: 100%;
    max-width: 70%;
    object-fit: cover;
    opacity: 0;
    transition: transform 2s cubic-bezier(0.65, 0, 0.35, 1), opacity 1s ease-out;
}

.flow-bg-image.animate img {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

/* 左側：縦書きエリア */
.flow-vertical-area {
    position: absolute;
    left: 0;
    top: 10%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding-left: 5%;
}

.flow-vertical-badge {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 2rem;
    color: #8FBC8F;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.4;
    opacity: 0.9;
}

.flow-vertical-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 4rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.3em;
    line-height: 1.2;
    margin: 0;
}

/* 中央：メインコンテンツ */
.flow-main-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-left: 25%;
    padding-right: 5%;
}

/* テキストエリア */
.flow-text-area {
    width: 100%;
    max-width: 980px;
}

.flow-description {
    font-size: 3rem;
    line-height: 2;
    color: #FFFFFF;
    margin-bottom: 50px;
    letter-spacing: 0.02em;
}

.flow-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid #8FBC8F;
    color: #8FBC8F;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flow-more-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #8FBC8F;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.flow-more-link:hover::before {
    width: 100%;
    height: 100%;
}

.flow-more-link:hover {
    color: #000000;
    border-color: #8FBC8F;
}

.flow-more-text {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-right: 8px;
}

.flow-more-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.flow-more-link:hover .flow-more-arrow {
    transform: translateX(5px);
}

/* 鹿のシルエット（左下） */
.flow-deer-silhouette {
    position: absolute;
    bottom: -180px;
    left: 0;
    width: 280px;
    height: 280px;
    opacity: 0.5;
    z-index: 0;
}

.flow-deer-silhouette img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .flow-section {
        height: auto;
        min-height: 50vh;
        padding: 80px 0;
    }
    
    .flow-content {
        min-height: 500px;
        padding: 0 3%;
    }
    
    .flow-bg-image img {
        height: 80%;
        max-width: 80%;
    }
    
    .flow-vertical-area {
        margin-right: 60px;
    }
    
    .flow-vertical-title {
        font-size: 2.5rem;
    }
    
    .flow-vertical-badge {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .flow-header {
        margin-top: 80px;
    }
    
    .flow-title {
        font-size: 2.4rem;
    }
    
    .flow-content {
        padding-top: 40px;
        align-items: center;
    }
    
    .flow-vertical-area {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: row;
        align-items: center;
        padding-left: 3%;
        gap: 20px;
    }
    
    .flow-vertical-badge {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 0.85rem;
        padding: 0;
    }
    
    .flow-vertical-title {
        writing-mode: vertical-rl;
        text-orientation: upright;
        font-size: 2rem;
    }
    
    .flow-main-content {
        padding-left: 30%;
        padding-right: 20px;
    }
    
    .flow-description {
        font-size: 1.6rem;
        line-height: 1.8;
        margin-bottom: 40px;
    }
    
    .flow-more-link {
        width: 120px;
        height: 120px;
    }
    
    .flow-more-text {
        font-size: 1.2rem;
        margin-right: 5px;
    }
    
    .flow-more-arrow {
        width: 20px;
        height: 20px;
    }
    
    .flow-deer-silhouette {
        width: 150px;
        height: 150px;
        bottom: -80px;
        left: 10px;
    }
    
    .flow-bg-image::before {
        background: linear-gradient(to right, 
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.98) 20%,
            rgba(0, 0, 0, 0.95) 40%,
            rgba(0, 0, 0, 0.85) 60%,
            rgba(0, 0, 0, 0.6) 80%,
            rgba(0, 0, 0, 0.2) 95%,
            rgba(0, 0, 0, 0) 100%
        );
    }
    
    .flow-bg-image img {
        height: 70%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    
    .flow-header {
        margin-top: 60px;
    }
    
    .flow-title {
        font-size: 2rem;
    }
    
    .flow-content {
        padding-top: 30px;
    }
    
    .flow-vertical-area {
        gap: 15px;
        padding-left: 2%;
    }
    
    .flow-vertical-title {
        font-size: 1.6rem;
    }
    
    .flow-vertical-badge {
        font-size: 0.75rem;
    }
    
    .flow-main-content {
        padding-left: 25%;
        padding-right: 15px;
    }
    
    .flow-description {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    .flow-more-link {
        width: 100px;
        height: 100px;
    }
    
    .flow-more-text {
        font-size: 1.1rem;
    }
    
    .flow-more-arrow {
        width: 18px;
        height: 18px;
    }
    
    .flow-deer-silhouette {
        width: 120px;
        height: 120px;
        bottom: -60px;
        left: 5px;
    }
}