/**
 * 有名人詳細ページの縦積みレイアウト用CSS
 *
 * タブUIから縦積みレイアウトに変更するためのスタイル
 *
 * @package collemi
 */

/* 画像参照元のスタイル */
.image-source {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: right;
}

.image-source a {
    color: #0066cc;
    text-decoration: none;
}

.image-source a:hover {
    text-decoration: underline;
}

/* 全体のコンテナスタイル */
.section-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

/* 各セクションのスタイル */
.section-block {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.section-block:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* セクションの見出し */
.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #000;
}

/* SNSリンクのスタイル調整 */
.celebrity-sns-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.sns-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff; /* 白色に変更 */
    transition: all 0.3s ease;
}

.sns-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.sns-link.youtube {
    background-color: #ff0000;
}

.sns-link.twitter {
    background-color: #1DA1F2;
}

.sns-link.instagram {
    background-color: #E1306C;
}

/* 着用アイテムグリッドのスタイル */
.fashion-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.item-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(233, 236, 239, 0.4);
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(233, 236, 239, 0);
}

.item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #F169B5), var(--secondary-color, #6EBCE2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.item-card:hover::after {
    transform: scaleX(1);
}

.item-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.item-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.item-card:hover .item-thumbnail img {
    transform: scale(1.08);
}

.item-info {
    padding: 18px;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.item-brand {
    color: var(--secondary-color, #6EBCE2);
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.item-name {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--dark-gray, #343A40);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.8em; /* 代替として最大高さも指定 */
}

.item-price {
    font-weight: 700;
    color: var(--accent-color, #9F3ED9);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.item-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Font Awesome が読み込まれている場合のカレンダーアイコン */
.item-date:before {
    content: '📅'; /* Unicode絵文字を代わりに使用 */
    font-size: 0.85rem;
    margin-right: 3px;
}

/* ニュース一覧のスタイル */
.news-list {
    margin-top: 20px;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:first-child {
    padding-top: 0;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.news-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.news-description {
    margin-bottom: 10px;
    color: #444;
    line-height: 1.6;
}

.news-link {
    display: inline-block;
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 0;
}

.news-link:hover {
    text-decoration: underline;
}

/* もっと見るボタン */
.show-more-container {
    text-align: center;
    margin-top: 20px;
}

.show-more-button {
    background-color: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.show-more-button:hover {
    background-color: #e9e9e9;
}

/* モーダルボタンのスタイル調整 */
.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.embed-modal-btn {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background-color: var(--light-gray, #F8F9FA);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--dark-gray, #343A40);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.embed-modal-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(110, 188, 226, 0.2);
    transition: width 0.3s ease;
    z-index: 0;
}

.embed-modal-btn:hover:before {
    width: 100%;
}
/*
.embed-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: var(--secondary-color, #6EBCE2);
}
*/

.embed-modal-btn svg {
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

/* 小さいサイズのモーダルボタン (カード内) */
.embed-modal-btn.small {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
}

.embed-modal-btn.small svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

/* YouTube埋め込み表示のスタイル */
.celebrity-youtube-embed {
    margin-top: 25px;
    width: 100%;
    position: relative;
}

.video-reference-note {
    background-color: #f5f5f5;
    color: #666;
    font-size: 0.9rem;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.celebrity-youtube-embed .youtube-embed {
    margin-bottom: 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 */
    height: 0;
    overflow: hidden;
}

.celebrity-youtube-embed .youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* レスポンシブ対応の強化 */
@media (max-width: 767px) {
    .section-block {
        padding: 20px;
    }
    
    .fashion-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .celebrity-youtube-embed {
        margin-top: 20px;
    }
    
    .item-name {
        font-size: 0.95rem;
    }
    
    .item-price {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .embed-modal-btn {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .fashion-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .section-block {
        padding: 25px;
    }
}

@media (min-width: 992px) {
    .section-block {
        padding: 35px;
    }
    
    .section-heading {
        font-size: 1.7rem;
    }
    
    .fashion-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 25px;
    }
}

@media (min-width: 1200px) {
    .section-container {
        max-width: 1140px;
        margin: 0 auto;
    }
    
    .fashion-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }
}
