/**
 * 店舗情報 & 決済方法表示用CSS
 * 注意: グリッドシステムはaffiliated-stores.cssに移行済み
 * 親テーマクラス活用: l-container, .u-fz-l のみ使用
 */

/* ==========================================================================
   設計方針
   ========================================================================== */
/* 
✅ 使用OK: .l-container, .u-fz-l など基本ユーティリティ
❌ 使用NG: .ark-block-columns, .ark-block-column など親テーマレイアウト
✅ 推奨: .custom-grid, .custom-card など共通グリッドシステム
*/

/* ==========================================================================
   Payment Methods - Basic Support (詳細はpayment-methods.cssに移動)
   ========================================================================== */

/* payment-methods.cssで管理されているため、ここでは基本的なサポートのみ */

/* ==========================================================================
   系列店 縦表示パターン - 共通グリッドシステム使用
   ========================================================================== */

/* 縦表示専用コンテナ */
.affiliated-store-vertical {
    /* 基本ユーティリティのみ使用 */
}

/* 縦表示グリッド - 共通システム活用 */
.affiliated-stores-vertical-grid {
    /* grid-system.cssの.custom-grid--4を使用 */
}

/* 縦表示個別カード - 共通カードスタイル継承 */
.affiliated-store-vertical .custom-card {
    /* custom-card基本スタイルを継承 */
}

/* 店舗画像コンテナ（背景画像 + ロゴオーバーレイ）*/
.store-image-container {
    /* custom-card__imageを継承・拡張 */
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--custom-border-radius) var(--custom-border-radius) 0 0;
    overflow: hidden;
    transition: transform 0.5s ease;
}

/* 背景画像がない場合 */
.store-image-container.store-no-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 180px;
}

/* ロゴオーバーレイ */
.store-logo-overlay {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ロゴ画像 */
.store-logo {
    display: block;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* ホバー効果 - 共通カードホバーを継承 */
.affiliated-store-vertical .custom-card:hover .store-logo-overlay {
    transform: translate(-50%, -50%) scale(1.05);
}

.affiliated-store-vertical .custom-card:hover .store-image-container {
    transform: scale(1.02);
}

/* 縦表示でのレスポンシブ調整 */
@media (max-width: 768px) {
    .store-image-container {
        height: 200px;
    }
    
    .store-image-container.store-no-bg {
        height: 150px;
    }
}

/* 系列店名 */
.affiliated-store-name a {
    --ark-mt: var(--ark-mt--h);
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.affiliated-store-name a:hover {
    color: #3498db;
}

.affiliated-store-name .arkb-fz-l {
    font-size: 1.25rem;
}

/* 郵便番号・住所 */
.affiliated-store-postcode-address {
    margin: 12px 0;
    color: #555;
    line-height: 1.6;
}

.affiliated-store-postcode {
    display: block;
    font-size: 0.9em;
    color: #777;
    font-weight: 500;
    margin-bottom: 4px;
}

.affiliated-store-postcode:before {
    content: "〒";
    margin-right: 2px;
}

.affiliated-store-address {
    display: block;
    font-weight: 500;
}

/* 説明文 */
.affiliated-store-vertical p:not(.affiliated-store-name):not(.affiliated-store-postcode-address) {
    color: #666;
    line-height: 1.7;
    margin: 15px 0;
}

/* ==========================================================================
   系列店 横表示パターン - 共通グリッドシステム使用
   ========================================================================== */

/* 横表示専用コンテナ */
.affiliated-store-horizontal {
    /* 基本ユーティリティのみ使用 */
}

/* 横表示での背景画像がない場合 */
.affiliated-store-horizontal .custom-list__image.store-no-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 横表示での店舗名 */
.affiliated-store-horizontal .affiliated-store-name {
    margin: 0 0 16px 0;
}

.affiliated-store-horizontal .affiliated-store-name a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.affiliated-store-horizontal .affiliated-store-name a:hover {
    color: #3498db;
}

.affiliated-store-horizontal .affiliated-store-name .arkb-fz-l {
    font-size: 1.4rem;
}

/* 横表示での住所 */
.affiliated-store-horizontal .affiliated-store-postcode-address {
    margin: 0 0 20px 0;
    color: #555;
    line-height: 1.6;
}

.affiliated-store-horizontal .affiliated-store-postcode {
    display: block;
    font-size: 0.9em;
    color: #777;
    font-weight: 500;
    margin-bottom: 6px;
}

.affiliated-store-horizontal .affiliated-store-postcode:before {
    content: "〒";
    margin-right: 3px;
}

.affiliated-store-horizontal .affiliated-store-address {
    display: block;
    font-weight: 500;
    color: #444;
}

/* 説明文エリア */
.store-description {
    flex: 1;
    margin: 0 0 25px 0;
}

.store-description p {
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.store-description p:last-child {
    margin-bottom: 0;
}

/* ボタンエリア */
.store-button-area {
    margin-top: auto;
}

.affiliated-store-horizontal .ark-block-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.affiliated-store-horizontal .ark-block-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.affiliated-store-horizontal .ark-block-button__link {
    padding: 14px 24px;
    border-radius: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .affiliated-store-horizontal .affiliated-store-name .arkb-fz-l {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .affiliated-store-horizontal .affiliated-store-name .arkb-fz-l {
        font-size: 1.1rem;
    }
}