html, body {
margin: 0;
padding: 0;
height: 100%;
box-sizing: border-box;
overflow-x: hidden;
font-family: sans-serif;
}
	
.modal-content{
	display: none ;
}
	
.contents.map {
display: flex;
justify-content: center;
align-items: center;
height: calc(100vh - 293px);
background: linear-gradient(to bottom, #b2d5ff, #6cabff);
position: relative;
overflow: hidden;
opacity: 0;
transition: opacity 0.3s ease;
}
	
body.loaded .contents.map {
opacity: 1;
}

.map_container {
width: auto;
height: auto;
position: relative; /* 変更 */
touch-action: none; /* ← 現在入っているのは OK */
-webkit-user-select: none; /* iOSの選択防止 */
-webkit-touch-callout: none; /* 長押しのメニューを無効化 */
}

.map_container.grabbing {
cursor: grabbing;
}

.map_wrapper {
width: 100%;
height: auto;
transform: scale(0.92); /* ここはtranslate無しでシンプルに */
transform-origin: center center;
margin: 0 auto;
transition: transform 0.1s ease-out;
}
	


.map_image {
display: block;
width: 100%;
height: auto;
object-fit: contain;
}
	
/*モバイル表示用エリア名*/
.area-marker {
  position: absolute;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 9;
}

.area-dot {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0 auto;
}

.area-label {
  font-size: 11px;
  font-weight: 400;
  color: #000;
  text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;
  margin-top: -3px;
}
	
.mobile-only {
  display: none;
}
	
/*エリア名重なり防止のため微調整*/
.area-marker[data-label="eeu"] .area-label {
  margin-left: 0px;
  margin-top: -38px;
}
	
.area-marker[data-label="naf"] .area-label {
  margin-left: 0px;
  margin-top: -5px;
}
	
.area-marker[data-label="eur"] .area-label {
  margin-left: 0px;
  margin-top: -3px;
}
	
.area-marker[data-label="korea"] .area-label {
  margin-left: 0px;
  margin-top: -37px;
}
	
.area-marker[data-label="china"] .area-label {
  margin-left: 0px;
  margin-top: -5px;
}

.area-marker[data-label="india"] .area-label {
  margin-left: 0px;
  margin-top: -5px;
}
	
.area-marker[data-area="canada"] .area-label {
  margin-left: 0px;
  margin-top: -6px;
}
	
.area-marker[data-area="usa"] .area-label {
  margin-left: 0px;
  margin-top: -6px;
}

	
/*ピンとラベルの調整-------------------------------------------------------------------*/	
.pin {
position: absolute;
width: 20px;
height: auto;
transform: translate(-50%, -100%) scale(1.0) !important;
z-index: 10;
opacity: 1;
transition: transform 0.2s ease;
}
	
	
.pin_label_wrapper {
  position: absolute;
  display: block;
  transform: translate(-30%, -100%);
  z-index: 10;
  text-align: left;
  pointer-events: auto;
  color: #222;
  font-size: 12px;
  font-weight: bold;
  font-family: sans-serif;
  text-decoration: none;
	min-width: 100px !important;
}

.pin_label {
  font-size: 12px;
  font-weight: 400 !important;
  color: #222;
  white-space: nowrap;
  text-shadow:
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff;
}
	
/* ピンだけを拡大（hover時） */
.pin_label_wrapper:hover .pin {
transform: translate(-50%, -100%) scale(1.0);
transition: transform 0.2s ease;
opacity: 1!important;
}


/* 地域名ラベルの半透明を無効に（hover時） */
a:hover .pin_label {
opacity: 1;
}
	
	
/*文字とボタンの修飾関連-------------------------------------------------------------------*/	

.contents.map h2{/*タイトル文字*/
margin: 0 auto;
color: rgba(0,31,77,0.88);	
border-left: none !important;
font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "游明朝", "MS PMincho", serif;
text-align: center;
/*margin-top: 0%;*/
font-size: 222%;
text-shadow:1px 1px 0 #fff,-1px 1px 0 #fff,1px -1px 0 #fff,-1px -1px 0 #fff;
position: absolute;
top: 0%;
font-weight: 600;
background: linear-gradient(to bottom, rgba(184,212,255,0.88), rgba(184,212,255,0.00));
border-radius: 2px;
padding: 1.5%;
line-height: 100%;
display: block;
width: 100%;
z-index: 99;
}
	
.mobile{/*タイトルの改行用・スマホ表示*/
display: none;
}
	
/*拡大縮小ボタン-------------------------------------------------------------------*/	
.zoom_buttons {/*拡大縮小ボタン*/
display: flex;
justify-content: flex-end;
align-items: center;
margin: 30px;
position: absolute;
z-index: 21;
right: 0 !important;
}
	
.zoom_buttons button {/*拡大縮小ボタン*/
margin: 0 0 0 10px;
padding: 6px 12px;
font-size: 14px;
cursor: pointer;
}
	
/*現地法人・代理店ボタン-------------------------------------------------------------------*/	
.btn_container{/*拡大縮小および現地法人・代理店ボタン*/
position: absolute;
bottom: 0;
display: flex;
flex-direction: row-reverse;
z-index: 20;
width: 100%;
overflow: hidden;
align-items: flex-end;
}

.btn_container ul.mapbtn{/*現地法人・代理店ボタン*/
display: block;
width: 180px;
padding: 15px 0 0 0;
margin: 0 25% 30px 0;
}

.btn_container ul.mapbtn li{/*現地法人・代理店ボタン*/
width: 180px;
list-style: none;
display: inline-block;
font-size: 100%;
text-align: center;
border-radius: 2px;
line-height: 100%;
margin-bottom: 10px;
}

.btn_container ul.mapbtn li:first-child{/*現地法人・代理店ボタン*/
margin-right: 25px;
background-color: #0d9f00;
}

.btn_container ul.mapbtn li:last-child{/*現地法人・代理店ボタン*/
margin-bottom: 0px;
background-color: #eb4f24;
}

.btn_container ul.mapbtn li a{/*現地法人・代理店ボタン*/
display: block;
calc(100% - 20px);
margin: 0;
padding: 8px 10px ;
color: #fff;
border: 1px solid rgba(255,255,255,0.88);
border-radius: 2px;
transition: background-color 0.3s ease;
will-change: transform;
backface-visibility: hidden;
}
	
.btn_container ul.mapbtn li:first-child a:hover{/*現地法人・代理店ボタン*/
text-decoration: none;
background-color: #0b8c00!important; /* 少し濃く */
}
	
.btn_container ul.mapbtn li:last-child a:hover{/*現地法人・代理店ボタン*/
text-decoration: none;
background-color: #d9441f!important; /* 少し濃く */
}
	
	
@media (max-width: 800px) {

.contents.map h2{/*タイトル文字*/
margin: 64px auto 0 auto !important;
font-size: 115%;
padding: 3.5%;
line-height: 125%;
}
	
.mobile{/*タイトルの改行用・スマホ表示*/
display: block;
}
	
/*拡大縮小および現地法人・代理店ボタン-------------------------------------------------------------------*/	
.btn_container{/*拡大縮小および現地法人・代理店ボタン*/
justify-content: center;
}
	
.zoom_buttons {/*拡大縮小ボタン*/
display: none;
}

.btn_container ul.mapbtn{/*現地法人・代理店ボタン*/
width: 100%;
margin: 15px;
display: flex;
justify-content: center;
}

.btn_container ul.mapbtn li{/*現地法人・代理店ボタン*/
width: 100px;
font-size: 80%;
line-height: 100%;
margin-right: 15px !important;
margin-left: 0!important;
}

.btn_container ul.mapbtn li:last-child{/*現地法人・代理店ボタン*/
margin-bottom: 10px;
margin-right: 0 !important;
}
	
/*スマホ用エリア表示追加-------------------------------------------------------------------*/
.zoom_wrapper,
  .zoom_area,
  .zoom_pin_wrapper,
  .pin_label_wrapper,
  .pin,
  .pin_label {
    display: none !important;
  }

  .mobile-area-selector {
    display: block;
    text-align: center;
    margin-top: 1em;
  }

  .area-list li {
    display: inline-block;
    margin: 0.5em;
    padding: 0.6em 1em;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
  }

.modal-overlay {
  display: none;
  position: fixed !important;
  top: 0; left:0;
  width: 100%; height: 100%;
  background: none; /* 黒背景なし */
  z-index: 1000000 !important;
  justify-content: center;
  align-items: center;
}
	


/* 白い吹き出し風のモーダル */
.modal-content {
  display: block;
  width: 64%;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0px;
  padding: 1.2em 1.2em 2.0em 1.2em;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  z-index: inherit;
}

/* 都市リスト */
.city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 100%;
  overflow-y: auto;
}

	
/* 都市リンク */
	
.city-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6em 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  text-align: left;
}

.city-list .arrow {
  flex-shrink: 0;
  font-weight: bold;
  color: #666;
  text-decoration: none !important; /* ← 下線防止 */
}
	

.city-list a {
  text-decoration:  none !important; /* ← 下線防止 */
  color: #333;
}
	
.city-list .linked .arrow{
color: #333 !important;
padding: 0 3px;
}
	
.city-list .no-link .arrow{
	color: rgba(0,0,0,0.44);
}

span.nolink{
color: rgba(0,0,0,0.44);
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #222;
}
	

	
/* スクロールバー：必要なときだけ出現（Webkit系ブラウザ） */
.city-list::-webkit-scrollbar {
  width: 8px;
}
.city-list::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}
.city-list::-webkit-scrollbar-track {
  background: transparent;
}

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
	
  .mobile-only {
    display: block;
  }
	

	
	
}/*←スマホ用調整ここまで（閉じカッコを消さない）*/
	
	
	
/*地図のタイトル文字サイズと改行位置調整-------------------------------------------------------------------*/	
@media (max-width: 1292px) {

/*.mobile{タイトル文字改行位置調整
display: block;
}*/
.contents.map h2{/*タイトル文字サイズ調整*/
font-size: 150%;
line-height: 135%;
}
}
	
/*各ピンの表示位置ずれ調整（代表的なブレイクポイントごと）-------------------------------------------------------------------*/	
/* スマートフォン～800px */
@media (max-width: 800px) {
.pin_label_wrapper {/*スマホ表示ずれ調整*/
transform: translate(-5%, -10%) !important;
}	
.pin {
width: 12px;
}
	
}
	
/* タブレット縦：801px〜1024px */
@media (min-width: 801px) and (max-width: 1024px) {
  .pin_label_wrapper {
    transform: translate(-20%, -85%);
  }	
.pin {
width: 14px;
}
}

/* タブレット横・ノートPC：1025px〜1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
  .pin_label_wrapper {
    transform: translate(-16%, -75%);
  }
.pin {
width: 16px;
}
}

/* ノートPC〜デスクトップ：1281px〜1440px */
@media (min-width: 1281px) and (max-width: 1440px) {
  .pin_label_wrapper {
    transform: translate(-19%, -50%);
  }	
.pin {
width: 18px;
}
}

/* フルHD以上：1441px〜 */
@media (min-width: 1441px) {
  .pin_label_wrapper {
    transform: translate(-30%, -100%);
  }	
.pin {
width: 20px;
}
}

/* 特殊なスマホ・タブレット対策として幅を持たせる設定 */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
  .pin_label_wrapper {
    transform: translate(-10%, -25%) !important;
  }
}
	
/* 横向き・かつ幅が1024px以下のときだけ高さをautoにする */
@media screen and (max-width: 1024px) and (orientation: landscape) {
  .contents.map {
    height: auto !important;
  }

}
	
/*モバイル端末で横向きの際、強制的に簡略版を表示*/	
	
body.force-mobile-mode .contents.map .zoom_area {
  display: none !important;
}
body.force-mobile-mode .contents.map .zoom_pin_wrapper {
  display: none !important;
}
body.force-mobile-mode .contents.map .pin_label_wrapper {
  display: none !important;
}
body.force-mobile-mode .contents.map .pin {
  display: none !important;
}
body.force-mobile-mode .contents.map .pin_label {
  display: none !important;
}
body.force-mobile-mode .mobile-only {
  display: block !important;
}
	
body.force-mobile-mode .area-marker {
  display: block !important;
  pointer-events: auto !important;
  opacity: 1 !important; /* 念のため */
  visibility: visible !important;
}
	
	
body.force-mobile-mode .modal-content {
  display: block !important;
  width: 64vw;              /* お好みで */
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.95);
  border-radius: 0;
  padding: 1.2em 1.2em 2em;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  z-index: 1000002 !important;  /* 念のため overlay より前に */
  position: relative;
  z-index: 100001 !important;
  pointer-events: auto !important;
}
	
	
/* オーバーレイ全体を最前面に */
body.force-mobile-mode #areaModal.active {
  display: flex !important;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5) !important;
  z-index: 100000 !important;
  pointer-events: auto !important;
}

	

	



/*モバイル端末で横向きの際、拡大縮小および現地法人・代理店ボタン-------------------------------------------------------------------*/	
body.force-mobile-mode .btn_container{/*拡大縮小および現地法人・代理店ボタン*/
justify-content: center;
}
	
body.force-mobile-mode .zoom_buttons {/*拡大縮小ボタン*/
display: none;
}

body.force-mobile-mode .btn_container ul.mapbtn{/*現地法人・代理店ボタン*/
width: 100%;
margin: 15px;
display: flex;
justify-content: center;
}

body.force-mobile-mode .btn_container ul.mapbtn li{/*現地法人・代理店ボタン*/
width: 100px;
font-size: 80%;
line-height: 100%;
margin-right: 15px !important;
margin-left: 0!important;
}

body.force-mobile-mode .btn_container ul.mapbtn li:last-child{/*現地法人・代理店ボタン*/
margin-bottom: 10px;
margin-right: 0 !important;
}
	
/* 横向き・縦向きスマホ（force-mobile-mode）時に、
   地図はドラッグ不可（pointer-events:none）を維持しつつ
   縦スクロール＋ピンチズームは許可 */
body.force-mobile-mode #map-wrapper,
body.force-mobile-mode #map-container {
  /* 縦方向スクロールとピンチズームのみ許可 */
  touch-action: pan-y pinch-zoom !important;
  /* 地図背景や画像エリアをクリック不可に */
  pointer-events: none !important;
}
	
	
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* どんな画面サイズ／向きでも、overlay に .active が付いたら必ず中身を出す */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/

#areaModal .modal-content {
  /* 初期は隠す */
  display: none !important;
}

/* overlay に active が付くと中身を表示 */
#areaModal.active .modal-content {
  display: block !important;
}

/* overlay 自体も、active なら必ず表示 */
#areaModal {
  display: none !important;
}
#areaModal.active {
  display: flex !important;
}

/* 中身の上に確実に乗るように */
#areaModal .modal-content {
  z-index: 1000001 !important;
}
	
/* ────────────────────────────────────────────── */
/* force-mobile-mode 時（＝横向きスマホ）だけ閉じるボタンを必ず表示 */
/* ────────────────────────────────────────────── */
body.force-mobile-mode .close-btn {
  display: block !important;
  z-index: 1000002;       /* overlay より前面に */
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #222;
  }
	
/* 都市リンク */
	
body.force-mobile-mode .city-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6em 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  text-align: left;
}

body.force-mobile-mode .city-list .arrow {
  flex-shrink: 0;
  font-weight: bold;
  color: #666;
  text-decoration: none !important; /* ← 下線防止 */
}
	

body.force-mobile-mode .city-list a {
  text-decoration:  none !important; /* ← 下線防止 */
  color: #333;
}
	
body.force-mobile-mode .city-list .linked .arrow{
color: #333 !important;
padding: 0 3px;
}
	
body.force-mobile-mode .city-list .no-link .arrow{
	color: rgba(0,0,0,0.44);
}

body.force-mobile-mode span.nolink{
color: rgba(0,0,0,0.44);
}


