@charset "UTF-8";

#water2 {
  text-align: center;
}

#water1 {
  padding-bottom: 30px;
}

h1 {
  text-align: center;
  line-height: 0;
  border-bottom: 4px solid var(--yellow);
}

#imageMap {
  margin: 0 auto;
  border: none;
  height: auto;
  max-width: 100%;
  width: auto;
}
h1,
#water2,
#water1 {
  margin-top: 0 !important;
  background: url(../images/water-item/bgWater.png) no-repeat 50% 0;
  background-size: cover;
  background-attachment: fixed;
}

header,
.special3 header {
  border-top: 5px solid #f5ee18;
  border-bottom: 5px solid #f5ee18;
}

.wrap-flex > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  @media only screen and (min-width: 561px) {
    > div {
      width: 48%;
    }
  }
}
.wrap-flex > div > div > div {
  position: relative;
}
.wrap-flex figure a:hover {
  opacity: 1;
}

.wrap-flex figure a img {
  transition: opacity 0.3s;
}

.wrap-flex figure a:hover img {
  opacity: 0.8;
}

.wrap-flex h3 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -50px;
  padding: 10px;
  min-height: 140px;
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  color: #03659f;
  @media only screen and (min-width: 561px) {
    font-size: 2.4em;
    text-shadow:
      1px 1px #fef102,
      1px -1px #fef102,
      -1px 1px #fef102,
      -1px -1px #fef102;
  }
  background: url(../images/water-item/water.png) no-repeat 50% 50%;
}
.wrap-flex figure a:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}
.wrap-flex h3 a:hover {
  opacity: 0.8;
}
figure.is-style-rounded img {
  border: 6px solid #fff;
}
.gridContainer {
  margin: 0 auto;
  width: 100%;
  column-count: 5;
  column-gap: 0;
  padding-bottom: 30px;
}

.grid {
  padding: 10px;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
  text-align: center;
}

.grid img {
  display: block;
  margin: 0 auto;
}
a h2,
a h3,
.desc a {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  z-index: 0;
  padding: 5px 5px 5px 25px;
  vertical-align: middle;
  text-decoration: none;
  text-align: center;
  font-size: 100%;
  font-weight: bold;
  line-height: 1.3;
  color: #fff !important;
  background: #f08200;
  text-align: left;
}

#water2 a h2,
#water2 a h3 {
  display: block;
  margin-top: -40px;
}

a h2:before,
a h2:after,
a h3:before,
a h3:after,
.desc a:before,
.desc a:after {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  content: "";
  vertical-align: middle;
}

a h2:before,
a h3:before,
.desc a:before {
  left: 5px;
  width: 10px;
  height: 2px;
  background: #fff;
}

a h2:after,
a h3:after,
.desc a:after {
  left: 5px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

a p {
  z-index: 100;
  margin-top: -10px;
  padding: 20px 10px 10px;
  color: #fff;
  text-align: left;
  line-height: 1.5;
  background: rgba(0, 161, 216, 0.5);
}

/* 長期イベント
------------------------------- */
.desc {
  width: 95%;
  margin: 0 auto 60px;
  padding: 1em;
  border: 4px solid #0080cb;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.2em;
  line-height: 1.6;
  border-radius: 10px;
}
.desc {
  width: 80%;
}

.desc a {
  display: block;
  margin-top: 1em;
}

.desc a:hover:before {
  transform: translateX(5px);
}
.desc a:hover:after {
  transform: translateX(5px) rotate(45deg);
}

.gridContainer p {
  margin-top: 10px;
  padding: 10px;
  line-height: 1.4;
  color: #fff;
  background: #0a90c0;
}

.waterFooter {
  clear: both;
  padding: 20px 10px;
  background: #0a90c0;
  border-bottom: 4px solid #fff;
}

.waterFooter p {
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.3;
  text-align: center;
  color: #fff;
}

@media only screen and (max-width: 800px) {
  #water2 .gridContainer {
    column-count: 2;
  }
  .waterFooter p {
    text-align: left;
  }
}

@media only screen and (max-width: 640px) {
  .gridContainer {
    column-count: 1 !important;
  }
}
