/* Area Pages CSS - 無印良品スタイルに統一 */

/* ===== Common Styles ===== */
.price-badge {
    display: inline-block;
    background: var(--color-natural-brown);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 8px;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--color-charcoal);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-natural-brown);
    margin: 16px auto 0;
}

/* ===== Map Hero ===== */
.map-hero {
    background: var(--color-off-white);
    color: var(--color-charcoal);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-light-gray);
}

.map-hero__title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.map-hero__sub {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-natural-brown);
    margin-bottom: 8px;
}

.map-hero__price {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.map-hero__description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* ===== Area Hero ===== */
.area-hero {
    background: var(--color-off-white);
    color: var(--color-charcoal);
    padding: 60px 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.area-hero .breadcrumb {
    margin-bottom: 24px;
}

.area-hero .breadcrumb__link,
.area-hero .breadcrumb__separator,
.area-hero .breadcrumb__current {
    color: #666;
    font-size: 0.875rem;
}

.area-hero .breadcrumb__link:hover {
    color: var(--color-natural-brown);
}

.area-hero__title {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

.area-hero__location {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-natural-brown);
}

.area-hero__service {
    display: block;
}

.area-hero__price {
    font-size: 1.125rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.area-hero__description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 24px;
}

.area-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== 3D Map Section ===== */
.map-section {
    padding: 60px 0;
    background: #fff;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--color-charcoal);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#mapCanvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#mapCanvas:active {
    cursor: grabbing;
}

.map-tooltip {
    position: absolute;
    background: rgba(74, 74, 74, 0.95);
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    white-space: nowrap;
}

.map-tooltip.active {
    opacity: 1;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1rem;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.map-control-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* ===== Area List Section ===== */
.area-list-section {
    padding: 80px 0;
    background: #fff;
}

.area-category {
    margin-bottom: 48px;
}

.area-category:last-child {
    margin-bottom: 0;
}

.area-category__title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-charcoal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-category__title i {
    color: var(--color-natural-brown);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.area-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    position: relative;
}

.area-card:hover {
    border-color: var(--color-natural-brown);
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.15);
}

.area-card__name {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--color-charcoal);
}

.area-card__population {
    font-size: 0.75rem;
    color: #888;
}

.area-card__arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-natural-brown);
    opacity: 0;
    transition: opacity 0.2s;
}

.area-card:hover .area-card__arrow {
    opacity: 1;
}

/* ===== Features Section ===== */
.area-features,
.map-features {
    padding: 80px 0;
    background: var(--color-off-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--color-light-gray);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--color-natural-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-charcoal);
}

.feature-card__text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
}

/* ===== Area Info Section ===== */
.area-info {
    padding: 80px 0;
    background: #fff;
}

.area-info__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.area-info__table {
    width: 100%;
    border-collapse: collapse;
}

.area-info__table th,
.area-info__table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-light-gray);
    font-size: 0.9rem;
}

.area-info__table th {
    width: 30%;
    font-weight: 500;
    background: var(--color-off-white);
    color: var(--color-charcoal);
}

.area-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-features-list li {
    background: var(--color-natural-brown);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.area-info__needs h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--color-charcoal);
}

.needs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.needs-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-light-gray);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.needs-list li i {
    color: var(--color-natural-brown);
}

/* ===== Price Section ===== */
.area-price {
    padding: 80px 0;
    background: var(--color-off-white);
}

.section-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.section-note i {
    color: var(--color-natural-brown);
    margin-right: 4px;
}

/* Price Tabs (スマホ用) */
.price-tabs {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.price-tab {
    padding: 10px 20px;
    border: 2px solid var(--color-light-gray);
    background: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-charcoal);
    cursor: pointer;
    transition: all 0.2s;
}

.price-tab.active {
    border-color: var(--color-natural-brown);
    background: var(--color-natural-brown);
    color: #fff;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.price-cards--three {
    max-width: 1000px;
    grid-template-columns: repeat(3, 1fr);
}

.price-cards--two {
    max-width: 700px;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
}

.price-card {
    background: #fff;
    border-radius: 4px;
    padding: 32px;
    border: 1px solid var(--color-light-gray);
    position: relative;
}

.price-card--highlight {
    border: 2px solid var(--color-natural-brown);
}

.price-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-natural-brown);
    color: #fff;
    padding: 4px 16px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

.price-card__header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-light-gray);
}

.price-card__name {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-charcoal);
}

.price-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-card__amount {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-natural-brown);
}

.price-card__unit {
    font-size: 0.85rem;
    color: #666;
}

.price-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.price-card__features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.price-card__features li i {
    color: var(--color-natural-brown);
}

.price-card__note {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.price-card__target {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-light-gray);
}

.price-card__target i {
    color: var(--color-natural-brown);
    margin-right: 4px;
}

.price-card__features li.disabled {
    color: #999;
}

.price-card__features li.disabled i {
    color: #ccc;
}

/* Maintenance Section */
.maintenance-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px dashed var(--color-light-gray);
}

.maintenance-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--color-charcoal);
}

.maintenance-title i {
    color: var(--color-natural-brown);
    margin-right: 8px;
}

.maintenance-card {
    background: #fff;
    border: 2px solid var(--color-natural-brown);
    border-radius: 4px;
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.maintenance-card__price {
    text-align: center;
    margin-bottom: 24px;
}

.maintenance-card__amount {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-natural-brown);
}

.maintenance-card__unit {
    font-size: 0.85rem;
    color: #666;
}

.maintenance-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.maintenance-card__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.maintenance-card__features li i {
    color: var(--color-natural-brown);
}

.maintenance-card__note {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 16px;
}

/* ===== Flow Section ===== */
.area-flow {
    padding: 80px 0;
    background: #fff;
}

.flow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.flow-step {
    flex: 1;
    min-width: 160px;
    max-width: 180px;
    text-align: center;
    position: relative;
}

.flow-step__number {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: var(--color-natural-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
}

.flow-step__title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-charcoal);
}

.flow-step__text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.area-cta,
.map-cta {
    padding: 80px 0;
    background: var(--color-beige);
    color: var(--color-charcoal);
    text-align: center;
}

.area-cta__title,
.map-cta__title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.area-cta__text,
.map-cta__text {
    font-size: 0.95rem;
    margin-bottom: 32px;
    color: #555;
    line-height: 1.8;
}

.area-cta__buttons,
.map-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-charcoal);
    color: var(--color-charcoal);
}

.btn-outline:hover {
    background: var(--color-charcoal);
    color: #fff;
}

.btn-line {
    background: #06c755;
    color: #fff;
}

.btn-line:hover {
    background: #05b34c;
}

/* ===== Other Areas Section ===== */
.other-areas {
    padding: 60px 0;
    background: var(--color-off-white);
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.area-link {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--color-light-gray);
    border-radius: 3px;
    color: var(--color-charcoal);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.area-link:hover {
    background: var(--color-natural-brown);
    border-color: var(--color-natural-brown);
    color: #fff;
}

.areas-note {
    text-align: center;
}

.areas-map-link {
    color: var(--color-natural-brown);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.areas-map-link:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .map-hero__title,
    .area-hero__title {
        font-size: 1.5rem;
    }

    .map-container {
        height: 400px;
    }

    .area-info__content {
        grid-template-columns: 1fr;
    }

    .price-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .price-tabs {
        display: flex;
    }

    .price-cards--three {
        display: block;
        max-width: 100%;
    }

    .price-cards--three .price-card {
        display: none;
        max-width: 100%;
    }

    .price-cards--three .price-card.active {
        display: block;
    }

    .price-cards--three .price-card--highlight {
        margin-top: 16px;
    }

    .price-cards--two {
        display: block;
        max-width: 100%;
    }

    .price-cards--two .price-card {
        display: none;
        max-width: 100%;
    }

    .price-cards--two .price-card.active {
        display: block;
    }

    .maintenance-card__features {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        flex-direction: column;
        align-items: center;
    }

    .flow-step {
        max-width: 100%;
    }

    .area-hero__cta,
    .area-cta__buttons,
    .map-cta__buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        text-align: center;
    }

    .area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .area-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }
}

/* ========================================
   モーダル
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-charcoal);
}

.modal-title {
    padding: 24px 24px 16px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-charcoal);
    border-bottom: 1px solid var(--color-light-gray);
}

.modal-title i {
    color: var(--color-natural-brown);
    margin-right: 8px;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.modal-body h4 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--color-charcoal);
}

.modal-body h4 i {
    margin-right: 8px;
}

.modal-body h4 .fa-check-circle {
    color: var(--color-natural-brown);
}

.modal-body h4 .fa-exclamation-triangle {
    color: #e74c3c;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.modal-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-off-white);
    line-height: 1.7;
}

.modal-body ul li:last-child {
    border-bottom: none;
}

.modal-body ul li strong {
    color: var(--color-charcoal);
}

.modal-body .risk-list li {
    color: #666;
    padding-left: 20px;
    position: relative;
}

.modal-body .risk-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.modal-note {
    background: var(--color-off-white);
    padding: 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 16px;
}

/* ========================================
   保守ヘルプボタン
   ======================================== */

.maintenance-help-btn {
    background: none;
    border: none;
    color: var(--color-natural-brown);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.maintenance-help-btn:hover {
    opacity: 1;
}

/* ========================================
   機能リンク
   ======================================== */

.feature-link {
    color: var(--color-natural-brown);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-natural-brown);
    transition: all 0.2s;
}

.feature-link:hover {
    color: var(--color-charcoal);
    border-bottom-style: solid;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.2rem;
        padding-right: 48px;
    }

    .modal-body h4 {
        font-size: 1rem;
    }
}

/* ========================================
   サービス間内部リンク
   ======================================== */

.cross-service-link {
    margin-top: 40px;
    padding: 24px;
    background: var(--color-off-white);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--color-light-gray);
}

.cross-service-link p {
    margin-bottom: 16px;
    color: var(--color-text);
    font-size: 15px;
}

.cross-service-link p i {
    color: var(--color-natural-brown);
    margin-right: 8px;
}

.cross-service-link .btn {
    font-size: 14px;
}

/* ========================================
   ヒーローアピールテキスト
   ======================================== */

.area-hero__appeal {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 12px;
}

.area-hero__appeal i {
    color: var(--color-natural-brown);
    margin-right: 6px;
}
