@charset "utf-8";

/*

version: 1.0
author:  rim1 Ryusei


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


:root{
	font-size: 100%;
	font-family: sans-serif;
}


@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: 0.5em var(--padding-x);
    border-style: solid;
  }

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

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



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

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

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





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


.br--pc{ display: block;}
.br--sp{ display: none;}

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




/*  ===============================
			汎用 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;
}




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

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

.rim1_accordionUi{
	caret-color: transparent;
	cursor: pointer;
}
.rim1_accordionUi_hide{
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: all .8s, max-height .3s ease-out .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;
}



/* 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: .4s;
	z-index: -1;
}
	.is-active.modal_wrap{
		opacity: 1;
		z-index: 10000;
		transition: .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: 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);
}








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

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

*/

.rim1_fadeIn{
	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 {
	from {	opacity: 0; transform: translateY(20px)}
	to {	opacity: 1; transform: translateY(0)}
}

@keyframes fadeInToBottom{
	from {	opacity: 0; transform: translateY(-20px)}
	to {	opacity: 1; transform: translateY(0)}
}
@keyframes fadeInToRight{
	from {	opacity: 0; transform: translateX(20px)}
	to {	opacity: 1; transform: translateX(0)}
}
@keyframes fadeInToLeft{
	from {	opacity: 0; transform: translateX(-20px)}
	to {	opacity: 1; transform: translateX(0)}
}


