@charset "utf-8";

/*

version: 1.4
last: 23.08.26
author:  rim1 Ryusei
description: destyle.cssでは足りない補助スタイル / よく使用する汎用スタイルや挙動

- 1.4 add 230826 section,nav { width:100%}
- 1.4 add 230826 :root{ font-size:10px } 1rem = 10px
- 1.4 add 230826 pc body{ font-size: 16px} sp body{ font-size: 14px }
- 1.3 add 230814 button,input max-width:100%

*/

:root {
	font-size: 10px;
	font-family: sans-serif;
	letter-spacing: 1px;
}

body {
	font-size: 16px;
}

@media screen and (max-width: 768px) {
	body {
		font-size: 14px;
	}
}

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

section,
nav,
header,
footer {
	width: 100%;
}

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

	max-width: 100%;

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

input.default {
	padding: 0.1em 0.3em;
	color: #000;
	line-height: 1;
	background-color: #fff;
}

/* 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"]:not(.default),
input[type="email"]:not(.default),
input[type="tel"]:not(.default),
input[type="number"]:not(.default),
input[type="password"]:not(.default),
input[type="url"]:not(.default) {
	width: 100%;
	box-shadow: 0 0 0 1px #ccc inset;
}

/* default */
input[type="range"] {
	appearance: auto;
	cursor: default;
	color: -internal-light-dark(rgb(16, 16, 16), rgb(255, 255, 255));
	padding: initial;
	border: initial;
	margin: 2px;
}

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

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

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

.br--pc,
.pc {
	display: block;
}

.br--sp,
.sp {
	display: none;
}

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

	.sp,
	.br--sp {
		display: block;
	}
}

.defined-SVG {
	display: none;
}

.dib {
	display: inline-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;
}

/* 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 {
	--maxH: 50em;
	caret-color: transparent;
	cursor: pointer;
}
.rim1_accordionUi_hide {
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: all 0.8s, max-height 2s ease-out 1s;
}

.rim1_accordionUi_hide.is-active {
	max-height: var(--maxH);
	opacity: 1;
	visibility: visible;
}

/* 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: 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 {
	--length: 70px;
	position: absolute;
}

.closeBtn {
	position: relative;
	cursor: pointer;
	width: var(--length);
	height: var(--length);
	margin-left: auto;
	caret-color: transparent;
}

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

.closeBtn::before {
	transform: translateY(calc(var(--length) / 2)) rotate(45deg);
}
.closeBtn::after {
	transform: translateY(calc(var(--length) / 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);
	}
}

/* wpのrecaptcha の位置設定 */
.grecaptcha-badge {
	--recaptcha: 80px;
	bottom: var(--recaptcha) !important;
}
