/* /css/franchise.css */

/* 페이지 전체 컨테이너 */
.franchise-container {
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif; /* 폰트 통일 */
}

/* =========================================================
   1. 상단 배너 (꿈과 성공을 자극하는 이미지 배경)
   ========================================================= */
.hero-banner {
    /* 배경 이미지를 어둡게 처리하여 흰 글씨가 잘 보이게 함 */
    background-image:
            linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url('/images/firstshop1.png'); /* 매장 사진 경로 확인 필요 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;

    /* 높이 설정 */
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.hero-text-content {
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 글씨 그림자 강화 */
}

.hero-title {
    font-size: 4rem; /* PC에서는 크게 */
    font-weight: 900;
    margin: 0 0 20px 0;
    letter-spacing: 5px;
    color: #FFD700; /* 브랜드 골드 컬러로 포인트 */
}

.hero-headline {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    word-break: keep-all; /* 단어 단위 줄바꿈 */
}


/* =========================================================
   2. [수정] 문의 등록 바 (파란색 -> 브랜드 컬러)
   ========================================================= */
.inquiry-bar {
    background-color: #222; /* 묵직한 검정 배경 (전문성) */
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -40px; /* 배너 위로 살짝 겹치게 올려서 입체감 주기 */
    z-index: 10;
}

/* 문의 폼 박스 */
.inquiry-form {
    background-color: white;
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); /* 강한 그림자 */
    width: auto;
    max-width: 1000px;
    flex-wrap: wrap; /* 화면 좁아지면 줄바꿈 허용 */
    justify-content: center;
}

/* "가맹 문의" 라벨 (빨간색 강조) */
.phone-number {
    background-color: #E3001B; /* 브랜드 레드 */
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
}

.inquiry-form input[type="text"] {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    width: 150px; /* 기본 너비 */
    outline: none;
}
.inquiry-form input[type="text"]:focus {
    border-color: #E3001B; /* 입력 시 빨간 테두리 */
}

.agreement-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
}

/* "상담 신청" 버튼 (노란색 강조) */
.submit-button {
    background-color: #FFD700; /* 진한 노랑 */
    color: #222; /* 검정 글씨 */
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    white-space: nowrap;
}
.submit-button:hover {
    background-color: #F4C430;
    transform: scale(1.05);
}


/* =========================================================
   3. Brand Keyword (삼각형 레이아웃)
   ========================================================= */
.brand-triangle-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.5;
}

/* 삼각형 컨테이너 */
.keyword-triangle {
    position: relative;
    width: 400px;
    height: 350px;
    margin: 0 auto 60px auto;
}

.keyword-point {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E3001B, #C00015); /* 빨간색 그라데이션 */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(227, 0, 27, 0.3);
    border: 4px solid #fff; /* 흰색 테두리로 깔끔하게 */
    transition: transform 0.3s ease;
}
.keyword-point:hover { transform: scale(1.1); z-index: 10; }

/* 삼각형 위치 잡기 */
.keyword-point.top { top: 0; left: 50%; transform: translateX(-50%); }
.keyword-point.bottom-left { bottom: 0; left: 0; }
.keyword-point.bottom-right { bottom: 0; right: 0; }

/* 키워드 설명 박스 */
.keyword-details-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.keyword-detail-item {
    background-color: #f9f9f9; /* 연회색 박스 */
    border-radius: 15px;
    padding: 30px 20px;
    width: 320px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: translateY 0.3s;
    text-align: center;
}
.keyword-detail-item:hover {
    transform: translateY(-10px); /* 호버 시 둥실 */
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.keyword-detail-item h4 {
    font-size: 1.4rem;
    color: #E3001B;
    margin-bottom: 15px;
    font-weight: 800;
}
.keyword-detail-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    word-break: keep-all;
}


/* =========================================================
   4. 강점 섹션 (카드 디자인)
   ========================================================= */
.strength-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.strength-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.strength-item {
    background-color: #fff;
    border-radius: 20px;
    padding: 0 0 30px 0; /* 이미지가 꽉 차게 위 패딩 제거 */
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden; /* 이미지 둥글게 */
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}
.strength-item:hover { transform: translateY(-10px); }

.strength-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 이미지 비율 유지하며 꽉 채우기 */
    margin-bottom: 20px;
}

.strength-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    padding: 0 20px;
}

.strength-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    padding: 0 20px;
    word-break: keep-all;
}


/* =========================================================
   5. [모바일 최적화] - 스마트폰 화면 대응
   ========================================================= */
@media (max-width: 768px) {

    /* 배너 폰트 줄이기 */
    .hero-banner { min-height: 400px; padding: 40px 15px; }
    .hero-title { font-size: 2.5rem; letter-spacing: 2px; }
    .hero-headline { font-size: 1.5rem; margin-bottom: 15px; }
    .hero-description { font-size: 0.9rem; }

    /* 문의 바 (가로 -> 세로 배치) */
    .inquiry-bar { padding: 20px 10px; top: 0; } /* 겹침 효과 제거 */
    .inquiry-form {
        flex-direction: column; /* 세로로 쌓기 */
        width: 100%;
        border-radius: 20px;
        padding: 25px 20px;
        gap: 15px;
    }
    .inquiry-form input[type="text"] { width: 100%; height: 45px; } /* 입력창 넓게 */
    .submit-button { width: 100%; height: 50px; font-size: 1.1rem; margin-top: 10px; }
    .phone-number { width: 100%; text-align: center; }

    /* 삼각형 -> 세로 일자 배치 */
    .keyword-triangle {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column; /* 세로로 */
        align-items: center;
        gap: 20px;
        margin-bottom: 40px;
    }
    .keyword-point {
        position: static; /* 절대 위치 해제 */
        transform: none !important; /* 가운데 정렬 */
    }

    /* 강점 섹션 카드 */
    .strength-item { width: 100%; max-width: 350px; margin-bottom: 20px; }
}

/* 톡상담 버튼 (항상 떠있음) */
.floating-talk-btn {
    position: fixed; bottom: 20px; right: 20px;
    background-color: #FFEB00; color: #3C1E1E;
    font-weight: bold; text-decoration: none;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 9999;
    font-size: 14px;
}