/* ページヘッダーのスタイル */
.page-header {
    background: linear-gradient(135deg, #ffb74d 0%, #ff8a65 100%);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(255, 183, 77, 0.25);
    overflow: hidden;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    position: relative;
    z-index: 1;
}

.header-title {
    display: flex;
    align-items: center;
    color: white;
}

.header-title i {
    font-size: 22px;
    margin-right: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.title-content {
    display: flex;
    flex-direction: column;
}

.title-text {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.title-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.store-count {
    display: flex;
    align-items: baseline;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.count-number {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-right: 6px;
    line-height: 1;
}

.count-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}




/* 横スクロールヒントのスタイル */
.scroll-hint-overlay {
    display: none;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: scrollHintFadeInOut 3s ease-in-out;
    pointer-events: none;
}

.scroll-hint-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 16px 24px 16px;
}

.scroll-hint-icon {
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: scrollHintIconPulse 1.5s ease-in-out infinite;
}

.scroll-hint-hand {
    font-size: 1.6em;
}

.scroll-hint-hand .glyphicon {
    color: white;
    font-size: 1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scroll-hint-text {
    color: white;
    font-size: 0.9em;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

@keyframes scrollHintFadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    85% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
}

@keyframes scrollHintIconPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* 区切り線 */
.section-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ddd 50%, transparent 100%);
}

.divider-text {
    padding: 0 20px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.store-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: #fafafa;
    border-radius: 4px;
    position: relative;
    min-height: 35px;
}

/* クリック可能な店舗のスタイル */
.clickable-store {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.clickable-store:hover {
    background: #f0f0f0;
    border-color: #ff9800;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clickable-store:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}


.store-info {
    flex: 1;
    width: 100%;
}

/* 地域別店舗のみにオレンジラインを適用 */
.region-section .store-info {
    border-left: 4px solid #ff9800;
    padding-left: 10px;
}

.store-name {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    padding-left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
    height: 100%;
}

.phone-number-inline {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 10px;
}

.phone-number-mobile {
    display: none;
}




.region-section {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 4px;
    margin: 0 0 2px 0;
    width: 100%;
    box-sizing: border-box;
}

.region-header:hover {
    background: linear-gradient(135deg, #eeeeee 0%, #e8e8e8 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.region-header:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.expand-icon {
    font-size: 18px;
    color: #666;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    transform-origin: center;
}

.expand-icon.rotating {
    transform: rotate(180deg) scale(1.1);
    color: #2196f3;
}

.stores-list {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #fafafa;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.stores-list.expanded {
    max-height: 2000px;
    padding: 0 20px 20px 20px;
    opacity: 1;
    transform: translateY(0);
}



/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .header-title {
        width: 100%;
    }
    
    .header-title i {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .title-text {
        font-size: 18px;
    }
    
    .title-subtitle {
        font-size: 12px;
    }
    
    .store-count {
        align-self: flex-end;
        padding: 7px 14px;
    }
    
    .count-number {
        font-size: 20px;
    }
    
    .count-label {
        font-size: 12px;
    }
    
    
    .store-item {
        flex-direction: row;
        padding: 6px;
        align-items: center;
        min-height: 30px;
    }
    
    .store-name {
        font-size: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-height: 22px;
    }
    
    .store-name span:first-child {
        flex: 1;
        margin-right: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .phone-number-inline {
        display: none;
    }
    
    .phone-number-mobile {
        display: block;
        font-size: 16px;
        color: #333;
        font-weight: bold;
        margin-top: 4px;
        padding-left: 14px;
    }
    
    
    .store-info {
        flex: 1;
        min-width: 0;
    }
    
    .region-header {
        padding: 12px 15px;
        font-size: 14px;
        max-width: 100%;
    }
    
    .region-section {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .section-divider {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .stores-list {
        padding: 0 15px 15px 15px;
    }
    
    /* スマホサイズでのみ表示 */
    .scroll-hint-overlay {
        display: block;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .header-content {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .header-title i {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .title-text {
        font-size: 16px;
    }
    
    .title-subtitle {
        font-size: 11px;
    }
    
    .store-count {
        padding: 6px 12px;
    }
    
    .count-number {
        font-size: 18px;
    }
    
    .count-label {
        font-size: 11px;
    }
    
    
    .store-item {
        padding: 5px;
        min-height: 25px;
    }
    
    .store-name {
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .phone-number-inline {
        margin-right: 6px;
        font-size: 12px;
    }
    
    
    .region-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .region-section {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .section-divider {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
    }
    
}

/* データがない場合のスタイル */
.no-data-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 30px 0;
    border: 2px dashed #dee2e6;
}

.no-data-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-data-text h3 {
    color: #6c757d;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
}

.no-data-text p {
    color: #868e96;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 店舗がない場合のスタイル */
.no-store-message {
    text-align: center;
    padding: 30px 15px;
    background: #fff3cd;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ffeaa7;
}

.no-store-icon {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.no-store-text p {
    color: #856404;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}


@media (max-width: 768px) {
    .no-data-message {
        padding: 40px 15px;
        margin: 20px 0;
    }
    
    .no-data-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .no-data-text h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .no-data-text p {
        font-size: 13px;
    }
    
    .no-store-message {
        padding: 20px 10px;
        margin: 10px 0;
    }
    
    .no-store-icon {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .no-store-text p {
        font-size: 12px;
    }
    
}
