body{
    font-size: 16px;
    color: #000;
    font-family: serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #EAF7F9;
}
img{
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}
a{
    text-decoration: none;
    color: #fff;
}
li{
    list-style: none;
}
h2{
    font-size: 1.5rem;
}
.fadeUp{
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}
.fadeUp.inView{
    transform: translateY(0);
    transition-delay: 0.3s;
    opacity: 1;
}
.fadeLeft{
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s;
}
.fadeLeft.inView{
    transform: translateX(0);
    transition-delay: 0.3s;
    opacity: 1;
}
.fadeRight{
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s;
}
.fadeRight.inView{
    transform: translateX(0);
    transition-delay: 0.3s;
    opacity: 1;
}
.fadeBlur{
    opacity: 0;
    filter: blur(10px);
    transition: all 0.8s;
}
.fadeBlur.inView{
    opacity: 1;
    filter: blur(0);
    transition-delay: 0.3s;
}
/* header */
.header-fixed{
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    z-index: 300;
    transition: all 0.5s;
}
.header-flex{
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}
.logo{
    width: 40%;
}
.logo a{
    display: flex;  
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 30px;
    color: #fff;
}
.logo-img{
    width: 200px;
    height: 100%;
}
.logo-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ハンバーガーメニュー */
.hamb {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    position: relative;
    z-index: 300;
  }
  .black-bg ul{
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  .black-bg ul li {
    text-align: center;
    padding: 20px 0;
  }
  
  .black-bg ul li a {
    color: #fff;
    font-size: 18px; 
    font-weight: bold;
    display: block;
    text-decoration: none;
  }
  
  .line {
    position: absolute;
    width: 27px;
    height: 1px;
    background-color: #fff;
    box-shadow: #272727 1px 1px 1px;
}
.line:nth-child(1){
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
  } 

  .line:nth-child(2)  {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  
  .line:nth-child(3)  {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .black-bg {
    position: fixed;
    background: #a9dde2;
    top: 0;
    right: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    z-index: 100;
  }
  
  .black-bg.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
  }
  
  #hamb.active .line {
    background-color: #fff;
  }
  
  /*アニメーション*/
  .black-bg {
    transition: opacity 0.6s, visibility 0.35s, width 0.35s;
  }
  #hamb.active .line:nth-child(1) {
    top: 50%;
    left: 15%;
    transform: translateY(-50%) rotate(-45deg);
  }
  #hamb.active .line:nth-child(2) {
      opacity: 0;
      background: #FFF;
  }
  #hamb.active .line:nth-child(3) {
    bottom: 45%;
    left: 15%;
    transform: rotate(45deg);
  }
  .animation {
    transition: all .9s;
  }
  
  /* top */
  .top{
    width: 100%;
    height: 100vh;
    transition: background-color 1s ease; /* 背景色のスムーズな切り替え */
    background-image: url(./img/top-back.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    z-index: -10;
  }
  .top::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    background-color: rgba(234, 247, 249, 0.9);
  }
.title{
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    z-index: 10;
    color: #FFF;
    text-shadow: #000 1px 1px 10px;
}
.title h2{
    font-size: 50px;
}
.title p{
    font-size: 30px;
}
.highlight {
    color: #fff; /* 柔らかいオレンジ色で優しく目立つ */
    font-weight: bold; /* 太字で視認性を上げる */
    font-size: 70px; /* フォントサイズを少し大きく */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* 繊細な影をつけて浮き上がらせる */
    /* background: linear-gradient(transparent 70%, rgba(26, 76, 109, 0.3) 100%);  */
    padding-bottom: 5px; /* 背景グラデーションの視覚的効果を高める */
}
.slider-top{
    position: absolute;
    top: 10%;
    left: 40%;
    width: 100%;
}
.slider-top li{
    width: 500px;
    height: 800px;
    padding-right: 20px;
}
.slider-top img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.needle-container {
    position: absolute;
    left: 20%;
    top: 70%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    animation: moveNeedle 2s infinite ease-in-out;
}

.needle {
    width: 2px;
    height: 120px;
    background-color: #FFF;
    border-radius: 50%;
    position: relative;
}

.needle:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 6px;
    height: 20px;
    background-color: gray;
    transform: translateX(-50%);
    border-radius: 50%;
}

.scroll-text {
    margin-left: 10px;
    font-size: 20px;
    color: #fff;
    writing-mode: vertical-rl; /* テキストを縦書きで右から左へ表示 */
    transform: rotate(3600deg); /* テキストを反転 */
    animation: fadeText 2s infinite ease-in-out;
}
.evi{
    width: 100%;
    height: 100%;
    margin: 0 auto;
}
.evi img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes moveNeedle {
    0% {
        top: 70%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50%{
        opacity: 1;
    }
    70%{
        opacity: 0;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes fadeText {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50%{
        opacity: 1;
    }
    70%{
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
.choice{
    width: 100%;
    height: 100%;
    background-color: #FFF;
}
.choice-top-img{
    width: 60%;
    margin: 0 auto;
}
.choice-top-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.choice-all{
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 50px 0;
}
.choice-all li{
    height: 200px;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 100px;
}
.box{
    width: 40%;
    height: 200px !important;
    border-radius: 30px;
    box-shadow: #000 3px 3px 10px;
    background-color: #fff;
    font-size: 20px !important;
    margin: 0 auto;
    margin-top: 40px;
}
.flex-box{
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.choice-img {
    width: 40%;
    height: 150px;
}
.choice-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.right-flex{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.choice-content{
    width: 100%;
}
.choice-content h2{
    text-align: center;
}
.choice-content p{
    width: 80%;
    display: block;
    margin: 0 auto;
    padding-bottom: 20px;
    font-size: 20px;
}
.choice-content span{
    font-size: 18px;
    font-weight: bold;
}
.click{
    width: 150px;
    height: 50px;
    border: 2px solid #000;
    margin: 0 auto;
    border-radius: 20px;
    text-align: center;
    font-size: 16px;
    color: #000;
    /* display: flex;
    justify-content: space-around; */
}
.click-all{
    line-height: 50px;
    width: 100%;
}
.triangle {
    display: inline-block; /* 必要に応じて設定 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px; /* 上下と左の幅を調整 */
    border-color: transparent transparent transparent #555555; /* 色を左側のみに適用 */
    margin-left: 5px; /* 必要に応じて間隔を調整 */
  }
.box p{
    font-size: 16px;
}
.youtu{
    object-fit: cover;
}
footer{
    color: #fff;
    text-align: center;
    padding: 10px;
}
/* 480px以下の画面での対応 */
@media (max-width: 480px) {
    .evi{
        height: auto;
    }
    .header-fixed{
        height: 35px;
    }
    .hamb{
        height: 30px;
    }
    .black-bg {
        width: 80vw;
    }
    .logo span{
        padding-left: 0;
    }
    .logo-img{
        width: 100px;
    }
    .logo a{
        font-size: 20px;
    }
    .top{
        height: 95vh;
    }
    .needle-container{
        left: 10%;
    }
    .needle{
        height: 50px;
    }
    .scroll-text{
        font-size: 12px;
    }
    .title {
        position: static; /* absoluteからstaticに変更して順序を調整 */
        transform: none; /* translateYの無効化 */
        text-align: center; /* タイトルを中央に配置 */
    }
    .title h2{
        position: absolute;
        top: 45%;
        right: 10%;
        transform: translateY(-50%);
        writing-mode: vertical-rl;
        text-align: right;
        text-shadow: #272727 1px 1px 10px;
    }
    .highlight{
        text-shadow: #272727 1px 1px 10px;
    }
    .slider-top {
        position: static; /* スライダーも順序通りに表示 */
        width: 100%; /* 幅を調整 */
        margin-bottom: 20px; /* スライダー下に余白を追加 */
        padding-top: 100px;
    }
    .slider-top li{
        width: 400px;
        height: 400px;
    }
    .slider-top img{
        width: 100%;
        height: 100%;
    }
    .title h2 {
        font-size: 20px;
    }
    .highlight{
        font-size: 30px;
    }
    .title p {
        font-size: 16px;
        padding-top: 20px;
    }
    .choice-all li{
        width: 100%;
        height: 150px;
    }
    .box{
        width: 70% !important;
        margin: 0 auto;
        margin-bottom: 40px;
    }
    .choice-top-img{
        width: 100%;
    }
    .choice-img{
        width: 30%;
        height: 200px;
    }
    .choice-img img{
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .choice-content{
        width: 100%;
    }
    .choice-content h2{
        font-size: 18px;
    }
    .choice-content p{
        font-size: 12px;
    }
    .click{
        height: 30px;
    }
    .click-all{
        line-height: 30px;
        font-size: 14px;
    }
    .youtu{
        object-fit: cover;
    }
}