@charset "utf-8";
/* CSS Document */
a {
  text-decoration: none;
}
@media screen and (max-width: 1200px) {
  .d-xl-none {
    display: none;
  }
}
/*セカンドページ
-----------------------------------*/
.common header {
  display: flex;
  height: 90px;
  justify-content: space-between;
  background: #fff;
  align-items: center;
}
.common header ul {
  list-style: none;
  margin-right: 80px;
}
.common header ul li {
  padding-right: 1em;
}
.common header ul li a:hover {
  color: #ffa500;
  transition: 0.2s;
}
.common header h1 {
  margin: 0 0 0 30px;
  padding-top: 10px;
}
@media screen and (max-width: 480px) {
  .common header {
    height: 75px;
  }
  .common header h1 {
    margin-left: 1rem;
  }
  .common header h1 img {
    width: 170px;
  }
}
/*fv*/
.common .u-fv {
  background: url("../asset/img/common/fv-img.png")no-repeat center top;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 240px;
  background-size: cover;
}
.common .u-fv h2 {
  color: #fff;
  font-size: 2.25em;
}
.common .u-fv h2 span {
  background-color: rgba(0, 0, 0, 0.5);
}
.c-ttl-kazari{
	text-align: center;
}
@media screen and (max-width: 480px) {
  .common .u-fv {
    height: calc(100vw * 0.4);
    background-size: cover;
  }
  .common .u-fv h2 {
    font-size: 1.625em;
  }
}
@media screen and (min-width: 1200px) {
  .common .u-fv {
    height: 300px;
  }
  .common .u-fv h2 {
    font-size: 2.8em;
  }
}
h2.midashi {
  font-size: 1.875rem;
  font-weight: normal;
  margin-top: 0;
  text-align: center;
}
@media screen and (max-width: 480px) {
  h2.midashi {
    font-size: 1.375rem;
  }
  h2.midashi.pb30 {
    padding-bottom: 0;
  }
	.c-ttl-kazari{
		width: 135px;
		margin: 0 auto;
	}
}
/*アクセス
-------------------------------------*/
.u-green-bg {
  background-color: #26453d;
  color: #ffffff;
  display: inline-block;
  padding: 0 0.5em;
}
.u-purple-bg {
  background-color: #471784;
  color: #ffffff;
  display: inline-block;
  padding: 0 0.5em;
  margin-bottom: 0.5em;
}

.u-mt0 {
  margin-top: 0;
}
.pb80 {
  padding-bottom: 80px;
}
.pb40 {
  padding-bottom: 40px;
}
.u-plr1 {
  margin: 0 1%;
}
.mb30 {
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .u-gmap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9のアスペクト比 */
    height: 0;
  }
  .u-gmap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
@media screen and (max-width: 567px) {
  .c-access-wrap .flex {
    flex-direction: column;
  }
  .c-access-wrap .col-half {
    width: 98%;
  }
}
/*義經神社・義經公園のあゆみ、義經神社について
------------------------------------------*/
.c-history-wrap p, .c-about-wrap p {
  text-indent: 1rem;
  line-height: 2.0;
}
.u-float-l {
  float: left;
}
.c-history-wrap .c-photo{
	padding-left: 2em;
}

.c-about-wrap .c-photo {
  padding: 2em;
  text-indent: 0;
}
.u-float-r {
  float: right;
}
.c-about-wrap .u-float-r.c-photo {
  padding-left: 2em;
  padding-right: 0;
}
@media screen and (max-width: 992px) {
  .c-history-wrap .c-photo, .c-about-wrap .c-photo {
    width: 50%;
  }
}
@media screen and (max-width: 567px) {
  .c-history-wrap .u-float-r, .c-about-wrap .u-float-l, .c-about-wrap .u-float-r {
    float: none;
  }
	.c-history-wrap .c-photo{
    padding-left: 0;
    width: 100%;
  }
  .c-history-wrap .c-photo  {
    padding-right: 0;
    width: 100%;
  }
	.c-about-wrap .c-photo{
		padding: 0;
		width: 100%;
	}
	
  .c-about-wrap .u-float-r.c-photo {
    padding-left: 0;
    width: 100%;
  }
}
/*年間行事・祭典
--------------------------------------------*/
table.c-tb01 {
  width: 100%;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
}
table.c-tb01 th {
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  padding: 1em;
}
table.c-tb01 td {
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  padding: 1em;
}

.event-table-wrap table {
  width: 100%;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
}
.event-table-wrap table th {
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  padding: 1em;
}
.event-table-wrap table td {
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  padding: 1em;
}

.c-btn {
  width: 255px;
  border: 1px solid #222;
}
.c-btn a {
  display: block;
  padding: 0.5em 1em;
  text-decoration: none;
  transition: 0.2s;
  text-align: center;
}
.c-btn a:hover {
  background-color: #eee;
}
@media screen and (max-width: 567px) {
  .c-event-wrap .flex {
    flex-direction: column;
  }
  .c-event-wrap .c-btn {
    margin: 0 auto 1em;
  }
  table.c-tb01 th, table.c-tb01 td {
    padding: 0.5em;
    font-size: 0.85em;
  }
  .event-table-wrap table th, 
  .event-table-wrap table td {
    padding: 0.5em;
    font-size: 0.85em;
  }
  
}
/*境内案内
--------------------------------------*/
.col-4 {
  width: 30%;
  margin: 1% 1% 2em;
}
.guide-box {
  background-color: #fff;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.3);
  padding: 0.8em;
}
@media screen and (max-width: 767px) {
  .col-4 {
    width: 45%;
    margin: 1% auto 0.8em;
  }
	.guide-box{
		padding: 0.5em;
	}
  .guide-box h3 {
    font-size: 1em;
    margin: 0.5em 0;
  }
  .guide-box p {
    font-size: 0.85em;
  }
}
/*お問い合わせ
--------------------------------------------------*/
.c-formtable {
  width: 90%;
  margin: 0 auto;
}
.c-formtable tr {
  border-bottom: 1px dashed #ccc;
}
.c-formtable th {
  text-align: left;
  padding: 1em;
}
.c-formtable td {
  padding: 1em;
}
.c-formtable .hissu {
  font-weight: normal;
  color: red;
  font-size: 0.8em;
}
.c-inquiry-wrap .u-thanks.c-btn {
  margin: 0 auto;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
  padding: 0.8em;
  outline: none;
  border: 1px solid #DDD;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-size: 16px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
  box-shadow: 0 0 7px #3498db;
  border: 1px solid #3498db;
}
input[type="submit"] {
	letter-spacing: 1em;
	text-indent: 1em;
	font-size: 1.2em;
}

@media screen and (max-width: 767px) {
  .c-formtable {
    width: 100%;
  }
  .c-formtable tr {
    border-bottom: none;
  }
  .c-formtable th, .c-formtable td {
    display: block;
  }
  .c-formtable th {
    background-color: #f6f6f6;
  }
  .c-formtable textarea {
    width: 95%;
  }
}
/*ご祈祷・授与品
----------------------------------------------*/
.c-gokito-wrap .c-btn {
  margin: 1em auto;
}
.c-gokito-wrap .u-box {
  padding: 1em;
  margin: 0 1%;
}
.c-gokito-wrap .u-box h3 {
  text-align: center;
}
.c-gokito-wrap .u-onlile .c-photo img {
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.3);
}
@media screen and (max-width: 767px) {
  .c-gokito-wrap .c-btn {
    width: 100%;
  }
}
@media screen and (max-width: 567px) {
  .c-gokito-wrap .flex {
    flex-direction: column;
  }
  .c-gokito-wrap .col-half {
    width: 98%;
  }
  .c-gokito-wrap .c-btn {
    width: 255px;
  }
}


/**/
.c-access{
	background: url("../asset/img/common/washi.jpg") no-repeat center top;
}
.c-access .u-disc {
  padding-left: 3em;
}
.c-access p{
	text-indent: 0;
}

@media screen and (max-width: 767px) {
  .c-access .flex {
    flex-direction: column;
  }
  .c-access .col-half {
    width: 100%;
    padding: 1em 0;
  }
  .c-access .u-disc {
    padding-left: 0;
	}
}


/* Lightboxの表示位置を画面の中央に固定する */
.lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lightbox {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  margin-top: 0 !important; /* デフォルトの上位置マージンを打ち消し */
}

/* ==========================================================================
   Sitemap Page Styles
   ========================================================================== */
.c-sitemap-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.c-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.c-sitemap-list li {
    border-bottom: 1px solid #ddd;
    position: relative; 
}

.c-sitemap-list li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 14px 0 14px 20px;
    transition: all 0.3s ease;
}

.c-sitemap-list li a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 2px solid #6C272D;
    border-right: 2px solid #6C272D;
    transition: all 0.3s ease;
}

.c-sitemap-list li a:hover {
    color: #6C272D;
    background-color: #fcfafb;
    padding-left: 25px;
}

.c-sitemap-list li a:hover::before {
    left: 9px;
}

.c-privacy-wrap {

}
.c-privacy-wrap .contents-wrap {
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}
.c-privacy-wrap dl {

}
.c-privacy-wrap dl dt {
	margin: 0;
	padding: 0 0 0.5em 0;
	font-weight: normal;
}
.c-privacy-wrap dl dd {
	margin: 0;
	padding: 0;
	margin-bottom: 1.5em;
}
.c-privacy-wrap dl dd ul {
	margin: 1em 0;
}
.c-privacy-wrap dl dd ul li {

}

@media screen and (max-width: 767px) {
	.c-privacy-wrap .contents-wrap {
		width: 100%;
	}
}


.c-guide-wrap .is-layout-grid {
	gap: 2.5em;
}
.c-guide-wrap .is-layout-flex {
	background-color: #fff;
	box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.3);
	padding: 0.8em;
	gap: 0em;
}
.c-guide-wrap .wp-element-caption {
	text-align: center;
	font-weight: bold;
	margin-bottom: 1em;
	margin-top: 1em;
}
.c-guide-wrap .wp-block-group .wp-block-paragraph {
	margin-bottom: 0;
}
.c-guide-wrap .c-btn {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
@media (max-width: 767px) {
  .guide-responsive-grid {
    grid-template-columns: repeat(1, minmax(0px, 1fr)) !important;
  }
}

#baguetteBox-overlay .full-image figure {

}
#baguetteBox-overlay .full-image img {
	max-height: 95%;
	max-width: 95%;
}

.l-guide-map-wrap {
	margin-top: 5em;
}
.guide-map {
	width: 100%;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}
.guide-map img {
	width: 100%;
	border: 1px solid #ccc;
}


.c-link-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.c-link-container h3{
	border-left: 5px solid #6C272D;
	border-bottom: 1px solid #6C272D;
	padding:0 0 3px 10px;
}

.c-link-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5em 0;
}

.c-link-list li {
    border-bottom: 1px solid #ddd;
    position: relative; 
}

.c-link-list li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 14px 40px 14px 10px;
    transition: all 0.3s ease;
}

.c-link-list li a::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 2px solid #6C272D;
    border-right: 2px solid #6C272D;
    transition: all 0.3s ease;
}

.c-link-list li a:hover {
    color: #6C272D;
    background-color: #fcfafb;
    padding-left: 15px;
}

.c-link-list li a:hover::after {
    right: 5px;
}


.c-banner {
	display: flex;
	/*justify-content: space-between;*/
	justify-content: center;
	gap: 1.5em;
	flex-wrap: wrap
}
.c-banner > div {
	display: flex;
	width: 30%;
}
.c-banner > div img {
	width: 100%;
}

@media (max-width: 767px) {
	.c-banner {
		flex-direction: column;
		gap: 0.5em;
	}
	.c-banner > div {
		display: flex;
		justify-content: center;
		width: 100%;
	}
}

.hatsuho-cat {
	margin-bottom: 2em;
}


.juyo-wrap h3 {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 1.25rem;
    font-weight: bold;
}
.juyo-wrap h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #6C272D;
    margin-right: 12px;
}

.juyo-item-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.juyo-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.juyo-item .item-photo {
    width: 100%;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f0f0f0;
}

.juyo-item .item-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center;
}

/* --------------------------------------------------------------------------
   テキスト情報エリア（変更なし）
   -------------------------------------------------------------------------- */
.juyo-item .item-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.juyo-item .item-info h4 {
    font-size: 1.05rem;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-weight: bold;
}

.juyo-item .item-info p {
    font-size: 0.95rem;
    color: #da3e3e;
    margin: 0;
    font-weight: 600;
    text-align: right;
}

/* --- レスポンシブ部分は前回のまま変更なし --- */
@media screen and (max-width: 960px) { .juyo-item-list { grid-template-columns: repeat(3, 1fr); } }
@media screen and (max-width: 640px) { .juyo-item-list { grid-template-columns: repeat(2, 1fr); } }


.c-btn-wrap {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
	margin-bottom: 1em;
	
	width: 550px;
	margin-left: auto;
	margin-right: auto;
}

.c-btn-wrap a {
	display: flex;
	align-items: center;
	justify-content: center;
	
	min-width: 255px;
	padding: 0.5em 1em;
	text-decoration: none;
	transition: 0.2s;
	text-align: center;
	border: 1px solid #222;
	
	color: #222; 
}

.c-btn-wrap a::after {
	content: "";
	display: inline-block;
	margin-left: 10px;
	
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #222;
	
	transform: translateY(1px);
}

.c-btn-wrap a:hover {
	background-color: #e0e0e0;
	opacity: 0.9;
}

.c-sodan {
	width: 550px;
	background-color: #f4f4f4;
	margin-left: auto;
	margin-right: auto;
}
.c-sodan p {
	margin: 0;
	padding: 0.5em 1em;
	text-align: center;
}

@media (max-width: 767px) {
	.c-btn-wrap {
		width: 100%;
		gap: 15px 0;
	}
	.c-sodan {
		width: 100%;
	}
}

.c-gokito-wrap .u-box{
	border: 5px solid #ccc;
	padding:0 1em 1em;
	margin-bottom: 30px;
}

.c-gokito-wrap h3 {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 1.25rem;
    font-weight: bold;
}
.c-gokito-wrap h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #6C272D;
    margin-right: 12px;
}

.item-list-wrap ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 8px 0;
}

.item-list-wrap li {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
}

.item-list-wrap li:not(:last-child)::after {
	content: "/";
	margin: 0 10px;
	color: #6C272D;
	font-weight: bold;
}