@import url('https://fonts.googleapis.com/css?family=Poppins:200i,400&display=swap');

/* text-color */
.gray {color:#808080;}
.black {color:#171717;}
.purple {color:#a757a8;}
.ultramarine {color:#465daa;}
.blue {color:#0067c0;}
.lightblue {color:#afdfe4;}
.deepgreen {color:#060;}
.green {color:#008000;}
.yellowgreen {color:#b9c42f;}
.yellow {color:#ffb74c;}
.orange {color:#ff7b00;}
.pink {color:#f58f98;}
.vermilion {color:#ef454a;}
.red {color:#ed1a3d;}
.carmine {color:#c22047;}
.magenta {color:#ec008c;}
.brown {color:#994c00;}
.reddishbrown {color:#800000;}
.yellowocher {color:#c39143;}
.gold {color:#ffd700;}
.silver {color:#c0c0c0;}

@media (prefers-reduced-motion: no-preference) {
  * {
   scroll-behavior: smooth;
  }
}

::root {
  --header-height: 60px;
}

html {
  /* Info: 1rem === 10px, 1.5rem === 15px, 2rem === 20px and so forth
     */
  font-size: 10px;
}

body {
  height: 100%;
  width: 100%;
  background-repeat: no-repeat;
  color: #f3f3f3;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.4em;
  margin: 0;
}

header {
  background: 
    url('http://www.tbs.co.jp/rikuou_tbs/img/footer_bg.jpg');
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 60px;
  border-bottom-left-radius: 30px 30px;
  border-bottom-right-radius: 30px 30px;
}

#header-img {
  top: 0;
  height: 60px;
  aspect-ratio: 1 / 1;
  vertical-align: middle;
}

#logo-link {
  display: inline-block;
  vertical-align: middle;
}

header h1 {
  color: #ffff27;
  font-size: min(5vw, 2rem);
  text-align: center;
}

nav {
  width: 50%;
  max-width: 300px;
  height: 60px;
}

nav > ul {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
  padding-inline-start: 0;
  margin-block: 0;
  height: 100%;
}

nav > ul > li {
  color: #dfdfe2;
  margin: 0 0.2rem;
  padding: 0.2rem;
  display: block;
}

nav > ul > li:hover {
  background-color: #ffff27;
  color: #1b1b32;
  cursor: pointer;
}

li > a {
  color: inherit;
  text-decoration: none;
}

main {
  margin: 20px 8px;
  box-sizing: border-box;
}

.colorful-texturized-background {
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  background-size: 100%;
  pointer-events: none;
  z-index: -2;
}

.colorful-texturized-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      to right,
      #efefef,
      #efefef 1px,
      #efefef,
      transparent 2px,
      transparent 4px,
      transparent 2px
    );
  background-size: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, rgba(255, 255, 255, 0.15) 7%, rgba(255, 255, 255, 0.25) 10%, #fff 100%);
mask-image: linear-gradient(to bottom, transparent 2%, rgba(255, 255, 255, 0.15) 7%, rgba(255, 255, 255, 0.25) 10%, #fff 100%);
  z-index: -1;
}

#contact {
  display: flex;
  justify-content: center;
  top: 0;
  margin: 0 0 15px 0;
  padding: 0;
}

.opening {
  position: relative;
  width: 1000px;
  height: auto;
  display: block;
  overflow: hidden;
  background: transparent;
  margin: 0 0 30px 0;
}

.opening-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures the image covers the container */
  margin: 0;
  padding: 0;
}

.opening-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      to bottom,
      transparent,
      rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.8) 80%, rgba(255, 255, 255, 0.9) 100%) no-repeat;
  margin: 0;
  padding: 0;
}

.news-letter {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.news-letter h1 {
  text-align: center;
  color: #171717;
  font-size: 2.5rem;
}

.label-email {
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  margin: 0 0 0 7px;
  padding: 0 3px;
  background: transparent;
  width: fit-content;
}

input[type=email] {
  border: 2px solid grey;
  border-radius: 4px;
  box-sizing: border-box;
  padding: 12px 20px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.3);
}

input[type=email]:focus {
  border: 3px solid #555;
  background: rgba(255, 255, 255, 0.7);
}

input[type=submit] {
  background-color: #0067c0;
  border: none;
  color: white;
  padding: 13px 28px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
}

input[type=submit]:hover {
  color: #ffff27;
}

#info {
  display: flex;
  justify-content: center;
  color: black;
  margin: 0 0 20px 0;
}

#info ul {
  list-style: none;
  padding-left: 0;
}

#info ul li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('your-image.jpg');
  background-size: cover; /* or contain */
  background-position: center;
  margin-right: 10px;
  vertical-align: middle;
}

#info ul li {
  display: flex;
  align-items: flex-start; /* aligns top of bullet and text */
  margin-bottom: 40px;
}

#info .bullet {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-image: url('http://www.tbs.co.jp/rikuou_tbs/img/top_whats_new.png');
  background-size: cover;
  background-position: 0% 0;
  margin-right: 12px;
}

#info .text h3 {
  font-size: 2.2rem;
  margin: 0;
}

#info .text p {
  font-size: 1.7rem;
  margin: 6px 0 0 0;
}

.video {
  display: flex;
  width: 100%;
  justify-content: center;
}

.video iframe {
  width: 720px;
  height: 405px;
}

.gallery-bg {
  display: flex;
  width: 100%;
  margin: 10px 0;
  background: 
    repeating-linear-gradient(
      to right,
      #465daa33,
      #465daa77 1px,
      #465daa55,
      #afdfe433 2px,
      #afdfe477 4px,
      #afdfe455 2px
    );
  background-size: auto;
  z-index: -1;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
}

.gallery figure {
  margin: 0;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.gallery figcaption {
  background-color: #ffff27dd;
  color: black;
  font-size: 0.8em;
  font-weight: bold;
  text-align: center;
  width: 100%;
  height: 20px;
  line-height: 20px;
  border-radius: 0 0 10px 10px;
}

#wd-credit {
  text-align: center;
  background: 
    url('http://www.tbs.co.jp/rikuou_tbs/img/footer_bg.jpg');
  margin: 10px 8px;
  padding: 5px;
  border-radius: 5px;
}

#wd-credit a {
  color: #f3f3f3;
}

#wd-credit a:hover {
  color: #ffff27;
}