.dmap-control-menu { position: absolute; bottom: 29px; right: 18px; width: 50px; height: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.dmap-control-menu button, .dmap-control-menu div, .dmap-control-menu img { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.dmap-control-menu span{color: #000; font-size: 10px; line-height: 0.1;}
.dmap-control-menu #favoriteRouteButton, .dmap-control-menu #debug-reset-btn {position: absolute; bottom: 1px; right:2px;}
#favoriteImportButton, #debug-reset-btn, #okiniiri-saikeisan-btn { color: white; border: none; padding: 0; border-radius: 5px; cursor: pointer; }
.favorite-route { color: white; border: none; cursor: pointer; height: 50px; padding: 0; }
#favoriteImportButton:hover, #debug-reset-btn:hover, #okiniiri-saikeisan-btn:hover, .favorite-route:hover { transform: scale(1.05); }
#goriyouhouhou { background-color: #ffff00; color: #000; padding: 10px; border-radius: 5px; cursor: pointer; }
#goriyouhouhou:hover { background-color: #cccc00; color: #fff; }
img#userUrlQrImage { border: 2px solid #ddd; }
img#userUrlQrImage { width: 50px; height: auto; }
#goriyouhouhou { width: 180px; background: #ffff00; padding: 6px; border: 4px solid #cccc00; border-radius: 15px; margin: 0; cursor: pointer; text-align: center; color: #000; font-size: 14px; transition: background 0.2s, color 0.2s, border 0.2s; box-sizing: border-box; }
#goriyouhouhou:hover { background: #cccc00; color: #fff; }
@media (max-width: 768px) {
  #favoriteImportButton, #goriyouhouhou { display: none; }
  img#userUrlQrImage { display: none; }
}
.modal { position: fixed; top: 0; right: 0; width: 33%; max-width: 600px; height: calc(100% - 88px); max-height: 100%; background-color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 10001; overflow: auto; border-radius: 20px; font-family: 'Roboto', Arial, sans-serif; padding: 20px; border: 10px solid rgb(6, 18, 177); box-sizing: border-box; }
.modal:focus { outline: none; }
.modal-close-button { position: fixed; top: 5px; right: 5px; width: 30px; height: 30px; background-color: #f44336; color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); z-index: 10; }
.modal-close-button:hover { background-color: #d32f2f; }
.modal-content { max-height: calc(100%); overflow-y: auto; padding-top: 10px; }
.exhibitor-details { padding: 0; margin: 0; width: 100%; display: flex; flex-wrap: wrap; align-content: flex-start; height: auto; overflow: auto;}
.exhibitor-header { padding: 10px; border-radius: 5px; text-align: left; display: flex;}
/* .exhibitor-name { font-size: 20px; font-weight: bold; color: #333; margin: 0; } */
/* .exhibitor-name-en { font-size: 14px; color: #666; margin: 3px 0 0; } */
.exhibitor-info { display: grid; grid-template-columns: 1fr; gap: 5px; background-color: #ffffff; padding: 10px; border: 1px solid #ddd; border-radius: 5px; margin: 0; }
.info-item { width: 100%; font-size: 12px; color: #444; margin: 0; }
.info-item strong { color: #000; }
.exhibitor-actions { display: flex; justify-content: center; margin: 10px 0; align-items: center; gap: 0 10px; width: 100%;}
/* .exhibitor-fixed{position:absolute; bottom: 0; left:50%; transform: translateX(-50%); background-color: #fff; width: 100%;} */
.exhibitor-fixed{background-color: #fff; width: 100%;}

@media (max-width: 768px) {
  .modal-close-button {top:5px;}
  .exhibitor-header p:nth-of-type(2){margin-top: 0.5rem;}
  /* .exhibitor-details { padding-bottom: 100px; } */
  .exhibitor-actions { width: 30%; padding: 0px 0; }
}
.visit-select { padding: 5px; font-size: 12px; border: 1px solid #ddd; border-radius: 5px; margin: 0; }
.favorite-button, .visit-toggle-button, .choose-start-position-button { padding: 0; font-size: 12px; border: none; border-radius: 5px; cursor: pointer; background-color: #fff; color: #333; margin: 0; line-height: 0.5;}
.favorite-button img, .visit-toggle-button img, .choose-start-position-button img { width: 35px; height: auto; }
.favorite-button span, .visit-toggle-button span, .choose-start-position-button span{font-size: 7px;}
@media (max-width: 768px) {
  .favorite-button img, .visit-toggle-button img, .choose-start-position-button img { width: 40px; }
}
.favorite-button:hover { transform: scale(1.1); }
.exhibitor-memo { margin: 10px auto; border: 2px solid #000; border-radius: 5px; padding: 5px; display: flex; flex-direction: column; align-items: center; margin-bottom: 5px; width: 90%;}
.memo-textarea { width: 100%; height: 250px; padding: 5px; font-size: 16px; border: 1px solid #ddd; border-radius: 5px; resize: none; margin: 0; box-sizing: border-box; padding-right: 0 !important; line-height: 1.5; margin-right: auto;}
/* .save-memo-button { margin-top: 5px; padding: 5px 5px; border-radius: 10px; cursor: pointer; position: absolute; top:68px; right:22px; border: none; background-color: unset;} */
.save-memo-button{margin-top: 5px; padding: 5px 5px; border-radius: 10px; cursor: pointer; position: sticky; top:68px; right:22px; border: none; background-color: unset;}
.save-memo-button:hover { transform: scale(1.1); }
/* .voice-input-button{margin-top: 5px; padding: 5px 5px; border-radius: 10px; cursor: pointer; position: absolute; top:32px; right:22px; border: none; background-color: unset;} */
@media (max-width: 768px) {
  .memo-textarea{width: 99%; height: 190px;}
  .save-memo-button {top:56px; right:11px;}
  /* .voice-input-button{top:14px; right:12px;} */
}
.contact-button { padding: 5px 10px; font-size: 12px; background-color: #ff5722; color: #fff; border: none; border-radius: 5px; cursor: pointer; margin: 0; }
.contact-button:hover { transform: scale(1.1); }
.exhibitor-contact { display: none; }
.recommended-header { background-color: #ff4500; color: #fff; font-size: 24px; font-weight: bold; text-align: center; margin-bottom: 5px; }
.exhibitor-header2{width: 100%; padding: 0 10px;}
@media (max-width: 768px) {
  .modal { width: 100%; padding: 0; top: 0; transform: translate(-50%, 0%); height: 100%; max-height: 100%; z-index: 10000; }
  .modal-content { font-size: 12px; padding: 10px; overflow-y: auto; max-height: 75vh;}
  .exhibitor-header{/* position: fixed; */ min-height: 0px; top:0; left:0; width: 100%; background-color: unset; display: flex; height: 25px;}
  .exhibitor-header2{width: 100%; padding: 0 10px;}
  .exhibitor-header h3 { font-size: 18px; width: 30%;}
  .exhibitor-header p, .exhibitor-info p, .exhibitor-contact p, .exhibitor-description p { font-size: 14px; line-height: 1.6; }
  .voice-memo-modal{right:0; transform: translate(0%, 0%); height: calc(100% - 85px);}
}
.choose-start-position-button:hover { transform: scale(1.1); }
.alert-modal { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); padding-top: 60px; }
.alert-modal-content { background-color: #fefefe; margin: 5% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 340px; border-radius: 8px; display: flex; justify-content: center; flex-wrap: wrap; }
.alert-modal-content p { width: 100%; text-align: center; }
.alert-modal-close-button { background-color: #f44336; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; margin-top: 20px; }
.alert-modal-close-button:hover { transform: scale(1.1); }
#debug-reset-btn:hover { transform: scale(1.1); }
@media (max-width: 480px) {
  #debug-reset-btn { top: 50px; /* padding: 8px; */ font-size: 16px; border-radius: 6px; }
}
#okiniiri-saikeisan-btn { background-color: #a72828; }
#okiniiri-saikeisan-btn:hover { background-color: #882121; }
@media (max-width: 480px) {
  #okiniiri-saikeisan-btn { top: 100px; padding: 8px; font-size: 16px; border-radius: 6px; }
}
.favorite-route-container { padding: 0px; color: white; font-size: 14px; font-weight: bold; border: none; width: 100%; text-align: right; }
.favorite-route { font-size: 14px; padding: 8px; color: white; border: none; border-radius: 5px; cursor: pointer; transition: transform 0.3s ease; background-color: #fff; padding: 0; }
.favorite-route:hover { transform: scale(1.1); }
.favorite-route[disabled]:hover { background-color: #ccc; }
.favorite-route img { width: 50px; height: auto; }
@media (max-width: 480px) {
  .favorite-route{width: 50px; line-height: 0.8; bottom: -19px !important;}
  .favorite-route-container { top: 50px; }
  .favorite-route img { width: 40px; height: auto; }
}
.favorite-Impor-container { position: fixed; top: 8px; right: 10px; z-index: 9999; padding: 0px; color: black; font-size: 14px; font-weight: bold; border: none; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.favorite-Impor { font-size: 14px; padding: 8px; background-color: #3fc6ff; color: black; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; }
.favorite-Impor:hover { background-color: #2488b3; }
@media (max-width: 480px) {
  .favorite-Impor-container { display: none; }
}
.prModal.modal { position: fixed; top: 50%; left: 50%; width: 90%; height: 100%; z-index: 10000; display: flex; justify-content: center; align-items: center; transform: translate(-50%, -50%); background-color: #fff; }
.prModal .modal-content { width: 100%; height: 100%; background-color: #fff; padding: 20px; border-radius: 5px; text-align: center; position: relative; }
.pr_button_container { position: fixed; bottom: 5px; left: 30px; right: 30px; z-index: 0; display: flex; flex-direction: row; gap:20px; justify-content: center;}
.pr_button_slot { width: 280px; height: 70px; background-color: #f0f0f0; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-family: sans-serif; color: #333; border: 1px solid #ccc; box-sizing: border-box; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
@media (max-width: 1350px) {
  .pr_button_slot{width:195px;}
}
.pr_button_slot:hover { background-color: #e0e0e0; transform: scale(1.05); }
.info-image-container { position: fixed; bottom: 10px; right: 10px; }
.info-image { transition: transform 0.3s ease, opacity 0.3s ease; }
.info-image:hover { transform: scale(1.1); opacity: 0.8; }

.list-menu{/* position: absolute; top:55px; right:10px; background-color: #fff;  */display: flex; padding: 10px; border-radius: 5px; margin-left: auto;}
@media only screen and (max-width: 600px) {
  .info-image-container { display: block; }
  .list-menu{position: absolute; top:55px; right: unset; left:50%; transform: translateX(-50%); display: flex;}
}
@media only screen and (max-width: 1000px) {
  /* .dmap-control-menu { top:44px; } */
  .pr_button_container { position: fixed; top: 44px; left: 10px; z-index: 0; display: flex; flex-direction: column;  transform: translate(0); gap:1px;}
  .pr_button_slot { width: 100px; height: 27.8px; }
}
@media only screen and (max-width: 600px) {
  .pr_button_container { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); top: unset; height: 50px; display: flex; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; background-color: rgba(255, 255, 255, 0.9); }
  .pr_button_container::-webkit-scrollbar { display: none; }
  .pr_button_slot { margin-bottom: 0; height: 100%; flex: 0 0 100%; width: 100%; scroll-snap-align: center; display: flex; justify-content: center; align-items: center; }
}
.image-wrapper { display: flex; flex-direction: column; align-items: center; gap:10px; margin-top: 5px; position: relative;}
.user_photo_delete-button { padding: 3px 6px; border-radius: 10px; background-color: rgba(223, 9, 9, 0.4); color:#fff; cursor: pointer; position: absolute; top:5px; right:5px; border: none;}
.komabangou-span{background-color: #003366; color: #fff; padding: 4px 12px; border-radius: 5px; font-size: 14px; white-space: nowrap;width: 60px; display: block; text-align: center;}
/* #photos-wrapper { max-height: 300px; overflow-y: auto; margin-bottom: 200px;}
.photo-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } */
/* #photos-wrapper { max-width: 100%; overflow-x: auto; padding-bottom: 15px; max-height: 300px;  margin-bottom: 240px; } */
#photos-wrapper { max-width: 100%; overflow-x: auto; max-height: 300px; }
.photo-container { display: inline-grid; grid-auto-flow: column; grid-template-rows: repeat(1, auto); gap: 10px; }
.image-wrapper { width:auto; min-width: 70px; max-width: 70px;}
.image-wrapper img { width: auto; height: 70px; display: block; }

@media (max-width: 768px) {
/*   #photos-wrapper { display: flex; max-width: 100%; overflow-x: auto; padding-bottom: 15px; margin-bottom: 30px; -webkit-overflow-scrolling: touch; height: 163px; } */
  #photos-wrapper { display: flex; max-width: 100%; overflow-x: auto; padding-bottom: 15px; -webkit-overflow-scrolling: touch; height: 163px; }
  #photos-wrapper::-webkit-scrollbar { display: block !important; height: 5px !important; width: 5px !important; }
  #photos-wrapper::-webkit-scrollbar-track { background: #f1f1f1 !important; }
  #photos-wrapper::-webkit-scrollbar-thumb { background: #888 !important; border-radius: 2px !important; }
}
/* .zone-name{text-align: right; margin: 5px 0; margin-right: 50px;} */

.memo-control{display: flex; flex-wrap: wrap; width: 90%; align-items: center; justify-content: center; gap:0 20px;}
.memo-control p:nth-of-type(1){padding-top: 5px;}
.voice-input-button{border: none;}
@media (max-width: 768px) {
  .memo-control{gap:20px; width: 100%; margin-bottom: 5px;}
}

/* プロモーション用領域 */
.qr-code-container {
    position: fixed;
    top: -2px;
    right: 10px;
    padding: 5px 5px 0;
    z-index: 1000;
}

img#userUrlQrImage {
    width: 40px;
    height: auto;
}

.bottom-left-container {
    display: none;
}

@media (max-width: 1000px) {
    .qr-code-container {
        display: none;
    }

    .bottom-left-container {
        display: block;
        position: fixed;
        bottom: 5px;
        left: 10px;
        display: none;
    }
    .bottom-left-container i {
        font-size: 36px
    }
}
.roll-button-container{width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: white; border: none; border-radius: 25px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);cursor: pointer; display: none;}
.roll-button-container img{width: 36px; height: 36px;}
.info-image-container{position:fixed;bottom:28px; left: 20px; background: white; width: 50px;height: 50px;border: none; border-radius: 25px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);cursor: pointer; line-height: 0.2; display: flex; flex-direction: column; align-items: center;}
.info-image-container img.info-image{width:46px; height:auto;}
.info-image-container span{font-size: 10px;}
@media (max-width: 1000px) {
  .info-image-container{width: 50px; height: 40px; background: unset; box-shadow: unset; bottom: 20px;}
  .info-image-container img.info-image{width:40px; height:auto;}
}

.modal-back-button {
  /* background-color: #a7a7a7;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 4px 6px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 5px;
  margin-left: 5px;
  font-weight: bold;
  margin-bottom: 4px;
  position: absolute;
  top:3px;
  left:3px; */
  /* display: none; */
}
.modal-back-button {
      background-color: red;
    color: white;
    z-index: 10002;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 15px;
}

.modal-back-button:hover {
  background-color: #ddd;
}
.ex-naiyou-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.kana-selector{display: flex; margin: 10px;}
.kana-selector a{ margin-right: 10px;}

/* SPA開発版 */
div#page_container {
    overflow: auto;
    height: 100%;
    margin-top: 50px;
}

.export-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    display: none; /* 初期状態では非表示 */
    justify-content: center;
    align-items: center;
    z-index: 100000; /* 他の要素よりも前面に表示 */
    flex-direction: column;
}

.export-loading-spinner {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin-bottom: 10px;
}

.export-loading-message {
    color: white;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#alertModalText .keiro_point {
  color: #858585;
}
#alertModalText h3 { margin-bottom: 16px; }

.search-block{display: flex; flex-direction: column; align-items: center; width: 100%; padding-top: 10px;}
.camera-btn img{ width: 40px; height: auto;}

/* CSSのみで動作するアコーディオン（!important適用） */
.custom-accordion-trigger-wrapper { width: 100% !important; text-align: center !important; }
.custom-accordion-trigger { font-size: 0 !important; color: #007bff !important; cursor: pointer !important; text-decoration: underline !important; display: inline-block !important; padding: 10px 0 !important; box-sizing: border-box !important; }
.custom-accordion-trigger::before { font-size: 12px !important; content: '展示内容を見る▼' !important; }
.custom-accordion-toggle-checkbox { display: none !important; }
.custom-accordion-content { max-height: 0 !important; overflow: hidden !important; transition: max-height 0.4s ease-out !important; padding: 0 10px !important; box-sizing: border-box !important;margin-bottom: 50px;}
.custom-accordion-toggle-checkbox:checked ~ .custom-accordion-content { max-height: 500px !important; }
.custom-accordion-toggle-checkbox:checked ~ .custom-accordion-trigger-wrapper .custom-accordion-trigger::before { content: '展示内容を閉じる▲' !important; }
.custom-accordion-trigger-wrapper{text-align: center;}

/* 写真がある場合に「横にスクロールできます」を表示するCSS */
#photos-wrapper:has(.image-wrapper) + #scroll-message {
    display: block !important;
    text-align: center;
    font-size: 12px;
}


/* ボイスレコーダー */
.modal-body{display: flex;justify-content: center; min-height: 80vh;}
.voice-memo_wrapper > div { text-align: center; margin: 10px 0; }
.voice-memo_container{display: flex; flex-direction: column; align-items: center;}
.voice-memo-button{cursor: pointer; background-color: #fff; border: none;}
.voice-memo-button img{width: 40px;}
.voice-memo-button i{font-size: 2.2rem; color: #9f1818; padding: 0 4px; background-color: #fff;}
.voice-memo_container span{font-size: 7px;}
.voice-memo-item{font-size: 10px;}
@media (max-width: 1000px) {
  .modal-body{display: flex;justify-content: center; min-height: 80vh; height:100vh; max-height: 85vh;}
}

/* グループ機能 */
#groupJoinModal {display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000;}
#groupJoinModal>div { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; padding: 20px; border-radius: 5px;}