/**
 * 店舗情報カードCSS
 * Version: 2.0.0
 * PC: 2カラム表示
 * スマホ: 1カラム表示
 */

/* ベースコンテナ */
.store-info-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* カード本体 */
.store-info-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.store-info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* サービス別のバナー */
.store-service-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.store-service-banner.repair-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.store-service-banner.other-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.store-service-banner i {
    font-size: 18px;
}

/* ヘッダー画像部分 */
.store-info-header {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.store-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 本文部分 */
.store-info-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 店舗名 */
.store-name {
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* 評価 */
.store-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.store-stars {
    color: #fbbf24;
    font-size: 16px;
}

.store-score {
    font-weight: bold;
    font-size: 16px;
    color: #3b82f6;
}

.store-reviews {
    font-size: 13px;
    color: #6b7280;
}

/* 詳細情報 */
.store-details {
    margin-bottom: 20px;
    flex: 1;
}

.store-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.store-detail-row.highlight-phone {
    background: #fef3c7;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fcd34d;
}

.store-detail-row i {
    color: #3b82f6;
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.store-detail-text {
    flex: 1;
}

.store-detail-text p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.store-sub-text {
    font-size: 12px !important;
    color: #9ca3af !important;
    margin-top: 2px;
}

.store-phone-number {
    font-size: 20px !important;
    font-weight: bold;
    color: #1e293b !important;
    margin-bottom: 4px !important;
}

.phone-label {
    font-size: 12px !important;
    color: #ef4444 !important;
    font-weight: bold;
    margin: 0 !important;
}

/* アクションボタン */
.store-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.store-btn {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.store-btn i {
    font-size: 14px;
}

.store-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.store-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.store-btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.store-btn-secondary:hover {
    background: #f0f9ff;
    border-color: #2563eb;
}

.store-btn-repair {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.store-btn-repair:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* 特徴 */
.store-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 0 -20px -20px -20px;
    padding: 15px 20px;
}

.store-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.store-feature i {
    font-size: 18px;
    color: #3b82f6;
}

.store-feature span {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* =================================
   超シンプル版全体店舗情報
   ================================= */

.store-info-all-simple .store-service-block {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

/* シンプルなサービスヘッダー */
.service-simple-header {
    font-size: 16px;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-simple-header.repair-header {
    color: #3b82f6;
}

.service-simple-header i {
    font-size: 18px;
}

/* 店舗名（修理用） */
.service-shop-name {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

/* シンプル版アクションボタン */
.store-actions-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
}

/* 電話番号ボタン - 共通 */
.store-btn-phone-green,
.store-btn-phone-blue {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
}

/* 電話番号テキスト */
.phone-text {
    font-size: 15px;
    margin-top: 4px;
}

/* ラベルテキスト */
.phone-label-text {
    font-size: 10px;
    margin-top: 2px;
    font-weight: normal;
}

/* 緑の電話ボタン（買取・販売） */
.store-btn-phone-green {
    background: white;
    color: #10b981;
    border: 2px solid #10b981;
}

.store-btn-phone-green:hover {
    background: #f0fdf4;
    border-color: #059669;
    color: #059669;
}

.store-btn-phone-green i {
    font-size: 14px;
}

/* 青の電話ボタン（修理） */
.store-btn-phone-blue {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.store-btn-phone-blue:hover {
    background: #f0f9ff;
    border-color: #2563eb;
    color: #2563eb;
}

.store-btn-phone-blue i {
    font-size: 14px;
}

/* 緑色のボタン（購入・買取用） */
.store-btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.store-btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .store-info-all-simple .store-service-block {
        margin-top: 20px;
        padding-top: 18px;
    }
    
    .service-simple-header {
        font-size: 15px;
    }
    
    .service-shop-name {
        font-size: 13px;
    }
    
    .phone-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* ボタンを縦並びに */
    .store-actions-simple {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .store-btn-phone-green,
    .store-btn-phone-blue {
        padding: 12px;
    }
    
    .service-simple-header {
        font-size: 14px;
    }
    
    .phone-text {
        font-size: 14px;
    }
    
    .phone-label-text {
        font-size: 9px;
    }
}

/* =================================
   2カラムレイアウト（PC）
   ================================= */

.store-info-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* =================================
   レスポンシブ対応
   ================================= */

/* タブレット（768px以下） */
@media (max-width: 768px) {
    .store-info-container {
        grid-template-columns: 1fr;
    }
    
    .store-info-wrapper {
        max-width: 100%;
    }
    
    .store-info-header {
        height: 150px;
    }
    
    .store-name {
        font-size: 18px;
    }
    
    .service-type-header {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .service-type-header i {
        font-size: 14px;
    }
    
    .repair-store-name {
        font-size: 16px;
    }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
    .store-info-body {
        padding: 15px;
    }
    
    .store-info-header {
        height: 120px;
    }
    
    .store-service-banner {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .store-service-banner i {
        font-size: 16px;
    }
    
    .store-name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .store-rating {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .store-detail-row.highlight-phone {
        padding: 10px;
    }
    
    .store-phone-number {
        font-size: 18px !important;
    }
    
    .phone-label {
        font-size: 11px !important;
    }
    
    /* ボタンを縦並びに */
    .store-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .store-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    .service-type-header {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .repair-store-name {
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* 極小画面対応（360px以下） */
@media (max-width: 360px) {
    .store-info-body {
        padding: 12px;
    }
    
    .store-name {
        font-size: 15px;
    }
    
    .store-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .store-btn i {
        font-size: 12px;
    }
}

/* 印刷対応 */
@media print {
    .store-info-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .store-actions {
        display: none;
    }
}