﻿@charset "UTF-8";

/**
 * 共通
 */
* {
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
}

body {
	background-image: url(assets/bak.png);
	background-repeat: repeat-x;
	font-size: 14px;
	font-family: sans-serif;
}

.mobile-only {
	display: none;
}

.content {
	display: flex;
	flex-direction: column;
	gap: 12px;

	width: 974px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 5px;
	padding-right: 5px;
	/* background-color: #fff; */
}

.block {
	display: flex;
	flex-direction: row;
	gap: 12px;
}

.box {
	display: flex;
	justify-content: center;
	align-items: center;

	color: #fff;
	background-color: #555;
	border-radius: 9px;
	box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5);
}

.word {
	display: inline-block;
}

/**
 * ヘッダー
 */
#header {
	flex-grow: 1;
	justify-content: space-between;
	padding: 8px 18px;

	background-image: url(assets/bak_header.png);
	background-size: cover;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border: 3px solid #fff;
	border-top: none;
}

/* 左側タイトル */
#header .title .place,
#header .title .target {
	font-size: 17px;
	letter-spacing: 0.05em;
	font-weight: bold;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}
#header .title .place {
	margin-right: 10px;
}
#header .title .target {
	margin-right: 10px;
	color: #ff0;
}
#header .title .description {
	font-size: 10px;
	color: #9ff;
	white-space: nowrap;
}

/* 右側リンク */
#header .help {
	font-size: 12px;
	white-space: nowrap;
}
#header .help a {
	color: #ff0;
}

/**
 * 画像
 */
#image {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 18px;
}

/* 文字情報表示部 */
#image .image-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	height: 32px;
	
	background-color: #000;
	border-radius: 8px;
}
#image .image-info-label {
	margin-left: 12px;
	font-size: 14px;
	color: #cdd;
}
#image .image-info-data {
	margin-right: 12px;
}

/* 計測日時 */
#image #timestamp-datetime {
	color: #9AD7DE;
	font-family: Helvetica;
}
#image #timestamp-date {
	font-size: 16px;
}
#image #timestamp-time {
	font-size: 24px;
}

/* 単位切替 */
#image #switch-unit-help {
	vertical-align: middle;
}
#image .switch-unit-container label {
	margin-left: 20px;
	cursor: pointer;
}
#image .switch-unit-container input {
	margin-left: 4px;
}

/* 水位図 */
#image #waterlevel {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}
#image .image-container img {
	width: 100%;
}
#image .image-container {
	position: relative;
}
#image .image-container .overlay {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;	
	color: #9AD7DE;
}
#image .image-container .status,
#image .image-container .start,
#image .image-container .value {
	white-space: nowrap;
}
#image .image-container .status {
	font-size: 18px;
}
#image .image-container .start {
	font-size: 13px;
}
#image .image-container .arrow {
	width: 7px;
	height: 17px;
}
#image .image-container .value {
	font-size: 25px;
	font-family: Helvetica;
}

/* 水位断面図 */
#image #danmen #kaihei {
	top: 4.1%;
	left: 2.6%;
	right: 18.4%;
	bottom: 82.6%;
}
#image #danmen #sui1_arrow {
	top: 54.8%;
	left: 4.3%;
	right: 90.5%;
	bottom: 30.1%;
}
#image #danmen #sui1_value {
	top: 54.8%;
	left: 11.1%;
	right: 67.2%;
	bottom: 30.1%;
}
#image #danmen #sui2_arrow {
	top: 54.8%;
	left: 62.6%;
	right: 32.1%;
	bottom: 30.1%;
}
#image #danmen #sui2_value {
	top: 54.8%;
	left: 69.5%;
	right: 8.9%;
	bottom: 30.1%;
}

/* 水位矢印 */
#image #suii_arrow1,
#image #suii_arrow2 {
	width: 7.9%;
	height: 11.0%;
}
#image #suii_arrow1 {
	/* エディタのエラー除けのため%の前に0を追加 */
	top: 75.60%;
	left: 18%;
}
#image #suii_arrow2 {
	top: 72.40%;
	left: 75%;
}
/* 水画像 */
#image #water_left {
	top: 82.00%;
	bottom: 6.5%;
	left: 1%;
	right: 49%;
}
#image #water_right {
	top: 78.80%;
	bottom: 6.5%;
	left: 53.75%;
	right: 0.75%;
}
#image #water_left img,
#image #water_right img {
	width: 100%;
	height: 100%;
}

/* 画像-標高ボタンコンテナ */
#image #heimen-elevation {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
}

/* 水位平面図 */
#image #heimen #sui3_arrow {
	top: 12.2%;
	left: 3.3%;
	right: 91.5%;
	bottom: 70.2%;
}
#image #heimen #sui3_value {
	top: 12.2%;
	left: 10.2%;
	right: 68.2%;
	bottom: 70.2%;
}
#image #heimen #sui4_arrow {
	top: 12.2%;
	left: 36.4%;
	right: 58.4%;
	bottom: 70.2%;
}
#image #heimen #sui4_value {
	top: 12.2%;
	left: 43.3%;
	right: 35.1%;
	bottom: 70.2%;
}
#image #heimen #sui5_arrow {
	top: 12.2%;
	left: 68.9%;
	right: 25.9%;
	bottom: 70.2%;
}
#image #heimen #sui5_value {
	top: 12.2%;
	left: 75.7%;
	right: 2.6%;
	bottom: 70.2%;
}
#image #heimen #sui6_arrow {
	top: 69.7%;
	left: 3.3%;
	right: 91.5%;
	bottom: 12.8%;
}
#image #heimen #sui6_value {
	top: 69.7%;
	left: 10.2%;
	right: 68.2%;
	bottom: 12.8%;
}
#image #heimen #sui7_arrow {
	top: 70.2%;
	left: 68.9%;
	right: 25.9%;
	bottom: 12.2%;

}
#image #heimen #sui7_value {
	top: 70.2%;
	left: 75.7%;
	right: 2.6%;
	bottom: 12.2%;
}

/* 標高表示ボタン */
#image #elevation {
	display: flex;
	justify-content: space-around;
}

/**
 * コンテナ
 */
#info-chart {
	flex-direction: column;
	flex-grow: 1;
}

/**
 * お知らせ
 */
#info {
	flex-basis: 120px;
	padding: 4px;

	background-color: #fff;
	background-image: url(assets/info_i.png);
	background-position: right 10px top 10px;
	background-repeat: no-repeat;
	border: 4px solid #888;
}

#info iframe {
	width: 100%;
	height: 100px;
	margin-right: 30px;
}

/**
 * グラフ
 */
#chart {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 400px;
	padding: 12px 18px;
}

#chart .chart-info {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	width: 100%;
	color: #cdd;
}
#chart .chart-info-label {
	padding: 4px 12px;
	align-items: center;
	font-size: 14px;
	
	background-color: #000;
	border-radius: 8px;
}
#chart .chart-info-help {
	padding-top: 8px;
	font-size: 12px;
}

#chart #chart-image {
	width: 100%;
}
#chart #chart-image img {
	width: 573px;
}

/**
 * 表
 */
#table {
	flex-grow: 1;
	flex-direction: column;
	gap: 8px;
	padding: 12px 18px;
}

#table .table-info {
	display: flex;
	width: 760px;
	align-items: center;
	color: #cdd;
}
#table .table-info-label {
	padding: 4px 12px;
	font-size: 14px;
	
	background-color: #000;
	border-radius: 8px;
}
#table .table-info-help {
	padding: 4px 8px;
	font-size: 13px;
	line-height: 1.2em;
}

#table table {
	table-layout: fixed;
	width: 760px;
	background-color: #656B76;
	font-size: 14px;
}
#table .number {
	text-align: right;
}
#table th,
#table td {
	border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #555;
}
#table th {
	font-weight: normal;
	color: #fff;
	padding: 0 12px;
}
#table td {
	padding: 0 8px;
}

/**
 * フッター
 */
#footer {
	flex-grow: 1;
	display: flex;
	justify-content: space-between;
	padding: 8px 18px;
}
#footer small {
	flex-grow: 1;
	font-size: 11px;
	line-height: 15px;
}
#footer .address {
	flex-grow: 1;
	text-align: right;
}

/**
 * スマホ対応
 */
@media (max-width: 510px) {
	/**
	 * 共通
	 */
	.content {
		width: 100%;
		gap: 6px;
	}
	.block {
		gap: 6px;
	}
	.pc-only {
		display: none;
	}
	.mobile-only {
		display: inherit;
	}
	
	/**
	 * ヘッダー
	 */
	#header {
		padding: 6px 12px;
		background-position: right;
	}
	#header .help {
		font-size: 2.75vw;
	}
			
	/* 文字情報表示部 */
	#image .image-info {
		height: 26px;
	}
	
	/**
	 * 画像
	 */
	 #image {
		padding: 6px;
	}

	/* 水位図 */
	#image #waterlevel {
		flex-direction: row;
		gap: 0;
	}
	#image .image-container .status {
		font-size: 2.75vw;
	}
	#image .image-container .start {
		font-size: 2vw;
	}
	#image .image-container .arrow {
		width: 1vw;
		height: 3vw;
	}
	#image .image-container .value {
		font-size: 3.5vw;
	}
	
	/* 画像-標高ボタンコンテナ */
	#image #heimen-elevation {
		gap: 0;
	}

	/* 標高表示ボタン */
	#image #elevation img {
		width: 20vw;
	}
	
	/**
	* コンテナ
	*/
	#upper-middle {
		flex-direction: column;
	}

	#info-chart {
		flex-direction: column-reverse;
	}

	/**
	 * お知らせ
	 */
	#info {
		background-image: none;
	}
	#info iframe {
		margin-right: 0px;
	}
	
	/**
	 * グラフ
	 */
	#chart {
		min-height: auto;
		padding: 6px;
	}
	#chart .chart-info-label {
		padding: 2px 12px;
	}
	#chart .chart-info-help {
		font-size: 2.25vw;
	}
	#chart #chart-image img {
		width: 100%;
	}

	/**
	* 表
	*/
	#table {
		padding: 6px;
	}
	#table .table-info {
		width: 100%;
	}
	#table .table-info-label {
		width: 50vw;
		/*
		white-space: nowrap;
		*/
	}
	#table table {
		width: 100%;
		font-size: 3.25vw;
	}
	#table th {
		padding: 0 1px;
	}
	#table th.number {
		padding: 0 8px;
	}

	/**
	* フッター
	*/
	#footer {
		flex-direction: column;
		justify-content: flex-start;
		padding: 6px 12px;
	}
	#footer .address {
		padding-top: 8px;
		text-align: center;
	}
	#footer .address a {
		color: #ff0;
	}
}

/**
 * IE11補助
 */
@media (-ms-high-contrast: none) {
	/* ギャップ代替 */
	#header,
	#image,
	#info,
	#chart,
	#table {
		margin-bottom: 12px;
	}
	#image {
		margin-right: 12px;
	}
	#image #timestamp,
	#image #unit,
	#image #danmen,
	#image #heimen {
		margin-bottom: 8px;
	}
}
