﻿@charset "UTF-8";

:root {
	--accent-color: #df631d;
	--accent-color-sub: #273135;

	--font-color-main: #111;
	--font-color-link: #111;

	--font-size-S: 12px;
	--font-size-M: 13px;
	--font-size-L: 16px;
	--font-size-XL: 18px;

	--font-size-M-pc: 16px;
	--font-size-L-pc: 18px;
	--font-size-XL-pc: 20px;

	--line-height-text: 1.75;
	--border-radius-main: 6px;
}
.text-S {font-size: var(--font-size-S);}
.text-M {font-size: var(--font-size-M);}
.text-L {font-size: var(--font-size-L);}
.text-XL {font-size: var(--font-size-XL);}

.text-S, .text-M, .text-L, .text-XL{
	line-height: var(--line-height-text);
}

html {
	font-weight: 700;
	font-family: "Helvetica Neue",
	Arial,
	"Hiragino Kaku Gothic ProN",
	"Hiragino Sans",
	"BIZ UDPGothic",
	Meiryo,
	sans-serif;
}

body {
	color: var(--font-color-main);
	transition: all 2s ease;
}
body,
.setBgColor1{	background-color:#2d8eb4;}
.setBgColor1 #pageTop button,
#pageTop button {background-color:#ff7e4b;}

.setBgColor2{	background-color:  #e27e36;}
.setBgColor2 #pageTop button{	background-color:  #3cc5fc;}

.setBgColor3{	background-color: #2db456;}
.setBgColor3 #pageTop button{	background-color: #f85ac9;}

.setBgColor4{	background-color: #2d46b4;}
.setBgColor4 #pageTop button{	background-color: #ddbd30;}

.setBgColor5{	background-color: #c72d2d;}
.setBgColor5 #pageTop button{	background-color: #4fe0fa;}

header {
	width: 100%;
}

footer {
	position: fixed;
	bottom: 0px;
	height: 30px;
	width: 100%;
	padding-top: 10px;
	z-index: 1;

	display: flex;
	align-items: flex-start;
	justify-content: center;
}

/* 見出し */
h1 {
	font-size: var(--font-size-XL);
	position: relative;
	margin-top: 0.3em;
	margin-bottom: 1em;
	padding-bottom: 0.3em;
	border-bottom: 4px solid var(--accent-color-sub);
	text-indent: 0.1em;
	text-align: left;
}
h1::after {
	position: absolute;
	bottom: -4px;
	left: 0;
	z-index: 2;
	content: '';
	width: 5em;
	height: 4px;
	background-color: var(--accent-color);
}

.text {
	font-size: var(--font-size-M);
	line-height: var(--line-height-text);
}

/* スクロールバー */
.scroll_area{
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 5px;
  -webkit-overflow-scrolling: touch;
}
.scroll_area_wide{
	overflow-y: auto;
	overflow-x: hidden;
	margin-bottom: 5px;
	-webkit-overflow-scrolling: touch;
}

/*スクロールバーの横幅指定*/
.scroll_area::-webkit-scrollbar{
    width: 20px;
}
/*スクロールバーの背景色・角丸指定*/
.scroll_area::-webkit-scrollbar-track{
  border-radius: 2px;
  background: #fff;
}
/*スクロールバーの色・角丸指定*/
.scroll_area::-webkit-scrollbar-thumb{
  border-radius: 20px;
  background:#ccc;
}

/* ブロック共通 */
/* スナップ表示はスマホはTopのロゴ表示のみ適用 */
.container {
	position: relative;
	z-index: 2;
}

.container > section#start {
	height: 100vh; /* 未サポートブラウザ用 */
	height: 100dvh;

	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

/* 枠ブロック */
article {
	position: relative;
	margin: 20px 15px 50px;
	padding: 1rem;
	border: min(8 / 375 * 100vw, 12px) solid #303333;
	border-radius: var(--border-radius-main);
	background-color: #fff;
}

article, #logo {
	filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.5));
}

/* Top */
#logo {
	width: min(40vw, 240px);
}
#logo:hover{
	cursor: help;
}

/* 会社概要 */
.name_img {
	display: flex;
	align-items: center;
	justify-content: left;
}

.name_img img {
	width: 80px;
	margin-left: 1em;
}

.icon_open_blank {
	width: 16px;
	height: 16px;
	margin-left: 0.25em;
}

.btn_map_open {
	color: var(--font-color-link);
	display: flex;
	align-items: center;
	justify-content: left;
	border-bottom: 2px dotted #222;
}


/* 事業内容 */
.ichiran {
	font-size: var(--font-size-M);
}

.ichiran dt {
	color: var(--accent-color);
	font-size: var(--font-size-M);
	margin-top: 1em;
	margin-bottom: 0.2em;
}

.ichiran dt:first-child {
	margin-top: 0.5em;
}

.ichiran dd {
	font-size: var(--font-size-M);
	margin-bottom: 0.5em;
	margin-left: 1em;
	line-height: var(--line-height-text);
}

/* 代表者開発実績 */
.history .year {
	display: flex;
	align-items: center;
	font-size: var(--font-size-L);
	font-style: italic;
	line-height: 1;
	color: var(--accent-color);
	margin: 1em 0 0.4em;
	padding: 0.8em 0 0.2em;
	border-top: 1px dashed #ccc;
}

.history .year:first-child {
	margin-top: 0px;
	border-width: 0;
}

.history li {
	font-size: var(--font-size-M);
	margin: 0em 0px 0.5em 1.5em;
}

.history .content {
	display: block;
	padding-left: 10%;
}

/* お問い合わせ */
#mail_addr {
	margin: 20px 0 10px;
}

#mail_addr img {
	width: 180px;
}

/* 上へ戻る */
#pageTop {
	position: fixed;
	bottom: 40px;
	right: -40px;
	z-index: 100;
	filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.4));
	transition: all 0.5s ease;
}

#pageTop button {
	padding: 8px;
	border-radius: var(--border-radius-main) 0 0 var(--border-radius-main);
	width: 40px;
	height: 40px;
}

#pageTop img {
	width: 20px;
}

@media only screen and (min-width: 810px) {

	.text-M {font-size: var(--font-size-M-pc);}
	.text-L {font-size: var(--font-size-L-pc);}
	.text-XL {font-size: var(--font-size-XL-pc);}

	.text,
	.ichiran,
	.ichiran dt,
	.ichiran dd,
	.history li {
		font-size: var(--font-size-M-pc);
	}

	.history .year {
		font-size: var(--font-size-L-pc);
	}

	h1 {
		font-size: var(--font-size-XL-pc);
	}

	.name_img img {
		width: 90px;
	}

	.ichiran,
	#contact_area {
		margin: 10px;
	}

	#map {
		display: flex;
	}

	#pageTop {
		display: none;
	}

	.ichiran dd {
		margin-left: 3em;
	}

	/* スクロールスナップ表示 */
	.container {
		height: 100vh; /* 未サポートブラウザ用 */
		height: 100dvh;
		position: relative;
		scroll-snap-type: y mandatory;
		overflow-y: auto;
	}

	.container > section {
		height: 100vh; /* 未サポートブラウザ用 */
		height: 100dvh;

		scroll-snap-align: start;
		overflow-y: hidden;

		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}

	.inline_area {
		overflow-y: auto;
		overscroll-behavior-y: contain;
		width: 95%;
		max-height: 80vh;
		margin: 0 0 0 auto;
	}

	article {
		width: 640px;
	}

	/* 枠ブロック */
	article {
		position: relative;
		margin: 20px;
		padding: 1rem;
	}
}