@charset "UTF-8";
/* 980px 未満 */

body {
	font-size: 87.5%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
#container {
	width: auto;
	padding: 4px 0 0;
	background-image: none;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100svh;
}
#header,
#navi,
.subnavi {
	order: -1;
}
#header {
	width: auto;
	height: auto;
	display: flow-root;
}

#advertise {
	display: none;
}

#navi {
	width: auto;
	height: auto;
	background: #424242;
	display: flow-root;
}
#navi ul {
	display: flex;
	flex-wrap: wrap;
}
#navi li {
	float: none;
	flex: 1 0 auto;
	line-height: 1.3;
	border-top: 1px solid #585858;
}
#navi li a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 10px;
}
#navi a.select {
	background: #fefefe;
}
#cse-search-box {
	float: none;
	display: block;
	margin: 0;
	padding: 6px 8px;
	border-top: 1px solid #585858;
}
#cse-search-box div {
	display: flex;
	gap: 6px;
}
#cse-search-box input[type="text"] {
	flex: 1;
	min-width: 0;
	min-height: 36px;
	font-size: 16px;
}
#cse-search-box input[type="submit"] {
	min-height: 36px;
	min-width: 64px;
	font-size: 16px;
}

.subnavi {
	height: auto;
}
.subnavi ul {
	display: flex;
	flex-wrap: wrap;
}
.subnavi li {
	float: none;
	flex: 1 0 auto;
	padding-left: 0;
	background: none;
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}
.subnavi a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 10px;
	margin: 0;
	line-height: 1.3;
	text-align: center;
}
.subnavi a.blank {
	background-position: right 4px center;
	padding-right: 18px;
}

#main-forex,
#main {
	float: none;
	width: auto;
	margin: 4px 8px;
	display: block;
}
#forexbody #main-forex {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 4px;
}
#worldbody #main,
#nightbody #main,
.top-page #main,
#nikkei225body #main {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
	gap: 4px;
}
#nikkei225body #main > div[align] {
	grid-column: 1 / -1;
	padding: 8px 0;
}
#nikkei225body #main > .stock-225-intro,
#nikkei225body #main > .sector-nav {
	grid-column: 1 / -1;
}
.sector-nav li a,
.sector-nav li b {
	display: inline-block;
	padding: 6px 0;
}
#main-forex img.imup,
#main img.imup {
	max-width: 100%;
	height: auto;
}
#tops {
	width: auto;
	height: auto;
	margin: 4px 8px;
	background: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
	gap: 4px;
}
.nydow,
.usdjpy {
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	display: block;
}
.nydow canvas,
.usdjpy canvas {
	display: block;
	max-width: 192px;
	margin: 0 auto;
}
.pickup {
	grid-column: 1 / -1;
	float: none;
	width: auto;
	height: auto;
	margin: 4px 0;
}
.sponcer {
	display: none;
}
#commoditybody #main table {
	width: 100%;
	max-width: 400px;
}
.vcurrentcy table {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 8px;
	margin: 0;
}
.vcurrentcy tbody,
.vcurrentcy tr {
	display: contents;
}
.vcurrentcy td {
	display: block;
	width: auto;
}
.wchart-forex,
#worldbody .wchart,
#nightbody .wchart,
.top-page .wchart,
.wchart-225 {
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	display: block;
	padding-bottom: 4px;
}
.wchart-225 {
	text-align: center;
}
.wchart-forex h3,
#worldbody .wchart h3,
#nightbody .wchart h3,
.top-page .wchart h3,
.wchart-225 h3 {
	background: #f0efe9;
	border-bottom: 1px solid #d8d7d0;
	line-height: 1.3;
	padding: 2px;
}
.wchart-forex .chart canvas,
#worldbody .wchart .chart canvas,
#nightbody .wchart .chart canvas,
.top-page .wchart .chart canvas {
	display: block;
	max-width: 100%;
	height: auto !important;
	margin: 0 auto;
}
#underbanner-forex,
#underbanner {
	grid-column: 1 / -1;
	width: auto;
	height: auto;
	padding: 8px 0;
}

.ad-slot {
	text-align: center;
}

#subwaku-middle,
#subwaku {
	float: none;
	margin: 0 8px 8px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 8px;
	align-items: start;
}
#subwaku-middle > .ad-slot {
	grid-column: 1 / -1;
	order: 1;
}
.sponcer_text {
	display: none;
}
.sub-forex,
.sub {
	width: auto;
	margin: 0;
}
.sub-forex h3,
.sub h3 {
	background: #e9f2ff;
}
.quote-middle,
.quote-mini {
	width: 100%;
}
.quote-middle .td3,
.quote-mini .td3 {
	padding-right: 4px;
}
.side li {
	line-height: 1.3;
	background-position: -220px -148px;
}
.side li:not(:has(a)) {
	background-position: -220px -160px;
}
.side li a {
	display: block;
	padding: 13px 0;
}

#cse-search-results iframe {
	width: 100%;
}

#fullchart {
	cursor: pointer;
}
#fullchart #chart {
	display: block;
	margin: 0 8px;
}
#fullchart #chart canvas {
	width: 100% !important;
	height: auto !important;
}

#footer {
	margin-top: auto;
	height: auto;
	line-height: 1.5;
	padding: 8px;
	background: #353535;
	display: flow-root;
}
#copyright,
#footer ul {
	float: none;
}
#copyright {
	padding: 8px 0;
}
#footer li {
	display: inline-block;
	padding: 0 16px 0 0;
}
#footer li a {
	display: inline-block;
	padding: 12px 0;
}

.mc-nav[hidden] {
	display: block;
}
#minichartbody #container {
	box-sizing: content-box;
	min-height: 0;
	display: block;
	width: auto;
	max-width: 575px;
	margin: 0 auto;
	padding: 0 8px;
}
#minichartbody #header {
	padding: 6px 10px;
	text-align: left;
}
#minichartbody #navi ul {
	margin: 0;
}
#minichartbody #navi li {
	display: block;
	padding-left: 0;
}
#minichartbody #navi li a {
	color: #fff;
}
#minichartbody #head {
	width: auto;
	height: auto;
	margin: 8px 0 4px;
}
#minichartbody h1 {
	float: none;
	display: block;
	line-height: 1.4;
	padding: 6px 10px;
}
#minichartbody .image {
	width: auto;
	height: auto;
	aspect-ratio: 575 / 300;
}
#minichartbody .image img {
	display: block;
	width: 100%;
	height: auto;
}
#minichartbody center .chart canvas {
	max-width: 100%;
	height: auto !important;
}
#minichartbody .right {
	text-align: left;
	margin: 4px 0 8px;
}
#minichartbody #container ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 8px;
}
#minichartbody #container li {
	display: block;
	padding-left: 0;
}
#minichartbody #container li a,
#minichartbody .cent a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 10px;
}
#minichartbody a[onclick*="window.close"] {
	display: none;
}
#minichartbody .ban-advertise {
	height: auto;
	overflow: visible;
}
#minichartbody .ban-advertise .ad-slot {
	margin-left: 0 !important;
}

#dow30body #container {
	box-sizing: content-box;
	min-height: 0;
	display: block;
	max-width: 575px;
	margin: 0 auto;
	padding: 8px 8px 0;
}
#dow30body .hidari,
#dow30body .migi {
	float: none;
	display: block;
	width: auto;
	margin: 0 0 8px;
}
#dow30body .hidari {
	text-align: center;
}
#dow30body .kabuka {
	margin: 0 auto;
}
#dow30body .migi p {
	overflow-wrap: anywhere;
}
#dow30body .hidari a,
#dow30body .migi a,
#dow30body .footer a {
	display: inline-block;
	padding: 13px 0;
}
#dow30body .footer ul {
	margin: 0 8px;
}
#dow30body .footer li {
	display: inline-block;
}

/* 600px 未満 */
@media (max-width: 599.98px) {
	#headerright {
		float: none;
		clear: both;
		display: block;
		margin: 6px 0 0;
		padding: 0 10px;
	}
	#headerright li:first-child {
		padding-left: 0;
	}
	#headerright a[href="/old/"],
	#footer a[href="/old/"] {
		display: none;
	}
	#forexbody #main-forex {
		grid-template-columns: 1fr 1fr;
	}
	#subwaku-middle,
	#subwaku {
		grid-template-columns: 1fr;
	}
}
