@charset "UTF-8";
/* ベース：スマホ（〜767px想定） */
body {
	color:#fff;
	margin: 0;
	margin:0;
	padding:0;
  font-family: "Zen Old Mincho", serif;
  font-weight: 400;
	background-image:url("./images/bg2.webp");
	background-attachment:fixed;
	background-color:#000;
	background-size:contain;
}

a {
	text-decoration:none;
	color:#fff;
}

img {
	max-width:100%;
}


header {
	padding-top:30px;
	background-image:url('./images/bg-title.webp');
	background-size:cover;

}

header .logo {
	text-align:center;
filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.8));

}

header .logo img {
	width:60px;
}

header .site-title {
filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.8));
}

header .hero-img img {
	vertical-align:bottom;
}

section {
	padding:20px;
		margin:0 auto 80px auto;

}

h1 {
	margin:0;
}

h2 {
	filter:drop-shadow(0 0 5px #fff);
	font-size:1.5em;
	text-align:left;
}




main {
	background-color:rgba(0,0,0,0.3);
	padding-bottom:50px;
}

.image-area {
	width:100%;
}

.image-area > div {
	overflow:hidden;
}

.image-area img {

  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.btn-area {
	text-align:center;
	margin:20px auto;
}

.btn {
	display:inline-block;
	background-color:#19629a;
	color:#fff;
	font-weight:bold;
	border-radius:5px;
	padding:10px 40px;
	border:1px solid #fff;
}

footer {
	background-color:#ddd;
	padding:20px;
	background-color:rgba(20,80,130,0.7);
	text-align:center;

}

.org-name {
	font-weight:bold;
	font-size:1.2em;
	margin-bottom:20px;
}

.org-name span {
	font-size:0.8em;
}

.address {
	font-size:0.8em;
}

.sns-icons {
	display:flex;
	gap:20px;
	margin:20px auto;
	justify-content:center;
}

.sns-icons div {
	width:26px;
}

.sns-icons svg  {
	fill:#fff;
}

.copyright {
	margin:50px auto 0 auto;
	font-size:0.8em;
}

/* ---------------- 成相寺 ---------------- */

#nariaiji {
	background-color:#000;
	padding:80px 0 30px;

	display:flex;
	flex-wrap:wrap;
}

#nariaiji h2 {
	margin:0 0 20px;
	text-align:center;
}

#nariaiji h2 span {
	font-size:0.7em;
}

#nariaiji .inner {
	display:flex;
	flex-wrap:wrap;
	padding:0 20px;
}

#nariaiji .inner .first-area {
	display:none;
}


#nariaiji .inner .second-area {
	order:1;
	margin-bottom:20px;
}

/* ---------------- 阿字観 ---------------- */

#ajikan {
	padding:0 20px;
	display:flex;
	flex-wrap:wrap;
}

#ajikan .image-area {
	display:grid;
	grid-template-columns: 1fr 1fr; /* 左右2列 */
	grid-template-rows: 100px 100px;    /* 上下2行 */
	gap:6px;

	order:2;
}

#ajikan .image-area img {
	transform:scale(1.5);
}



#ajikan .inner-square {
	order:1
}

/* 左上・左下の配置 */
#ajikan .image-area .left-top {
  grid-row: 1;
  grid-column: 1;
}

#ajikan .image-area .left-top img {
  object-position:bottom;
}

#ajikan .image-area .left-bottom {
  grid-row: 2;
  grid-column: 1;
}

#ajikan .image-area .left-bottom img {
	transform:scale(1.8);
}

/* 右側の画像は縦に2マス分使う */
#ajikan .image-area .right {
  grid-row: 1 / span 2; /* 1行目から2行分にまたがる */
  grid-column: 2;        /* 右列 */
}



/* ---------------- 星空観賞 ---------------- */

#hoshimidai {
	padding:0 20px;
	display:flex;
	flex-wrap:wrap;
}

#hoshimidai .image-area {
	display:grid;
	grid-template-columns: 1fr 1fr; /* 左右2列 */
	grid-template-rows: 100px 100px;    /* 上下2行 */
	gap:6px;

	order:2;
}


#hoshimidai .image-area img {
	transform:scale(1.5);
}

/* 右側の画像は縦に2マス分使う */
#hoshimidai .image-area .left {
  grid-row: 1 / span 2; /* 1行目から2行分にまたがる */
  grid-column: 1;        /* 左列 */
	object-position:10%;
}

/* 左上・左下の配置 */
#hoshimidai .image-area .right-top {
  grid-row: 1;
  grid-column: 2;
}

#hoshimidai .image-area .right-top img {
	object-position:bottom;

}

#hoshimidai .image-area .right-bottom {
  grid-row: 2;
  grid-column: 2;
}

#hoshimidai .image-area .right-bottom img {
	object-position:bottom 10%;
}



/* ---------------- 紅葉ライトアップ ---------------- */

#lightup {
	padding:0 20px;

	display:flex;
	flex-wrap:wrap;
}

#lightup .image-area {
	display:grid;
	grid-template-columns: 1fr 1fr; /* 左右2列 */
	grid-template-rows: 100px 100px;    /* 上下2行 */
	gap:6px;

	order:2;
}

#lightup .image-area img {
	transform:scale(1.4);
}

#lightup .inner-square {
	order:1;
}

#lightup .btn-area {
	order:3;
}

/* 右側の画像は縦に2マス分使う */
#lightup .image-area .right {
  grid-row: 1 / span 2; /* 1行目から2行分にまたがる */
  grid-column: 2;        /* 右列 */
}

/* 左上・左下の配置 */
#lightup .image-area .left-top {
  grid-row: 1;
  grid-column: 1;
}

#lightup .image-area .left-bottom {
  grid-row: 2;
  grid-column: 1;
}

#lightup .image-area .left-bottom img {
	object-position:top;
}

/* ---------------- プラン詳細 ---------------- */
#plan {
	max-width:1400px;
}

#plan .price {
	font-size: 1.4em;
        font-weight: bold;
}

	#plan .price span {
		font-size:1.2rem;
	}

	#plan .timetable {
		display:grid;
		 grid-template-columns: 80px 1fr;
		border-top:1px dotted #fff;
	}

#plan .timetable dt,
#plan .timetable dd {
	margin:0;
	padding:10px 20px;
	border-bottom:1px dotted #fff;
}

#plan .first-area {
	margin-bottom:80px;
}

.route-img {
	margin-bottom:50px;
}



/* ---------------- プラン詳細 ---------------- */
#access {
	max-width:1400px;
}

/* ---------------------------- タブレット向け：768px以上で適用 ---------------------------- */
@media (min-width: 768px) {
  body {

  }
	header {
		padding-top:50px;
/*
		max-width:1400px;
		min-height:875px;
		background-size:100%;
		margin:auto;
		background-repeat:no-repeat;
*/
	}

	header .logo {
		text-align:center;
	}

	header .logo img {
		width:150px;
	}

	header .site-title {
		text-align:center;
	}

	header .site-title img {
		max-width:1000px;
	}

header .hero-img img {
	width:100%;
}

	h2 {
		font-size:1.6em;
		text-align:left;
	}

  main {
  }

	.inner {
		width:90%;
		max-width:1200px;
		margin:auto;

		display:grid;
		grid-template-columns: repeat(2, 1fr);

		gap:40px;
	}

	.inner-square {
		background-color:rgba(255,255,255,0.9);
		display:inline-block;
		padding:30px;
		max-width:600px;
		color:#000;
	}

.btn {
	font-size:1.2em;
}

/* ---------------- 成相寺 ---------------- */
	#nariaiji .inner {
		display:grid;
			grid-template-columns:1fr 1fr;

	}

	#nariaiji .inner .first-area {
		order:unset;
		display:grid;
	}

	#nariaiji .inner .first-area img {
		width:100%;
		height:100%;
		object-fit:cover;
	}

	#nariaiji .inner .second-area {
		order:unset;

	}

	#nariaiji .mb-img {
		display:none;
	}

	#nariaiji p{
		font-size:1.2em;
	}
/* ---------------- 阿字観 ---------------- */


	#ajikan {
		position:relative;
		overflow:hidden;
		/* height:60vh; */

	}

	#ajikan .image-area {
		grid-template-rows:1fr 1fr;
	}

	#ajikan .image-area .left-top img{
		transform:scale(1.8);
		object-position:bottom;
	}

	#ajikan .inner-square {
		position:absolute;
		top:15%;
  left: 50%;
  transform: translateX(-50%);
		width:60%;
	}

/* ---------------- 星空観賞 ---------------- */
	#hoshimidai {
		position:relative;
		overflow:hidden;
		/* height:60vh; */
	}

	#hoshimidai .image-area {
			grid-template-rows:1fr 1fr;

	}

	#hoshimidai .image-area .left img {
		height:100%;
		transform:scale(1);
	}


	#hoshimidai .inner-square {
		position:absolute;
		top:15%;
  left: 50%;
  transform: translateX(-50%);
		width:60%;
	}

/* ---------------- 紅葉ライトアップ ---------------- */

	#lightup {
		position:relative;
		/* overflow:hidden; */
		/* height:60vh; */
	}


	#lightup .image-area {
		/* height:100%; */
		grid-template-rows:1fr 1fr;

}

	#lightup .inner-square {
		position:absolute;
		top:15%;
	  left: 50%;
  transform: translateX(-50%);
		width:60%;
	}

/* ---------------- プラン・境内図 ---------------- */

	#plan {

	}

	#plan .price {
		font-size:1.6em;
		font-weight:bold;
	}




footer .footer-wrapper {
	font-size:1.4em;
	max-width:1200px;
	display:grid;
	grid-template-columns:1fr 1fr;
	margin:auto;
}


footer .footer-wrapper .first-area {
	text-align:left;
}

footer .footer-wrapper .second-area {
	text-align:center;
}

.sns-icons {
	justify-content:center;
}

}

.copyright {
grid-column: 1 / span 2;

}

/* ---------------------------- lgサイズ ---------------------------- */
/* プランと境内図の並びのバランス考慮 */
@media (min-width: 992px) {
	#plan {
		display:grid;
		gap:30px;

		grid-template-columns:40% 1fr;

	}

#plan .first-area {
	margin-bottom:0;
}

}


/* ---------------------------- PC向け：1200px以上で適用 ---------------------------- */
@media (min-width: 1200px) {
	header {
		height:80vh;
		background-position:bottom;

	}

	header .logo img {
		width:200px;
	}

 .image-area {
	width:100%;
}

	h2 {
		font-size:2em;
		margin-top:0;
	}

h3 {
		font-size:1.8em;
	}

section {
	margin:0 auto 100px auto
}

/* ---------------- 成相寺 ---------------- */

#nariaiji p {
	font-size:1.2em;
}

/* ---------------- 阿字観 ---------------- */


	#ajikan {
		height:806px;
	}

	#ajikan .image-area {
		display:grid;
		grid-template-columns: 1.5fr 1fr; /* 左右2列 */
		grid-template-rows: 400px 400px;    /* 上下2行 */
		gap:6px;
	}

#ajikan .image-area img {
	transform: scale(1);
}

	/* 右側の画像は縦に2マス分使う */
	#ajikan .image-area .right {
	  grid-row: 1 / span 2; /* 1行目から2行分にまたがる */
	  grid-column: 2;        /* 右列 */
	}

	/* 左上・左下の配置 */
	#ajikan .image-area .left-top {
	  object-position:top center;
	}

	#ajikan .image-area .left-bottom {
	  object-position:center%;
	}

	#ajikan .inner-square {
		position:absolute;
		right:15%;
		left:auto;
		top:50%;
  transform: translateY(-50%);

	}

/* ---------------- 星空観賞 ---------------- */
	#hoshimidai {
		height:806px;
	}

	#hoshimidai .image-area {
		grid-template-columns: 1fr 1.5fr; /* 左右2列 */
		grid-template-rows: 400px 400px;    /* 上下2行 */
		gap:6px;
	}

	#hoshimidai .inner-square {
		position:absolute;
		left:15%;
		right:auto;
		top:50%;
  transform: translateY(-50%);

	}

	#hoshimidai .image-area .left {
	  object-position:center 60%;
	}

	#hoshimidai .image-area .right-top {
	  object-position:bottom;
	}

/* ---------------- 紅葉ライトアップ ---------------- */

	#lightup {
		height:806px;
	}

	#lightup .image-area {
		display:grid;
		grid-template-columns: 1.5fr 1fr; /* 左右2列 */
		grid-template-rows: 400px 400px;    /* 上下2行 */
		gap:6px;
	}

	/* 右側の画像は縦に2マス分使う */
	#lightup .image-area .right {
	  grid-row: 1 / span 2; /* 1行目から2行分にまたがる */
	  grid-column: 2;        /* 右列 */
	}

	/* 左上・左下の配置 */
	#lightup .image-area .left-top {
	  object-position:top center;
	}

	#lightup .image-area .left-bottom {
	  object-position:center 20%;
	}

	#lightup .inner-square {
		position:absolute;
		right:15%;
		left:auto;
		top:50%;
  transform: translateY(-50%);

	}

/* ---------------- プラン・境内図 ---------------- */
	#plan {
		width:80%;
		grid-template-columns:36% 1fr;
	}



/* ---------------- アクセス ---------------- */

	#access {
		width:80%;
	}



}

@media (min-width: 1920px) {
	section {
		margin:0 auto 150px auto
	}

/* ---------------- 阿字観 ---------------- */
	#ajikan .image-area .left-top img {
		transform:scale(1);
		object-position:center;
	}

	#ajikan .image-area .left-bottom img {
		transform:scale(1);
		object-position:50% 80%;
	}

	#ajikan .image-area .right img {
		transform:scale(1);
		object-position:50% 55%;
	}

/* ---------------- 星空観賞 ---------------- */
	#hoshimidai .image-area .left img {
		transform:scale(1.8);
		object-position:left;
	}

	#hoshimidai .image-area .right-top img {
		transform:scale(1);
		object-position:50% 90%;
	}

	#hoshimidai .image-area .right-bottom img {
		transform:scale(1);
		object-position:50% 55%;
	}
/* ---------------- 紅葉ライトアップ ---------------- */
	#lightup .image-area .left-top img {
		transform:scale(1);
		object-position:50% 75%;
	}

	#lightup .image-area .left-bottom img {
		transform:scale(1);
		object-position:50% 30%;
	}

	#lightup .image-area .right img {
		transform:scale(1);
		object-position:50% 55%;
	}

}
