.hero {
  position: relative;
  height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-container {
  background-color: rgba(150, 0, 39, 0.6); /* 半透明の黒背景 */
  padding: 1em 2em;
  border-radius: 10px;
  color: white;
  font-family: "游明朝", serif;
  text-align: center;
  max-width: 90%;
}



.flex_test-item {
    padding: 10px;
    color:  #ffffff;               /* 文字色 */
    margin:  10px;              /* 外側の余白 */
    border-radius:  5px;        /* 角丸指定 */
    width: 15%;                 /* 幅指定 */
}

.flex_test-item:nth-child(1) {
    background-color:  #0000ff; /* 背景色指定 */
}

.flex_test-item:nth-child(2) {
    background-color:  #00f; /* 背景色指定 */
}

.flex_test-item:nth-child(3) {
    background-color: rgb(150,0,39); /* 背景色指定 */
}

.flex_test-item:nth-child(4) {
    background-color:  rgba(150,0,39,0.5); /* 背景色指定 */
}


.sample_btn {
  display: inline-block;
  width: 250px;
  text-align: center;
  text-decoration: none;
  line-height: 60px;
  outline: none;
  color: #1B85FB;
  background-color: #fff;
  position: relative;
  border: 1px solid #1B85FB;
  transition: color 0.5s ease;
}
.sample_btn:hover {
  color: #fff;
}
.sample_btn:hover::before {
  transform: scaleY(1);
}
.sample_btn::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #1B85FB;
  transform: scaleX(0);
  transition: all 0.5s ease;
  transition-property: transform;
}
.text {
  position: relative;
}

/* 以下はレイアウト調整用 */
body{
  vertical-align:middle; 
  padding: 50px 0;
  text-align: center;
}

.description-box {
  background-color: rgba(0, 0, 0, 0.7); /* 半透明の黒背景 */
  color: #ffffff;
  padding: 10px;
  margin: 30px auto;
  width: 90%;
  max-width: 800px;
  font-family: "游明朝", serif;
  font-size: 1.1em;
  border-radius: 10px;
  line-height: 1.7;
}

.fixed-bg {
  background-image: url('aizu_railway_bg.JPG');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ←これがポイント */
  background-position: center;
  color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

.main-photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.scroll-down {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 999999;
  display: block;
  width: 56px;
  height: 56px;
  line-height: 56px;
  text-align: center;
  font-size: 32px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  animation: bounceArrow 1.5s infinite;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.scroll-down {
  transition: opacity 0.4s ease;
}

.scroll-down.hide {
  opacity: 0;
  pointer-events: none; /* クリックも無効にする */
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

ojika {
  color: #ff6347;
  font-size: 30px;
}