@charset "UTF-8";
@import url('root.css');

html.safari {
	-webkit-text-size-adjust: 100%
}

html.ie {
	-ms-text-size-adjust: 100%
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box
}

body {
	color: var(--text-color);
	letter-spacing: .05em;
	background: var(--main-color);
	text-align: center;
	min-width: 330px
}

.wrapper {
	display: grid;
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 100%;
	min-height: 100vh;
}

@media (min-width: 1360px) {
	body {
		font-size: 17.5px
	}
}

@media only screen and (min-width: 360px) and (max-width: 1360px) {
	body {
		font-size: calc(16.5px + (17.5 - 16) * ((100vw - 361px) / (1360 - 361)))
	}
}

@media not all and (min-width: 360px) {
	body {
		font-size: 16.5px
	}
}

h2 {
	position: relative;
	padding-bottom: 10px;
	font-size: 1.8em;
	text-align: center;
}

h2::before {
	content: attr(data-en);
	display: block;
	color: var(--emphasis-color);
	font-size: .5em;
	font-family: 'Dancing Script', cursive;
	font-style: italic;
	text-transform: none
}

h2::after {
	content: '';
	position: absolute;
	bottom: -63px;
	left: 50%;
	transform: translate(-50%) rotate(90deg);
	width: 2px;
	height: 150px;
	background: linear-gradient(to bottom,
			transparent 0%,
			var(--emphasis-color) 40%,
			var(--emphasis-color) 60%,
			transparent 100%);
}

h3 {
	font-size: 1.5em;
	border-bottom: 5px dotted var(--white);
	margin-bottom: 3vh
}

h4 {
	font-size: 1.2em;
	border-left: 5px solid var(--emphasis-color);
	padding: 8px 14px;
	margin: var(--dynamic-margin) 0 var(--dynamic-margin-small);
	background: var(--button-bg);
	color: var(--text-dark)
}

form {
	display: inline-block;
	margin: 0;
	padding: 0
}

/*--------------------------------------------
	タイトル
	比率7:3と4:1の画像を使って表示
--------------------------------------------*/
#title {
	position: relative;
	width: 100%
}

#title .title-text {
	position: absolute;
	top: 50%;
	left: 50%;
	color: var(--text-dark);
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	padding: 20px;
	border-width: 5px;
	border-style: solid;
	border-color: var(--border-color);
	background: rgba(255, 255, 255, 0.5);
	font-size: 2em;
	font-weight: bold;
	white-space: nowrap;
	letter-spacing: 0.05em
}

#title .title-text::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	background-color: var(--border-color)
}

#title .title-text::before {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	width: 20px;
	height: 20px;
	background-color: var(--border-color)
}

@media (max-width: 950px) {
	#title .title-text {
		font-size: 1.8em;
		padding: 7px
	}

	#title .title-text::after {
		width: 8px;
		height: 8px
	}

	#title .title-text::before {
		width: 8px;
		height: 8px
	}
}

@media (max-width: 700px) {
	#title .title-text {
		padding: 4px
	}

	#title .title-text::after {
		width: 4px;
		height: 4px
	}

	#title .title-text::before {
		width: 4px;
		height: 4px
	}
}

#title .title-pc,
#title .title-sp,
#title .title-image {
	width: 100%;
	height: auto
}

#title .title-pc {
	display: block
}

#title .title-sp {
	display: none
}

@media (max-width: 900px) {
	#title .title-pc {
		display: none
	}

	#title .title-sp {
		display: block
	}
}

/*--------------------------------------------
	パンくず
	タイトル画像内にあるかないかで挙動を変更
--------------------------------------------*/
.breadcrumb {
	list-style: none;
	padding: 10px 10px;
	margin: 0;
	display: flex;
	align-items: center;
	position: absolute;
	bottom: 3px;
	left: 3%;
	padding: 0;
	text-shadow: 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000
}

.breadcrumb-item {
	display: flex;
	align-items: center;
	margin-right: .2em
}

.breadcrumb-item a {
	color: var(--text-color);
	display: inline-flex;
	align-items: center;
	text-decoration: none !important;
	border-bottom: 1px solid currentColor;
	line-height: 1.2
}

@media (max-width: 900px) {
	.breadcrumb-item {
		font-size: .9em
	}
}

.breadcrumb-item a i {
	display: inline-block;
	margin-right: .1em;
	transform: translateY(-2.5px)
}


.breadcrumb-item::after {
	content: ">";
	margin-left: .2em
}

.breadcrumb-item:last-child::after {
	content: ""
}

.breadcrumb-item.active {
	font-weight: bold
}

.breadcrumb a {
	text-decoration: underline;
	text-underline-offset: 4px
}

/*--------------------------------------------
	改行
--------------------------------------------*/
@media (min-width: 395px) {
	.disp-none-more-min {
		display: none
	}
}

@media (min-width: 900px) {
	.disp-none-more-middle {
		display: none
	}
}

@media (min-width: 1024px) {
	.disp-none-more-large {
		display: none
	}
}

.em-br {
	margin-bottom: 0.8em;
	display: block
}

/*--------------------------------------------
	クローズボタン
	このボタンを押下すると画面を閉じる
--------------------------------------------*/
#closeButton {
	margin-top: 20px;
	border: 1px solid var(--button-border);
	background-color: var(--button-bg);
	color: var(--button-text);
	padding: 8px 17px;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	margin-bottom: 30px
}

#closeButton:hover {
	background-color: var(--button-hover);
	transition: 0.3s
}