@charset "utf-8";

/* モデル詳細ページのデザイン改善 */
.model-detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

.model-detail .profile_left {
    width: 45%;
    float: none;
    margin-right: 0;
}

.model-detail .profile_right {
    width: 50%;
    float: none;
    padding-left: 20px;
}

/* 画像エリア */
.model-detail #showLarge {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.model-detail #showLarge img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.model-detail #showLarge img:hover {
    transform: scale(1.02);
}

/* サムネイルリスト */
.model-detail .pic_list {
    margin-top: 20px;
}

.model-detail .pic_listImg {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.model-detail .pic_listImg div {
    width: 80px;
    height: 80px;
    float: none;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.model-detail .pic_listImg div:hover {
    border-color: #ACA8A3;
    opacity: 0.8;
}

.model-detail .pic_listImg div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.model-detail .pic_listImg_bottom_p {
    font-size: 14px;
    color: #ACA8A3;
    margin-bottom: 10px;
    border-bottom: 1px solid #ACA8A3;
    padding-bottom: 5px;
    width: 100%;
}

/* プロフィール右側 */
.model-detail .profile_title {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.model-detail .profile_title h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1f1f1f;
}

.model-detail .profile_title h1 span {
    font-size: 16px;
    color: #888;
    margin-left: 10px;
    font-weight: normal;
}

.model-detail .pdf a {
    display: inline-flex;
    align-items: center;
    color: #ACA8A3;
    font-size: 14px;
    transition: color 0.3s;
}

.model-detail .pdf a:hover {
    color: #000;
}

.model-detail .pdf img {
    margin-left: 5px;
    width: 20px;
}

/* プロフィールテーブル */
.model-detail .profTable {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.model-detail .profTable tr {
    border-bottom: 1px solid #eee;
}

.model-detail .profTable td {
    padding: 12px 5px;
    font-size: 15px;
    vertical-align: middle;
}

.model-detail .profTable td:first-child {
    width: 30%;
    color: #ACA8A3;
    font-weight: bold;
    font-family: sans-serif;
}

.model-detail .profTable td:last-child {
    text-align: left;
    color: #333;
}

/* SNSアイコン */
.model-detail .icon_profile {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.model-detail .icon_profile li {
    float: none;
    margin: 0;
}

.model-detail .icon_profile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #525151;
    transition: opacity 0.3s;
}

.model-detail .icon_profile a:hover {
    opacity: 0.8;
}

.model-detail .icon_profile img.icon_img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: opacity 0.3s;
}

/* Xアイコンだけ小さく表示 */
.model-detail .icon_profile img.icon_img[alt="x"] {
    width: 14px;
    height: 14px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.0);
}

.model-detail .icon_profile img.icon_img:hover {
    opacity: 1;
}

/* Workセクション */
.model-detail .work h2 {
    font-size: 20px;
    border-left: 4px solid #000;
    padding-left: 15px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.model-detail .work h2 span {
    font-size: 14px;
    color: #ACA8A3;
    margin-left: 10px;
    font-weight: normal;
}

.model-detail .work dl {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.model-detail .work dt {
    width: 20%;
    font-weight: bold;
    color: #555;
    font-size: 15px;
    padding-top: 2px;
    border: none;
}

.model-detail .work dd {
    width: 80%;
}

.model-detail .work dd ul li {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.6;
}

/* スマートフォン対応 (max-width: 768px) */
@media screen and (max-width: 768px) {
    .model-detail {
        flex-direction: column;
        margin-top: 20px;
    }

    .model-detail .profile_left,
    .model-detail .profile_right {
        width: 100%;
        padding: 0;
    }

    /* SPではメイン画像を大きく */
    .model-detail #showLarge {
        margin: 0 -5% 20px -5%; /* 画面幅いっぱいに */
        width: 110%;
        border-radius: 0;
        box-shadow: none;
    }

    /* サムネイルを横スクロールに */
    .model-detail .pic_list {
        margin-bottom: 30px;
    }

    .model-detail .pic_listImg {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        margin-bottom: 15px;
        /* スクロールバー非表示 */
        scrollbar-width: none;
    }
    .model-detail .pic_listImg::-webkit-scrollbar {
        display: none;
    }

    .model-detail .pic_listImg div {
        flex-shrink: 0;
        width: 90px;
        height: 90px;
    }

    /* プロフィール情報 */
    .model-detail .profile_title {
        text-align: center;
        border-bottom: none;
        margin-bottom: 20px;
    }

    .model-detail .profile_title h1 {
        font-size: 24px;
    }

    .model-detail .icon_profile {
        justify-content: center;
        margin-bottom: 30px;
    }

    .model-detail .profTable {
        background-color: #fafafa;
        padding: 15px;
        border-radius: 8px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .model-detail .profTable tbody,
    .model-detail .profTable tr,
    .model-detail .profTable td {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .model-detail .profTable tr {
        margin-bottom: 15px;
        border-bottom: 1px dashed #ddd;
        padding-bottom: 10px;
    }

    .model-detail .profTable td:first-child {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .model-detail .profTable td:last-child {
        font-size: 16px;
        font-weight: bold;
    }

    .model-detail .profTable td {
        padding: 0;
    }

    /* Workセクション */
    .model-detail .work dt {
        width: 100%;
        margin-bottom: 5px;
        color: #ACA8A3;
        font-size: 14px;
    }

    .model-detail .work dd {
        width: 100%;
        padding-left: 10px;
    }
}
