@charset "utf-8";

/*===============================================
* header
===============================================*/
.postal-header {
    position: relative;
    padding: 24px 30px;
    border-radius: 16px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.postal-header.type-active {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.postal-header.type-closed {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.postal-header.type-abolished {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #d1d5db;
    color: #6b7280;
}

/*--- 営業状態 ---*/
.postal-status-badge {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.type-active .postal-status-badge {
    background: #0068b7;
}

.type-closed .postal-status-badge {
    background: #d97706;
}

.type-abolished .postal-status-badge {
    background: #4b5563;
}

.postal-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/*--- 局名かな ---*/
.postal-kana {
    font-size: 12px;
    opacity: 0.8;
}

/*--- 局名 ---*/
.postal-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.3;
}

.type-abolished .postal-title {
    color: #374151;
}

@media (max-width: 767px) {
    .postal-title {
        font-size: 22px;
    }
}

/*--- ゆうちょ・かんぽ拠点 ---*/
.corp-name-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    background-color: #f7f9fa;
    border: 1px solid #ddd;
}

.corp-name-badge.badge-yucho {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.corp-name-badge.badge-kampo {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

/*--- 局番 ---*/
.postal-office-number {
    margin-top: 10px;
    font-size: 13px;
    font-family: "Consolas", monospace;
    opacity: 0.7;
}

/* --- 公式サイトリンク --- */
.link-dashed {
    font-size: 13px;
    font-weight: normal;
    text-decoration: underline dashed 1px;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.link-dashed:hover {
    opacity: 0.6;
    text-decoration: underline dashed 1px;
}

.link-red {
    color: #d32f2f;
}

/*===============================================
* tab
===============================================*/
.postal-tab-nav {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #e0e0e0;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.postal-tab-nav li {
    flex: 1;
    text-align: center;
}

.postal-tab-nav button {
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.postal-tab-nav button.active {
    color: #0068b7;
    border-bottom-color: #0068b7;
    background-color: transparent;
}

.postal-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.postal-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*===============================================
* 基本情報
===============================================*/
/* カードデザイン
-------------------------------*/
.postal-info-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 8px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.postal-info-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #f5f5f5;
    padding: 16px 0;
    align-items: center;
}

.postal-info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 110px;
    font-weight: bold;
    color: #555;
    font-size: 13px;
    flex-shrink: 0;
}

.info-value {
    flex-grow: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/*--- sp ---*/
@media (max-width: 767px) {
    .postal-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-label {
        width: 100%;
        margin-bottom: 6px;
        color: #888;
        font-size: 11px;
    }

    .postal-compass-grid {
        gap: 5px;
    }

    .compass-cell {
        min-height: 80px;
    }
}


/* 基本
-------------------------------*/
/*--- Googleマップボタン ---*/
.postal-map-link {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    background-color: #4285f4;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    vertical-align: middle;
    transition: opacity 0.2s;
}

.postal-map-link:hover {
    background-color: #3367d6;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

/*--- 営業時間 ---*/
.alert-hours {
    color: #d32f2f;
    background: #ffebee;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.alert-lunch {
    color: #e65100;
    background: #fff3e0;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/*--- 取扱業務 ---*/
/* conatiner */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* 標準チップ */
.service-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid transparent;
    height: 32px;
    box-sizing: border-box;
}

/* 郵便・ゆうゆう */
.chip-postal,
.chip-yuyu {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
}

/* 貯金 */
.complex-chip-savings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 6px 2px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #c8e6c9;
    height: 32px;
    box-sizing: border-box;
    vertical-align: middle;
}

.complex-chip-label {
    margin-right: 2px;
}

.complex-sub-chip {
    background: #fff;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid #a5d6a7;
    line-height: 1.2;
}

/* ATM */
.chip-atm {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

/* 保険・キャッシュレス・駐車場 */
.chip-insurance,
.chip-parking,
.chip-cashless {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

/* その他 */
.chip-gray {
    background: #f5f5f5;
    color: #555;
    border-color: #e0e0e0;
}

/* 最寄り駅
-------------------------------*/
.nearby-station-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-station-item {
    border-bottom: 1px dashed #eee;
    padding: 6px 0;
    font-size: 14px;
}

.nearby-station-item:last-child {
    border-bottom: none;
}

.station-flex-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.station-name {
    margin-right: 6px;
}

.station-icon {
    color: #555;
    margin-right: 4px;
}

.station-lines {
    font-size: 0.85em;
    color: #666;
}

.station-distance {
    margin-left: auto;
    font-size: 0.9em;
    white-space: nowrap;
}

.no-station-message {
    color: #999;
    font-size: 0.9em;
}

/*===============================================
* 訪問メモ
===============================================*/
.visit-memo {
    font-size: 14px;
}

.visit-memo figure {
    border: 1px solid #ddd;
    margin-top: 24px;
    padding: 5px;
    width: 480px !important;
}

/*===============================================
* 地図・周辺
===============================================*/