/* IMPORT RESET ================================================== */
@import url("sanitize.css");

/* WEB FONT ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css");

/* LAYOUT ======================================================== */
/*実際に適用するレイアウトパターンを直下のcssディレクトリにコピーして読むこむ*/


/* 変数設定 ======================================================== */

/*共通のサイズや色を変数で設定
　変数を使う時は数値で入れる箇所を var(--red) のように記載*/
:root{
	/*文字サイズ*/
	--x-small:0.8rem;/*50%*/
	--small:1.2rem;/*75%*/
	--medium:1.6rem;/*100%*/
	--large:2rem;/*125%*/
	--x-large:2.4rem;/*150%*/
	/*色*/
	--red:#c00;
	--blue:#039;
	--mallcolor:#b60081;
}

/* STYLES ======================================================== */

/* ルートのフォントサイズを10pxに設定（1rem=10px）*/
html {
  font-size: 62.5%;
}

/* bodyのフォントサイズを16pxに設定 */
body {
  font-size: 1.6rem;
}

/* MEMO ++++++++++++++++++++++++++++++++
  フォントサイズはremで指定すること
  例）10pxは1rem、12pxは1.2rem
+++++++++++++++++++++++++++++++++++++ */

.font-xs{
  font-size: var(--x-small);
}

.font-s{
  font-size: var(--small);
}

.font-m{
  font-size: var(--medium);
}

.font-l{
  font-size: var(--large);
}

.font-xl{
  font-size: var(--x-large);
}

/*文字色*/
.font-red{
  color: var(--red);
}

.font-blue{
  color: var(--blue);
}

.font-mcolor{
  color: var(--mallcolor);
}


*{
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  margin: 0;
  padding: 0;
  background: #ce000c;
}

/*下記marginやpadding、widthはサイトデザインに合わせて調整*/

header{
  margin: 0;
  padding: 0;
}

main{
  margin: 0;
  padding: 0;
}

footer{
  margin: 0;
  padding: 10px 0;
  background-color: #ba8901;
  color: #fff;
  text-align: center;
}

header h1,
main section,
footer section{
  margin: 0 auto;
  max-width: 980px;
}

header h1{
	position: relative;
	
	.title{
		position: absolute;
		top: 15%;
		left: 0;
	}
}

main nav{
	width: 100%;
	margin: 2em auto 3em;
	padding: 0 1em 0 2em;
  max-width: 980px;
	
	p{
	 width: 50%;
	 text-align: center;
		
		img{
			max-width: 300px;
		}
	}
}

@media (max-width: 1000px){
/*mainのmax-widthよりウィンドウ幅が狭くなった時にコンテンツとウィンドウが接しないように設定
  @mediaのmax-widthと下記paddingはサイトコンテンツのmax-widthに合わせて調整*/
	
  main,
  footer{
    padding: 0;
  }
}

/*画像は基本的に横幅100%表示、高さは横幅に合わせて自動調整
  小さい画像を使用する際は個別にmax-widthを設定する*/
img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
  image-rendering: -webkit-optimize-contrast;　/*Chromeで画像がぼやけるのを防止*/
}

h2{
	text-align: center;
	
	img{
		max-width: 750px;
	}
}

/*Flexbox ────────────────────────────────────────────────────────────
　子要素の間隔はgapで指定。
*/
.flexbox{
  display: flex;
  flex-wrap: wrap;
}

/*PC・スマホ共に2分割　※flexboxと一緒に設定*/
.box2{
	--spacing: 20px; /*子要素の間隔*/
	
	gap: var(--spacing);
	
	> div,
	> p{
		width: calc( ( 100% - var(--spacing) ) / 2 ); 
	}
}

/*PC2列、スマホ1列　※flexboxと一緒に設定*/
.box2-1{
	--spacing: 20px; /*子要素の間隔*/
	
	gap: var(--spacing);
	
	> div,
	> p{
		width: 100%;
	}
	
	@media (min-width: 768px){
		/*PCのみ適用*/
  	> div,
 		> p{
    	width: calc( ( 100% - var(--spacing)) / 2 ); 
  	}
	}
}

/*リンクボタン ──────────────────────────────────────────────────*/
a.btn {
	position: relative;
	display: flex;
	align-items: center;
  justify-content: center;
	width: 14em;
	height: 2.6em;
	margin: 0 auto;
	padding: 10px 2em;
	background: #c30d23;
	color: #fff;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	border-radius: 1.3em;
	
	&::after{
		position: absolute;
		right: 10px;
		margin: auto;
		vertical-align: middle;
		font-family: "Font Awesome 6 Free";
		content: "\f054";
		font-weight: 900;
	}
	
	/*マウスオーバーした時*/
	@media (hover: hover) {
		/* hover指定できるPCを想定したスタイル */
		&:hover {
			background-color: #a30b1f;
			color: #fff;
		}
	}
	@media (hover: none) {
		/* hoverが使えないタッチ端末 */
		&:active {
			background-color: #a30b1f;
			color: #fff;
		}
	}
}


/*ページトップスクロール ──────────────────────────────────────────────────*/
#page-top {
	position: fixed;
	right: 10px;
	bottom: 10px;
	z-index: 10;
}

.topbtn{
	display: block;
	background: #000;
	color: #fff;
	width: 50px;
	height: 50px;
	text-align: center;
	box-shadow: 0 0 0 3px #000;/*ボタンの背景色に合わせる*/
	border: 1px solid #fff;
	text-decoration: none;
	
	/*マウスオーバーした時*/
	@media (hover: hover) {
		/* hover指定できるPCを想定したスタイル */
		&:hover {
			background: #666;
			box-shadow: 0 0 0 3px #666;/*ボタンの背景色に合わせる*/
		}
	}
	@media (hover: none) {
		/* hoverが使えないタッチ端末を想定した装飾 */
		&:active {
			background: #666;
			box-shadow: 0 0 0 3px #666;/*ボタンの背景色に合わせる*/
		}
	}
	
	i {
		padding-top: 5px;
		font-size: var(--large);
		display: block;
	}
	span {
		display: block;
		font-size: var(--small);
		margin-top: -2px;
	}
}

/* ▲ページトップスクロールここまで▲ */

/* スマホなど幅が足りなくなったらspanで囲った単位で強制改行
   spanで囲まれている文章は自動改行がされなくなるので要注意*/
.spBr span{
  display: inline-block;
  white-space: nowrap;
}

.wrapper{
	max-width: 980px;
	margin: 0 auto;
	padding: 0;
}

section p {
  margin: 0;
}

@media screen and (max-width:767px){
	.topbtn{
		display: none;
	}
	
}

area{
	cursor: pointer;
}