@charset "utf-8";

/* =====================================================
--------------------------------------------------------
全体main
--------------------------------------------------------
===================================================== */

main:has(.mainvisual) {
	display: flex;
	flex-direction: column;
	gap: 96px;
}

/* 確認・完了画面 */
main:not(:has(.mainvisual)) .u--inner {
	padding: 40px 0 96px;
}

@media screen and (min-width:768px) {
	main:has(.mainvisual) {
		gap: 200px;
	}
	main:not(:has(.mainvisual)) .u--inner {
		padding: 80px 0 200px;
	}
}










/* =====================================================
--------------------------------------------------------
メインビジュアル.mainvisual
--------------------------------------------------------
===================================================== */

.mainvisual {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	width: 100%;
	height: 100dvh;
	font-weight: 700;
}



/* キャッチコピー */
.mainvisual hgroup {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 40px;
	width: calc(100% - 16px * 2);
}

.mainvisual hgroup h1 {
	width: 288px;
}

.mainvisual hgroup p {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 128px;
	font-size: 24px;
}

.mainvisual hgroup p > span {
	display: inline-flex;
	flex-flow: row wrap;
}

.mainvisual hgroup p > span span {
	opacity: 0;
	transition: 0.5s ease-in-out;
}

@media screen and (min-width:360px) {
	.mainvisual hgroup h1 {
		width: 328px;
	}
}

@media screen and (min-width:768px) {
	.mainvisual hgroup {
		gap: 80px;
	}
	.mainvisual hgroup h1 {
		width: 480px;
	}
	.mainvisual hgroup p {
		min-height: 128px;
		font-size: 40px;
	}
}



/* 英語 */
.mainvisual_en {
	position: absolute;
	left: 0;
	bottom: 0;
	opacity: 0;
	overflow: hidden;
	width: 100%;
	transition: opacity 10s;
}

.mainvisual_en > span {
	display : inline-block;
	position:relative;
	color: #fff;
	font-size: 64px;
	white-space: nowrap;
	text-shadow: 
		-1px -1px 0 var(--color-grey-origin),
		1px -1px 0 var(--color-grey-origin),
		-1px 1px 0 var(--color-grey-origin),
		1px 1px 0 var(--color-grey-origin);
	animation: marquee 30s linear infinite;
}

.mainvisual_en > span::after {
	content: attr(data-text);
}

@keyframes marquee {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}










/* =====================================================
--------------------------------------------------------
事業内容.service
--------------------------------------------------------
===================================================== */

.service {
	margin-top: -32px;
}

.service_img {
	display: block;
	margin: 0 auto 24px;
	padding-top: 32px;
	width: 100%;
	max-width: 375px;
}

.service_text {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.service h4 {
	font-size: 16px;
	font-weight: 700;
}

.service_text > div p + h4 {
	margin-top: 16px;
}

@media screen and (min-width:1025px) {
	.service {
		display: grid;
		grid-template-columns: 400px auto;
		gap: 64px;
		align-items: start;
		margin-top: -40px;
	}
	.service_img {
		grid-column: 1;
		position: sticky;
		top: 0;
		padding-top: 40px;
	}
	.service_text {
		grid-column: 2;
		gap: 40px;
		padding-top: 40px;
	}
}



/* 3つの柱以降 */
.service + p {
	margin: 24px 0;
}

.service-banner {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 8px;
}

.service-banner li {
	width: 100%;
	max-width: 496px;
}

@media screen and (min-width:768px) {
	.service-banner li {
		width: calc((100% - 8px) / 2);
	}
}

@media screen and (min-width:1025px) {
	.service + p {
		margin-bottom: 40px;
	}
	.service-banner {
		gap: 32px;
	}
	.service-banner li {
		width: calc((100% - 32px) / 2);
	}
}










/* =====================================================
--------------------------------------------------------
お問い合わせ
--------------------------------------------------------
===================================================== */

/* メールフォーム */
.form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
}

.form > div {
	display: flex;
	flex-flow: row wrap;
	gap: 8px;
}

.form dt {
	width: 100%;
	font-weight: 700;
}

.form dd {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.form dd:not(:has(input)) {
	padding: 12px 0;
}

.form dd span {
	display: none;
}

@media screen and (min-width:768px) {
	.form {
		gap: 24px;
		margin-bottom: 40px;
	}
	.form > div {
		gap: 32px;
	}
	.form dt {
		padding: 12px 0;
		width: 7em;
		word-break: keep-all;
		overflow-wrap: break-word;
	}
	.form dd {
		width: calc(100% - 32px - 7em);
	}
}



/* 入力エラー */
.form dd span.error,
.form-agree span.error {
	display: block;
	color: var(--color-red-origin);
	font-size: 18px;
	font-weight: 700;
}

.form dd input.error,
.form dd textarea.error,
.form-agree span.error::before {
	border: 2px solid var(--color-red-origin);
}



/* プライバシーポリシー */
.privacy {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.privacy ol {
	list-style: decimal;
	list-style-position: inside;
}

.privacy li {
	padding-left: 1em;
	text-indent: -1em;
}

.privacy ol + p {
	text-align: right;
}

@media screen and (min-width:768px) {
	.privacy {
		margin-bottom: 40px;
	}
}



/* 同意 */
.form-agree {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.form-agree label {
	gap: 16px;
}

.form-agree input[type="checkbox"],
.form-agree input[type="checkbox"]::before {
	width: 32px;
	height: 32px;
}

.form-agree input[type="checkbox"]:checked::after {
	width: calc(32px - 14px);
	height: calc(32px - 20px);
}

@media screen and (min-width:768px) {
	.form-agree {
		margin-bottom: 32px;
	}
}



/* 修正・送信・トップへ */
.form-proceed {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 16px;
}

.form-proceed button {
	padding: 16px;
	width: 100%;
	border-radius: 32px;
	font-size: 24px;
	text-align: center;
	transition: background 0.5s, color 0.5s;
}

.form-proceed button:nth-of-type(1) {
	border: 2px solid var(--color-link);
	background: #fff;
	color: var(--color-link);
}

.form-proceed button:nth-of-type(2) {
	border: 2px solid var(--color-red-origin);
	background: var(--color-red-origin);
	color: #fff;
}

.form-proceed a {
	margin-top: 40px;
}

@media (any-hover:hover) {
	.form-proceed button:nth-of-type(1):hover {
		background: var(--color-link);
		color: #fff;
	}
	.form-proceed button:nth-of-type(2):hover {
		background: #fff;
		color:  var(--color-red-origin);
	}
}

@media screen and (min-width:768px) {
	.form-proceed button {
		width: 296px;
	}
}










/* =====================================================
--------------------------------------------------------
会社概要.company
--------------------------------------------------------
===================================================== */

.company {
	display: flex;
	flex-flow: row wrap;
	gap: 16px;
	align-items: flex-start;
}



/* 概要 */
.company_outline {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.company_outline > div {
	display: flex;
	flex-flow: row wrap;
	width: 100%;
}

.company_outline dt {
	width: 100%;
	font-weight: 700;
}

.company_outline dd {
	width: 100%;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.company_outline li {
	padding-left: 1em;
	text-indent: -1em;
}

.company_outline li::before {
	content: '・';
}

@media screen and (min-width:768px) {
	.company_outline > div {
		gap: 32px;
	}
	.company_outline dt {
		width: 6em;
	}
	.company_outline dd {
		width: calc(100% - 32px - 6em);
	}
}

@media screen and (min-width:1025px) {
	.company_outline {
		width: calc((100% - 32px) / 2);
	}
}



/* 地図 */
.company_map {
	width: 100%;
	aspect-ratio: 8 / 5;
}

.company_map iframe {
	width: 100%;
	height: 100%;
}

@media screen and (min-width:1025px) {
	.company_map {
		width: calc((100% - 32px) / 2);
		aspect-ratio: 1;
	}
}










/* =====================================================
--------------------------------------------------------
ページ内リンク
--------------------------------------------------------
===================================================== */

nav ul {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 33px;
}

nav ul li {
	position: relative;
}

nav ul li:not(:last-of-type)::after {
	display: block;
	position: absolute;
	top: 0;
	right: -16px;
	width: 1px;
	height: 100%;
	background-color: var(--color-grey-origin);
	content: "";
}










/* =====================================================
--------------------------------------------------------
ここを複製していく
--------------------------------------------------------
===================================================== */

/* 内容 */

@media (any-hover:hover) {
}

/* androidは375pxではなく360pxなので注意！ */
@media screen and (min-width:360px) {
}

@media screen and (min-width:768px) {
}

/* ipadが1024pxなので、当たらないように1025pxとする */
@media screen and (min-width:1025px) {
}