/* ========== Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding-bottom: 80px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* ========== Header ========== */
.header {
    background: #ff008c;
    color: white;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.header .logo {
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.header .logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .header .logo {
        font-size: 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* グローバルナビ（PC） */
.global-nav {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: white;
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 0.82rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

/* ハンバーガーボタン（SP） */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* モバイルメニュー（SP） */
.mobile-menu {
    display: none;
    background: #ff008c;
    padding: 4px 20px 8px;
}

.mobile-menu.open {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    color: white;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 50%, #fff3e0 100%);
    color: #333;
    padding: 24px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 640px;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
    color: #1a73e8;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #bf0000;
    margin-bottom: 8px;
}

.hero-description {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.hero-avatar {
    flex-shrink: 0;
}

.hero-avatar img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========== Search Section ========== */
.search-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.search-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.search-section h3 {
    margin: 30px 0 15px;
    font-size: 1.1rem;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.search-box input:focus {
    outline: none;
    border-color: #1a73e8;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.search-results * {
    display: block;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: block !important;
    width: 100%;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #333 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
    line-height: 1.5;
    float: none !important;
    clear: both;
    position: relative;
}

.search-result-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.search-result-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.search-result-item:hover {
    background: #f5f5f5 !important;
    text-decoration: none !important;
    color: #333 !important;
}

.search-result-item span {
    display: inline !important;
    margin-left: 8px;
}

.search-result-item strong {
    display: inline;
    font-weight: 600;
    color: #333;
}

.search-loading,
.search-no-results,
.search-error {
    display: block;
    padding: 12px 15px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.search-loading {
    color: #1a73e8;
}

.search-error {
    color: #c33;
}

/* ========== Prefecture Blocks ========== */
.prefecture-blocks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.block-accordion {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.block-accordion summary {
    padding: 15px;
    cursor: pointer;
    background: #f9f9f9;
    font-weight: bold;
}

.block-accordion summary:hover {
    background: #f0f0f0;
}

.block-prefectures {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.block-prefectures a {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
}

.block-prefectures a:hover {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
    text-decoration: none;
}

/* ========== Stats Section ========== */
.stats-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.stats-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a73e8;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ========== Mutual Link (電波状況 ⇔ 店舗検索) ========== */
.mutual-link-section {
    background: white;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.mutual-link-button {
    display: inline-block;
    background: #1a73e8;
    color: white !important;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
}

.mutual-link-button:hover {
    background: #0d47a1;
    color: white !important;
    text-decoration: none;
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 40px 0;
}

.cta-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px solid #bf0000;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.cta-box p {
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: #bf0000;
    color: white !important;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
}

.cta-button:hover {
    background: #a00000;
    color: white !important;
    text-decoration: none;
}

.cta-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
}

/* ========== Page Header ========== */
.page-header {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.page-header h1 {
    font-size: 1.5rem;
}

/* ========== Area List ========== */
.area-list-section {
    background: white;
    padding: 40px 0;
}

.area-list-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-link {
    padding: 10px 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.area-link:hover {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
    text-decoration: none;
}

.area-list-major {
    margin-bottom: 30px;
}

.area-link-major {
    background: #e3f2fd;
    border-color: #1a73e8;
    font-weight: bold;
}

/* ========== Review Form ========== */
.review-form-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.review-form-section h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.location-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.review-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.rating-input {
    display: flex;
    gap: 10px;
}

.rating-label {
    cursor: pointer;
}

.rating-label input {
    display: none;
}

.rating-star {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 50%;
    font-weight: bold;
}

.rating-label input:checked + .rating-star {
    background: #1a73e8;
    color: white;
}

.fee-input {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.fee-label {
    cursor: pointer;
}

.fee-label input {
    display: none;
}

.fee-chip {
    display: inline-block;
    padding: 14px 24px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fee-label input:checked + .fee-chip {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}

.fee-label:hover .fee-chip {
    background: #e0e0e0;
}

.rating-hint,
.form-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 44px;
    cursor: pointer;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.submit-button {
    background: #1a73e8;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.submit-button:hover {
    background: #0d47a1;
}

/* ========== Review List ========== */
.review-list-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.review-list-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-rating {
    font-weight: bold;
    color: #1a73e8;
}

.review-price-rating {
    display: inline-block;
    font-weight: bold;
    color: #bf0000;
    margin-top: 8px;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-location {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.review-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.review-comment {
    color: #333;
}

.no-reviews {
    color: #666;
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ========== Antenna Section ========== */
.antenna-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.antenna-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.antenna-info {
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: 12px;
    padding: 25px;
}

.antenna-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.antenna-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #bf0000;
}

.antenna-label {
    font-size: 1rem;
    color: #555;
}

.antenna-source {
    font-size: 0.8rem;
    color: #999;
}

/* ========== Antenna Update Section ========== */
.antenna-update-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.antenna-update-section h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.antenna-update-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.antenna-update-list li {
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #333;
}

.antenna-source {
    font-size: 0.8rem;
    color: #999;
}

/* ========== Banner Section ========== */
.banner-section {
    background: white;
    padding: 12px 0 20px;
    text-align: center;
}

.banner-section + section {
    border-top: none;
}

.referral-banner {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 2px solid #ff008c;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .referral-banner {
        max-height: 237px;
        width: auto;
        max-width: 100%;
    }
}

/* ========== Shop Section ========== */
.shop-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.shop-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 18px;
}

.shop-name {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.shop-name:hover {
    text-decoration: underline;
}

.shop-address {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #666;
}

/* ========== Service Area Map ========== */
.service-area-section {
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.service-area-section h2 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-area-image {
    width: 100%;
    max-width: 800px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.service-area-source {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.service-area-source a {
    color: #1a73e8;
}

.service-area-note {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #666;
}

.service-area-note a {
    color: #1a73e8;
}

/* ========== User Voice ========== */
.uservoice-section {
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.uservoice-section h2 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.uservoice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uservoice-card {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.uservoice-comment {
    font-size: 1rem;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.6;
}

.uservoice-comment-summary {
    cursor: pointer;
    list-style: none;
}

.uservoice-comment-summary::-webkit-details-marker {
    display: none;
}

.uservoice-comment-toggle {
    color: #1a73e8;
    margin-left: 4px;
    white-space: nowrap;
}

.uservoice-comment[open] .uservoice-comment-toggle {
    display: none;
}

.uservoice-comment-rest {
    margin-top: 4px;
}

.uservoice-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 8px;
}

.uservoice-name {
    font-weight: bold;
    color: #333;
}

.uservoice-area-link {
    color: #1a73e8;
}

.uservoice-date {
    margin-left: 8px;
    color: #999;
}

.uservoice-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 0.85rem;
}

.uservoice-detail dt {
    color: #999;
}

.uservoice-detail dt::after {
    content: "：";
}

.uservoice-detail dd {
    margin: 0 12px 0 0;
    color: #333;
}

.uservoice-source {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.uservoice-source a {
    color: #1a73e8;
}

/* ========== Prefecture Signal Rank ========== */
.signal-rank-section {
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.signal-rank-section h2 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.signal-rank-caption {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 14px;
}

.signal-rank-caption-count {
    font-size: 1.2rem;
    color: #bf0000;
}

.signal-rank-caption-rank1 {
    font-size: 1.6rem;
    color: #bf0000;
}

.signal-rank-item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.signal-rank-item {
    padding: 10px 20px;
    background: #fff5f5;
    border: 1px solid #f3caca;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #bf0000;
}

.signal-rank-source {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.signal-rank-source a {
    color: #1a73e8;
}

/* ========== Station Signal (データ高速無制限) ========== */
.station-signal-slider-section {
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.station-signal-slider-header {
    margin-bottom: 12px;
}

.station-signal-slider-header h2 {
    font-size: 1.3rem;
}

.station-signal-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.station-signal-slider-btn {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: background 0.15s;
    padding: 0;
}

.station-signal-slider-btn:hover {
    background: #f0f0f0;
}

.station-signal-slider {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.station-signal-slider::-webkit-scrollbar {
    height: 4px;
}

.station-signal-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.station-signal-slide-item {
    flex: 0 0 auto;
    padding: 10px 18px;
    background: #fff5f5;
    border: 1px solid #f3caca;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #bf0000;
    white-space: nowrap;
}

.station-signal-badge-section {
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.station-signal-badge-section h2 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.station-signal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fff5f5;
    border: 1px solid #f3caca;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #bf0000;
}

.station-signal-badge-icon {
    font-size: 1.3rem;
}

.station-signal-source {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.station-signal-source a {
    color: #1a73e8;
}

/* ========== Signal Score ========== */
.signal-score-section {
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.signal-score-section h2 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.signal-score-overall {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff5f5;
    border: 1px solid #f3caca;
    border-radius: 8px;
}

.signal-score-overall-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #333;
}

.signal-score-carrier-item--overall {
    padding: 10px 0;
}

.signal-score-carrier-item--overall .signal-score-carrier-name {
    font-size: 1.05rem;
}

.signal-score-overall-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-score-stars--overall {
    font-size: 1.5rem;
}

.signal-score-overall-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    min-width: 2.2em;
    text-align: right;
}

.signal-score-carrier-item--overall.is-rakuten .signal-score-overall-number {
    color: #bf0000;
}

.signal-score-category {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.signal-score-category-name {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.signal-score-carrier-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.signal-score-carrier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e5e5e5;
}

.signal-score-carrier-item:last-child {
    border-bottom: none;
}

.signal-score-carrier-item.is-rakuten {
    font-weight: bold;
}

.signal-score-carrier-name {
    font-size: 0.9rem;
    color: #333;
}

.signal-score-carrier-item.is-rakuten .signal-score-carrier-name {
    color: #bf0000;
}

.signal-score-stars {
    font-size: 1rem;
    letter-spacing: 1px;
}

.signal-score-stars .star {
    color: #ddd;
}

.signal-score-stars .star.is-filled {
    color: #f5a623;
}

.signal-score-source {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.signal-score-source a {
    color: #1a73e8;
}

/* ========== Station ========== */
.station-location-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* ========== Banner Note ========== */
.banner-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 6px;
    text-align: center;
}

/* ========== Review CTA Inline ========== */
.review-cta-inline {
    text-align: center;
    margin-bottom: 28px;
}

/* ========== Review CTA Section ========== */
.review-cta-section {
    background: white;
    padding: 16px 0;
    text-align: center;
}

.review-post-button {
    display: inline-block;
    background: #1a73e8;
    color: white !important;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
}

.review-post-button:hover {
    background: #0d47a1;
    color: white !important;
    text-decoration: none;
}

/* ========== Floating Bar ========== */
.floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
}

.floating-bar.visible {
    display: block;
}

.floating-bar-inner {
    position: relative;
    display: flex;
    justify-content: center;
    background: white;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.floating-bar-img {
    display: block;
    height: 100px;
    width: auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .floating-bar {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: auto;
    }
    .floating-bar-inner {
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
    .floating-bar-img {
        height: 320px;
        content: url('/static/images/official-referral-simple-sp.png?v=1');
    }
}

.floating-bar-close {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.floating-bar-close:hover {
    background: rgba(0,0,0,0.65);
}

/* 旧ボタンスタイル（クチコミページ等で使用中） */
.floating-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    text-decoration: none;
    text-align: center;
    gap: 3px;
}

.floating-btn-review {
    background: #1a73e8;
    color: white !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-btn-review:hover {
    background: #0d47a1;
    text-decoration: none;
    color: white !important;
}

.floating-btn-apply {
    background: #bf0000;
    color: white !important;
}

.floating-btn-apply:hover {
    background: #a00000;
    text-decoration: none;
    color: white !important;
}

.floating-btn-label {
    font-size: 1rem;
    font-weight: bold;
}

.floating-btn-note {
    font-size: 0.72rem;
    opacity: 0.9;
}

/* ========== Footer ========== */
.footer {
    background: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.footer-nav a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: white;
    text-decoration: none;
}

/* ========== Static Pages ========== */
.static-page-section {
    padding: 40px 0;
}

.static-page-content {
    background: white;
    border-radius: 8px;
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.static-page-content h2 {
    font-size: 1.2rem;
    color: #bf0000;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.static-page-content h2:first-child {
    margin-top: 0;
}

.static-page-content p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.static-page-content ul {
    margin: 12px 0 16px 20px;
    line-height: 1.8;
}

.static-page-content li {
    margin-bottom: 8px;
}

.contact-note {
    margin-top: 20px;
    font-weight: bold;
    color: #666;
}

/* ========== Referral Page ========== */
.referral-hero-section,
.referral-cta-section,
.referral-detail-section,
.referral-about-section,
.referral-point-section,
.referral-sim-section,
.referral-flow-section {
    background: white;
    padding: 32px 0;
    border-top: 1px solid #eee;
}

.referral-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.referral-full-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 16px 0;
    border-radius: 8px;
}

.referral-section-title {
    font-size: 1.4rem;
    color: #bf0000;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.referral-subsection-title {
    font-size: 1.1rem;
    color: #333;
    margin: 24px 0 12px;
}

.referral-list {
    margin: 12px 0 16px 20px;
    line-height: 1.9;
}

.referral-list li {
    margin-bottom: 6px;
}

.referral-entry-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 2px solid #bf0000;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.referral-entry-label {
    font-weight: bold;
    color: #bf0000;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.referral-entry-point {
    font-size: 1.4em;
}

.referral-entry-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
    border-radius: 8px;
    border: 2px solid #ff008c;
}

@media (min-width: 768px) {
    .referral-entry-img {
        width: auto;
        max-height: 200px;
    }
}

.referral-link-button {
    display: inline-block;
    background: #ff008c;
    color: white !important;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none !important;
    line-height: 1.4;
    margin-bottom: 12px;
}

.referral-link-button:hover {
    background: #d4007a;
    color: white !important;
    text-decoration: none !important;
}

.referral-link-sub {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: normal;
}

.referral-link-note {
    font-size: 0.88rem;
    color: #666;
    margin-top: 8px;
    line-height: 1.6;
}

.referral-warning-note {
    font-size: 0.9rem;
    color: #7a3700;
    background-color: #fff3e0;
    border-left: 4px solid #ff6f00;
    padding: 12px 14px;
    margin-top: 12px;
    line-height: 1.7;
    border-radius: 4px;
    font-weight: bold;
}

.referral-point-grid {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.referral-point-card {
    flex: 1;
    min-width: 180px;
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.referral-point-label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.referral-point-value {
    font-size: 2rem;
    font-weight: bold;
    color: #bf0000;
}

.referral-point-value span {
    font-size: 0.9rem;
    font-weight: normal;
}

.referral-point-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 6px;
}

.referral-point-extra {
    color: #333;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .referral-point-grid {
        flex-direction: column;
    }

    .referral-point-card {
        min-width: unset;
    }
}

/* ========== Terms Notice ========== */
.terms-notice {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .global-nav {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        text-align: left;
        gap: 0;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.82rem;
    }

    .stats {
        justify-content: center;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* ========== Shop Detail Page ========== */
.shop-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.shop-detail-table th,
.shop-detail-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.shop-detail-table th {
    width: 120px;
    color: #666;
    white-space: nowrap;
    font-weight: normal;
}

.shop-holiday {
    color: #888;
    font-size: 0.875rem;
}

.shop-service-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shop-service-tile {
    display: inline-block;
    background: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.shop-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.shop-map-header h2 {
    margin-bottom: 0;
}

.shop-map-open-link {
    font-size: 0.85rem;
    color: #1a73e8;
}

.shop-map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* YouTube動画埋め込み（16:9レスポンシブ） */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Shop tabs */
.shop-tabs {
    display: flex;
    gap: 0;
    margin-top: 20px;
    border-bottom: 2px solid #ff008c;
}

.shop-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    border-radius: 6px 6px 0 0;
    transition: background 0.15s, color 0.15s;
}

@media (max-width: 375px) {
    .shop-tab {
        padding: 8px 4px;
        font-size: 0.78rem;
    }
}

.shop-tab:hover {
    background: #fff0f7;
    color: #ff008c;
}

.shop-tab.active {
    background: #ff008c;
    color: white;
}

.shop-tab-content {
    display: none;
}

.shop-tab-content.active {
    display: block;
}

/* Shop detail photo */
.shop-detail-photo {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Google Reviews */
.google-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.google-rating-score {
    font-size: 2rem;
    font-weight: bold;
    color: #f4a61d;
}

.google-rating-stars {
    font-size: 1.2rem;
    color: #f4a61d;
    letter-spacing: 2px;
}

.google-rating-count {
    font-size: 0.9rem;
    color: #666;
}

.google-rating-link {
    font-size: 0.85rem;
    color: #1a73e8;
    text-decoration: none;
    margin-left: 4px;
}

.google-rating-link:hover {
    text-decoration: underline;
}

.google-review-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.google-review-item:last-child {
    border-bottom: none;
}

.google-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.google-review-author {
    font-weight: bold;
    font-size: 0.95rem;
}

.google-review-rating {
    color: #f4a61d;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.google-review-time {
    font-size: 0.8rem;
    color: #999;
}

.google-review-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.shop-rakuten-link {
    display: inline-block;
    background: #1a73e8;
    color: white !important;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
}

.shop-rakuten-link:hover {
    background: #0d47a1;
    color: white !important;
    text-decoration: none;
}

/* ========== Campaign ========== */
.campaign-filter-section {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.campaign-filter-tabs {
    display: flex;
    gap: 8px;
}

.campaign-filter-tab {
    display: inline-block;
    padding: 7px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
}

.campaign-filter-tab.active,
.campaign-filter-tab:hover {
    background: #bf0000;
    border-color: #bf0000;
    color: white !important;
    text-decoration: none;
}

.campaign-list-section {
    padding: 32px 0;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.campaign-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.campaign-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-decoration: none;
}

.campaign-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f5;
}

.campaign-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-card-img-placeholder {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.campaign-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campaign-card-title {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
}

.campaign-card-tags,
.campaign-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.campaign-tag {
    display: inline-block;
    background: #fff0f0;
    color: #bf0000;
    border: 1px solid #f5c0c0;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: bold;
}

.no-campaigns {
    color: #888;
    padding: 40px 0;
    text-align: center;
}

/* Campaign Detail */
.campaign-firstview-section {
    background: white;
    padding: 24px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.campaign-firstview-img {
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    display: inline-block;
}

.campaign-og-img {
    max-width: 100%;
    border-radius: 8px;
    display: inline-block;
}

.campaign-detail-tags {
    margin-bottom: 4px;
}

.campaign-summary {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}
.campaign-summary h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 16px 0 6px;
    color: #222;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}
.campaign-summary h2:first-child {
    margin-top: 0;
}
.campaign-summary ul {
    padding-left: 20px;
    margin: 6px 0;
}
.campaign-summary li {
    margin-bottom: 4px;
}
.campaign-summary strong {
    font-weight: 700;
    color: #222;
}
.campaign-summary p {
    margin: 6px 0;
}
.campaign-official-link {
    display: inline-block;
    margin-top: 14px;
    color: #1a73e8;
    font-size: 0.9rem;
    text-decoration: none;
}
.campaign-official-link:hover {
    text-decoration: underline;
}

/* Top Campaign Slider */
.campaign-slider-section {
    background: white;
    padding: 32px 0;
    border-top: 1px solid #eee;
}

.campaign-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.campaign-slider-header h2 {
    font-size: 1.3rem;
}

.campaign-slider-more {
    font-size: 0.85rem;
    color: #1a73e8;
    text-decoration: none;
}

.campaign-slider-more:hover {
    text-decoration: underline;
}

.campaign-slider-footer {
    text-align: right;
    margin-top: 12px;
}

.campaign-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.campaign-slider-btn {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: background 0.15s;
    padding: 0;
}

.campaign-slider-btn:hover {
    background: #f0f0f0;
}

.campaign-slider {
    flex: 1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.campaign-slider::-webkit-scrollbar {
    height: 4px;
}

.campaign-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.campaign-slide-item {
    flex: 0 0 200px;
    text-decoration: none;
    color: inherit;
}

.campaign-slide-img {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    display: block;
}

.campaign-slide-img-placeholder {
    width: 200px;
    height: 112px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.campaign-slide-title {
    font-size: 0.82rem;
    color: #333;
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Shop Search Section (top page) ========== */
.shop-search-section {
    background: #fff8f0;
    padding: 40px 0;
    border-top: 3px solid #ff008c;
}

.shop-search-section h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.geo-shop-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ff008c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.geo-shop-button:hover {
    background: #d4007a;
}

.geo-shop-button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.geo-shop-status {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    min-height: 20px;
}

/* ========== Shop Service Filter Buttons ========== */
.shop-filter-section {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.shop-result-count {
    margin-bottom: 16px;
    color: #444;
    font-size: 0.95rem;
}

.shop-service-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-label {
    font-size: 0.85rem;
    color: #666;
    flex-shrink: 0;
}

.shop-filter-btn {
    padding: 7px 14px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.shop-filter-btn:hover {
    border-color: #ff008c;
    color: #ff008c;
}

.shop-filter-btn.active {
    background: #ff008c;
    border-color: #ff008c;
    color: white;
}

/* ========== Shop Cassette ========== */
.shop-list-section {
    background: #f9f9f9;
    padding: 24px 0;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shop-cassette {
    display: flex;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.shop-cassette-image-link {
    display: flex;
    flex-shrink: 0;
    align-self: stretch;
    text-decoration: none;
}

.shop-cassette-image {
    width: 120px;
    min-height: 90px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-cassette-image img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}

.shop-cassette-image-link:hover .shop-cassette-image img,
.shop-cassette-image-link:hover .shop-no-image {
    opacity: 0.85;
}

.shop-no-image {
    width: 120px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #aaa;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.shop-cassette-body {
    flex: 1;
    padding: 12px 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-cassette-name {
    font-weight: bold;
    font-size: 0.95rem;
    color: #1a73e8;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.shop-cassette-name:hover {
    text-decoration: underline;
}

.shop-cassette-address {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.shop-cassette-distance {
    font-size: 0.85rem;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.shop-cassette-rating {
    font-size: 0.85rem;
    margin: 0;
}

.shop-cassette-rating .rating-stars {
    color: #f4a61d;
}

.shop-cassette-rating .rating-count {
    color: #666;
}

.services-slider {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.services-slider::-webkit-scrollbar {
    height: 3px;
}

.services-slider::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.shop-service-tile {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 10px;
    color: #444;
}

@media (max-width: 480px) {
    .shop-cassette {
        flex-direction: column;
    }
    .shop-cassette-image-link {
        width: 100%;
    }
    .shop-cassette-image {
        width: 100%;
        height: 160px;
        min-height: 160px;
    }
    .shop-cassette-image img {
        width: 100%;
        height: 160px;
    }
    .shop-no-image {
        width: 100%;
        height: 160px;
        min-height: 160px;
    }
}

/* ========== Shop List (compact, prefecture page) ========== */
.shop-list-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-list-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.shop-list-item:hover {
    background: #f5f5f5;
}

.shop-list-name {
    font-size: 0.9rem;
    color: #1a73e8;
    font-weight: 500;
}

.shop-list-address {
    font-size: 0.8rem;
    color: #888;
    white-space: normal;
    word-break: break-all;
}

/* ========== No Results ========== */
.no-results-message {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 1rem;
}

/* ========== Services wrap (shop cassette - wrapping on all devices) ========== */
.services-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 2px;
}

/* ========== Shop filter header (result count + filter button row) ========== */
.shop-filter-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-result-count {
    flex: 1;
    margin: 0;
    color: #444;
    font-size: 0.95rem;
    padding-top: 2px;
}

/* デスクトップ: インライン絞り込みボタン */
.shop-service-filters-desktop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* モバイル: 絞り込みトグルボタン */
.shop-filter-toggle-btn {
    display: none;
    padding: 8px 16px;
    border: 2px solid #ff008c;
    border-radius: 20px;
    background: white;
    color: #ff008c;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-toggle-icon {
    font-size: 0.7rem;
    margin-left: 4px;
}

@media (max-width: 640px) {
    .shop-service-filters-desktop {
        display: none;
    }
    .shop-filter-toggle-btn {
        display: inline-flex;
        align-items: center;
    }
}

/* ========== Filter popup (mobile) ========== */
.filter-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

.filter-popup-overlay.active {
    display: block;
}

.filter-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 1001;
    max-height: 70vh;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.filter-popup.active {
    display: flex;
}

.filter-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.filter-popup-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

.filter-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.filter-popup-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.filter-popup-apply {
    display: block;
    width: 100%;
    padding: 14px;
    background: #ff008c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

/* ========== エリア概要セクション ========== */
.area-overview-section {
    background: white;
    padding: 32px 0;
    border-top: 1px solid #eee;
}

.area-overview-section h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.area-overview-summary {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.area-summary-toggle {
    color: #1a73e8;
    font-size: 0.9rem;
    margin-left: 4px;
}

.area-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 600px) {
    .area-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.area-info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
}

.area-info-label {
    display: block;
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 6px;
}

.area-info-value {
    display: block;
    font-size: 1.35rem;
    font-weight: bold;
    color: #1a73e8;
}

.area-info-unit {
    font-size: 0.78rem;
    font-weight: normal;
    color: #888;
    margin-left: 2px;
}

.area-wiki-source {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 4px;
}

.area-wiki-source a {
    color: #aaa;
}

.area-signal-summary-section {
    padding: 32px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.area-signal-summary-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}

.area-signal-summary-body p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 8px;
}

.area-signal-summary-body p:last-child {
    margin-bottom: 0;
}

/* ========== グローバルナビ ドロップダウン ========== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 6px;
    min-width: 200px;
    z-index: 200;
    white-space: nowrap;
}

.nav-dropdown-menu-inner {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 6px 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: #fff0f5;
    color: #e4002b;
    text-decoration: none;
}

/* モバイル 料金プランサブメニュー */
.mobile-plan-toggle {
    color: white;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1rem;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mobile-plan-submenu {
    display: none;
    padding-left: 16px;
}

.mobile-plan-submenu.open {
    display: block;
}

.mobile-plan-submenu a {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ========== 料金プランページ共通 ========== */
.plan-fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

.plan-fee-table th,
.plan-fee-table td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.plan-fee-table th {
    background: #e4002b;
    color: #fff;
    font-weight: 700;
}

.plan-fee-table tr:nth-child(even) td {
    background: #fff5f7;
}

.plan-fee-highlight {
    color: #e4002b;
    font-weight: 700;
    font-size: 1.1em;
}

.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.plan-feature-list li {
    padding: 8px 0 8px 24px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.plan-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e4002b;
    font-weight: 700;
}

.plan-note {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.6;
    margin-top: 8px;
}

.plan-official-link {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    background: #e4002b;
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
}

.plan-official-link:hover {
    background: #c00020;
    color: #fff;
    text-decoration: none;
}

/* ========== 料金シミュレーション ========== */
.simulate-form-section {
    background: #fff5f7;
    padding: 32px 0;
}

.simulate-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.simulate-member-label {
    font-weight: 600;
    min-width: 60px;
    font-size: 0.95rem;
}

.simulate-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
}

.simulate-result-section {
    padding: 32px 0;
}

.simulate-result-card {
    background: #fff;
    border: 2px solid #e4002b;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.simulate-result-total {
    font-size: 2rem;
    font-weight: 700;
    color: #e4002b;
}

.simulate-result-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.simulate-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 0.9rem;
}

.simulate-compare-table th,
.simulate-compare-table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.simulate-compare-table th {
    background: #f5f5f5;
    font-weight: 700;
}

.simulate-compare-table .rakuten-row td {
    background: #fff0f5;
    color: #e4002b;
    font-weight: 700;
}

.simulate-member-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.simulate-top-section {
    padding: 40px 0;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.simulate-top-section h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.simulate-top-section .simulate-top-btn-wrap {
    text-align: center;
}

.simulate-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ff008c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.simulate-top-btn:hover {
    background: #d4007a;
    color: white;
}

.simulate-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e4002b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
}

.simulate-btn:hover {
    background: #c00020;
}

.simulate-breakdown {
    font-size: 0.85rem;
    color: #555;
    margin-top: 8px;
}

.simulate-breakdown li {
    padding: 3px 0;
}
