@charset "utf-8";

/* =================================================================
  【futureshop 相互リンクパーツ専用 スタイルシート】
  他のCSSに干渉せず、他のCSSから影響を受けないカプセル化設計
================================================================== */

/* グローバルCSSからの不要な継承を防ぐための詳細度高めのリセット */
#fs-mutual-links-root.fs-ml-reset,
#fs-mutual-links-root.fs-ml-reset * {
    all: revert; /* ブラウザ初期値に戻し、親からの不要なスタイル継承を遮断 */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* パーツ外枠 */
#fs-mutual-links-root {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 24px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 見出しタイトル */
#fs-mutual-links-root .fs-ml-title {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 4px solid #1b99cc; /* コーポレートアクセント */
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-align: left;
}

/* グリッドレイアウト（レスポンシブ対応） */
#fs-mutual-links-root .fs-ml-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

#fs-mutual-links-root .fs-ml-item {
    margin: 0;
    padding: 0;
    list-style-type: none !important;
}

/* リンクボタン基本定義 */
#fs-mutual-links-root .fs-ml-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 72px; /* 高さを 72px に固定し、すべて同じ高さに統一 */
    padding: 10px 14px;
    background: #ffffff;
    border: 1.5px solid #1b99cc;
    border-radius: 8px;
    color: #1b99cc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    line-height: 1.3;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(27, 153, 204, 0.05);
}

/* マウスホバー効果 */
#fs-mutual-links-root .fs-ml-link:hover {
    background: #1b99cc;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(27, 153, 204, 0.2);
}

/* ホバー時のきらめき効果用 */
#fs-mutual-links-root .fs-ml-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.5s;
    opacity: 0;
}

#fs-mutual-links-root .fs-ml-link:hover::before {
    left: 150%;
    transition: all 0.7s ease-in-out;
    opacity: 1;
}

/* 表示中（カレント）ページのスタイル */
#fs-mutual-links-root .fs-ml-link.is-active {
    background: #eef9fd;
    border-color: #1b99cc;
    color: #1579a3;
    box-shadow: none;
    cursor: default;
    pointer-events: none; /* クリック不可 */
}

/* 表示中バッジ */
#fs-mutual-links-root .fs-ml-link.is-active::after {
    content: '表示中';
    display: block;
    font-size: 9px;
    background: #1b99cc;
    color: #ffffff;
    padding: 1px 7px;
    border-radius: 10px;
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* 売り切れ（在庫なし）ページのスタイル */
#fs-mutual-links-root .fs-ml-link.is-soldout {
    background: #f7fafc !important;
    border-color: #e2e8f0 !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}

/* 売り切れバッジ */
#fs-mutual-links-root .fs-ml-link.is-soldout::after {
    content: '売り切れ中';
    display: block;
    font-size: 9px;
    background: #cbd5e0;
    color: #4a5568;
    padding: 1px 7px;
    border-radius: 10px;
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* レスポンシブ微調整 */
@media (max-width: 480px) {
    #fs-mutual-links-root {
        padding: 16px 12px;
    }
    #fs-mutual-links-root .fs-ml-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホは綺麗な2カラム並び */
        gap: 8px;
    }
    #fs-mutual-links-root .fs-ml-link {
        font-size: 12px;
        padding: 8px 10px;
        height: 68px; /* スマホ時も高さを 68px に固定し、すべて同じ高さに統一 */
    }
}
