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

/* 全体のコンテナスタイル */
.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;
}

/* テーブルスタイルの調整 */
.product-info-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
}

.product-info-table th {
    width: 140px;
    text-align: left;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #555;
}

.product-info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

/* アフィリエイトボタンの強調 */
.affiliate-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.affiliate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.affiliate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #222;
}

.affiliate-button .site-name {
    font-size: 1.05rem;
    margin-right: 5px;
}

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

.embed-modal-btn {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #333;
    text-decoration: none;
}

/* .embed-modal-btn:hover {
    background-color: #ebebeb;
    color: #000;
} */

.embed-modal-btn svg {
    margin-right: 8px;
}

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

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

/* 免責事項のスタイル */
.affiliate-disclaimer {
    margin-top: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
}

/* 複数画像の縦表示スタイル */
.clothes-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.clothes-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: all 0.3s ease;
}

.clothes-image-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.clothes-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.clothes-image-item.no-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.clothes-image-item .clothes-initial {
    font-size: 4rem;
    color: #ccc;
}

/* 画像参照元のスタイル */
.image-source {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    font-size: 12px;
    color: #666;
    position: absolute;
    bottom: 0;
    right: 0;
    border-top-left-radius: 8px;
}

.image-source a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px dotted;
}

.image-source a:hover {
    color: #000;
}

/* 関連ファッションアイテムのグリッド表示 */
.related-clothes-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.related-clothes-grid .clothes-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-clothes-grid .clothes-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-clothes-grid .clothes-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-clothes-grid .clothes-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-clothes-grid .clothes-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-clothes-grid .clothes-card:hover .clothes-image img {
    transform: scale(1.05);
}

.related-clothes-grid .clothes-info {
    padding: 15px;
}

.related-clothes-grid .clothes-brand {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.related-clothes-grid .clothes-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.related-clothes-grid .clothes-price {
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
}

.related-clothes-grid .clothes-price small {
    font-size: 0.8rem;
    font-weight: normal;
    color: #666;
    margin-left: 3px;
}

/* レスポンシブ調整 */
@media (max-width: 767px) {
    .section-block {
        padding: 20px;
    }
    
    .product-info-table th {
        width: 100px;
        padding: 10px;
    }
    
    .product-info-table td {
        padding: 10px;
    }
    
    .affiliate-button {
        width: 100%;
    }
}

/* タブレット以上のデバイスでのグリッド表示 */
@media (min-width: 576px) {
    .related-clothes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* デスクトップサイズでのグリッド表示 */
@media (min-width: 992px) {
    .related-clothes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}