/* Box sizing 설정 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 기본 마진, 패딩 제거 */
* {
    margin: 0;
    padding: 0;
}

/* HTML, Body 기본 설정 */
html,
body {
    height: 100%;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* 미디어 요소 기본 설정 */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 폼 요소 폰트 상속 */
input,
button,
textarea,
select {
    font: inherit;
}

/* 폼 요소 focus 스타일 */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 텍스트 오버플로우 처리 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    word-break: keep-all; /* 한국어 텍스트 최적화 */
}

/* 리스트 스타일 제거 */
ul,
ol {
    list-style: none;
}

/* 링크 기본 스타일 제거 */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* 버튼 기본 스타일 제거 */
button {
    background: none;
    border: none;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 테이블 기본 설정 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Body 스타일 */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-size: 16px;
    color: #222;
    background-color: #fff;
    word-break: keep-all;
    word-wrap: break-word;
}

/* 기본 컨테이너 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 유틸리티 클래스 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   Header 스타일 (모바일 기본값)
======================================== */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 0;
    
    /* 모바일용 배경이미지 */
    background-image: url('../images/bg_top_m.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


main {
    padding: 0 2%;
    background-color: #fff;
}

/* Footer 스타일 */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo-img {
    width: 100px;
    height: 31px;
    object-fit: contain;
    margin: 0 auto;
}

.footer-contact {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    color: #ccc;
}

header h1 {
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700; /* Paperlogy 7Bold */
    font-size: 44px; /* 모바일 기본값 */
    color: #5601c9;
    margin-bottom: 20px;
    line-height: 1.2;
}

.top_info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    background: linear-gradient(135deg, #5908fb 0%, #c80099 100%);
    padding: 20px 40px;
    border-radius: 25px;

}


.top_info li {
    color: white;
    font-size: 17px;
    text-align: center;
    line-height: 1.4;
}





/* ========================================
   Main 컨텐츠 스타일
======================================== */

/******** 과목별 제품 안내 섹션 ********/
.product-section {
    padding-top: 25px;
}

.product-section h2 {
    font-family: 'Paperlogy', sans-serif;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
}

.product-card img {
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.grade-badge {
    font-family: 'Paperlogy', sans-serif;
    color: #000;
    padding-bottom:15px;
    border-radius: 20px;
    font-size: 28px;
    font-weight: 700;
}

.product-info {
    padding: 20px 0;
    text-align: center;
}

.price-info {
    height: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-blank {
    display: none;
}

.period {
    color: #666;
    font-size: 20px;
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700;
}

.dotted-line {
    flex: 1;
    height: 2px;
    background-image: repeating-linear-gradient(
        to right,
        #bdbdbd 0px,
        #bdbdbd 2px,
        transparent 2px,
        transparent 6px
    );
    margin: 0 10px;
}

.original-price {
    color: #c90198;
    font-size: 26px;
    font-weight: 700;
}

.product-code {
    margin: 20px 0 ;
    background-color: #f8f8f8;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #eee;
}

.product-code span {
    display: block;
    font-size: 17px;
    color: #888;
}


.product-code span.copy-code {
    cursor: pointer;
    color: #464646;
    font-size: 20px;
    font-weight: 500;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-01 {
    background-color: #da40b5;
    color: white;
    border: solid 1px #c90198;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-01:hover {
    background-color: #ff76de;
    transform: translateY(-1px);
}

.btn-02 {
    background-color: #7746db;
    color: white;
    border: solid 1px #5929bd ;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-02:hover {
    background-color: #946aea;
    transform: translateY(-1px);
}

/******** 영상 안내 섹션 ********/
.video-section {
    padding-top: 50px;
}

.video-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-thumbnail {
    border-radius: 20px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
}


/******** 빠른 주문 절차 섹션 ********/
.order-process {
    padding: 50px 0;
}

.process-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-info {
    flex: 1;
    max-width: 600px;
}

.process-info h3 {
    font-size: 30px;
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.h3-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}
.step-number {
    background-color: #6286fa;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.step-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.help-section {
    padding: 40px 0;
    text-align: center;
}

.help-icon {
    margin-bottom: 20px;
}

.help-icon img {
    width: 80px;
    height: 74px;
    margin: 0 auto;
    object-fit: contain;
}

.help-section h4 {
    font-family: 'Paperlogy', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #c90198;
    margin-bottom: 10px;
}

.help-section p {
    color: #222;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-help {
    background: linear-gradient(135deg, #da40b5, #c90198);
    color: white;
    border: none;
    padding: 10px 50px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 64, 181, 0.3);
}

.btn-help:hover {
    background: linear-gradient(135deg, #ff76de, #da40b5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 64, 181, 0.4);
}

/******** 서비스 이용 가이드 섹션 ********/
.service-guide {
    padding: 0;
}

.service-guide h3 {
    font-size: 30px;
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px; 
}


.guide-content {
    max-width: 1000px;
    margin: 0 auto;
}

.guide-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 60px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 20px;
    border: 1px solid #ddd;
}

.guide-icon {
    margin-bottom: 10px;
}

.guide-icon img {
    width: 59px;
    height: 57px;
    object-fit: contain;
}

.guide-info p {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
}

.guide-info p strong {
    color: #da40b5;
    font-weight: 700;
}

.guide-stxt {
    display: block;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 15px;
    text-align: left;
}

.guide-stxt2 {
color: #da40b5
}
.guide-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.guide-column {
    flex: 1;
    max-width: 600px;
}


.guide-column h4 {
    font-size: 20px;
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}


.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 30px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}


.guide-step-number {
    background: #ff81e0;
    color: white;
    width: 32px;
    height: 32px;
    min-width: 32px;   /* 추가 */
    min-height: 32px;  /* 추가 */
    flex-shrink: 0;    /* 추가 ← 이게 핵심 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Paperlogy', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.number-color-2 {
    background: #a78fff !important;
}

.guide-step-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.guide-note {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 15px;
    text-align: right;
}

/******** 양식 다운로드 ********/
.download-section {
    padding: 60px 0;
}

.download-section h3 {
    font-size: 30px;
    font-family: 'Paperlogy', sans-serif;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px; 
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
}

.btn-download {
    background: white;
    width: 100%;
    color: #c90198;
    border: solid 1px #da40b5;
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-download:hover {
    text-decoration: none;
    background: #ffccf3;
    transform: translateY(-2px);
}

