/* ==========================================================================
   1. Base Styles & Reset
   ========================================================================== */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

/* ==========================================================================
   2. Header / Hero Section
   ========================================================================== */
.hero-small { 
    background-color: #111; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../img/kaikatsu_store.webp');
    background-size: cover;
    background-position: center;
    color: #fff; 
    text-align: center; 
    padding: 60px 20px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-small h1 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    letter-spacing: 0.1em;
}

.hero-small p {
    color: #ffeb3b;
    font-weight: bold;
    margin: 0;
    font-size: 1.1rem;
}

/* ==========================================================================
   3. Region & Prefecture Accordion
   ========================================================================== */
.region-title {
    font-size: 1.6rem;
    color: #333;
    border-left: 6px solid #e60012;
    padding-left: 15px;
    margin: 50px 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pref-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.pref-accordion {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pref-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.pref-accordion summary::-webkit-details-marker { display: none; }

.pref-accordion summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, #ff9800 0%, #e60012 100%);
}

.pref-accordion[open] .toggle-icon {
    transform: rotate(180deg);
    color: #e60012;
}

.toggle-icon {
    color: #ccc;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   4. Store List Layout (UX Optimized)
   ========================================================================= */
.store-content {
    padding: 0 25px 25px;
    border-top: 1px solid #f9f9f9;
    background: #fff;
}

.city-group h4 {
    margin: 25px 0 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    color: #e60012;
    font-size: 1rem;
}
.city-group:first-child h4 { margin-top: 20px; }

.no-group { margin-top: 20px; }

/* 店舗リストのグリッド */
.store-list-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 15px;
}

/* 枠線の基本設定（全ての li で共通） */
.store-list-grid li {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0; /* 全周同じグレー */
    border-radius: 8px;
    font-size: 1rem;
    padding: 12px 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    color: #333;
}

/* ホバー時の挙動：※店舗も含め、全周が赤色になる */
.store-list-grid li:hover {
    border-color: #e60012 !important;
    background-color: #fffafa;
}

/* 店名リンク */
.store-list-grid li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    flex-grow: 1;
}

.store-list-grid li a:hover {
    color: #e60012;
}

/* 夜間不可店舗 (is-limited)
   枠線の個別指定を削除し、親の uniform な設定を活かすことで「欠け」を防止 */
.store-list-grid li.is-limited {
    background-color: #fdfdfd;
}

/* ==========================================================================
   5. Footer & Notice
   ========================================================================== */
.store-notice {
    margin: 40px 0 20px;
    padding: 20px;
    background: #fff;
    border-left: 5px solid #e60012;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.store-notice p {
    color: #e60012;
    font-size: 0.95rem;
    margin: 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-notice p::before {
    content: "info";
    font-family: 'Material Icons';
    font-size: 1.2rem;
}

.btn-return { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 45px; 
    background: #333; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-return:hover {
    background: #555;
    transform: translateY(-2px);
}

.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

/* ==========================================================================
   6. Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .hero-small { padding: 40px 20px; }
    .hero-small h1 { font-size: 1.6rem; }
    .region-title { font-size: 1.4rem; margin-top: 40px; }
    .pref-accordion summary { font-size: 1.1rem; padding: 18px 20px; }
}

@media (max-width: 480px) {
    .store-list-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .store-list-grid li {
        padding: 16px 15px;
    }
}