        body {
            font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
            background: #f5f5f5;
        }

        .container_map {
            max-width: 1200px;
            margin: auto;
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        h2 {
            text-align: center;
            margin-bottom: 20px;
        }

        input, textarea {
            width: 100%;
            padding: 10px;
            margin-top: 8px;
            margin-bottom: 15px;
            border-radius: 8px;
            border: 1px solid #ccc;
        }

        button {
            padding: 10px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 10px;
        }

        .btn-main {
            margin-top: 20px;
            background: #e63946;
            color: white;
            width: 100%;
        }

        .btn-sub {
            background: #457b9d;
            color: white;
            width: 100%;
        }

        .hobby-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .hobby-item {
            background: #ddd;
            padding: 5px 10px;
            border-radius: 20px;
        }
.hobby-btn {
    margin: 5px;
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.hobby-btn:hover {
    background: #ddd;
}

.selected-item {
    display: inline-block;
    margin: 5px;
    padding: 6px 12px;
    background: #e63946;
    color: white;
    border-radius: 20px;
}

.hobby-btn {
    margin: 5px;
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    color: white;
    cursor: pointer;
}

/* カテゴリ別カラー */
.インドア {
    background: #6c757d;  /* グレー */
}

.グルメ {
    background: #e63946;  /* 赤 */
}

.アウトドア {
    background: #2a9d8f;  /* 緑 */
}

.音楽 {
    background: #9b5de5;  /* 紫 */
}

.クリエイティブ {
    background: #f4a261;  /* オレンジ */
}

.スキル {
    background: #457b9d;  /* 青 */
}

.その他 {
    background: #999;
}

/* ホバー */
.hobby-btn:hover {
    opacity: 0.8;
}
.indoor { background:#6c757d; }
.gourmet { background:#e63946; }
.outdoor { background:#2a9d8f; }
.music { background:#9b5de5; }
.creative { background:#f4a261; }
.skill { background:#457b9d; }
.hobby-btn_edit {
    margin: 5px;
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* ←左右に分ける */
    align-items: center;
    padding: 6px 12px;
}

.remove {
    margin-left: 10px;
    cursor: pointer;
}
.logo_A {
    height: 150px;         /* ヘッダーに収まるスマートな高さ */
    width: auto;
    object-fit: contain;
    cursor: pointer;
    display: block;      /* 左右中央寄せに必須 */
}
.logo-container_A  {
    display: flex;
    justify-content: center; /* ←横中央 */
}
      #map { 
            height: 600px; 
            width: 100%; 
            background: #f8f8f8; 
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .custom-icon {
            border-radius: 50% !important; 
            border: 2px solid white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            object-fit: cover;
            background-color: white;
        }

        .michi-btn {
            background-color: #e63946;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s ease;
            font-size: 0.9rem;
            margin-top: 5px;
        }

        .michi-btn:hover {
            background-color: #ba2d38;
        }

        .leaflet-popup-content-wrapper {
            border-radius: 12px;
            padding: 5px;
        }
        .hobby-list {
            display: flex;
            flex-wrap: wrap;        /* はみ出したら折り返し */
            gap: 6px;               /* 間隔 */
        }

        .hobby-btn {
            display: inline-block;
            padding: 4px 10px;      /* 小さくする */
            border-radius: 20px;
            font-size: 12px;        /* 小さめ */
            white-space: nowrap;    /* 改行しない */
        }


        /* 左ブロックを縦に */
        .user-left-block {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 250;
        }

        /* 上段（横並び） */
        .user-top {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .user-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }

        .user-center {
            flex: 1;
        }

        .user-right {
            flex: 1;
        }
        .star-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .biko {
            margin-top: 4px;   /* ←少し下げる */
            color: #555;
            font-size: 13px;
        }


        /* 左ブロック */
        .user-left-block {
            flex: 1;
        }



        /* 下段 */
        .user-left {
            margin-top: 6px;
        }

        /* star + biko 横並び */
        .star-row {
            display: flex;
            gap: 10px;
        }

        .biko {
            margin-top: 2px;
        }

        /* 右側 */
        .user-right {
            width: 250px;   /* ←ここ重要（固定幅） */
        }
        .user-row {
    display: grid;
    grid-template-columns: 220px 2fr 1fr;
    gap: 20px;
}

/* 左 */
.user-left {
    width: 220px;
}

/* アイコン＋名前 */
.user-top {
    display: flex;
    justify-content: flex-start;  /* ←左寄せ */
    gap: 10px;
    align-items: center;
}

/* 基本情報 */
.user-info {
    margin-top: 5px;
    font-size: 13px;
}

/* 中央（biko） */
.user-biko {
    flex: 1;              /* ←これで中央に広がる */
    min-width: 200px;    /* ←小さくならない */
    font-size: 14px;
    align-self: center;   /* ←これで下揃え */
    white-space: pre-wrap;
}

/* 右（appeal） */
.user-appeal {
    width: 250px;
    margin-left: 50%;  /* ←微調整 */
    display: flex;
    justify-content: center;   /* ←横中央 */
    align-items: center;       /* ←縦中央（お好み） */
    text-align: center;
}
/*フレンド申請済*/
.user-icon.friend {
  border: 3.5px solid #fa5584; /* 緑 */
  border-radius: 50%;         /* 丸いアイコンなら丸く */
}
.user-icon.friend {
  position: relative;
}
.user-icon.friend::after {
  content: "✔";
  position: absolute;
  right: -2px;
  bottom: -2px;
  background: #4caf50;
  color: white;
  font-size: 10px;
  border-radius: 50%;
  padding: 2px;
}
.actionBtn  {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #6afaff;
    cursor: pointer;
}
.private_messageBtn  {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #6afaff;
    cursor: pointer;
}
.friend{
    background: #e85824;
}
/* 最初は非表示 */
.modal-hidden { display: none; }

#chat-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 1000px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 10px;
    z-index: 9999; /* 一番手前に */
}

.modal-content { display: flex; flex-direction: column; height: 100%; }
#close-modal { cursor: pointer; border: none; background: none; color: white; font-size: 20px; }

/* 外側の枠（モーダル本体） */
#chat-popup {
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    
    /* ここを大きくする */
    width: 90%;      /* 横幅を画面の90%に */
    max-width: 1000px; /* ただし最大1000pxまで */
    height: 85%;     /* 高さを画面の85%に */
    
    z-index: 9999; 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 内側の iframe（これが重要！） */
#chat-frame {
    width: 100%;    /* 親の幅いっぱいに */
    height: 100%;   /* 親の高さいっぱいに */
    border: none;
    flex: 1;        /* 余白をすべて埋める */
}
#chat-popup {
    width: 95vw;  /* 画面の横幅いっぱい近く */
    height: 95vh; /* 画面の高さいっぱい近く */
}
.modal {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-container {
  margin-top: auto;
}
.biko-box {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #696767;
  border-radius: 12px;
  background: #f9f9f9;
  white-space: pre-wrap;  /* ←これ重要 */
  width: 230px;
  height: auto;
}
.appeal-box {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #ffeeee;
  white-space: pre-wrap;  /* ←これ重要 */
  width: 230px;
  height: auto;
}
#map.active {
  border: 2px solid #ff6600;
}
.btn {
  display: flex;
  justify-content: center;  /* 横中央 */
  gap: 20%;                /* ボタン間の余白 */

  margin-top: 20px;
}
.btn-gray {
  background-color: #ccc;
  color: #666;
}
.box_submit {
  display: flex;
  justify-content: center;  /* 横中央 */
margin-top: 50px;
}
html, body {
  height: 100%;
  margin: 0;
}

.container_map {
  height: auto;
}

/* 地図固定 */
#map {
  height: 40vh;   /* 好きな高さに調整 */
}

/* ボタン */
.btn {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

/* リストをスクロール */
#list {
  flex: 1;               /* 残り全部使う */
  overflow-y: auto;      /* ← スクロール */
  padding: 10px;
}