/* ============================================================
   里親コミュニティMAP - Styles
   ============================================================ */

/* ============================
   キャラクター紹介セクション
   ============================ */
.satoya-intro-section {
    background: linear-gradient(135deg, #fff8f5 0%, #fff0eb 100%);
    border: 2px solid #ffd4c2;
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 24px;
}
.satoya-intro-inner {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.satoya-char-wrap {
    flex-shrink: 0;
}
.satoya-char-img {
    width: 130px;
    height: auto;
    display: block;
    filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.15));
    animation: satoya-float 3s ease-in-out infinite;
}
@keyframes satoya-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.satoya-intro-text {
    flex: 1;
    min-width: 200px;
}
.satoya-connect-title {
    font-size: 18px;
    font-weight: 900;
    color: #ff5f35;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.satoya-speech-bubble {
    background: #fff;
    border: 2px solid #ff5f35;
    border-radius: 18px;
    padding: 14px 18px;
    position: relative;
    box-shadow: 0 3px 12px rgba(255,95,53,0.15);
}
.satoya-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 28px;
    border: 7px solid transparent;
    border-top-color: #ff5f35;
}
.satoya-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 30px;
    border: 5px solid transparent;
    border-top-color: #fff;
}
.satoya-speech-main {
    font-size: 20px;
    font-weight: 900;
    color: #ff5f35;
    margin: 0 0 6px;
    line-height: 1.3;
}
.satoya-speech-sub {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.7;
}

/* ---- Root container ---- */
#satoya-map-root {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

/* ---- Counter ---- */
.satoya-counter {
    background: linear-gradient(135deg, #ff9f56 0%, #ff5f35 100%);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(255, 95, 53, 0.35);
    color: #fff;
}
.satoya-counter-inner {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.satoya-counter-label {
    font-size: 15px;
    letter-spacing: 2px;
    opacity: 0.92;
}
.satoya-counter-num {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.satoya-counter-unit {
    font-size: 20px;
    font-weight: bold;
}

/* ---- Tab buttons ---- */
.satoya-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.satoya-tab {
    padding: 10px 28px;
    border: 2px solid #ff5f35;
    background: #fff;
    color: #ff5f35;
    border-radius: 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    font-family: inherit;
}
.satoya-tab:hover {
    background: #fff0eb;
    transform: translateY(-1px);
}
.satoya-tab.active {
    background: #ff5f35;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 95, 53, 0.35);
}

/* ---- Map panels ---- */
.satoya-map-panel {
    border-radius: 14px;
    /* overflow:hidden を削除 → Leafletポップアップが切り取られないように */
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.12);
    background: #f5f5f5;
    position: relative;
}

/* Leaflet popup pane を常に最前面に */
.leaflet-popup-pane {
    z-index: 9000 !important;
}
.leaflet-popup {
    z-index: 9001 !important;
}
/* マップ角丸はLeafletコンテナに適用 */
.satoya-map-panel .leaflet-container {
    border-radius: 14px;
}

/* ---- Legend ---- */
.satoya-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    flex-wrap: wrap;
}
.legend-ttl {
    font-size: 12px;
    color: #888;
    font-weight: bold;
}
.legend-chip {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* ---- Leaflet popup override ---- */
.satoya-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18) !important;
    padding: 0 !important;
}
.satoya-leaflet-popup .leaflet-popup-content {
    margin: 14px 16px !important;
    min-width: 200px;
}
.satoya-leaflet-popup .leaflet-popup-tip {
    background: #fff !important;
}

/* ---- Leaflet tooltip override ---- */
.leaflet-tooltip {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 13px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ---- Store Popup ---- */
.satoya-store-popup {
    min-width: 180px;
    max-width: 240px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
}
.satoya-store-popup img {
    width: 100%;
    max-height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
}
.satoya-store-popup h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #222;
}
.satoya-store-popup p {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.5;
}
.satoya-popup-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.satoya-popup-btn {
    display: block;
    text-align: center;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s;
}
.satoya-popup-btn:hover { opacity: 0.85; }
.satoya-popup-btn.line-btn {
    background: #06c755;
    color: #fff;
}
.satoya-popup-btn.gmap-btn {
    background: #4285f4;
    color: #fff;
}

/* ============================
   Prefecture / Country Popup
   ============================ */
.satoya-pref-popup {
    min-width: 220px;
    max-width: 280px;
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    padding: 4px 0;
}
.satoya-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.satoya-popup-flag {
    font-size: 20px;
}
.satoya-popup-name {
    font-size: 17px;
    font-weight: bold;
    color: #222;
}
.satoya-popup-count {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.satoya-popup-count strong {
    font-size: 18px;
    color: #ff5f35;
}
.satoya-popup-body {
    margin-bottom: 8px;
}
.satoya-room-label {
    font-size: 12px;
    color: #06c755;
    font-weight: bold;
    margin: 0 0 6px;
}
.satoya-no-room-msg {
    font-size: 13px;
    color: #888;
    margin: 0 0 4px;
}
.satoya-comment-hint {
    font-size: 13px;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.6;
    background: #fff8f5;
    border-left: 3px solid #ff5f35;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
}
.satoya-comment-hint strong {
    color: #ff5f35;
    font-size: 15px;
}

/* ポップアップボタン共通 */
.satoya-popup-btn {
    display: block;
    text-align: center;
    padding: 8px 14px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 6px;
    transition: opacity 0.2s;
    line-height: 1.4;
}
.satoya-popup-btn:hover { opacity: 0.85; text-decoration: none; }
.satoya-popup-btn.line-btn {
    background: #06c755;
    color: #fff !important;
}
.satoya-popup-btn.line-btn.global {
    background: linear-gradient(135deg, #06c755, #00a040);
    font-size: 12px;
}
.satoya-popup-btn.discord-btn {
    background: #5865f2;
    color: #fff !important;
    font-size: 12px;
    margin-top: 8px;
}
.satoya-popup-btn.gmap-btn {
    background: #4285f4;
    color: #fff !important;
}
.satoya-popup-btn.news-btn {
    background: #f5a623;
    color: #fff !important;
    font-size: 12px;
    margin-top: 8px;
}

/* ============================
   Registration Form
   ============================ */
#satoya-form-wrapper {
    max-width: 580px;
    margin: 0 auto;
    padding: 10px 0;
}

.satoya-notice {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}
.satoya-success {
    background: #d4edda;
    border: 1px solid #b8ddc8;
    color: #1a5c30;
}
.satoya-error {
    background: #fde8e8;
    border: 1px solid #f5c6c6;
    color: #7a1515;
}

.satoya-field {
    margin-bottom: 22px;
}
.satoya-field label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 7px;
}
.satoya-field small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}
.satoya-field input[type="text"],
.satoya-field input[type="email"],
.satoya-field input[type="url"],
.satoya-field select,
.satoya-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
}
.satoya-field input:focus,
.satoya-field select:focus,
.satoya-field textarea:focus {
    outline: none;
    border-color: #ff5f35;
    box-shadow: 0 0 0 3px rgba(255, 95, 53, 0.12);
}

.satoya-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.satoya-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: normal;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.satoya-radio input[type="radio"] {
    margin: 0;
    accent-color: #ff5f35;
}
.satoya-radio:has(input:checked) {
    border-color: #ff5f35;
    background: #fff5f2;
}

.req {
    color: #e00;
    margin-left: 2px;
}

.satoya-submit-area {
    text-align: center;
    padding-top: 10px;
}
.satoya-submit-btn {
    background: linear-gradient(135deg, #ff9f56, #ff5f35);
    color: #fff;
    border: none;
    padding: 15px 48px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 95, 53, 0.38);
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}
.satoya-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.satoya-submit-note {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* ============================
   LINEシェアボックス（投稿末尾）
   ============================ */
.satoya-share-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 32px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
}
.satoya-share-label {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
    font-weight: bold;
}
.satoya-share-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.satoya-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s;
}
.satoya-share-btn:hover { opacity: 0.85; text-decoration: none; }
.satoya-share-btn.line {
    background: #06c755;
    color: #fff !important;
}
.satoya-share-btn.openchat {
    background: linear-gradient(135deg, #ff9f56, #ff5f35);
    color: #fff !important;
}

/* ============================
   最新情報ニュースフィード（[satoya_news]）
   ============================ */
.satoya-news-feed {
    max-width: 640px;
    margin: 0 auto;
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
}
.satoya-news-header {
    text-align: center;
    padding: 28px 20px 20px;
    background: linear-gradient(135deg, #fff8f5 0%, #fff0eb 100%);
    border: 2px solid #ffd4c2;
    border-radius: 18px;
    margin-bottom: 24px;
}
.satoya-news-header-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 8px;
}
.satoya-news-header-title {
    font-size: 22px;
    font-weight: 900;
    color: #ff5f35;
    margin: 0 0 10px;
}
.satoya-news-header-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
.satoya-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.satoya-news-card {
    background: #fff;
    border: 1px solid #ece8e5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.15s;
}
.satoya-news-card:hover {
    box-shadow: 0 6px 20px rgba(255,95,53,0.15);
    transform: translateY(-2px);
}
.satoya-news-thumb-link {
    display: block;
}
.satoya-news-thumb {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    background: #f5f0ed;
}
.satoya-news-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.satoya-news-body {
    padding: 16px 18px 18px;
}
.satoya-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.satoya-news-date {
    font-size: 13px;
    color: #999;
}
.satoya-news-cat {
    background: #ff5f35;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
}
.satoya-news-title {
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.45;
}
.satoya-news-title a {
    color: #222;
    text-decoration: none;
}
.satoya-news-title a:hover {
    color: #ff5f35;
}
.satoya-news-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 12px;
}
.satoya-news-readmore {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #ff5f35;
    text-decoration: none;
    border-bottom: 2px solid #ffd4c2;
    transition: border-color 0.2s;
}
.satoya-news-readmore:hover {
    border-color: #ff5f35;
    color: #ff5f35;
    text-decoration: none;
}
.satoya-news-empty {
    text-align: center;
    padding: 40px;
    color: #aaa;
    background: #fafafa;
    border-radius: 14px;
    border: 2px dashed #e0e0e0;
}
.satoya-news-footer {
    text-align: center;
    margin-top: 28px;
    padding-bottom: 10px;
}
.satoya-news-home-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff9f56, #ff5f35);
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255,95,53,0.35);
    transition: opacity 0.2s, transform 0.1s;
}
.satoya-news-home-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .satoya-counter-num { font-size: 54px; }
    .satoya-tab { padding: 9px 18px; font-size: 14px; }
    #satoya-japan-map, #satoya-world-map { height: 360px !important; }
    .satoya-radio-group { flex-direction: column; gap: 10px; }
    .satoya-news-header-title { font-size: 18px; }
    .satoya-news-title { font-size: 16px; }
    .satoya-news-body { padding: 14px 14px 16px; }
}
