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;
  position: relative !important;
  overflow: visible;
}

.map_image {
display: block;
width: 100%;
height: auto;
object-fit: contain;
}
	
/*モバイル表示用エリア名*/
	

	
.area-marker {
  position: absolute;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 1000001 !important;
  pointer-events: auto !important;
}
	
.area-marker img {
  pointer-events: auto !important;
}

.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;
}


/*一部拡大地域-------------------------------------------------------------------*/	
.zoom_wrapper {
  position: absolute;
  top: 56.5%;
  left: 29.0%;
  width: 7.5%;
  height: 13.0%;
  z-index: 11;
}
	
.highlight_box {
position: absolute;
width: 100%;
height: 100%;
border: 2px solid red;
z-index: 1 ;
pointer-events: auto;
cursor: pointer;
}
	
/* hover時のオーバーレイは::beforeで表示（背景だけ） */
.highlight_box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  transition: background-color 0.2s ease;
  z-index: -1;
}
	
.highlight_box:hover {
background-color: rgba(0, 0, 0, 0.1);  ごく薄い黒のオーバーレイ */
transition: all 0.2s ease;
transition: 0.3s;
}
	

/* 拡大表示用のコンテナ */

.zoom_area {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 27vw;
  aspect-ratio: 474 / 396;
  transform: translate(-50%, -50%);
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 100;
  overflow: hidden;
  border-radius: 2px;
}
	
/* 表示中の状態をクラスで制御 */
.zoom_area.active {
/*  transform: scale(3.0);*/
  opacity: 1;
  pointer-events: auto;
/*  border: 1px solid red;*/
}

	

/* 閉じるボタン */
/*.zoom_close {
position: absolute;
top: 15px;
right: 15px;
font-size: 24px;
background: #fff;
border: 1px solid #fff;
border-radius: 50%;
width: 30px;
height: 30px;
line-height: 0 !important;
cursor: pointer;
z-index: 20;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}*/
	
.zoom_close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
  padding: 0;
}

.zoom_close img {
  width: 24px;
  height: 24px;
  display: block;
}


/* 拡大表示される地図 */
.zoom_map {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
object-fit: cover; /* 比率崩さずフィット */
}


/* 拡大表示されるピン関連 */
.zoom_pin_wrapper {
  position: absolute;
  display: flex; /* ← block → flex に */
  align-items: center;
  justify-content: flex-start;
  transform: translate(-30%, -100%);
  z-index: 100 !important;
  text-align: left;
  pointer-events: auto;
  color: #222;
  font-size: 12px;
  font-weight: bold;
  font-family: sans-serif;
  text-decoration: none !important;
  padding: 0;
  margin: 0;
  min-width: auto;  /* ← これで広がりを防止 */
  min-height: auto;
  background: transparent;
}
	
.zoom_area:not(.active) .zoom_pin_wrapper {
  pointer-events: none;
}

.zoom_pin {
width: 30px;
height: 30px;
background: url('../img_mb/map_pin_gr.png') no-repeat center center;
background-size: contain;
display: inline-block;
}

.zoom_pin_wrapper:hover .zoom_pin {
transform: scale(1.3);
transition: transform 0.2s ease;
opacity: 1.0;
}
		
	
.zoom_pin_wrapper:hover .zoom_label {
  text-decoration: underline; /* ラベルにだけ下線 */
}

.zoom_label {
  font-size: 13px;
  font-weight: 400;
  color: #222;
  white-space: nowrap;
  display: inline-block;
  margin: 0 0 0 4px; /* ← margin-left の代わりにここで調整 */
  z-index: 101 !important;
  will-change: transform;
}

.zoom_pin_wrapper[data-label="Johor Bahru"] .zoom_label {
  margin-left: -105px;
  margin-top: 17px;
}

.zoom_pin_wrapper[data-label="Singapore"] .zoom_label {
  margin-left: 0px;
  margin-top: 0px;
}

.zoom_pin_wrapper[data-label="Jakarta"] .zoom_label {
  margin-left: 0px;
  margin-top: 0px;
}
	
.zoom_pin_wrapper[data-label="Kuala Lumpur"] .zoom_label {
  margin-left: 0px;
  margin-top: 17px;
}

.zoom_pin_wrapper[data-label="Port Kelang"] .zoom_label {
  margin-left: -100px;
  margin-top: 17px;
}
.zoom_pin_wrapper[data-label="Batam"] .zoom_label {
  margin-left: -5px;
  margin-top: 17px;
}
	
.zoom_pin_wrapper[data-label="Ho Chi Minh"] .zoom_label {
  margin-left: -5px;
  margin-top: 17px;
}

/* .zoom_area が非表示中は hover を無効に */
.zoom_area:not(.active) .zoom_pin_wrapper:hover .zoom_pin,
.zoom_area:not(.active) .zoom_pin_wrapper:hover .zoom_label,
.zoom_area:not(.active) .zoom_pin_wrapper:hover {
  pointer-events: none;
  background-color: transparent !important;
  text-decoration: none !important;
  transform: none !important;
}

	
/*ピンとラベルの調整-------------------------------------------------------------------*/	
.pin {
position: absolute;
width: 24px;
height: auto;
transform: translate(-50%, -100%) ;
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;
  color: #222;
  white-space: nowrap;
  text-shadow:
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff;
will-change: transform;
}
	
/* ピンだけを拡大（hover時） */
.pin_label_wrapper:hover .pin {
transform: translate(-50%, -100%) scale(1.3);
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;  /*黒背景なし */
/*background-color: rgba(0,0,0,0.5);テスト*/
z-index: 999999 !important;
justify-content: center;
align-items: center;
}
	

	
.modal-overlay.active {
display: flex !important;
opacity: 1 !important;
visibility: visible !important;
}
	
/*#areaModal {
  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;
}*/
	
#areaModal {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 999999;
}

#areaModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 白い吹き出し風のモーダル */
.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 !important;
}


/* 都市リスト */
.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;
}
.zoom_wrapper, .highlight_box {
	display: none !important;
}

	
}
	
/* タブレット縦：801px〜1024px */
@media (min-width: 801px) and (max-width: 1024px) {
  .pin_label_wrapper {
    transform: translate(-20%, -85%);
  }	
.pin {
width: 14px;
}
.zoom_wrapper, .highlight_box {/*東南アジア拡大エリアをモバイル端末で非表示*/
	display: none !important;
}
}

/* タブレット横・ノートPC：1025px〜1280px */
@media (min-width: 1025px) and (max-width: 1280px) {
  .pin_label_wrapper {
    transform: translate(-16%, -75%);
  }
.pin {
width: 16px;
}
.zoom_wrapper, .highlight_box {/*東南アジア拡大エリアをモバイル端末で非表示*/
	display: none !important;
}
}

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

	
.pin {
width: 18px;
}
.zoom_pin_wrapper {/*東南アジア拡大エリアのピン位置調整*/
transform: translate(-25%, -80%);
}
}

/* フル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;
  }
.zoom_wrapper, .highlight_box {/*東南アジア拡大エリアをモバイル端末で非表示*/
	display: none !important;
}
}
	
/* 横向き・かつ幅が1024px以下のときだけ高さをautoにする */
@media screen and (max-width: 1024px) and (orientation: landscape) {
  .contents.map {
    height: auto !important;
  }
  .modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
	
}
/* PC表示のとき（801px以上）にバツ印を非表示にする */
@media screen and (min-width: 801px) {
  .close-btn {
    display: none !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 .map_container {
  pointer-events: none;
  touch-action: none;
}
	

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;
}
	
body.force-mobile-mode #map-wrapper,
body.force-mobile-mode #map-container {
  touch-action: pan-y; /* 縦方向のスクロールのみ許可 */
}
	
	
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/* どんな画面サイズ／向きでも、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);
}

