/* 全体のリセットとブラウザのど真ん中（センター）寄せ */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: sans-serif; 
}

body {
    background-color: #f5f6fa;
    color: #2c3e50;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

#app-container {
    width: 100%;
    max-width: 550px; /* 左右2カラムがスマホに一番綺麗に収まる横幅 */
}

h1 {
    font-size: 22px;
    color: #d35400;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f39c12;
}

/* 最上部に固定する検索ボックスのスタイル */
#search-box-container {
    margin-bottom: 25px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f5f6fa; 
    padding: 5px 0;
}

#search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input:focus {
    border-color: #d35400; 
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.1);
}

/* カード全体をGoogle検索リンクにするためのラッパー設定 */
.shop-link-wrapper {
    text-decoration: none; 
    color: inherit; 
    display: block;
    margin-bottom: 25px;
    border-radius: 12px;
}

/* 左右2カラム用のカードスタイル */
.shop-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e6e9ed;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    gap: 15px; 
    align-items: stretch;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* マウスが乗った瞬間にふわっと浮き上がる演出 */
.shop-link-wrapper:hover .shop-box {
    transform: translateY(-5px); 
    box-shadow: 0 12px 24px rgba(211, 84, 0, 0.12); 
    border-color: #f39c12; 
    cursor: pointer; 
}

/* 左側：テキスト情報エリア */
.left-info-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 右側：写真エリア（120px四方の正方形に完全固定） */
.right-photo-zone {
    width: 120px;
    min-width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e6e9ed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-photo-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
}

/* 👑 順位バッジ */
.rank-badge {
    position: absolute;
    top: -12px;
    left: 15px;
    background: #7f8c8d;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
}

.rank-1 { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.rank-2 { background: linear-gradient(135deg, #bdc3c7, #95a5a6); }
.rank-3 { background: linear-gradient(135deg, #e67e22, #d35400); }

.name { 
    font-size: 18px; 
    font-weight: bold; 
    margin-top: 5px; 
    margin-bottom: 6px; 
    color: #2c3e50; 
}

/* 基本情報テーブル（2文字縦ライン揃え） */
.details-table { 
    width: 100%; 
    font-size: 11px; 
    border-collapse: collapse; 
    margin-bottom: 8px; 
}

.details-table th, .details-table td { 
    text-align: left; 
    padding: 2px 0; 
    vertical-align: top; 
}

.details-table th { 
    width: 42px; 
    color: #95a5a6; 
}

.p-status { 
    color: #2980b9; 
    font-weight: bold; 
}

/* 地図アプリ直撃ボタンのスタイル */
.map-btn-link { 
    display: inline-block; 
    margin-top: 4px; 
    color: #27ae60; 
    font-weight: bold; 
    text-decoration: none; 
    font-size: 11px; 
    border: 1px solid #27ae60; 
    padding: 2px 8px; 
    border-radius: 4px; 
    transition: background 0.2s; 
}

.map-btn-link:hover { 
    background: #27ae60; 
    color: #fff; 
}

.features-text { 
    font-size: 11px; 
    line-height: 1.5; 
    color: #555; 
    background: #fbfbfc; 
    padding: 8px; 
    border-radius: 4px; 
    border-left: 3px solid #d35400; 
}