/* ========================================
   デザイナー一覧ページ
   ======================================== */

/* ========================================
   メインコンテンツ
   ======================================== */
.designers-main {
    padding: 0 0 20px;
}

.designers-container {
    max-width: 840px;
    margin: 0 auto;
}

/* ========================================
   検索セクション
   ======================================== */
.designers-search__tags {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.designers-search__tags::-webkit-scrollbar {
    display: none;                  /* Chrome, Safari */
}

.designers-search__tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px 9px;
    background-color: #fff;
    border: solid 1px #dddce1;
    border-radius: 999px;
    font-size: 12px;    
    text-decoration: none;
    line-height: 1;
    transition: all .2s;
}

.designers-search__tag:hover,
.designers-search__tag--active {
    background-color: #ededed;
    
}

.designers-search__tag--clear {
    background-color: rgb(239, 68, 68);
    border-color: rgb(239, 68, 68);
    color: #fff;
}

.designers-search__tag--clear:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* ========================================
   デザイナーリスト
   ======================================== */
.designers-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.designers-empty {
    text-align: center;
    padding: 26px 0;
}

.designers-empty p {
    font-size: 15px;
}

/* ========================================
   デザイナーカード
   ======================================== */
.designer-card{
    padding-bottom: 20px;
    border-bottom: solid 1px #f0eff4;
}
.designer-card__header {
    display: grid;
    grid-template-areas: 
    "avatar profile action";
    grid-template-columns: 70px minmax(0, 100%) 250px;
    gap: 12px;
    position: relative;
}
.designer-card__avatar{
    grid-area: avatar;
}
.designer-card__profile {
    grid-area: profile;
}
.designer-card__actions{
    grid-area: action;
}
.designer-card__profile {
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.designer-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #bebebe;
}

.designer-card__avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.designer-card__avatar-image:hover{
    opacity: .8;
}
.designer-card__info {
    min-width: 0;
}

.designer-card__job {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 600px;
    width: min(100%, 600px);
}

.designer-card__name-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    line-height: 1;
    margin-bottom: 4px;
}
.designer-card__name {
    font-size: 20px;
    font-weight:600;
}

.designer-card__name-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.designer-card__name-link:hover {
    opacity: 0.8;
}

.rating---follower_wrap{
    display: flex;
    align-items: center;
    gap: 8px;
}
.rating---follower_wrap *{
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
.designer-card__rating {
    display: flex;
    align-items: center;
}
.rating---follower_wrap .material-symbols-outlined{
    font-size: 15px;
    font-variation-settings:'FILL' 1;
}
.designer-card__follower-num{
    font-weight: 400;
}
.designer-card__follower-count {
    display: flex;
    align-items: center;
}

/* ステータス行 */
.designer-card__status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}
.designer-card__status-row .material-symbols-outlined{
    font-size: 16px;
    color: #3e324173;
    margin-right: 2px;
}
.designer-card__status-item {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
}
.designer-card__status-separator {
    color: #ccc;
}

/* スキルタグ */
.designer-card__skill-tags{
    margin-bottom: 8px;
    margin-top: 16px;
}
.skill-tags-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.designer-card__skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px 7px;
    background: #f0eff4;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.designer-card__skill-tag--more {
    background-color: transparent;
    border: none;
    padding: 0 4px;
    font-weight: 400;
    font-size: 13px;
}

/* アクションボタン */
.designer-card__actions {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    align-self: flex-start;
}

.designer-card__message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding:9px 20px 8px;
    background-color: var(--btncolor);
    border: solid 1px #000;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.designer-card__message-btn:hover {
    background-color: #fff;
    border: solid 1px #000;
    color: var(--btncolor);
}

.designer-card__message-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 1;
}

.designer-card__message-btn:disabled:hover {
    background-color: #ccc;
    border-color: #ccc;
    color: #fff;
}

.designer-card__sub-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.designer-card__sub-actions .material-symbols-outlined{
    font-size: 20px;
    color:var(--fontcolor)
}
.designer-card__circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    border: solid 1px #dddce1;
    position: relative;
}
.designer-card__circle-btn.js-follow-btn img{
    width: 16px;
}
.designer-card__circle-btn.js-share-btn img{
    height: 18px;
}
.designer-card__circle-btn--following .material-symbols-outlined{
    font-variation-settings: 'FILL' 1;
}
.designer-card__circle-btn--following::before,
.designer-card__circle-btn--following::after{
    display: none;
}
/* ========================================
   カードコンテンツ
   ======================================== */
.designer-card__content {
    padding: 0 72px;
}
.designer-card__section-title{
    font-size: 14px;
    font-weight: 600;
}
.designer-card__catchphrase-block {
    padding: 0;
    margin-bottom: 0px;
}
.designer-card__catchphrase {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}
.designer-card__hashtag_wrap{
    display: flex;
    align-items: center;
    gap: 8px;
}
.designer-card__hashtags {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.designer-card__hashtag-item{
    display: flex;
    align-items: center;
    gap: 0;
    line-height: 1;
}
.designer-card__hashtag-item .material-symbols-outlined{
    font-size: 15px;
}
.designer-card__portfolios {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    margin-bottom:16px;
    margin-top: 16px;
}

.designer-card__portfolio-item {
    display: block;
    flex: 0 0 calc((100% - 48px) / 3);
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgb(240, 240, 240);
    text-decoration: none;
    color: inherit;
}

.designer-card__portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.designer-card__portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(180, 180, 180);
    font-size: 32px;
}

/* セクション（自己紹介・最終経歴） */
.designer-card__section {
    margin-bottom: 16px;
}

.designer-card__description {
    font-size: 13px;
    line-height: 1.65;
}

.designer-card__section-text {
    margin: 0;
    font-size: 13px;
    line-height: 1;
}

/* ========================================
   カードフッター
   ======================================== */
.designer-card__footer {
    margin-top: 20px;
    padding: 0 72px;
}

.designer-card__verification-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.designer-card__verification-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    
}

.designer-card__more-profile {
    width: 100%;
}
.designer-card__more-profile-link {
    display: block;
    width: 100%;
    text-align: center;
    border: solid 1px #ccc;
    text-decoration: none;
    color: #444;
    line-height: 1;
    padding: 12px 0;
    border-radius: 999px;
    font-size: 14px;
    transition: all .2s;
}
.designer-card__more-profile-link:hover{
    background-color: #ededed;
}
.designer-card__more-profile-link img{
    vertical-align: bottom;
}
/* ========================================
   ページネーション
   ======================================== */
.designers-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 878px){
    .designers-search__tags{
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
   }
@media (max-width: 768px) {
    .designers-main {
        padding: 0 0 20px;
    }
    .designers-search__tags{
        margin-bottom: 12px;
        gap: 6px;
    }
    .designers-list{
        margin-top: 16px;
        gap: 16px;
    }
    .designer-card {
        padding: 0px;
    }
    .designer-card__header {
        display: grid;
        grid-template-areas: "avatar action"
                            "profile profile";
        grid-template-columns: 1fr;
        column-gap: 6px;
        row-gap: 12px;
        padding:0;
        margin-bottom: 12px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    .designer-card__header::before{
        background-size: auto;
    }
    .designer-card__message-btn{
        padding: 8px 20px 7px;
    }
    .designer-card__circle-btn {
        width: 32px;
        height: 32px;
    }
    .designer-card__sub-actions .material-symbols-outlined{
        font-size: 14px;
    }
    .designer-card__content{
        padding: 0;
    }
    .designer-card__avatar{
        width: 64px;
        height: 64px;
    }
    .designer-card__section-title{
        margin-bottom: 6px;
    }
    .designer-card__profile{
        padding-left: 0;
    }
    .designer-card__name{
        margin-right: 2px;
        font-size: 18px;
    }
    .designer-card__description{
        font-size: 13px;
        line-height: 1.6;
    }
    .designer-card__job{
        margin-bottom:3px;
        font-size: 13px;
    }
    .designer-card__skill-tags{
        margin-bottom: 20px;
    }
    .designer-card__catchphrase {
        font-size: 16px;
    }
    .designer-card__catchphrase-block{
        margin-bottom: 20px;
    }
    .designer-card__hashtag-item{
        line-height: 1;
    }
    .designer-card__actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .designer-card__sub-actions {
        justify-content: center;
        gap: 8px;
    }

    .designer-card__portfolios {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .designer-card__portfolios::-webkit-scrollbar {
        display: none;
    }

    .designer-card__portfolio-item {
        flex: none;
        flex-shrink: 0;
        width: calc((100% - 14px) / 1.8);
        height: auto;
        aspect-ratio: 16 / 9;
        scroll-snap-align: start;
    }
    .designer-card__skill-tag{
        font-size: 11px;
        padding: 7px 13px 6px;
    }
    .designer-card__footer {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .designer-card__hashtag_wrap{
        margin-bottom: 20px;
    }
    .designer-card__name-row {
        gap: 8px;
        margin-bottom: 6px;
        align-items: center;
    }

    .designer-card__skill-tags {
        gap: 4px;
    }
    .designer-card__more-profile-link{
        font-size: 12px;
    }
}
