/*
Theme Name: NOW INFORMATION Child
Theme URI: https://nowinformation.net/
Author: UNSTYLISH
Description: NOW INFORMATION専用子テーマ。将来のCSS・PHPカスタマイズを親テーマ更新から守ります。
Template: now-information-theme
Version: 1.6.2
Text Domain: now-information-child
*/

/* TOP: NEWS 9 / INDEX BOARD 1 */
.now-market-layout,
.now-market-layout * {
	box-sizing: border-box;
}

@media (min-width: 1101px) {
	.now-dashboard.now-shell {
		max-width: 1900px;
	}

	.now-market-layout {
		display: grid;
		grid-template-columns: minmax(0, 9fr) minmax(112px, 1fr);
		align-items: start;
		width: 100%;
		transition: grid-template-columns .72s cubic-bezier(.22, .78, .18, 1);
	}

	.now-market-layout.is-market-open {
		grid-template-columns: minmax(210px, 2fr) minmax(0, 8fr);
	}

	.now-news-pane {
		position: relative;
		z-index: 1;
		min-width: 0;
		overflow: hidden;
		transition: opacity .35s ease, filter .35s ease;
	}

	.now-market-layout.is-market-open .now-news-pane {
		opacity: .34;
		filter: saturate(.45);
		pointer-events: none;
	}

	.now-market-layout.is-market-open .now-news-pane > * {
		min-width: 860px;
	}

	.now-market-pane {
		position: relative;
		z-index: 2147483500;
		min-width: 0;
		min-height: calc(100vh - 130px);
		overflow: visible;
		border-left: 1px solid #d7dfe8;
		background: #f2f5f8;
	}

	.now-market-toggle {
		position: sticky;
		top: 0;
		z-index: 2147483600;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0;
		width: calc(100% + 46px);
		height: 550px;
		min-height: 0;
		margin: 0 -18px 14px -28px;
		padding: 0;
		overflow: hidden;
		border: 0;
		border-radius: 999px 0 0 999px;
		background: #071c35;
		color: #fff;
		box-shadow: none;
		cursor: pointer;
		writing-mode: horizontal-tb;
		font: 900 11px/1 Inter, "Noto Sans JP", sans-serif;
		letter-spacing: .16em;
		transition: all .45s cubic-bezier(.22, .78, .18, 1);
	}

	.now-market-toggle::before {
		display: none;
	}

	.now-market-toggle::after {
		display: none;
	}

	.now-market-toggle > span {
		position: relative;
		z-index: 2;
	}

	.now-market-toggle:hover {
		background: #0b2a4b;
		transform: translateX(-6px);
		box-shadow: 0 14px 30px rgba(7, 28, 53, .2);
	}

	.now-market-toggle:focus-visible {
		outline: 2px solid #62a8ff;
		outline-offset: 4px;
	}

	.now-market-toggle__arrow {
		display:none;
		place-items:center;
		width:48px;
		height:48px;
		border:0;
		border-radius:50%;
		background:#071c35;
		color: #fff;
		font-size: 25px;
		box-shadow:none;
		writing-mode: horizontal-tb;
	}

	.now-market-toggle__kicker {
		position: absolute !important;
		top: 43px;
		left: 53%;
		color: #fff;
		font: italic 950 19px/1 Inter, "Noto Sans JP", sans-serif;
		letter-spacing: -.03em;
		white-space: nowrap;
		transform: translateX(-50%) rotate(-14deg);
	}

	.now-market-toggle__label,
	.now-market-toggle__number {
		position: absolute !important;
		color: #fff;
		font-weight: 950;
		line-height: .88;
		letter-spacing: -.12em;
		text-orientation: upright;
		writing-mode: vertical-rl;
	}

	.now-market-toggle__label { top: 207px; left: 24px; font-size: 42px; }
	.now-market-toggle__number { top: 137px; left: 69px; font-size: 38px; }
	.now-market-toggle__hint {
		position: absolute !important;
		right: 20px;
		bottom: 49px;
		color: rgba(255,255,255,.72);
		font-size: 8px;
		font-weight: 850;
		letter-spacing: .12em;
		writing-mode: vertical-rl;
	}

	.is-market-open .now-market-toggle {
		position: absolute;
		top: 16px;
		right: 18px;
		width: 44px;
		height: 44px;
		min-height: 44px;
		margin: 0;
		padding: 0;
		border: 3px solid #fff;
		border-radius: 50%;
		background: #071c35;
		box-shadow: 0 8px 18px rgba(7, 28, 53, .2);
		writing-mode: horizontal-tb;
		letter-spacing: 0;
	}

	.is-market-open .now-market-toggle::before,
	.is-market-open .now-market-toggle::after { display:none; }

	.is-market-open .now-market-toggle__label,
	.is-market-open .now-market-toggle__number,
	.is-market-open .now-market-toggle__kicker,
	.is-market-open .now-market-toggle__hint {
		display: none;
	}

	.is-market-open .now-market-toggle__arrow {
		display:grid;
		width:auto;
		height:auto;
		border:0;
		background:none;
		box-shadow:none;
		font-size:18px;
		color:#fff;
	}

	.now-market-content {
		min-width: 0;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(48px);
		transition: opacity .28s ease, transform .72s cubic-bezier(.22, .78, .18, 1), visibility 0s linear .72s;
	}

	.is-market-open .now-market-content {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
		transition-delay: .16s, 0s, 0s;
	}

	.now-market-pane #now-numbers {
		margin: 0;
		padding: 20px 18px 50px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.now-market-pane .now-numbers-hero__header {
		padding-right: 56px;
	}

	.now-market-pane .now-numbers-hero__jump {
		display: none;
	}

	.now-market-columns,
	.now-market-pane .now-number {
		display: grid !important;
		grid-template-columns: minmax(120px, .9fr) minmax(190px, 1.6fr) minmax(140px, 1fr) minmax(170px, 1.2fr) minmax(110px, .8fr);
		align-items: center;
		gap: 14px;
	}

	.now-market-columns {
		padding: 8px 12px;
		border: 1px solid rgba(129, 151, 181, .2);
		border-bottom: 0;
		background: #090e15;
		color: #69778a;
		font-size: 8px;
		font-weight: 900;
		letter-spacing: .12em;
	}

	.now-market-pane .now-numbers-grid {
		display: block;
	}

	.now-market-pane .now-number {
		min-height: 66px;
		padding: 9px 12px;
		border: 1px solid rgba(129, 151, 181, .18);
		border-bottom: 0;
		border-radius: 0;
		background: rgba(13, 18, 26, .9);
		box-shadow: none;
		transition: background .2s ease;
	}

	.now-market-pane .now-number:last-child {
		border-bottom: 1px solid rgba(129, 151, 181, .18);
	}

	.now-market-pane .now-number:hover {
		background: #121b28;
	}

	.now-market-pane .now-number__top,
	.now-market-pane .now-number__meta,
	.now-market-pane .now-number__source {
		margin: 0;
	}

	.now-market-pane .now-number h3 {
		margin: 0;
		font-size: 13px;
		line-height: 1.35;
	}

	.now-market-pane .now-number__value {
		margin: 0;
		font-size: clamp(18px, 1.55vw, 27px);
		white-space: nowrap;
	}

	.now-market-pane .now-number__meta {
		display: flex;
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.now-market-pane .now-number__source {
		min-width: 0;
		font-size: 8px;
	}

	.now-market-pane .now-number__source a {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

/* INDEX TITLE SIZE */
.now-market-pane .now-index-name strong {
	font-size: 12px;
	line-height: 1.4;
}

@media (max-width: 1100px) {
	.now-market-layout {
		display: flex;
		flex-direction: column;
	}

	.now-market-pane {
		order: -1;
		width: 100%;
	}

	.now-market-toggle,
	.now-market-columns {
		display: none;
	}

	.now-market-content {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}
}
