@charset "utf-8";

:root {
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Androidアプリはネイティブ側でシステム下端領域を確保している。 */
body.os_android {
    --safe-area-bottom: 0px;
}

/*===== 基本 =====*/
html,body{
    margin: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
	overflow-anchor: none;
}

body{
	background-color: #FFFFFF;
	color: #000000;
	font-family:  'Noto Sans JP', sans-serif;
	overflow: hidden;
	/* スマホ長押し禁止 */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer */
	-khtml-user-select: none; /* KHTML browsers (e.g. Konqueror) */
	-webkit-user-select: none; /* Chrome, Safari, and Opera */
	-webkit-touch-callout: none; /* Disable Android and iOS callouts*/
}

:root {
	/* ボトムシートの高さ */
    --bottom_sheet_top_offset: 0px;
    --index_frame_top_offset: 0px;
    --index_frame_bottom_offset: 0px;
}

/*===== タグ共通 =====*/

a {
	display: contents;
}

a:hover {
	text-decoration: none;
}

img {
	vertical-align: middle;
}

/*===== オーバーレイ =====*/
#versionError {
	display: none;
	z-index: 2147483647;
    position: absolute;
    width: 100%;
    height: 100vh;
	top: 0px;
	background-color: rgba(0, 0, 0, 0.8);
	color:#fff;
	text-align: center;
}

#versionErrorText {
    text-align: center;
    margin-top: 260px;
}

#mask {
    display: none;
    position: absolute;
    z-index: 999;
    top: 0px;
    width: 100vw;
    height: 100vh;
    background-color: #FFF;
    opacity: 0;
}

#whitemask {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    top: 0px;
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
}

#whitemask img.loading {
    animation: loading_rotation 1s linear infinite;
    transform-origin: center;
    will-change: transform;
}

#loading {
    display: none;
    position: absolute;
    text-align: center;
    align-content: center;
    z-index: 999;
    top: 0px;
    width: 100vw;
    height: 100vh;
}

#loading img.loading {
    animation: loading_rotation 1s linear infinite;
    transform-origin: center;
    will-change: transform;
}

@keyframes loading_rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*===== 地図 =====*/
.mode_app_sp #mapView {
    height: 100%;
    width: 100vw;
}

.mode_web #mapView {
    height: 100vh;
    width: 100vw;
}

/* コンパス */
.mode_app_sp img.compass {
	position: absolute;
    z-index: 100;
	top: 156px;
	right: 16px;
	background-color: #FFFFFF;
	width: 48px;
	height: 48px;
	border-radius: 24px;
	object-fit: none;
}

.mode_web img.compass {
    z-index: 100;
	margin-bottom: 8px;
	margin-left: auto;
	background-color: #FFFFFF;
	width: 48px;
	height: 48px;
	border-radius: 24px;
	object-fit: none;
}

/* SP版アプリ広告の表示中は、広告の高さ分だけコンパスを下げる */
.mode_sp .sp_app_open:not(.hidden_important) ~ img.compass {
	top: calc(156px + 62px);
}

/*===== マップ上ボタン =====*/
.mode_app_sp .map_btns_area {
	position: fixed;
	z-index: 100;
	display: flex;
	flex-direction: column;
	right: 16px;
	bottom: calc(var(--bottom_sheet_top_offset) + 16px); /* ボトムシートから16pxの位置 */
}

.mode_web .map_btns_area{
	position: fixed;
	z-index: 100;
	display: flex;
	flex-direction: column;
	right: 16px;
	bottom: 16px;
}

img.setting_btn {
	width: 48px;
	height: 48px;
	border-radius: 24px;
	object-fit: none;
	background-color: #FFFFFF;
}

/* 3Dボタン */
img.tx3d_btn {
	display: block;
	margin-bottom: 16px;
}

.mode_sp img.tx3d_btn {
	display: none !important;
}

/* 2Dボタン */
img.map_2d_btn {
	display: none;
	z-index: 201;
    position: absolute;
    bottom: 140px;
    right: 5px;
}

/* 現在地ボタン */
img.map_navi_btn {
	display: block;
}

.mode_sp img.map_navi_btn {
	display: none !important;
}

/* ズームボタン */
.mode_app_sp .zoom {
	display: none;
}

.mode_web .zoom {
	display: flex;
	flex-direction: column;
	border-radius: 24px;
	border: 1px solid #E5E5E5;
	background-color: #FFFFFF;
	width: 48px;
	margin-bottom: 8px;
    margin-left: auto;

}

.zoom .zoom_up,
.zoom .zoom_down{
	height: 48px;
	width: 48px;
	object-fit: none;
	cursor: pointer;
}

.zoom .zoom_up{
	border-bottom: 1px solid #E5E5E5;
}

/*===== 階数選択ボタン =====*/
.mode_app_sp .hierarchy_area{
	position: absolute;
	left: 16px;
	bottom: calc(var(--bottom_sheet_top_offset) + 16px); /* ボトムシートから16pxの位置 */
	z-index: 100;
}

.hierarchy_area .hierarchy_btn{
	display: flex;
    align-items: center;
    justify-content: center;
	min-width: 48px;
	height: 32px;
	font-weight: bold;
	color: #333333;
	background-color: #FFFFFF;
	border-radius: 16px;
}

.hierarchy_area .hierarchy_list{
	list-style: none;
	background-color: #FFFFFF;
	border-radius: 16px;
	padding: 0px;
	margin: 0px;
	max-height: 320px;
	display: none;
	overflow-y: auto;

	/* スクロールバー非表示 */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE・Edge(旧) */
}

.hierarchy_area .hierarchy_list::-webkit-scrollbar {
    display: none;              /* Chrome・Edge・Safari */
}

.hierarchy_area .hierarchy_list li{
	display: flex;
	align-items: center;
	padding: 0px 12px 0px 12px;
    height: 32px;
}

.hierarchy_area .current_location_container {
	height: 16px;
	width: 16px;
	margin-right: 4px;
}

.hierarchy_area .hierarchy_list .selected{
	background-color: #E7F2F3;
}

.hierarchy_area .hierarchy_list .selected .label_regular_small {
	color: #197982;
	font-weight: 700 !important;
}

/*
 * ボトムシートが画面の50%表示の場合、フロアナビゲーターと現在地ボタンは表示する。
 * 3D・2D切り替えとズームボタンは非表示にする。
 */
.bottom_sheet_state_middle .mode_app_sp img.tx3d_btn,
.bottom_sheet_state_middle .mode_app_sp img.map_2d_btn,
.bottom_sheet_state_middle .mode_app_sp .zoom {
    display: none !important;
}

.bottom_sheet_state_middle .mode_app_sp .map_btns_area {
    display: flex;
}

.bottom_sheet_state_middle .mode_app_sp img.map_navi_btn {
    display: block;
}

/* ボトムシートが画面の50%を超える場合、ボタンをすべて非表示 */
.bottom_sheet_over_half .mode_app_sp .map_btns_area,
.bottom_sheet_over_half .mode_app_sp .hierarchy_area {
    display: none;
}

/* ===== マップ上で指定モード ===== */
body.specify-on-map-open .mode_app_sp #top_header {
    display: none !important;
}

/* ボトムシートが残っていると bottom 計算がずれる場合 */
body.specify-on-map-open .mode_app_sp #bottomSheetHost .bottomSheet {
    display: none !important;
}

/* コンパス: 156px は「検索ヘッダー高」前提 → 上端ヘッダー118px+margin:16pxに変更 */
body.specify-on-map-open .mode_app_sp img.compass {
    top: calc(118px + env(safe-area-inset-top, 0px) + 16px);
}

body.specify-on-map-open.mode_sp .sp_app_open:not(.hidden_important) ~ img.compass {
    top: calc(56px + env(safe-area-inset-top, 0px) + 16px + 62px);
}

/* 階数・現在地: CTA の上へ */
body.specify-on-map-open .mode_app_sp .hierarchy_area,
body.specify-on-map-open .mode_app_sp .map_btns_area {
    bottom: calc(
        var(--bottom_sheet_top_offset)
        + var(--specify-on-map-footer-reserve, 72px)
        + 16px
    );
}

/* Figma に 3D が無いなら非表示 */
body.specify-on-map-open .mode_app_sp img.tx3d_btn,
body.specify-on-map-open .mode_app_sp img.map_2d_btn {
    display: none !important;
}

/*===== ヘッダー =====*/
/*===== SP版ステーションナビアプリ広告 =====*/
.sp_app_open {
	display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    padding: 0 16px 0 16px;
    background: #E7F2F3;
    box-sizing: border-box;
}

.mode_app .sp_app_open{
	display: none !important;
}

.sp_app_open.hidden_important{
	display: none !important;
}

.sp_app_open .left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp_app_open .app {
    width: 38px;
    height: 38px;
}

.sp_app_open .title,
.sp_app_open .description {
	display: block;
	overflow: hidden;
	white-space: nowrap;
}

.sp_app_open .right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 16px;
}

.sp_app_open .open {
	display: flex;
    align-items: center;
    justify-content: center;
	height: 32px;
    width: 56px;
	background-color: #197982;
	border-radius: 16px;
	color: #FFFFFF;
	cursor: pointer;
}

.sp_app_open .close {
    width: 24px;
    height: 24px;
    margin-left: 16px;
    cursor: pointer;
}

/*===== WEB版ステーションナビアプリ広告 =====*/
.web_app_open{
	display: none;
}

.mode_web .web_app_open {
	display: block !important;
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 100;
	width: 360px;
	padding: 24px 24px 16px 24px;
	background-color:#197982;
    border: 1px solid #9FC9CD;
    border-radius: 8px;
}

/* 840px以下では非表示 */
@media (max-width: 840px) {
    .mode_web .web_app_open {
        display: none !important;
    }
}

.web_app_open img.web_app_open_close {
	position: absolute;
	right: 24px;
	height: 32px;
    width: 32px;
    object-fit: none;
    cursor: pointer;
}

.web_app_open .title_container {
	display: flex;
    align-items: center;
    gap: 8px;
}

.web_app_open .title_container .title {
	color: #FFFFFF;
}

.web_app_open .app_guidance {
	display: none;
}

.web_app_open .app_guidance .description {
	display: block;
	margin: 16px 0px 8px 0px;
	color: #FFFFFF;
	line-height: 150%;
}

.web_app_open .detail {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 16px;
	gap: 16px;
	height: 156px;
	background: #E7F2F3;
	border-radius: 4px;
}

.web_app_open .store_container{
	display: grid;
	grid-template-rows: 80px 38px;
	row-gap: 8px;
	justify-items: center;
	align-items: center;
	width: 124px;
}

.web_app_open .store_container .qr_code,
.web_app_open .store_container .apple_store,
.web_app_open .store_container .google_play {
	object-fit: none;
}

.web_app_open .opener {
    margin-top: 8px;
    height: 24px;
    width: 100%;
    object-fit: none;
	cursor: pointer;
}

.web_app_open .opener.close {
    display: none;
}

/*===== サイドコントローラー =====*/
.side_controller {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
	display: flex;
	flex-direction: column;
	height: 100%;
	/* side_large_viewの幅378px＋左右padding 32pxに合わせる */
	width: 410px;

    transform: translate3d(0, 0, 0);
    transition: transform 300ms ease-in-out;
    will-change: transform;
}

/* 通常は非表示 */
.mode_web .side_controller > .side_view_opener {
    display: none;
    z-index: 20;
    padding: 0;
    border: 0;
    appearance: none;
}

/* 対象画面の表示中だけ有効にする */
.mode_web .side_controller.side_controller--collapsible > .side_view_opener {
    display: flex;
}

/* WEB版：サイド領域の空白部分は地図へ操作を通す */
.mode_web .side_controller {
    pointer-events: none;
}

/* 表示中のカードと開閉ボタンは操作可能にする */
.mode_web .side_controller > * {
    pointer-events: auto;
}

/* 収納中のカードは操作不可にする */
.mode_web .side_controller.slide_out > * {
    pointer-events: none;
}

/* 収納中も再表示ボタンは操作可能にする */
.mode_web .side_controller.slide_out > .side_view_opener {
    pointer-events: auto;
}

.side_controller.slide_out {
    /* サイドビュー本体を画面左側へ収納する。 */
    transform: translate3d(-100%, 0, 0);

    /* 収納中のビュー内にあるリンクやボタンを操作できないようにする */
    pointer-events: none;
}

/* 幅360px＋左余白16pxのスモールサイドだけを画面外へ収納する */
.side_controller.side_controller--collapsible-small.slide_out {
    transform: translate3d(-376px, 0, 0);
}

.side_controller.slide_out .side_view_opener {
    /* 親を操作不可にした状態でも、再表示用の取っ手だけはクリック可能にする */
    pointer-events: auto;
}

/* 縦全体のサイドビュー */
.side_large_view {
	position: absolute;
	top: 0px;
	height: 100%;
	width: 378px;
	padding: 8px 16px 8px 16px;
	background-color:#FFFFFF;
}

/*ヘッダー下のサイドビュー */
.side_small_view {
	position: relative;
	flex: 0 1 auto;
	min-height: 0;
	box-sizing: border-box;
	width: 360px;
	margin-left: 16px;
	margin-bottom: 16px;
	padding: 8px 16px 8px 16px;
	overflow-y: auto;
	overflow-x: hidden;
	background-color:#FFFFFF;
	border-radius: 8px;
}

/* サイドビュー開閉用の取っ手 */
.side_view_opener {
	position: absolute;
    /* 取っ手を、それぞれが属するサイドビューの上下中央に配置する */
    top: var(--side-view-opener-top, 50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 42px;
    background-color: #FFFFFF;
    border-radius: 0 8px 8px 0;
    /* 取っ手自身の高さの半分だけ戻し、正確に中央へ合わせる */
    transform: translateY(-50%);
    cursor: pointer;
}

/* 縦全体のサイドビュー（表示幅410px）の右端に配置する */
.side_controller.side_controller--collapsible-full > .side_view_opener {
    top: 50%;
    left: 410px;
    right: auto;
}

/* スモールサイド（左余白16px＋表示幅360px）の右端に配置する */
.side_controller.side_controller--collapsible-small > .side_view_opener {
    left: 376px;
    right: auto;
}

.side_view_opener img {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
}

/* サイドビュー展開中は、左向き（収納）のアイコンを表示する */
.side_view_opener .drop_menu_left {
    display: block;
}

.side_view_opener .drop_menu_right {
    display: none;
}

/* サイドビュー収納中は、右向き（再表示）のアイコンへ切り替える */
.side_controller.slide_out .side_view_opener .drop_menu_left {
    display: none;
}

.side_controller.slide_out .side_view_opener .drop_menu_right {
    display: block;
}

/*===== ヘッダーコンテンツ =====*/
.mode_app_sp .header_contents {
    position: relative;
    width: calc(100% - 32px);
	padding: 8px 16px 0px 16px;
	background-color:#FFFFFF;
}

/*
 * header_contentsにz-indexを指定すると、子要素のstation_selectorも同じ
 * スタッキングコンテキストに閉じ込められるため、影だけを前面に描画する。
 */
.mode_app_sp .header_contents.elevation1 {
	box-shadow: none;
}

.mode_app_sp .header_contents.elevation1::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
}

.mode_web .header_contents {
    flex-shrink: 0;
    top: 16px;
    left: 16px;
    box-sizing: border-box;
    width: 360px;
	margin: 16px;
	padding: 8px 16px 0px 16px;
	background-color:#FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
}

.header_contents .base_header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header_contents .selected_station {
	display: inline-flex;
	transform: translateY(1px); /* 中央に見えるように1px下にずらす */
}

/* ルート画面から検索を開いたときは駅名を画面タイトルとして使用する。 */
.header_contents.search-route-mode .base_header .opener,
.header_contents.search-route-mode .base_header .info,
.header_contents.search-route-mode .base_header .setting {
	display: none !important;
}

.header_contents.search-route-mode .selected_station {
	font-weight: 600;
}

/* ルート検索中は通常の駅選択リストを重ねて表示しない。 */
.header_contents.search-route-mode .station_selector {
	display: none !important;
}

.header_contents .base_header .opener {
	height: 32px;
	width: 32px;
	object-fit: none;
	cursor: pointer;
}

.header_contents .base_header .opener.close {
	display: none;
}

.header_contents .base_header .info {
	display: none;
	height: 32px;
	width: 32px;
	object-fit: none;
	cursor: pointer;
}

.mode_sp .header_contents .base_header .info,
.mode_web .header_contents .base_header .info {
	display: inline-block !important;
}

/* SP/WEB向けのinfo表示指定より、ルート検索タイトルを優先する。 */
.header_contents.search-route-mode .base_header .info {
	display: none !important;
}

.header_contents .base_header .setting {
	margin-left: 8px;
	height: 32px;
	width: 32px;
	object-fit: none;
	cursor: pointer;
}

/* 駅選択 */
.header_contents .station_selector {
	display: none;
	top: 55px;
	left: 25px;
	position: absolute;
	z-index: 999;
	background-color: #FFFFFF;
	border-radius: 8px;
	max-height: 500px;
    overflow-y: auto;
}

.header_contents .station_selector .area {
	background-color: #F2F2F2;
	padding: 8px 16px 8px 16px;
}

.header_contents .station_selector .station {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: 44px;
	padding: 0 24px 0 8px;
	line-height: 20px;
	white-space: nowrap;
	cursor: pointer;
}

.header_contents .station_selector .station.selected {
	color: #197982;
	font-weight: 700;
}

.header_contents .station_selector .station .check_container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-right: 8px;
}

.header_contents .station_selector .station .link {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-left: 8px;
}

.header_contents .station_selector .station .check_container img {
	display: block;
	width: 20px;
	height: 20px;
}

/* 検索 */
.header_contents .search_container {
    display: flex;
    align-items: center;
	margin: 8px 0px;
    gap: 8px;
	border: 1px solid #CCCCCC;
    border-radius: 4px;
    height: 48px;
}

.header_contents .search_header .search {
	margin-left: 8px;
	height: 24px;
	width: 24px;
	cursor: pointer;
}

.header_contents .search_header #search_text {
    flex: 1;
    min-width: 0;
	border: none;
	cursor: pointer;
}

.header_contents .search_header .category {
	display: flex;
	height: 48px;
	width: 48px;
	border-left: 1px solid #CCCCCC;
    align-items: center;
    justify-content: center;
	object-fit: none;
	cursor: pointer;
}

.header_contents .search_header .search_close {
	display: none;
	height: 48px;
	width: 48px;
    align-items: center;
    justify-content: center;
	object-fit: none;
	cursor: pointer;
}

.header_contents .menu_scroll {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;

	/* スクロールバーを非表示 */
	scrollbar-width: none;
	-ms-overflow-style: none;

	/* スマホで滑らかにスクロール */
	-webkit-overflow-scrolling: touch;
}

.header_contents .menu_scroll::-webkit-scrollbar {
	display: none;
}

.header_contents .menu_list {
	display: flex;
	width: max-content;
	height: 37px;
	margin: 0px;
    padding: 0px;
	list-style: none;
	gap: 16px;
}

.header_contents .menu_item {
	line-height: 30px;
	cursor: pointer;
}

.header_contents .menu_item.selected {
	color: #197982;
	font-weight: 700;
	border-bottom: 2px solid #2B868E;
}

/* 検索中 */
.header_contents.searching_keyword .category,
.header_contents.searching_menu_list .category {
	display: none;
}

.header_contents.searching_keyword {
	padding: 8px 16px 8px 16px !important;
}

.header_contents.searching_keyword .search_close,
.header_contents.searching_menu_list .search_close {
	display: flex;
}

.header_contents.searching_keyword .menu_scroll {
	display: none;
}

/*===== ポップアップ =====*/
#popup {
	display: none;
	position: absolute;
	z-index: 2147483647;
    width: 100%;
    height: 100%;
	align-content: center;
    justify-items: center;
}

#popup .image {
	display: block;
	margin-bottom: 16px;
	cursor: pointer;
}

#popup .check_container {
	display: flex;
    align-items: center;
    gap: 4px;
	margin-bottom: 16px;
}

#popup .checkbox_off,
#popup .checkbox_on {
	cursor: pointer;
}

#popup span {
	color: #FFFFFF;
}

#popup .close {
	width: 40px;
	height: 40px;
	border-radius: 20px;
	background-color: #F2F2F2;
	text-align: center;
    align-content: center;
	cursor: pointer;
}

#popup .close_icon {
	width: 24px;
	height: 24px;
}

#popup .checkbox_on {
	display: none;
}

/*===== 3D =====*/
#index_frame {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 200;
	width: 100%;
	height: 100%;
	border: 0;
}

.mode_app_sp ~ #index_frame {
	top: var(--index_frame_top_offset);
	bottom: var(--index_frame_bottom_offset);
	height: calc(100vh - var(--index_frame_top_offset) - var(--index_frame_bottom_offset));
	height: calc(100dvh - var(--index_frame_top_offset) - var(--index_frame_bottom_offset));
}

/*===== テストモード =====*/
#test_area {
    position:absolute;
    z-index:15;
    top:190px;
    left:10px;
    background-color:#FFF;
    font-size:11px;
    display:none;
}

#test_area.open_left {
    position: fixed;
    right: 20px;
    left: auto;
}

#test_area .tab{
    border: 1px solid #000;
    text-align: center;
    vertical-align: middle;
    writing-mode: vertical-rl;
    height: 60px;
}

#test_area .tab.active{
    background-color: #222;
    color: #fff;
}

#test_area .zoom_level_tab {
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

#test_area .panel{
    display: none;
    height: 300px;
    width: 300px;
    overflow-y: auto;
    border: 1px solid #000;
}

#test_area .panel.active{
    display: block;
}

/* ===== メッセージボックス（メッセージダイアログ / 確認ダイアログ） ===== */
#messageBoxOverlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

#messageBoxOverlay.is_open {
    display: flex;
}

.message_box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 300px;
    max-width: 300px;
    max-height: 560px;
    margin: 0 24px;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

/* WEB版 */
.mode_web .message_box {
    width: 400px;
    max-width: calc(100% - 48px);
}

.message_box_content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.message_box_title {
    color: #000000;
    text-align: left;
    word-break: break-word;
}

.message_box_body {
    margin-top: 8px;
    color: #333333;
    text-align: left;
    word-break: break-word;
}

.message_box_title:empty,
.message_box_body:empty {
    display: none;
}

.message_box_actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.message_box_btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.message_box_btn_ok {
    padding: 8px 4px;
    border: none;
}

.message_box_btn_cancel {
    display: none;
    height: 48px;
    padding: 8px 12px;
    color: #333333;
}

.message_box.is_confirm .message_box_btn_cancel {
    display: block;
}

/* ===== 通知メッセージ（トースト） ===== */
#toastOverlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#toastOverlay.is_open {
    display: block;
}

.toast_message {
    box-sizing: border-box;
    position: absolute;
    left: 16px;
    right: 16px;
    /* ホームインジケータ（safe-area）の上に16px空けて配置 */
    bottom: calc(16px + var(--safe-area-bottom));
    width: auto;
    padding: 12px;
    border-radius: 8px;
    word-break: break-word;
}

/* WEB版: ヘッダーと同幅・同左位置、ヘッダー下部から16px */
.mode_web .toast_message {
    left: 16px;
    right: auto;
    top: 177px;
    bottom: auto;
    width: 360px;
    max-width: 360px;
}

/* ===== マイスポット登録ダイアログ ===== */
#myspotDialogOverlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

#myspotDialogOverlay.is_open {
    display: flex;
}

.myspot_dialog {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    max-height: min(560px, 100%);
    height: auto;
    margin: 0;
    padding: 24px;
    border-radius: 12px;
    background-color: #FFFFFF;
}

.mode_web .myspot_dialog {
    max-width: 400px;
}

.myspot_dialog_content {
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.myspot_dialog.is_scrollable .myspot_dialog_content {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.myspot_dialog_title {
    color: #000000;
    text-align: left;
    word-break: break-word;
}

.myspot_dialog_body {
    margin-top: 8px;
    color: #333333;
    text-align: left;
    word-break: break-word;
}

.myspot_dialog_input_wrap {
    position: relative;
    width: 100%;
    margin-top: 16px;
}

.myspot_dialog_input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border-radius: 8px;
    outline: none;
    resize: none;
    overflow: hidden;
    line-height: 1.5;
    font-family: inherit;
    word-break: break-word;
    white-space: pre-wrap;
}

.myspot_dialog_input.has_clear {
    padding-right: 40px;
}

.myspot_dialog_input.is_error {
    border-color: #E53935;
}

.myspot_dialog_clear {
    display: none;
    position: absolute;
    top: 10px;
    right: 8px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.myspot_dialog_error {
    display: none;
    margin-top: 8px;
    margin-bottom: 0;
    color: #E53935;
    text-align: left;
    word-break: break-word;
}

.myspot_dialog_actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
}

.myspot_dialog_btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    height: 48px;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.myspot_dialog_btn_register {
    border: none;
    padding: 8px 4px;
}

