@charset "utf-8";

/* CSS Document */

#main {
  background-image: url(../images/running_main_bg.jpg);
  background-position: top 40px right -30px;
}

#contents {
  background-image: url(../../common/images/sidebar-bg.jpg), url(../../common/images/sidebar-bg-bottom.jpg), url(../images/gallery_top_bg.jpg);
  background-position: left 350px, left 350px , bottom right -50px;
  background-repeat: no-repeat, repeat-y, no-repeat;
  background-color: white;
  background-size: auto, auto, 68%;
}

h2.pagetitle {
  margin-bottom: 0px;
  background-image: url(../images/pagetitle.jpg);
}

#lead {
  width: 500px;
  height: 68px;
  margin: 25px auto 0;
  background-image: url(../images/gallery_lead.png);
}

#sublead {
  width: 500px;
  height: 68px;
  margin: 0 auto ;
  background-image: url(../images/sub_lead.png);
}

h3.contentsTitle {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  background-color:#0081a3;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.46);
  padding: 5px 10px;
  margin: 25px 0;
}

.intro-text {
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 30px;
}

.contents02 {
  padding: 35px 15px;
}

h4 {
  background-color: #c9c3ab;
  margin-bottom: 20px;
}

h4 span  {
  color: #fff;
  background-color: #0081a3;
  padding: 5px 10px;
  font-size: 17px;
  font-weight: bold;
  display: inline-block;
  letter-spacing: 0.2em;
  width: auto;
}



/*写真*/
#photo {
  padding: 35px 15px;
  background-image: url(../images/gallery_bg.jpg);
  background-repeat: repeat;
  /* min-height: 1645px; */
  min-height: 1335px;
}

.photo-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.photo-list.blank-item {
  position: relative;
}
.photo-list.blank-item::after {
  content: "";
  display: block;
  width: calc(32% - 10px);
}
.photo-item {
  width: calc(32% - 10px);
  height: auto;
  border: 5px solid #fff9ee;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}
.photo-list.wide .photo-item {
  width: calc(50% - 15px);
}
.photo-item:nth-of-type(odd) {
  transform: rotate(-0.5deg) translate3d(0, 0, 0);
  margin-bottom: 10px;
}
.photo-item:nth-of-type(even) {
  transform: rotate(1deg) translate3d(0, 0, 0);
  margin-top: 5px;
}
.photo-item:not(:nth-of-type(n+3)) {
  margin-bottom: 10px;
}
.photo-item-pic {
  width: 100%;
}
.photo-item-pic > img {
  width: 100%;
}

/*5年毎ギャラリーページへ*/
/* .next-link-button {
  color: #fff;
  padding: 25px 20px;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(45deg, #0081a3 0%, #5faabd 100%);
  border-radius: 10px;
  border: 2px solid #65a9c5;
  box-sizing: border-box;
  box-shadow: 4px 4px 6px rgb(0 0 0 / 30%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 460px;
  margin: 50px auto;
  position: relative;
  text-align: center;
  line-height: 1.5;
}

.next-link-button::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  top: calc(50% - 9px);
  border: 1px solid #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

.next-link-button::after {
  content: "";
  display: block;
  border-style: solid;
  border-width: 4px 7px;
  border-color:rgba(255,255,255,0) rgba(255,255,255,0) rgba(255,255,255,0) #0081a3;
  position: absolute;
  top: calc(50% - 3.5px);
  right: 13.5px;
}

.next-link-button:hover {
  text-decoration: none;
  opacity: 0.8;
} */

.next-link-item {
  width: 400px;
  margin: 50px auto;
  height: 100px;
  padding: 3px;
  border-radius: 7px;
  box-shadow: 3px 3px 6px rgba(50, 50, 50, 0.9);
}
.next-link-item.since2022-2028 {
  background:url(../images/gallery_button_bg_2023_2028.jpg), linear-gradient(#0087aa, #34b9ce 70%, #0081a3);
  background-size: cover, auto;
  background-position: right center, center;
}
.next-link-item.since2018-2022 {
  background:url(../images/gallery_button_bg_2018_2022.jpg), linear-gradient(#0087aa, #34b9ce 70%, #0081a3);
  background-size: cover, auto;
  background-position: right center, center;
}
.next-link-item:hover {
  opacity: 0.8;
  text-decoration: none;
}

.next-link-button {
  width: calc(100% - 40px);
  height: 100%;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 20px;
  background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0) 20%);
  position: relative;
}

.next-link-button::before {
  content: "";
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 10px;
  top: calc(50% - 6px);
  right: 6px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.next-link-button::after {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-bottom: 6px solid transparent;
  border-top: 6px solid transparent;
  border-left: 9px solid #0087aa;
  top: calc(50% - 2px);
  right: 10px;
}
.next-link-button:hover {
  text-decoration: none;
}
.next-link-button .button-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  padding-left: 5px;
  display: block;
  font-style: italic;
  text-shadow: 1px 1px 10px #000;
}


/*戻るボタン*/
.back-link {
  width: 300px;
  position: relative;
  background-color:  rgb(163, 206, 218);
  border-radius: 8px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.26);
  padding-bottom: 5px;
  margin:50px auto;
}
.back-link a  {
  width: calc(100% - 50px);
  height: 100%;
  padding: 20px 25px;
  display: block;
  text-decoration: none;
  background-color:  #5faabd;
  border-radius: 5px;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.back-link a:link,
.back-link a:visited {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}
.back-link a:link:hover,
.back-link a:visited:hover {
  background-color: #0081a3;
}

.back-link a::after {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7.5px;
  border-color: rgba(255, 255, 255, 0) rgba(255, 255, 255, 1) rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) ;
  left: 15px;
  top: calc(50% - 7.5px);
}
