* {
    box-sizing: border-box; /* 모든 요소에 box-sizing: border-box;를 적용하면 패딩과 보더가 요소의 전체 너비에 포함되도록 할 수 있다. 이걸 설정하지 않으면 모바일환경에서 여백이 생기는 경우가 있다.*/
}

body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    text-align: center;
    overflow-x: hidden; /* 가로 스크롤 방지 */
    width: 100vw; /* 뷰포트 너비에 맞춤 */
}

h1 {
    font-size: 55px;        /* 크기 */
    color: #001122;
    margin: 50px 0 0 0;     /* 상우하좌 */
    font-weight: 700;       /* 굵기 */
    letter-spacing:-3.8px;  /* 자간 */
    line-height:1.2em;      /* 행간 */
    text-align: center;
}

p {
    font-size: 22px;
    color: #888888;
    margin: 10px 0 20px 0;  /* 상우하좌 */
    font-weight: 700;       /* 굵기 */
    letter-spacing:-0.7px;  /* 자간 */
    line-height:1.5em;      /* 행간 */
}

.image-placeholder {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-width: 400px;
    /* height: 337px; */
    background-color: #ffffff; /* 빈 공간 표시 */
    margin: 20px 0 30px 0;  /* 상우하좌 */
    border-radius: 8px;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    /* height: 100%; */
    object-fit: cover;      /* 이미지가 컨테이너에 꽉 차도록 */
}

/* 새로운 섹션 스타일 */
.services {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1200px;
    margin: 20px 0;
    padding: 20px;
}

.service-card {
    border: 2px solid #a2a2a200;
    border-radius: 10px;
    padding: 20px;
    width: 42%;             /* 카드 폭 조정 */
    height: 70%;
    text-align: left;
    background-color: #f7f7f700;
}

.service-image {
    width: 100%;
    height: 60%;
    background-color: #f7f7f700;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.service-image img {
    width: 50%;
    height: 100%;
    object-fit: cover;      /* 이미지가 컨테이너에 꽉 차도록 */
}

.service-card h2 {
    font-size: 24px;        /* 섹션 제목 폰트 크기 */
    color: #000;
}

.service-card p {
    font-size: 16px;        /* 설명 텍스트 크기 */
    color: #555;
}

.go-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.custom-footer {
    margin-top: 40px;
    background-color: black;
    color: white;
    width: 100vw;  /* 화면 전체 너비 */
    /* position: fixed;  페이지 하단에 고정 */
    bottom: 0;
    left: 0;
    text-align: center;  /* 텍스트 중앙 정렬 */
    padding: 15px 0 5px 0;  /* 위아래 여백 추가 */
}

.custom-footer p {
    font-size: 15px;
    color: white;
}

.custom-select {
    appearance: none;       /* 기본 스타일 제거 */
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: #f0f0f0;  /* 배경색 */
    border: 1px solid #ccc;     /* 테두리 */
    border-radius: 4px;     /* 모서리 둥글게 */
    padding: 10px;          /* 내부 여백 */
    font-size: 16px;        /* 글자 크기 */
    color: #333;          /* 글자 색상 */
    width: 100%;            /* 너비 */
    max-width: 300px;       /* 최대 너비 */
    box-sizing: border-box; /* 박스 크기 계산 */
}

.custom-select:focus {
    border-color: #d10000; /* 포커스 시 테두리 색상 */
    outline: none;          /* 포커스 시 외곽선 제거 */
}

.custom-select option {
    background-color: #fff; /* 옵션 배경색 */
    color: #333;            /* 옵션 글자 색상 */
}

.custom-button {
    background-color: #2e312f; /* 버튼 배경색 */
    border: none;           /* 테두리 제거 */
    color: white;         /* 글자 색상 */
    padding: 9px 16px;      /* 내부 여백 */
    text-align: center;     /* 텍스트 중앙 정렬 */
    text-decoration: none;  /* 텍스트 장식 제거 */
    display: inline-block;  /* 인라인 블록 요소 */
    font-size: 16px;        /* 글자 크기 */
    margin: 4px 2px;        /* 외부 여백 */
    cursor: pointer;        /* 커서 모양 변경 */
    border-radius: 4px;     /* 모서리 둥글게 */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* 그림자 */
    transition: box-shadow 0.3s ease-in-out; /* 그림자 전환 효과 */
}

.custom-button:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19); /* 호버 시 그림자 */
}

.adfit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    min-width: 350px;
    min-height: 200px;

    white-space: normal; /* 추가 */
    word-wrap: break-word; /* 추가 */
    overflow: hidden; /* 추가 */
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    h1 {
        font-size: 48px; /* 반응형 크기 조정 */
    }

    p {
        font-size: 18px;
    }

    .service-card {
        width: 100%;        /* 모바일에서 카드 폭 조정 */
        margin-bottom: 20px; /* 카드 사이 여백 */
    }

    .service-card h2 {
        font-size: 22px;        /* 섹션 제목 폰트 크기 */
    }
    
    .service-card p {
        font-size: 15px;        /* 설명 텍스트 크기 */
    }

    .custom-footer p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px; /* 반응형 크기 조정 */
    }

    p {
        font-size: 16px;
    }

    .service-card h2 {
        font-size: 18px;        /* 섹션 제목 폰트 크기 */
    }
    
    .service-card p {
        font-size: 14px;        /* 설명 텍스트 크기 */
    }
}