/* 폰트 불러오기 (style.css 맨 위에 붙여넣기) */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700&family=Playfair+Display:ital@0;1&display=swap');

/* 폰트 적용 (hero-content 부분에 추가) */
.hero-content h1 {
    font-family: 'Nanum Myeongjo', serif; /* 감성적인 명조체 */
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-family: 'Nanum Myeongjo', serif;
    font-size: 1.2rem;
    letter-spacing: 4px; /* 글자 간격을 넓히면 더 감성적입니다 */
}

/* 사이트 전체 배경을 따뜻한 아이보리 색상으로 변경 */
body {
    background-color: #faf7f2 !important; /* 포근하고 고급스러운 느낌의 아이보리 색상 */
}
/* 기본 스타일 초기화 */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Malgun Gothic', sans-serif; scroll-behavior: smooth; }
body { color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { padding: 80px 20px; max-width: 1100px; margin: 0 auto; text-align: center; }
.bg-light { background-color: #f9f9f9; max-width: 100%; }
h2 { font-size: 2rem; letter-spacing: 2px; margin-bottom: 40px; color: #111; }

/* 상단 헤더 */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; position: fixed; width: 100%; top: 0; background: rgba(255,255,255,0.95); z-index: 1000; border-bottom: 1px solid #eee; }
.logo { font-weight: bold; font-size: 1.2rem; letter-spacing: 3px; }
nav { display: flex; align-items: center; }
nav a { margin-left: 30px; font-size: 0.95rem; font-weight: 500; color: #555; }
nav a:hover { color: #000; }
.nav-reserve-btn { background: #222; color: #fff !important; padding: 8px 16px; border-radius: 4px; font-size: 0.85rem; }
.nav-reserve-btn:hover { background: #000; }

/* 메인 비주얼 영역 */
.hero { height: 100vh; background: #fafafa; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; }
.hero-content h1 { font-size: 2.5rem; font-weight: 300; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p { font-size: 1.1rem; color: #777; margin-bottom: 40px; letter-spacing: 1px; }
.btn { padding: 15px 35px; background: #1ec800; color: #fff; font-size: 0.95rem; font-weight: bold; letter-spacing: 1px; border-radius: 4px; transition: 0.3s; }
.btn:hover { background: #19a500; }

/* 포트폴리오 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.gallery-item { border-radius: 4px; color: #777; font-size: 0.9rem; }

/* 가격 안내 요소 카드 */
.price-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 20px; }
.price-card { background: #fff; padding: 40px; border: 1px solid #e1e1e1; border-radius: 4px; width: 320px; text-align: left; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #111; }
.price-val { font-size: 1.5rem; font-weight: bold; margin-bottom: 25px; color: #222; }
.price-card ul { list-style: none; color: #666; font-size: 0.95rem; }
.price-card ul li { margin-bottom: 10px; }
.price-card ul li::before { content: "• "; color: #999; }
.card-btn { display: block; text-align: center; background: #fafafa; border: 1px solid #ddd; padding: 10px; margin-top: 25px; font-size: 0.9rem; border-radius: 4px; transition: 0.2s; }
.card-btn:hover { background: #222; color: #fff; border-color: #222; }

/* 안내 상자 */
.notice-box { max-width: 600px; margin: 0 auto; text-align: left; background: #f9f9f9; padding: 30px; border-radius: 4px; line-height: 2; color: #555; }

/* 푸터 */
footer { background: #111; color: #777; padding: 40px 20px; text-align: center; font-size: 0.85rem; line-height: 2; }

/* --- 포트폴리오 레이아웃 완전 개편 --- */

/* 1. 공통 줄 설정 (전체 가로폭을 넓혀서 4칸이 예쁘게 들어가도록 조절) */
.gallery-row {
    display: grid;
    max-width: 900px; /* 4칸이 들어가야 하므로 전체 너비를 살짝 키웠습니다 */
    margin: 0 auto;
    gap: 15px; /* 사진 사이 간격 */
}

/* 윗줄 (증명사진 4칸 배정) */
.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 25px; /* 아랫줄과의 간격 */
}

/* 아랫줄 (프로필 2칸 배정) */
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 2. 증명사진 상자 모양 (3:4 비율로 아담하고 예쁘게) */
.gallery-item-id {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

/* 3. 프로필사진 상자 모양 (증명사진보다 조금 더 시원하고 길쭉하게 크기 차이를 줌) */
.gallery-item-profile {
    width: 100%;
    aspect-ratio: 3.5 / 4.5; /* 프로필 사진이 더 돋보이도록 살짝 더 길쭉하게 배치 */
    background-color: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

/* 4. 사진 이미지 공통 규칙 */
.gallery-item-id img,
.gallery-item-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 사진이 상자에 꽉 차게 */
    display: block;
}

/* --- 증명사진 상세 스토리 구역 디자인 (세로 선 버전) --- */
.studio-story-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 상단 타이틀 및 세로 선 스타일 */
.story-title-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px; /* 타이틀 영역 전체와 아래 사진과의 간격 */
}
.story-sub-title {
    font-size: 14px;
    letter-spacing: 6px;
    color: #555;
    font-weight: 500;
    margin-bottom: 15px; /* 글씨와 세로 선 사이의 간격 */
}
.story-vertical-line {
    width: 1px;
    height: 40px; /* 세로 선의 길이 */
    background-color: #cccccc; /* 은은한 연회색 선 */
}

/* 4분할 가로 갤러리 */
.story-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}
.story-gallery-item {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px; /* 사진 모서리 부드럽게 둥글리기 */
    overflow: hidden;
}
.story-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 하단 3단 정보 그리드 */
.story-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}
.info-column {
    display: flex;
    flex-direction: column;
}
.info-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
}

/* 도형 포인트 색상 매칭 */
.point-shape {
    font-size: 14px;
    margin-left: 8px;
}
.point-shape.square { color: #e77f72; }   /* 촬영: 인디핑크 네모 */
.point-shape.circle { color: #e9b168; }   /* 보정: 주황노랑 동그라미 */
.point-shape.triangle { color: #9bc2b1; } /* 인화: 민트 세모 */

.info-text {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    word-break: keep-all;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .story-gallery { grid-template-columns: repeat(2, 1fr); }
    .story-info-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* --- 프로필 상세 스토리 구역 디자인 --- */
.profile-story-section {
    max-width: 1000px;
    margin: 80px auto; /* 증명사진 구역과 자연스럽게 떨어지도록 여백 설정 */
    padding: 0 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 상단 타이틀 및 세로 선 (증명사진 구역과 완벽 대칭) */
.profile-title-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}
.profile-sub-title {
    font-size: 14px;
    letter-spacing: 8px; /* 자간을 넓혀 고급스러운 느낌 강조 */
    color: #555;
    font-weight: 500;
    margin-bottom: 15px;
}
.profile-vertical-line {
    width: 1px;
    height: 40px;
    background-color: #cccccc;
}

/* 2분할 프로필 갤러리 */
.profile-story-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 가로로 딱 2개 배치 */
    gap: 30px; /* 사진 사이의 여유로운 간격 */
    margin-bottom: 60px;
}
.profile-story-item-box {
    display: flex;
    flex-direction: column;
    text-align: left; /* 라벨은 왼쪽 정렬 */
}
/* 프로필 사진 비율 및 크기 조정 */
.profile-story-img-wrap {
    width: 100%;
    /* 3/4 비율은 증명사진용이고, 4/5 비율이 인물 프로필에 훨씬 예쁩니다 */
    aspect-ratio: 4 / 5; 
    border-radius: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
}

/* 이미지 자체가 박스에 꽉 차게 설정 */
.profile-story-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 사진이 비율에 맞춰 잘리지 않고 꽉 차게 들어감 */
    display: block;
}
.profile-item-label {
    font-size: 14px;
    color: #666;
    padding-left: 5px;
    letter-spacing: 1px;
}

/* 하단 감성 서술형 텍스트 영역 */
.profile-story-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
}
.horizontal-deco-line {
    width: 50px;
    height: 1px;
    background-color: #bbbbbb;
    margin: 25px 0;
}
.comment-line {
    font-size: 14px;
    line-height: 2;
    color: #555;
    margin: 0 0 8px 0;
    word-break: keep-all; /* 단어 단위 줄바꿈으로 깔끔하게 */
    letter-spacing: -0.3px;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .profile-story-gallery {
        grid-template-columns: 1fr; /* 모바일에서는 세로로 1개씩 큰 화면으로 표시 */
        gap: 40px;
    }
    .comment-line {
        font-size: 13px;
        padding: 0 10px;
    }
}

/* 메인 히어로 섹션 */
.main-hero-layer {
    position: relative;
    width: 100%;
    height: 100vh; /* 화면 전체 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 1. 배경 사진 고정 */
.hero-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    /* 여기에 엽서 이미지 파일명(파일명.jpg)을 넣어주세요 */
    /* 사진 파일 이름이 main.jpg 인 경우 */
background-image: url('main.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 2. 아이보리 오버레이 (가독성 필터) */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 247, 242, 0.4); /* 아이보리색 40% 투명도 */
    z-index: 2;
}

/* 3. 텍스트 컨텐츠 (가장 위로) */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #333;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.booking-btn {
    display: inline-block !important;
    background-color: #21BA12 !important; /* 초록색 확실히 지정 */
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    z-index: 999 !important; /* 배경보다 무조건 위로 */
    position: relative;
    cursor: pointer;
}

/* 1. 헤더가 두 줄이 되지 않게 너비를 조정하고 고정 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px; /* 패딩을 살짝 줄였습니다 */
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px; /* 헤더 높이를 70px로 고정 */
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    border-bottom: 1px solid #eee;
    box-sizing: border-box; /* 패딩 때문에 너비가 커지는 것을 방지 */
}

/* 2. 고정된 헤더만큼 본문 전체를 아래로 밀어줌 */
body {
    padding-top: 70px; /* 헤더 높이만큼 여백 */
    margin: 0;
}

/* 3. 포트폴리오 섹션의 위치 보정 */
#portfolio {
    padding-top: 50px; /* 제목이 헤더 바로 아래에 오도록 여백 추가 */
    scroll-margin-top: 80px; /* 메뉴 클릭 시 멈출 위치 보정 */
}

/* --- 모바일 반응형 최적화 코드 --- */

/* 1. 이미지 및 컨테이너가 화면을 뚫고 나가지 않게 설정 */
img {
    max-width: 100%;
    height: auto;
}

/* 2. 스마트폰(화면 폭 768px 이하)일 때 적용되는 규칙 */
@media screen and (max-width: 768px) {
    
    /* 메인 텍스트 영역 */
    .hero-content h1 {
        font-size: 1.8rem !important; /* 글자를 모바일 크기에 맞춰 축소 */
        padding: 0 20px;
    }

    /* 포트폴리오 섹션의 사진 배치 */
    .story-gallery {
        grid-template-columns: repeat(2, 1fr) !important; /* 4열을 2열로 변경 */
        gap: 10px !important;
    }

    /* 정보 영역 세로로 쌓기 */
    .story-info-grid {
        flex-direction: column !important;
        align-items: center;
        padding: 0 20px !important;
    }

    /* 프로필 사진 박스 */
    .profile-story-gallery {
        flex-direction: column !important;
    }
    
    .profile-story-item-box {
        width: 100% !important;
        max-width: 300px !important;
        margin-bottom: 20px;
    }
}

/* --- 모바일 반응형 코드 (기존 디자인 유지하며 크기만 조절) --- */
@media screen and (max-width: 768px) {
    /* 1. 메인 텍스트가 화면을 뚫지 않게 조절 */
    .hero-content h1, .hero-content h1 span {
        font-size: 1.5rem !important;
    }
    
    /* 2. 증명사진 4개를 모바일에서는 2개씩 배치 */
    .story-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 3. 정보 칸들을 세로로 쌓기 */
    .story-info-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* 4. 프로필 사진도 세로로 길게 배치 */
    .profile-story-gallery {
        grid-template-columns: 1fr !important;
    }
}

/* --- 모바일 메뉴 글자 크기 및 간격 축소 --- */
@media screen and (max-width: 768px) {
    /* 1. 헤더 전체 패딩 축소 */
    header {
        padding: 10px 15px !important; 
    }

    /* 2. 로고 글자 크기 축소 */
    .logo a {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }

    /* 3. 메뉴(PORTFOLIO, NOTICE) 글자 크기 및 간격 대폭 축소 */
    nav ul {
        gap: 15px !important; /* 메뉴 간 간격을 좁힘 */
    }
    
    nav a {
        font-size: 0.75rem !important; /* 글자 크기를 0.75rem으로 작게 */
        white-space: nowrap; /* 글자가 두 줄로 꺾이는 것 방지 */
    }
}
