﻿.@charset "utf-8";

/* Transform :skew */
#header,#search,#container,.aside-wrap,#pageInfo,.fixed-quick,.fixed-bar a,.fixed-button,.footer-menu,.footer-info{transform:skew(-0.03deg);}
#header2{transform:skew(-0.03deg);}


@font-face{
  font-family:"Story Script";
  src:url("/font/StoryScript-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Roboto";
  src:url("/font/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 400;
  font-style:normal;
  font-display:swap;
}

html, body {
    overflow-x: hidden;  /* 수평 스크롤 강제 차단 */
    -ms-overflow-style: none;
}
::-webkit-scrollbar {
    display: none;
}

body{
  width: 100%;
  background-color:#ffffff;
  max-width: 720px;
  margin:0 auto;
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
  /* font-family: 'NEXON Lv2 Gothic', sans-serif; */
  font-size: 18px;
  line-height: 1.7em;
  color: #222;
  /* overflow: hidden; */
}
.container {
    min-height: 100vh;
    margin-top: 62px;
    background-color: #ffe6d6;
    padding: 20px 40px 92px 40px;
}
.txt_area .title {
    font-size: 1.4em;
    margin-bottom: 20px;
    line-height: 1.7em;
}
.txt_area .txt {
    font-family: "Roboto", sans-serif;
}
.txt_area .txt .login_form {
    margin-top: 30px;
}

/* ============================== header ========================== */
header {
    position: fixed;
    max-width: 720px;
    width: 100%;
    height: 100vh;
    top: 0;
    overflow: hidden;
    z-index: 20;
    pointer-events: none;
}
header nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 720px;
    height: 62px;
    z-index: 9;
    background-color: #fff8ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: all;
    border-bottom: 1px solid #f4b3a4;
    box-shadow: 0 5px 5px rgba(0,0,0,2%);
}
header .page-back {
    width: 17px;
    height: 17px;
    font-size: 0;
    background: url(../images/common/backicon.png) no-repeat 0 0 / 100% 100%;
}
header .logo img{
    height: 40px;
}
header .other_btn {
    cursor: pointer;
}
header .other_btn img{
    margin-top: 3px;
    height: 20px;
}
header .bg_menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 100vh;
    background: rgba(0, 0, 0, 50%);
    display: none;
    z-index: 10;
    cursor: pointer;
    pointer-events: all;
    margin: auto;
}
header .back {
    width: 25vh;
    height: 100vh;
    background: #fff8ea;
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    animation: fadeInLeft .3s;
    z-index: 9999;
    pointer-events: all;
}
@keyframes fadeInLeft {
    0% {
        opacity: 1;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
header .back ul li {
    padding: 20px;
}
header .back ul li a{
    display: block;

}
header .top_menu {
    height: 62px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
}
header .back .close_btn {
    width: 20px;
    height:  20px;
    cursor: pointer;
}
header .back .close_btn img {
    width: 100%;
}
header .bottom_menu {
    position: absolute;
    bottom: 0;
    height: 62px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    margin-bottom: 100px;
}
/* ============================== bottom_nav ========================== */
header .bottom_nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 720px;
    /* height: 62px; */
    z-index: 9;
    background-color: #fff8ea;
    padding: 12px 20px;
    pointer-events: all;
    border-top: 1px solid #f4b3a4;
    box-shadow: 0 -5px 5px rgba(0,0,0,2%);
}
.bottom_nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bottom_nav .page_btn {
    width: 25%;
    height: 50px;
    line-height: 50px;
    border: 1px solid #ffFFFF;
    background-color: #ff8188;
    color: #fff;
    text-align: center;
    border-radius: 8px;
}
.bottom_nav .page_btn a {
    display: block;
    width: 100%;
    height: 100%;
}
.page_num {
    display: flex;
    align-items: center;
    font-family: "Roboto", sans-serif;
    margin-top: 1px;
}
.page_num input {
    width: 40px;
    height: 27px;
    /* margin-right: 5px; */
    padding: 5px;
}
.page_num button {
    font-weight: bold;
    margin-left: 5px;
    color: #ff8188;
    background-color: #fff8ea;
    border: solid 1px #ff8188;
    border-radius: 5px;
    padding-left: 2px;
    padding-right: 2px;
}

/* ============================== intro ========================== */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 720px;
    height: 60%;
    background: url(/images/common/intro_bg.jpg) center/cover no-repeat;
    z-index: 1;
}
.bg-fixed .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -35%);
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    padding: 30px;
}
.bg-fixed .title .logo {
    width: 180px;
    margin: auto;
}
.bg-fixed .title .txt p {
    font-size: 20px;
    display: block;
    margin: 5px 0;
}
.bg-fixed .title .txt span {
    color: #eee;
}
.bg-fixed .title .btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bg-fixed .title .btn a{
    display: block;
    width: calc(50% - 10px);
    color: #000;
    background-color: #fffcf5;
    padding: 10px 0;
    border-radius: 10px;
    margin-top: 20px;
}
.bg-fixed .title .btn a:last-of-type {
    background-color: #ff8188;
    color: #fff;
}

.scrolly {
    position: relative;
    padding-top: 48vh;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
}

.panel {
    position: sticky;
    top: 0;
    max-width: 720px;
    margin: 0 auto;
    background: #fffcf5;
    backdrop-filter: blur(2px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    min-height: 60vh;
    z-index: 2;
}

.scrolly .panel {
    text-align: center;
    padding-top: 40px;
}
.panel section {
    margin-bottom: 60px;
}
.panel .title {
    font-size: 24px;
    color: #ff8188;
}
.panel .txt p {
    font-size: 20px;
    display: block;
    margin: 20px 0 10px 0;
}
.intro_icon {
    width: 200px;
    display: block;     
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ============================== about ========================== */
.about {
    text-align: center;
    margin-bottom: 120px;
}
.about .title {
    margin-bottom: 10px;
}
.about .title span {
    font-size: 1.2em;
}
.about .title p {
    font-size: 1.4em;
}
.about .txt {
    font-family: "Roboto", sans-serif;
    line-height: 1.4em;
    display: block;
    margin-bottom: 10px;
}
.about .txt .intro_icon {
    margin: auto;
    margin-bottom: 20px;
}
.about_img {
    margin-bottom: 20px;
}

/* ============================== album ========================== */
.album {
    width: 100%;
    background-color: #fff8ea;
    border: 1px solid #f4b3a4;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.album_main {
    width: 100%;
    background-color: #fff;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    margin-bottom: 20px;
    border: 1px solid #e3e3e3;
}
.album_txt {
    position: absolute;
    width: 100%;
    background-color: rgba(0, 0, 0, 50%);
    bottom: 0;
    padding: 20px;
    color: #fff;
}
.album_txt p {
    font-size: 1.3em;
    display: block;
}
.album_sub {
    padding-bottom: 25px;
}
.album_sub span {
    display: block;
    color: #f4b3a4;
    margin-bottom: 10px;
}
.album_sub a {
    position: relative;
    width: 100%;
    display: block;
    background-color: #f4b3a4;
    border-radius: 10px;
    color: #fff;
    font-size: 1.2em;
    padding: 15px 20px;
}
.album_sub .sub_img {
    width: 70px;
    height: 93px;
    background-color: #fff8ea;
    position: absolute;
    right: 20px;
    top: -20px;
    border-radius: 5px;
    border: 1px solid #f4b3a4;
    padding: 5px;
    transform: rotate(8deg);
    box-shadow: 2px 2px 3px 1px rgba(0, 0, 0, 20%);
}
.album_sub .sub_img:last-of-type {
    right: 50px;
    top: -40px;
    padding: 5px;
    transform: rotate(-8deg);
}
.album_sub .sub_img div {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.album_sub .sub_img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
.rotate-90 {
    transform: rotate(90deg);
    max-height: 100%;  /* 부모 안에 맞게 */
    width: auto;
}
/* ============================== img_detail ========================== */
.detail {
    width: 100%;
    background-color: #fff8ea;
    border: 1px solid #f4b3a4;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.detail_img {
    margin-bottom: 20px;
}
.play_btn {
    width: 100%;
    background-color: #f4b3a4;
    color: #fff;
    padding: 15px 0;
    font-size: 1.1em;
    border-radius: 10px;
    font-family: "Story Script", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.detail_btn {
    display:flex;
    justify-content: end;
}
.report_btn {
    background-color: #fff8ea;
    border: 1px solid #f4b3a4;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-family: "Story Script", sans-serif;
}
.report_btn img {
    width: 20px;
    margin-right: 5px;
}

/* ============================== album_list ========================== */
.album_list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
}

/* 박스를 flex 컨테이너로 만들어 중앙 배치 */
.album_list .box {
    width: auto;
    padding: 20px;
    display: flex;                 /* flex 컨테이너 */
    justify-content: center;       /* 가로 중앙 */
    align-items: center;           /* 세로 중앙 */
    box-sizing: border-box;
    min-height: 250px;             /* 세로 중앙 확인용 높이 (원하는 값으로 조정) */
}

/* 짝수 번째 보정 */
.album_list .box:nth-of-type(2n) {
    padding-top: 20px;
}

/* 이미지 프레임 */
.album_list .box .box_frame {
    background-color: #fff8ea;
    border: 1px solid #f4b3a4;
    padding: 5px;
    border-radius: 7px;
    box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 20%);
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    display: inline-block;         /* 이미지 크기에 맞춤 */
}

.album_list .box.landscape {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex !important;                 /* flex 컨테이너 */
    justify-content: center;
}

/* 이미지 */
.album_list .box .box_frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.album_title {
    text-align: center;
    padding: 10px 0 30px 0;
    font-size: 1.3em;
    color: #ff8188;
}
.album_title span {
    font-size: 0.8em;
    display: block;
    margin-top: 5px;
}


/* ============================== edit ========================== */
.edit_form {
    margin-top: 20px;
}
.edit_form li {
    margin-bottom: 20px;
}
.edit_form li b {
    font-family: "Roboto", sans-serif;
    display: block;
    /* margin-bottom: 6px; */
    margin-left: 10px;
    font-size: 0.9em;
}
.edit_form li small {
    font-family: 'Roboto';
    margin-left: 10px !important; 
}
#editForm .edit_btn {
    height: 52px;
    margin: auto;
    margin-top: 20px;
    text-align: center;
    line-height: 52px;
    border-radius: 10px;
    background-color: #ff8188;
    color: #fff;
}
#editForm .edit_btn:nth-of-type(3) {
    height: 52px;
    margin: auto;
    margin-top: 14px;
    text-align: center;
    line-height: 52px;
    border-radius: 10px;
    background-color: #ffffff;
    color: #666;
    border: 1px solid #eee;
}
#editForm .edit_btn a {
    display: block;
    width: 100%;
    height: 100%;
}
.edit_form .form-divider {
  height: 3px;
  margin: 20px 0;
  border-radius: 50%;
  background: #f4b3a4;
  list-style: none;
}
/* ==============================
   Change Phone Number Button
   (OTP Button Style Aligned)
   ============================== */
.btn-phone-change {
  height: 44px;
  padding: 0 16px;

  font-size: 14px;
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans", sans-serif;
  font-weight: 600;

  border-radius: 6px;              /* ✅ OTP 버튼과 동일 곡률 */
  border: 1px solid #d1d5db;        /* OTP보다 한 단계 약한 보더 */

  background-color: #ffffff;
  color: #374151;                   /* 너무 진하지 않게 */

  cursor: pointer;
  white-space: nowrap;

  transition:
    background-color 0.2s ease,
    transform 0.06s ease,
    border-color 0.12s ease;
}

/* hover */
.btn-phone-change:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

/* active (눌림 효과) */
.btn-phone-change:active {
  transform: translateY(1px);
}

/* focus (접근성) */
.btn-phone-change:focus {
  outline: none;
  border-color: #6b7280;
}




/* ============================== footer ========================== */

footer {
  display: flex;
  justify-content: center;
  padding: 40px 0 40px 0;
}
.footer-menu > li {
    float: left;
    position: relative;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.43;
    color: #141414;
    cursor: pointer;
}
.footer-menu > li + li {
    margin-left: 10px;
    padding-left: 10px;
}
.footer-menu > li + li::before {
    display: block;
    clear: both;
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 10px;
    margin-top: -5px;
    background-color: #b7b7b7;
}


/* ============================== main_img_detail ========================== */


@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    .container {
        padding: 20px 20px 92px 20px;
    }
    .album_main {
        max-height: 300px;
    }
    .login {
        top: 50%;
    }
    .album_list .box {
        width: 50%;
        padding: 15px;
    }
    .album_list .box:nth-of-type(2n) {
        padding-top: 60px;
    }
    .bg-fixed .title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -45%);
        width: 100%;
        height: 100%;
        color: #fff;
        text-align: center;
        padding: 30px;
    }
    .about {
        text-align: center;
        margin-bottom: 60px;
    }
}


/* ==============================
   Phone / OTP UI - 현재 HTML 구조에 맞춘 보강 CSS
   (phone_row / phone-input-wrap / otp-row / #otpArea / #otpMsg 기준)
============================== */

/* phone_row: 전체 폭은 유지하되, 내부 요소가 과하게 커지지 않게 */
.phone_row{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:100%;
}

/* +prefix + input 래퍼 */
.phone-input-wrap{
  display:flex;
  align-items:stretch;
  width:100%;
  height:52px;
  border:1px solid #ccc;
  border-radius:6px;
  overflow:hidden;
  box-sizing:border-box;
  background:#fff;
}

/* + 표시 */
.phone-prefix{
  flex:0 0 auto;
  padding:0 12px;
  font-size:15px;
  font-weight:600;
  color:#333;
  background:#f5f5f5;
  border-right:1px solid #ddd;
  display:flex;
  align-items:center;
  font-family: 'NEXON Lv2 Gothic', sans-serif;
}

/* 전화번호 input */
.phone-input-wrap .phone-input{
  flex:1 1 auto;
  min-width:0; /* 긴 placeholder/값 때문에 flex 깨지는 것 방지 */
  border:none;
  outline:none;
  padding:0 12px;
  font-size:15px;
  font-family:"Segoe UI","Apple SD Gothic Neo","Noto Sans",sans-serif;
  background:#fff;
  box-sizing:border-box;
}

/* 버튼 줄 */
.otp-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  flex-wrap:wrap;
}

/* OTP 입력 영역: 기본 숨김 */
#otpArea{
  display:none;
  align-items:center;
  gap:8px;
  min-height:44px;
  flex-wrap:wrap;
}

/* OTP input (현재 HTML은 #otp) */
#otpArea #otp{
  width:160px;
  height:44px;
  padding:0 12px;
  font-size:15px;
  font-family:"Segoe UI","Apple SD Gothic Neo","Noto Sans",sans-serif;
  border:1px solid #ccc;
  border-radius:6px;
  box-sizing:border-box;
}

/* OTP 메시지 라인: 자리 고정 */
.otp-msg-row{
  min-height:18px;
  margin-top:3px;
}

#otpMsg{
  font-size:13px;
  font-family:"Segoe UI","Apple SD Gothic Neo","Noto Sans",sans-serif;
  line-height:1.3;
  color:#666;
}

/* 버튼 공통 */
#btnSendOtp,
#btnVerifyOtp{
  height:44px;
  padding:0 16px;
  font-size:14px;
  font-family:"Segoe UI","Apple SD Gothic Neo","Noto Sans",sans-serif;
  font-weight:600;
  border-radius:6px;
  border:none;
  cursor:pointer;
  transition:background-color 0.2s ease, transform 0.06s ease;
  white-space:nowrap;
}

#btnSendOtp:active,
#btnVerifyOtp:active{
  transform:translateY(1px);
}

/* Send Code */
#btnSendOtp{
  background-color:#222;
  color:#fff;
}
#btnSendOtp:hover{ background-color:#000; }
#btnSendOtp:disabled{
  opacity:0.6;
  cursor:not-allowed;
}

/* Verify */
#btnVerifyOtp{
  background-color:#0d6efd;
  color:#fff;
}
#btnVerifyOtp:hover{ background-color:#0b5ed7; }
#btnVerifyOtp:disabled{
  opacity:0.6;
  cursor:not-allowed;
}

/* ==============================
   edit2(회원정보 수정)에서만 OTP 항상 노출
   body에 class="page-edit-profile" 부여
============================== */
body.page-edit-profile #otpArea{
  display:flex;
}

/* 모바일에서 OTP input이 너무 길게 커지지 않게 */
@media (max-width: 420px){
  #otpArea #otp{
    width:140px;
  }
  #btnSendOtp,
  #btnVerifyOtp{
    padding:0 12px;
  }
}


/* ====================index.iot======================== */
.bg-fixed .title .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;   /* 핵심: 3번째 버튼 줄바꿈 */
  gap: 10px;         /* 간격 통일 */
}

.bg-fixed .title .btn a {
  display: block;
  width: calc(50% - 5px);  /* gap(10px) 기준 2열 안정 */
  color: #000;
  background-color: #fffcf5;
  padding: 10px 0;
  border-radius: 10px;
  margin-top: 20px;
}

.bg-fixed .title .btn a:last-of-type {
  background-color: #ff8188;
  color: #fff;
}

.bg-fixed .title .btn .btn-contact {
  width: calc(50% - 5px);            
  height: 44px;
  margin-top: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans", sans-serif;
  font-weight: 600;

  border-radius: 10px;      /* 기존 버튼과 곡률 통일 */
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.25);
  color: #fff;

  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.06s ease;
  white-space: nowrap;
}

.bg-fixed .title .btn .btn-contact:active {
  transform: translateY(1px);
}

/* ==================== Contact Modal ==================== */

/* 모달 열렸을 때 배경 스크롤 잠금 */
body.modal-open{
  overflow: hidden;
}

/* 기본: 숨김 */
.contact-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

/* 열림 상태 */
.contact-modal.is-open{
  display: block;
}

/* 배경(오버레이) */
.contact-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* 패널(대화상자) */
.contact-modal__panel{
  position: fixed;                 /* 뷰포트 기준 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(92vw, 420px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  overflow: hidden;

  font-family: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans", sans-serif;
}


/* 헤더 */
.contact-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.contact-modal__title{
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

/* 닫기 버튼 */
.contact-modal__close{
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #333;
}

/* 본문 */
.contact-modal__body{
  padding: 14px 16px 6px 16px;
}

.contact-row{
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.contact-row:last-child{
  border-bottom: none;
}

.contact-label{
  width: 90px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
}

.contact-value{
  flex: 1;
  font-size: 14px;
  color: #111;
  word-break: break-word;
}

.contact-value a{
  color: #111;
  text-decoration: underline;
}

/* 푸터 */
.contact-modal__footer{
  padding: 12px 16px 16px 16px;
  display: flex;
  justify-content: flex-end;
}

.contact-modal__ok{
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #111;
  color: #fff;
  transition: transform 0.06s ease;
}

.contact-modal__ok:active{
  transform: translateY(1px);
}


