@charset "UTF-8";

/* =====================================================
   PORTAL BASE
   ===================================================== */

html,body{width:100%; min-height:100%; background:#fff;}

body{padding:0;}

.pm-wrap{position:relative; width:100%; max-width:640px; min-height:100vh; margin:0 auto; padding-bottom:calc(93px + env(safe-area-inset-bottom)); overflow-x:hidden; background:#e9eff5;}

.portal-container{position:relative; width:100%; min-height:calc(100vh - 93px); background:#e9eff5;}

.portal-home-container{min-height:0;}


/* =====================================================
   HEADER
   ===================================================== */

.portal-header{position:relative; z-index:100; display:flex; align-items:center; gap:13px; width:100%; height:64px; padding:0 20px; border-bottom:1px solid #e5e9ee; background:#fff;}

.portal-header-logo{display:flex; flex:0 0 auto; align-items:center;}

.portal-header-logo img{width:72px; height:auto;}

.portal-header-title{display:block; overflow:hidden; color:#303841; font-size:16px; font-weight:700; letter-spacing:-.6px; text-overflow:ellipsis; white-space:nowrap;}

/* =====================================================
   BOTTOM NAV
   ===================================================== */

.bottom-nav{position:fixed; z-index:1000; left:50%; bottom:0; display:flex; align-items:flex-start; justify-content:space-around; width:100%; max-width:640px; height:calc(93px + env(safe-area-inset-bottom)); padding:16px 13px calc(8px + env(safe-area-inset-bottom)); background:#fff; box-shadow:0 -2px 10px rgba(0,0,0,.05); transform:translateX(-50%);}

.nav-item{display:flex; flex:1; flex-direction:column; align-items:center; justify-content:flex-start; gap:5px; min-width:0; color:#555; font-size:14px; font-weight:700; letter-spacing:-.5px; text-align:center;}

.nav-icon{display:flex; align-items:center; justify-content:center; width:42px; height:42px;}

.nav-icon img{display:block; max-width:38px; max-height:38px;}

.nav-item.active{color:#e00000;}

.nav-item:focus-visible{outline:2px solid #1769b0; outline-offset:2px; border-radius:5px;}


/* =====================================================
   COMMON SUB PAGE
   ===================================================== */

.portal-content-inner{width:100%; padding:22px 18px 35px;}
.portal-head{margin-bottom:4px; background:#fff; padding: 10px 20px; box-shadow: 0 -2px 10px rgba(0, 0, 0, .05); border-top: 1px solid #dfe5ec;}
.portal-head h2{margin:0; color:#2f3740; font-size:20px; font-weight:700; text-align: center;}
.portal-head p{margin:7px 0 0; color:#777; font-size:14px; line-height:1.6;}
.portal-page{padding:22px 18px 35px;}




/* =====================================================
   COMMON FORM
   ===================================================== */

.portal-form-label{display:block; margin-bottom:7px; color:#3f4852; font-size:13px; font-weight:700;}

.portal-required{margin-left:3px; color:#db3333; font-size:11px; font-style:normal;}

.portal-input,.portal-select,.portal-textarea{width:100%; border:1px solid #ccd5df; border-radius:7px; background:#fff; color:#303942; font-size:14px;}

.portal-input,.portal-select{height:48px; padding:0 13px;}

.portal-textarea{min-height:100px; padding:12px 13px; line-height:1.6;}

.portal-input:focus,.portal-select:focus,.portal-textarea:focus{border-color:#3479b9; box-shadow:0 0 0 3px rgba(52,121,185,.08);}

.portal-input::placeholder,.portal-textarea::placeholder{color:#a6aeb7;}


/* =====================================================
   COMMON BUTTON
   ===================================================== */

.portal-btn{display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 18px; border-radius:7px; font-size:14px; font-weight:700; text-align:center;}

.portal-btn-primary{background:#246fd0; color:#fff;}

.portal-btn-primary:hover{background:#1d5fb5;}

.portal-btn-secondary{border:1px solid #cbd5df; background:#fff; color:#53606d;}

.portal-btn-secondary:hover{border-color:#286ed5; color:#286ed5;}


/* =====================================================
   SAFE AREA
   ===================================================== */

@supports(padding:max(0px)){
	.pm-wrap{padding-bottom:max(93px,calc(93px + env(safe-area-inset-bottom)));}
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media(max-width:640px){
	body{background:#fff;}
	.pm-wrap{max-width:none;}
}

@media(max-width:480px){
	.portal-header{height:58px; padding:0 15px;}
	.portal-header-logo img{width:65px;}
	.portal-header-title{font-size:15px;}
	.portal-container{min-height:calc(100vh - 58px - 93px);}
	.portal-content-inner{padding:18px 14px 30px;}
	.portal-page-head h1,.portal-page-head h2{font-size:22px;}
	.portal-page-head p{font-size:13px;}
	.bottom-nav{height:calc(93px + env(safe-area-inset-bottom)); padding:14px 8px calc(8px + env(safe-area-inset-bottom));}
	.nav-item{gap:4px; font-size:13px;}
	.nav-icon{width:40px; height:40px;}
	.nav-icon img{max-width:35px; max-height:35px;}
}