/* ============================================
   Top Page Styles
   トップページ専用スタイル
   ============================================ */

/* ============================================
   PICK UP セクション
   ============================================ */
.pickup-section {
    padding: 30px 0 0;
    border-top: 1px solid var(--color-border);
}

.pickup-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 0 40px 30px;
    border-bottom: 1px solid var(--color-border);
}

.pickup-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
}

.pickup-subtitle {
    font-size: 12px;
    color: var(--color-gray);
    letter-spacing: 2px;
}

.pickup-content {
    display: flex;
    gap: 0;
}

/* ============================================
   Instagram埋め込み（左カラム）
   ============================================ */
.instagram-feed {
    width: 280px;
    flex-shrink: 0;
    padding: 30px;
    border-right: 1px solid var(--color-border);
    position: sticky;
    top: calc(var(--header-height) + 0px);
    align-self: flex-start;
    height: calc(100vh - var(--header-height));
}

.instagram-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.instagram-icon {
    width: 40px;
    height: 40px;
}

.instagram-icon svg {
    width: 100%;
    height: 100%;
}

.instagram-info {
    line-height: 1;
}

.instagram-info h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.instagram-info span {
    font-size: 11px;
    color: var(--color-gray);
}

/* Instagram グリッド（PCは2カラム） */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    margin-bottom: 20px;
}

.instagram-item {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-item:hover {
    opacity: 0.8;
}

/* PCでは11個目と12個目を非表示（10個表示） */
.instagram-item:nth-child(n+11) {
    display: none;
}

.instagram-follow {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    transition: background 0.2s;
}

.instagram-follow:hover {
    background: #333;
}

/* ============================================
   店舗グリッド（右カラム）- トップページ用レイアウト
   ============================================ */
.shop-grid {
    flex: 1;
    padding: 30px;
}

.shop-grid-inner {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

/* 店舗グループ（交互レイアウト用） */
.shop-row {
    display: flex;
}

/* 最後のグループ以外は下線 */
.shop-row:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

/* グループ内の大きいカードエリア */
.shop-row .shop-card-large-wrap {
    flex: 2;
    border-right: 1px solid var(--color-border);
}

/* グループ内の小さいカードエリア */
.shop-row .shop-card-small-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 右配置（大きいカードが右） */
.shop-row.right {
    flex-direction: row-reverse;
}

.shop-row.right .shop-card-large-wrap {
    border-right: none;
    border-left: 1px solid var(--color-border);
}

/* 小さいカード間の線 */
.shop-row .shop-card-small-wrap .shop-card:first-child {
    border-bottom: 1px solid var(--color-border);
}

/* カード共通 */
.shop-card.large,
.shop-card.small {
    height: fit-content;
}

.shop-card.small {
    flex: 1;
}

/* ============================================
   4カラム特集セクション（LOOK風）- トップページ用
   ============================================ */
.look-section {
    padding: 30px 0 0;
    border-top: 1px solid var(--color-border);
}

.look-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    padding: 0 40px 30px;
}

.look-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
}

.look-subtitle {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
}

.look-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--color-border);
    align-items: stretch;
}

.look-card {
    border-right: 1px solid var(--color-border);
    display: flex;
    min-height: 0;
}

.look-card:last-child {
    border-right: none;
}

.look-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.look-card-image {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}

.look-card-image.bottom {
    aspect-ratio: unset;
    flex: 1 1 auto;
    min-height: 200px;
    display: flex;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.look-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.look-card-image.bottom img {
    flex: 1;
    min-height: 0;
}

.look-card-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(0deg 0% 100% / 65%);
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 2px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.look-card-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 25px 10px;
    border-top: 1px solid var(--color-border);
}

.look-card-info.top {
    border-top: none;
    padding: 20px 25px 10px;
}

/* 偶数カード（逆順レイアウト）で画像の上にボーダーを追加 */
.look-card-text.top + .look-card-image,
.look-card-tags + .look-card-image {
    border-top: 1px solid var(--color-border);
}

.look-label {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.look-number {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
}

.look-card-title {
    padding: 0 25px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.look-card-title.top {
    padding: 15px 25px 0;
}

.look-card-text {
    padding: 10px 25px 25px;
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

.look-card-text.top {
    padding: 10px 25px 15px;
}

.look-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 25px 20px;
}

.look-tag {
    font-size: 11px;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
}

.look-card:hover .look-card-image {
    opacity: 0.8;
}

/* ============================================
   レスポンシブ（トップページ用）
   ============================================ */
@media (max-width: 768px) {
    .pickup-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px 30px;
        gap: 0;
    }
    
    .pickup-title {
        font-size: 25px;
        letter-spacing: 2px;
    }
    
    .pickup-subtitle {
        font-size: 11px;
    }
    
    .pickup-content {
        flex-direction: column;
    }
    
    /* スマホ：店舗を先、Instagramを後に */
    .shop-grid {
        order: 1;
        padding: 0;
    }
    
    .instagram-feed {
        order: 2;
        width: 100%;
        border-right: none;
        padding: 40px 20px;
        /* スマホ時はsticky解除 */
        position: static;
        align-self: auto;
        height: fit-content;
    }
    
    /* Instagram: スマホは3カラム、12個表示 */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .instagram-item:nth-child(n+11) {
        display: block;
    }
    
    
    /* 店舗グリッド：スマホ用 */
    .shop-grid {
        padding: 0;
    }
    
    .shop-grid-inner {
        border: none;
    }
    
    /* グループ：縦並びに変更 */
    .shop-row,
    .shop-row.right {
        flex-direction: column;
    }
    
    /* グループ間の線 */
    .shop-row:not(:last-child) {
        border-bottom: none;
    }
    
    /* 大きいカードエリア */
    .shop-row .shop-card-large-wrap,
    .shop-row.right .shop-card-large-wrap {
        flex: none;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    /* 小さいカードエリア：横並び */
    .shop-row .shop-card-small-wrap {
        flex-direction: row;
    }
    
    /* 小さいカード間の縦線（左側のカード） */
    .shop-row .shop-card-small-wrap .shop-card:first-child {
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }
    
    /* 小さいカードの下線 */
    .shop-row .shop-card-small-wrap {
        border-bottom: 1px solid var(--color-border);
    }

    /* ============================================
       4カラム特集セクション（LOOK風）- スマホ
       ============================================ */
    .look-section {
        padding: 30px 0 0;
    }
    
    .look-header {
        flex-direction: column;
        padding: 0 20px 30px;
        gap: 0;
    }
    
    .look-title {
        font-size: 25px;
    }
    
    .look-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .look-card:nth-child(2) {
        border-right: none;
    }
    
    .look-card:nth-child(3),
    .look-card:nth-child(4) {
        border-top: 1px solid var(--color-border);
    }
    
    .look-card:nth-child(4) {
        border-right: none;
    }
    
    .look-card-image {
        aspect-ratio: 1 / 1;
    }
    
    .look-card-info {
        padding: 15px 15px 8px;
    }
    
    .look-card-info.top {
        padding: 15px 15px 10px;
    }
    
    .look-label {
        font-size: 12px;
    }
    
    .look-number {
        font-size: 24px;
    }
    
    .look-card-title {
        padding: 0 15px;
        font-size: 13px;
    }
    
    .look-card-title.top {
        padding: 10px 15px 0;
    }
    
    .look-card-text {
        padding: 8px 15px 15px;
        font-size: 11px;
    }
    
    .look-card-text.top {
        padding: 8px 15px 10px;
    }
    
    .look-card-tags {
        padding: 0 15px 15px;
        gap: 1px 8px;
    }
    
    .look-tag {
        font-size: 10px;
    }
}

/* ============================================
   セクション共通: もっと見るリンク
   ============================================ */
.section-more {
    padding: 40px;
    border-top: 1px solid var(--color-border);
}

.more-link {
    display: block;
    padding: 18px 40px;
    max-width: 320px;
    margin: 0 auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-text);
    border: 1px solid var(--color-text);
    letter-spacing: 2px;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
}

.more-link:hover {
    background: var(--color-white);
    color: var(--color-text);
}

/* ============================================
   NEWS お知らせセクション
   ============================================ */
.news-section {
    padding: 30px 0 0;
    border-top: 1px solid var(--color-border);
}

.news-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 0 40px 30px;
    border-bottom: 1px solid var(--color-border);
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
}

.news-subtitle {
    font-size: 12px;
    color: var(--color-gray);
    letter-spacing: 2px;
}

.news-list {
    padding: 0 40px;
}

.news-item {
    border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.2s;
}

.news-item a:hover {
    opacity: 0.6;
}

.news-date {
    font-size: 13px;
    color: var(--color-gray);
    flex-shrink: 0;
    letter-spacing: 1px;
}

.news-category {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-text);
    padding: 3px 10px 1px;
    border-radius: 2px;
    flex-shrink: 0;
}

.news-title-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.no-news {
    padding: 40px 0;
    text-align: center;
    color: var(--color-gray);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .section-more {
        padding: 20px;
    }
    
    .news-header {
        padding: 0 20px 20px;
    }
    
    .news-title {
        font-size: 24px;
    }
    
    .news-list {
        padding: 0 20px;
    }
    
    .news-item a {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px 0;
    }
    
    .news-date {
        font-size: 12px;
    }
    
    .news-title-text {
        width: 100%;
        font-size: 13px;
    }
}
