div.char-card-wrap{
    padding:20px 0;
}

div.char-card-wrap .char-title-wrap{
    width:90%;
    height: clamp(10vw, 20vh, 40vw);
    margin: 0 auto;
    position: relative;
    display: flex;
}
div.char-title-wrap img{
    /* width:50%; */
    margin-bottom: -20px;
}
div.char-title-wrap .char-name{
    font-size:min(3.2rem, 10vw);
    /* color:white; */
    position:absolute;
    right: 10px;
    margin-left: 10px;
    bottom:0;
    max-width: 100%;
    text-shadow: 0 0 4px #fff, 0 0 2px #fff, 0 0 2px #fff;
    font-weight: 600;
}
/* 
div.char-title-wrap .char-name::after{
    content:" ";
    display:inline-block;
    position:absolute;
    bottom: 7px;
    height: 2px;
    z-index: 10;
    width: 100%;
    left: 0;
    background-color: #B22222;
} */


div.char-card-wrap .char-title-wrap div.bottom-line{
    position: absolute;
    bottom: clamp(0, 1vw, 6px);
    height: 2px;
    z-index: 1;
    width: 100%;
    left: 0;
}

div.char-card-wrap div.char-story{
    width:90%;
    margin:0 auto;
    box-shadow: 0 0 6px rgba(99, 99, 99, 0.1);
    border:1px solid rgba(99, 99, 99, 0.1);
    border-radius: 22px;
    z-index: 10;
    position: relative;
    background-color: white;
    padding:10px;
    overflow: hidden;
}
div.char-card-wrap.not-expand div.char-story{
    max-height: 550px;
}

.char-personal-story-wrap{
    border-bottom: 1px solid lightgray;
    /* padding-bottom: 10px; */
    width:95%;
    margin: 0 auto;
}

.char-personal-story-list.coming-soon{
    padding: 10px 0;
}

div.char-card-wrap .card-wrap{
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.card-wrap .card-info{
    font-size: 12px;
    /* color: #666; */
}

.char-card-story-wrap{
    width:95%;
    margin: 0 auto;
}

div.char-story-wrap .char-card-wrap a{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    background-color: white;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

/*pc hover(모바일 동작 막으려고 분리)*/
@media (hover: hover) and (pointer: fine) {
    div.char-story-wrap .char-card-wrap a[href]:hover {
      background-color: #f0f0f0;
  }
}

/*모바일 프레스*/
div.char-story-wrap .char-card-wrap a[href].active{
  background-color: #f0f0f0;
}

.char-personal-story-wrap a:not(:last-child),
.char-card-story-wrap a:not(:last-child){
    border-bottom: 1px solid rgba(99,99,99,0.1);
}

.char-card-story-list .card-img::before {
    display:block;
    position: absolute;
    content:"";
    width:60px;
    height:60px;
    border-radius: 12px;
    z-index: 9;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* .char-card-story-list .card-img.no-card-img::before {
    background-color:white;
} */

.char-card-story-list a[href].SSR .card-img::before {
    background-image: linear-gradient(45deg, #1db8ff, #fd61e7);
}

.char-personal-story-list .card-img,
.char-card-story-list .card-img {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    position: relative;
}

.char-personal-story-list .card-img img,
.char-card-story-list .card-img img {
    border-radius: 12px;
    width: 54px;
    height: 54px;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%, -50%);
    z-index:10;
    /* margin: 3px; */
    border:2px solid white;
}

.card-wrap .card-name{
    font-size: 15px;
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
    overflow-wrap: break-word;
    white-space: normal;
}

.expand-btn {   
    display: flex;
    position:relative;
    bottom:1px;
    align-items: center;
    gap: 6px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    margin: -50px auto 0;
    padding: 8px;
    z-index: 10;
    width:93%;
    border-radius: 0 0 22px 22px;
    background-color: white;
    justify-content: center;
    height:50px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.expand-btn.fade-out{
    opacity: 0;
    transform: translateY(10px); /* 자기 자리에서 아래로 슬쩍 내려감 */
    pointer-events: none;
}

.expand-btn .arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-left: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(-45deg);
    margin-bottom: 4px;
}

div.char-card-wrap.expanded .fade-mask{
    opacity: 0;
}

.char-card-story-list a{
    color: #666;
}

.char-personal-story-list a[href],
.char-card-story-list a[href]{
    pointer-events: auto;
}

.char-personal-story-wrap a[href] div.card-name,
.char-card-story-list a[href] div.card-name{
    font-weight: bold;
}

.char-card-story-list a[href].SR .card-name{
    color: goldenrod;
    /* text-decoration: underline; */
}

.char-personal-story-list a[href] .card-name{
    color:#666;
    /* text-decoration: underline; */
}

.char-card-story-list a[href].R .card-name{
    color: #91b3d0;
    /* text-decoration: underline; */
}

.char-card-story-list a[href].SR .card-name{
    color: goldenrod;
    /* text-decoration: underline; */
}

.char-card-story-list a[href].SSR .card-name{
    background-image:linear-gradient(45deg, #1db8ff, #fd61e7);
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    position:relative;
}

/* .char-card-story-list a[href].SSR .card-name::after{
    content:'';
    width:100%;
    position: absolute;
    left:0;
    bottom: 2px;
    height: 1px;
    background-image:linear-gradient(45deg, #1db8ff, #fd61e7);
} */

.card-img .square-icon {
    position: absolute;
    width: 24px;
    height: 40px;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(-22deg);
}

.card-img.no-card-img .square-icon {
    background-color: #dfdfdf;
}

a.R .card-img:not(.no-card-img) .square-icon{
    background-image:linear-gradient(45deg, #91b3d0, #bed7d9);
}

a.SR .card-img:not(.no-card-img) .square-icon{
    background-image:linear-gradient(45deg, #f3af5a, #f9de76);
}