@charset "utf-8";
/*共通の設定*/
* {
	box-sizing: border-box;
}
img {
	max-width: 100%;
	height: auto;
}
.onlyPC {
	display: none;
}
a:hover{
	opacity: 0.8;
}
header, main, .inner {/*ボックスを分けているので、それぞれに同じwidthと中央配置を設定*/
	max-width: 920px;
	margin: 0 auto;
	padding: 0px 20px;
}

/*大きなボックスの設定*/
body {
	background: #2e8b57;
	font-family: "メイリオ", Meiryo,"ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	font-size: 0.875em;/* 16 x 0.875 = 14px */
	color: #333;
	line-height: 1.5;
}

/*headerの設定*/
header {
	padding-top: 15px;
	padding-bottom: 15px;
	/* position: fixed; を外す場合はここを static や relative に */
	width: 100%;
	background-image:url(../images/tennpo5.jpg);
	background-size: cover;
  background-position: center;
	/* 中央寄せの設定を追加 */
  display: flex;
  flex-direction: column; /* 要素を縦に並べる */
  align-items: center;    /* 横方向の中央寄せ */
  justify-content: center;
}
h1 {
	 margin-left: 0;
  text-align: center;
}
.flex p {
	margin-top: 20px;
  text-align: center;
	font-family:'Times New Roman', Times, serif;
	font-size: 30px;
	margin-top: 200px;
}
#bun {
	color: #fafad2;
}

/*-- ハンバーガーメニュー --*/
/* メニューを画面上部に固定表示しています */
.gMenu {
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 99;
}
/* メニューアイコンを画面右上に固定しています */
.gMenu .menu-icon {
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 30px;
  padding-top: 5px;
  height: 12px;
}
/* メニューアイコン（三本線）の真ん中の線です */
.gMenu .menu-icon .navicon {
  background: #000; /* 色は自由に変更可能です */
  display: block;
  height: 2px; /* 太さ */
  width: 31px; /* 長さ */
  position: relative;
  transition: background .4s ease-out; /* 形が変わる時のアニメーション */
}
/* 78行目付近の margin-top を調整 */
.flex p {
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px; /* 少し小さく */
  color: #daa520;
  margin-top: 20px; /* 200pxから大幅に減らす */
}
/* メニューアイコン（三本線）の上と下の線を疑似要素で追加 */
.gMenu .menu-icon .navicon::before,
.gMenu .menu-icon .navicon::after {
  background: #000; /* 色は自由に変更可能です */
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .4s ease-out; /* 形が変わる時のアニメーション */
  width: 100%;
}
.gMenu .menu-icon .navicon::before {top: 10px;} /* 位置を上にずらしています */
.gMenu .menu-icon .navicon::after {top: -10px;} /* 位置を下にずらしています */
/* 表示されるメニューです */
.gMenu .menu {
  background-color: rgba(255,255,255,0.9);
  overflow: hidden;
  max-height: 0; /* ★最初は高さを0にして非表示状態に */
  transition: max-height .6s; /* 表示されるときのアニメーション */
  text-align: center;
}
/* メニュー部分のデザインです */
.gMenu .menu li:first-of-type {
  padding-top: 50px;
}
.gMenu .menu li a {
  display: block;
  padding: 24px 20px;
  text-decoration: none;
  text-transform: uppercase;
}
.gMenu .menu li a:hover {
opacity:1;
  background-color: #f0e68c;
}
/* チェックボックスは常に非表示です */
.gMenu .menu-btn {
  display: none;
}
/* ▼▼▼以下はチェックボックスがONの時の状態です▼▼▼ */
.gMenu .menu-btn:checked ~ .menu {
  max-height: 395px; /* ★チェックボックスがオンの時高さを338pxにして表示させます */
  transition: max-height .6s;
}
/* メニューボタンの中央の線を非表示に */
.gMenu .menu-btn:checked ~ .menu-icon .navicon {background: transparent;}

/* メニューボタンの上下の線を45度傾けて✕印を作ります */
.gMenu .menu-btn:checked ~ .menu-icon .navicon::before {transform: rotate(-45deg);top: 0;}
.gMenu .menu-btn:checked ~ .menu-icon .navicon::after {transform: rotate(45deg);top: 0;}
/* ハンバーガーメニューの設定はここまで */

/*mainの設定*/
main {
	margin-top: 100px;/* headerが重なるのでその分余白をとる */
	margin-bottom: 50px;
	width: 90%;
}
main .card {
	display: block;
	margin-bottom: 30px;
	padding: 20px;
	background: #e0ffff;
	border-radius: 20px;
	text-align: center;
}
main .card section {
	display: flex;
	flex-direction: column;
	height: 100%;
}
main .card section h2 {
	margin-bottom: 5px;
	color: #a0522d;
	border: 4px groove #daa520;
	font-weight: bold;
	font-size: 2.0em;
	font-family: 'Sorts Mill Goudy', serif;
	letter-spacing: .1em;
}
main .card section p:nth-child(2) {
	margin-bottom: 15px;
}
main .card section p:nth-child(3) {
	text-align: left;
	flex-grow: 1;/* PCとタブレットの時にボタンの位置を揃えるため伸ばす */
	flex-shrink: 0;/* 縮まない */
	margin-bottom: 20px;
	color: #000;
}
main .card section p:last-child {
	height: 50px;/*「詳しくはこちらから」ボタンを作成*/
	border: solid 1px #666;
	box-shadow: 0 0 10px #999;
	background: #747474 linear-gradient(
		to bottom,
		#747474 0%,
		#535353 49%,
		#424242 50%,
		#393939 100%);
	color: #fff;
	line-height: 50px;
	font-weight: bold;
}


/*footerの設定*/
footer {
	padding-bottom: 30px;
	background: url(../images/line01.gif) repeat-x left center;
}
footer ul {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 50px;
}
footer ul li a {
	border-right: solid 1px #333;
	padding: 0 8px;
}
footer ul li:last-child a {
	border-right: none;
	padding-right: 0;
}
footer ul li a:hover {
	text-decoration: underline;
	opacity: 1;
}
footer p {
	text-align: center;
	font-size: 13px;
}

/*============　タブレット用 768px以上の時　===========*/
@media screen and (min-width: 768px){
	.onlyPC {
		display: block;
	}
	.onlySP {
		display: none;
	}
	.flex {
		display: flex;
	}
	/*headerの設定*/
	header {
		flex-direction: row; /* 横並びに戻す */
    justify-content: space-between;
    align-items: center;
		position: static;/* position: fixed;を解除 */
		padding-top: 50px;
		padding-bottom: 40px;
		justify-content: space-between;
	}
	h1 {
    margin-left: 30px; /* PC版では元の位置に戻す */
    text-align: left;
  }
	header .sns {
		font-size: 30px;
	}
	header .sns li {
		margin-left: 10px;
	}
	#bun {
	font-size: 30px;
	margin-top: 200px;
}
	/*navの設定*/
	.gnav {/*幅を設定していないボックスに上下ボーダーと背景を設定*/
		border-top: dotted 1px #333;
		border-bottom: dotted 1px #333;
		background: #ddd linear-gradient(to bottom, #fff 0%, #ddd 50%, #fff 100%);
	}
	.gnav ul li {
		border-right: dotted 1px #333;/*liの右にボーダーを設定*/
	}
	.gnav ul li:first-child {
		border-left: dotted 1px #333;
	}
	.gnav ul li a {
		display: block;
		padding: 10px 20px;/*aにpaddingを設定すると、その部分もリンク領域になる*/
		font-weight: bold;
		letter-spacing: .1em;/*字間を調整*/
		text-shadow: 1px 1px 0 #fff;
	}
	.gnav ul li a:hover {
		background:rgba(0,0,0,0.25);
		opacity: 1;/*共通設定したopacityを解除する*/
	}
	/*mainの設定*/
	main {
		justify-content: space-between;
		margin-top: 20px;/* mainのSPの時のmargin-top: 100px;をPC用に調整 */
		width: 100%;/* mainのSPの時のwidthを90%から100%に変更 */
	}
	main .card {
		width: calc(280 / 920 * 100%);
	}
	footer p {
		font-size: 16px;
	}
}

/*============　PC用 960px以上の時　===========*/
@media screen and (min-width: 960px){
	header, main, .inner {
		padding-left: 0;/* mainのSPの時の左右のpaddingを変更 */
		padding-right: 0;
	}
	main {
		padding-top: 300px;/*背景画像の高さ+余白をpaddingで設定して背景画像が表示されるようにする*/
		background: url(../images/haikei15.jpg) no-repeat center top;/*キーイメージを背景で設定*/
	}
}