@charset "utf-8";

/* ===================================================================
DISASTER
=================================================================== */

/* DISASTER
--------------------*/

.i-disaster {
	display: flex;
	align-items: center;
	margin: 0 0 40px;
}

.i-disaster-heading {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 15px;
	width: 150px;
	min-height: 52px;
	padding: 10px;
	color: #FFF;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .1em;
	background: #339999;
}

.i-disaster-body {
	width: calc(100% - 350px);
	min-height: 52px;
	padding: 10px 20px;
	line-height: 32px;
	background: #F1F1EB;
	white-space: nowrap;
	overflow: hidden;
}

.i-disaster-body-text {
	display: inline-block;
	will-change: transform;
}

.i-disaster-body-text[hidden] { display: none; }

.i-disaster-link {
	width: 200px;
}

.i-disaster-link a {
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	min-height: 52px;
	padding: 10px 20px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .1em;
	background: #B8C940;
	transition: background-color .2s cubic-bezier(.65, 0, .35, 1);
}

.i-disaster-link a:hover {
	background: #D2E24A;
}

.i-disaster-link a:before {
	content: '';
	position: absolute;
	top: 50%;
	transform: translate(0, -50%) rotate(45deg);
	right: 15px;
	display: block;
	width: 7px;
	height: 7px;
	border-top: 2px solid #000;
	border-right: 2px solid #000;
}

/* ===================================================================
LIVECAMERA, TODAY
=================================================================== */

/* COMMON
--------------------*/

.i-flex {
	display: flex;
	justify-content: center;
	column-gap: 4%;
}

.i-flex-start,
.i-flex-end {
	display: flex;
	flex-direction: column;
	width: 48%;
}

.i-city-select {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 10px;
}

/* TODAY
--------------------*/

.i-today {
	flex: auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.i-today-weather {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 40px;
}

.i-today-weather-icon {
	width: 45px;
}

.i-today-weather-icon-inner {
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	padding: calc(30 / 45 * 100%) 0 0;
}

.i-today-temperature {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 8px;
}

.i-today-maximum-temperature { color: #FE1016 }
.i-today-minimum-temperature { color: #0009F8 }

.i-today-precipitation-probability {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* ===================================================================
WEATHER IMG
=================================================================== */

/* WEATHER IMG MENU
--------------------*/

.i-weather-img-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 20px;
	background: #FFF;
	border-top: 1px solid #D8D8D8;
	border-bottom: 1px solid #D8D8D8;
}

.i-weather-img-menu > ul {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 56px;
}

.i-weather-img-menu > ul > li {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 70px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .1em;
	transition: color .2s cubic-bezier(.65, 0, .35, 1);
	cursor: pointer;
}

.i-weather-img-menu > ul > li:hover {
	color: #B8C940;
}

.i-weather-img-menu > ul > li.active:before {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 100%;
	height: 5px;
	background: #D8D8D8;
}

/* WEATHER IMG CONTENTS
--------------------*/

.i-weather-img-contents {
	padding: 40px 0 0;
}

.i-weather-img-contents > ul > li.active { display: block }
.i-weather-img-contents > ul > li:not(.active) { display: none }

/* WEATHER IMG LIST
--------------------*/

.i-weather-img-frame {
	width: 82.5%;
	margin: 0 auto;
}

.i-weather-img-frame:has( + .c-base-heading) {
	margin-bottom: 40px;
}

.i-weather-img-list > ul > li.active { display: block }
.i-weather-img-list > ul > li:not(.active) { display: none }

.i-weather-img {
	width: 100%;
	margin: 0 0 10px;
}

.i-weather-img-inner {
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	padding: calc(464 / 825 * 100%) 0 0;
}

.i-weather-img-time {
	text-align: right;
}

/* WEATHER IMG LIST MENU
--------------------*/

.i-weather-img-list-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 10px 0 0;
	padding: 9px 20px;
	background: #FFF;
}

.i-weather-img-list-menu > ul {
	--gap: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: var(--gap);
}

.i-weather-img-list-menu > ul > li {
	position: relative;
	font-weight: 600;
	transition: color .2s cubic-bezier(.65, 0, .35, 1);
	cursor: pointer;
}

.i-weather-img-list-menu > ul > li.active { color: #333 }
.i-weather-img-list-menu > ul > li:not(.active) { color: #49892F }

.i-weather-img-list-menu > ul > li:not(.active):hover {
	color: #B8C940;
}

.i-weather-img-list-menu > ul > li:not(:first-of-type):before {
	content: '';
	position: absolute;
	top: 50%;
	left: calc(var(--gap) / -2);
	transform: translate(-50%, -50%);
	width: 2px;
	height: 13px;
	background: #333;
}

@media screen and (max-width: 1023px) {

	/* ===================================================================
	DISASTER
	=================================================================== */

	/* DISASTER
	--------------------*/

	.i-disaster {
		flex-direction: column;
		margin: 0 0 30px;
	}

	.i-disaster-heading {
		justify-content: flex-start;
		width: 100%;
		min-height: auto;
		padding: 10px 18px;
	}

	.i-disaster-body {
		width: 100%;
		font-size: 12px;
	}

	.i-disaster-link {
		width: 100%;
	}

	.i-disaster-link a {
		justify-content: center;
		transition: none;
	}

	/* ===================================================================
	LIVECAMERA, TODAY
	=================================================================== */

	/* COMMON
	--------------------*/

	.i-flex {
		flex-direction: column;
		row-gap: 30px;
	}

	.i-flex-start,
	.i-flex-end {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.i-city-select {
		justify-content: center;
	}

	/* TODAY
	--------------------*/

	.i-today {
		row-gap: 15px;
	}

	.i-today-weather {
		display: flex;
		justify-content: center;
		align-items: center;
		column-gap: 20px;
	}

	/* ===================================================================
	WEATHER IMG
	=================================================================== */

	/* WEATHER IMG MENU
	--------------------*/

	.i-weather-img-menu {
		padding: 0 10px;
	}

	.i-weather-img-menu > ul {
		column-gap: 20px;
	}

	.i-weather-img-menu > ul > li {
		min-height: 50px;
		font-size: 12px;
		transition: none;
	}

	/* WEATHER IMG CONTENTS
	--------------------*/

	.i-weather-img-contents {
		padding: 30px 0 0;
	}

	/* WEATHER IMG LIST
	--------------------*/

	.i-weather-img-frame {
		width: 100%;
		margin: 0;
	}

	.i-weather-img-frame:has( + .c-base-heading) {
		margin-bottom: 30px;
	}

	.i-weather-img-time {
		font-size: 12px;
	}

	/* WEATHER IMG LIST MENU
	--------------------*/

	.i-weather-img-list-menu {
		padding: 10px;
	}

	.i-weather-img-list-menu > ul {
		--gap: 32px;
	}

	.i-weather-img-list-menu > ul > li {
		font-size: 11px;
		transition: none;
	}

	.i-weather-img-list-menu > ul > li:not(:first-of-type):before {
		height: 10px;
	}

}