@charset "utf-8";

/*

version: 1.6
last: 24.09.13
author:  rim1 Ryusei


- カスタムCSS
・destyle.cssでは足りない補助css
・よく使用する汎用スタイルや挙動

1.6 loadingで使用する is-hide , is-reveal , blindfold を追加
1.5 clip-path の汎用アニメーション追加
1.4 fadeTo~系のタイミングを50%から30%に調整
1.3 .pc と.sp を追加
*/

:root {
	font-family: sans-serif;
	scroll-behavior: smooth;
}

@media screen and (max-width: 768px) {
	:root {
		font-size: 88%;
	}
}

/* init */
img {
	width: 100%;
	max-width: 100%;
	caret-color: transparent;
}

header,
footer {
	width: 100%;
}

/* form */
button,
input {
	/* ユーザーエージェントスタイルシートをリセット */
	background-color: transparent;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: inherit;
	appearance: none;

	/* 高さに影響するプロパティが同じ値であることを確認 */
	font-size: 1em;
	padding: var(--padding-y) var(--padding-x);
	border-style: solid;
}

textarea{
	padding: var(--padding-y) var(--padding-x);
}

/* button */
button {
	display: inline-flex;
	justify-content: center; /* コンテンツを水平方向に中央揃え */
	align-items: center; /* コンテンツを垂直方向に中央揃え */
	--padding-x: 1.2em;
	border-color: transparent; /* button要素のborderを隠す */
}

/* input */
input,
textarea{
	--padding-y: 0.5em;
	--padding-x: 0.5em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="url"],
textarea {
	width: 100%;
	box-shadow: 0 0 0 1px #ccc inset;
}

.required{
	color: #D33:
}


/*  ===============================
			汎用 クラス
===============================*/


@media screen and (min-width:769px) {
	.sp,
	.br--sp {
		display: none;
	}
}

@media screen and (max-width: 768px) {
	.pc,
	.br--pc {
		display: none;
	}
}

.defined-SVG {
	display: none;
}

.dib {
	display: inline-block;
}

.tac {
	text-align: center;
}

/*  ===============================
			汎用 hack
===============================*/

/* centering 中央配置
===============================
	absolute - top left transform 指定有
*/

.rim1_centering--absolute {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* youtubeBox アスペクト比維持
===============================
	div.youtubeBox_wrap > iframe.youtubeBox
	iframeのattr[width.height]は削除
	幅は親のmax-widthで揃える
*/

.youtubeBox_wrap {
	position: relative;
	width: 100%;
	margin: 0 auto 2rem;
}

.youtubeBox_wrap::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.youtubeBox {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	bottom: 0;
	margin: auto;
}



/* fixed Sqare Aspedct Ratio 正方形のアスペクト比維持
===============================
		div.fixedSquareAspedctRatio_wrap > fixedSquareAspedctRatio
		幅は親のmax-widthで揃える
*/

.fixedSquareAspedctRatio_wrap{
	position: relative;
	width: 100%;
	margin: 0 auto;
}

.fixedSquareAspedctRatio_wrap::before {
	content: "";
	display: block;
	padding-top: 100%;
}

.fixedSquareAspedctRatio {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	bottom: 0;
	margin: auto;
}



/*  ===============================
			汎用 ギミック
===============================*/

/* accordion アコーディオン開閉
===============================
		@js common.js
*/

.rim1_accordionUi {
	caret-color: transparent;
	cursor: pointer;
}
.rim1_accordionUi_hide {
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: all 0.8s, max-height 0.3s ease-out 0.5s;
}

.rim1_accordionUi_hide.is-active {
	max-height: 200vh;
	opacity: 1;
	visibility: visible;
	transition: all 1s;
}

/* loading
===============================
		@js common.js
*/

:root[data-load="load"],
:root[data-load="loading"],
:root[data-load="load"] body,
:root[data-load="loading"] body {
	overflow: hidden;
}

:root:not([data-load="load"], [data-load="loading"]),
:root:not([data-load="load"], [data-load="loading"]) body {
	overflow: visible;
}

.is-hide{
	visibility: hidden !important;
	opacity: 0;
}

.is-reveal{
	opacity: 1 !important;
}

.blindfold{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--bgColor);
	transition: .5s ease .1s;
	z-index: 10000000;
}

/* modal
===============================
*/

.modal_target {
	display: none;
}
.is-active.modal_target {
	display: block;
}

.modal_wrap {
	opacity: 0;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	background-color: rgba(0, 0, 0, 85%);
	transition: 0.4s;
	z-index: -1;
}
.is-active.modal_wrap {
	opacity: 1;
	z-index: 10000;
	transition: 0.8s;
}
.modal_inr {
	position: relative;
	/* margin-top: 10vh; */
	max-width: 1024px;
	max-height: 70vh;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.modal_content {
	overflow: hidden scroll;
	width: 80%;
	max-height: 70vh;
	margin: auto;
}

.closeBtn_wrap {
	position: absolute;
}

.closeBtn {
	position: relative;
	cursor: pointer;
	width: 70px;
	height: 90px;
	margin-left: auto;
	caret-color: transparent;
}

.closeBtn::before,
.closeBtn::after {
	content: "";
	display: block;
	width: 70px;
	height: 1px;
	background-color: #fff;
}

.closeBtn::before {
	transform: translateY(calc(90px / 2)) rotate(45deg);
}
.closeBtn::after {
	transform: translateY(calc(90px / 2)) rotate(-45deg);
}


/* file
スタイルはlabelで形成する
@ex <label><input type="file" name="file" />ファイルを選択する</label>
rim1のcommon.jsを読み込めばクラス名を入れるだけで形成される。
*/

label.rim1_fileUpload > input[type="file"] {
	display: none;
}

/*  ===============================
		汎用 animation
===============================*/

/* fade
===============================
fadeIn - 移動なし
fadeInToTop
fadeInToBottom
fadeInToRight
fadeInToLeft

*/

.rim1_fadeIn {
	--x: 20px;
	--y: 20px;
	opacity: 0;
	animation: fadeIn 2s cubic-bezier(0.47, 0, 0.745, 0.715) 0s forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeInToTop {
	0% {
		opacity: 0;
		transform: translateY( calc( 1% * var(--y) ) );
	}
	30%{
		opacity: 0;
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes fadeInToBottom {
	0% {
		opacity: 0;
		transform: translateY(calc( -1% * var(--y)));
	}
	30%{
		opacity: 0;
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes fadeInToRight {
	0% {
		opacity: 0;
		transform: translateX(calc( -1% * var(--x)));
	}
	30%{
		opacity: 0;
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}
@keyframes fadeInToLeft {
	0% {
		opacity: 0;
		transform: translateX( calc( 1% * var(--x) ) );
	}
	30%{
		opacity: 0;
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}


/* clip
===============================
*/

.readyClipToTop{
	clip-path: inset(100% 0 0 0);
}
.clipToTop{
	animation: 1.5s clipToTop 0s forwards;
}
@keyframes clipToTop {
	from {
			clip-path: inset(100% 0 0 0);
	}
	to {
			clip-path: inset(0 0 0 0);
	}
}


.readyClipToBottom{
	clip-path: inset(0 0 100% 0);
}
.clipToBottom{
	animation: 1.5s clipToBottom 0s forwards;
}
@keyframes clipToBottom {
	from {
			clip-path: inset(0 0 100% 0);
	}
	to {
			clip-path: inset(0 0 0 0);
	}
}


.readyClipToLeft{
	clip-path: inset(0 0 0 100%);
}
.clipToLeft{
		animation: 1.5s clipToLeft 0s forwards;
}

@keyframes clipToLeft {
	from {
			clip-path: inset(0 0 0 100%);
	}
	to {
			clip-path: inset(0 0 0 0);
	}
}

.readyClipToRight{
	clip-path: inset(0 100% 0 0);
}
.clipToRight{
	animation: 1.5s clipToRight 0s forwards;
}

@keyframes clipToRight {
	from {
			clip-path: inset(0 100% 0 0);
	}
	to {
			clip-path: inset(0 0 0 0);
	}
}




/*
hack : 自動で連番を持たせる
ネスト感
*/
.idx:nth-child(1){ --i: 1}
.idx:nth-child(2){ --i: 2}
.idx:nth-child(3){ --i: 3}
.idx:nth-child(4){ --i: 4}
.idx:nth-child(5){ --i: 5}
.idx:nth-child(6){ --i: 6}
.idx:nth-child(7){ --i: 7}
.idx:nth-child(8){ --i: 8}
.idx:nth-child(9){ --i: 9}
.idx:nth-child(10){ --i: 10}


.console{
		position: fixed;
		max-width: 50vw;
		max-height: 50vh;
		right: 0;
		top: 0;
		padding: .5em 1em;
		background-color: #fff;
		color: #000;
		z-index: 1000;
		font-size: 10px;
}
