body{
    font-size: 16px;
    color: #000;
    font-family: serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-bottom: 100px;
    background-color: #272727;
    scroll-behavior: smooth;
}
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;
    z-index: 301;
    box-shadow: #272727 1px 1px 1px;
}
.line:nth-child(1){
    top: 20%;
  } 

  .line:nth-child(2)  {
    top: 50%;
    transform: translateY(-50%);
  }
  
  .line:nth-child(3)  {
    bottom: 20%;
  }
  
  .black-bg {
    position: fixed;
    background: #272727;
    top: 0;
    right: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    z-index: 200;
    transition: opacity 0.6s, visibility 0.35s ,width 0.35s;
  }
  
  .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%;
    transform: translateY(-50%) rotate(-45deg);
  }
  #hamb.active .line:nth-child(2) {
      opacity: 0;
  }
  #hamb.active .line:nth-child(3) {
    bottom: 45%;
    transform: rotate(45deg);
  }
  .animation {
    transition: all .9s;
  }
  
.worries-top{
    width: 100%;
    height: 90vh;
}
.top-img{
    width: 100%;
    height: 100%;
    position: relative;
}
.top-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-img h2{
    position: absolute;
    top: 20%;
    left: 15%;
    font-size: 45px;
    color: #fff;
    text-shadow: #ff4d00 1px 1px 10px;
    writing-mode: vertical-rl;
}
.worries-all-content{
    width: 100%;
    height: 100%;
    position: relative;
    padding-top: 150px;
}
.content-top{
    position: absolute;
    top: -50px;
    right: 20%;
}
.content-top h3{
    font-size: 40px;
    color: #fff;
    position: relative;
}
.content-top span{
    font-size: 70px;
}
.content-top h3::before{
    content: "for BRAIN8";
    position: absolute;
    bottom: -60px;
    right: 10%;
    font-size: 30px;
}
/* menu-list */
.menu-list1{
    width: 60%;
    height: 100%;
    margin: 0 auto;
}
.menu-list2{
    padding-top: 0;
}
.list-title{
    width: 100%;
    height: 50px;
    margin: 0;
    background-color: #f5f5f5;
    color: #2E3A59;
    font-size: 30px;
    position: relative;
    padding-left: 20px;
    line-height: 50px;
}
/*アイコンの＋と×*/
.list-title::before,
.list-title::after{
    position: absolute;
    content:'';
    width: 15px;
    height: 2px;
    background-color: #2E3A59;
    transition: transform 0.3s; /* スムーズな回転 */
}
.list-title::before{
    top:48%;
    right: 15px;
    transform: rotate(0deg);
    
}
.list-title::after{    
    top:48%;
    right: 15px;
    transform: rotate(90deg);

}
.list-title.active::before {
    transform: rotate(90deg);
}
.list-title.active::after {
    transform: rotate(0deg);
}
.menu-list1 ul{
    width: 100%;
    height: auto; /* スライドアニメーション用にautoに設定 */
    background-color: rgba(255, 255, 255, 0.5);
    overflow: hidden; /* アニメーション中のチラつきを防ぐ */
    padding-top: 10px;
    display: none;
}
.list-title.active + ul{
    display: flex !important; /* 表示時に flex を適用 */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.menu-list1 li{
    width: 45%;
    height: 150px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 30px;
}
.menu-p{
    width: 60%;
    display: flex;
    flex-wrap: wrap;
}
.menu-p h5{
    width: 100%;
    font-size: 18px;
    color: #fff;
    text-align: center;
}
.menu-p p{
    width: 100%;
    font-size: 14px;
    position: relative;
    color: #fff;
}
.menu-p p::before{
    position: absolute;
    bottom: 0;
    right: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 50px;
}
.click{
    width: 30%;
    height: 50px;
    background-color: #fff;
    border-radius: 30px;
    text-align: center;
    line-height: 50px;
    box-shadow: #000 1px 1px 5px;
    color: #272727;
}
.center-all{
    width: 100%;
    height: 100%
}
.center-ul{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 100px;
    overflow: hidden;
}
.li-all{
    width: 50%;
    height: 500px;
    margin-top: 150px;
    position: relative;
    scroll-margin-top: 30vh; /* 画面の50%の高さに */
}
.li-all h3{
    color: gold;
    text-shadow: #272727 1px 1px 10px;
}
.li-all h3 span{
    display: inline-block;
    font-size: 32px;
    line-height: 1.5;
    padding: 0 10px;
    margin: 6px 0;
    /* background-color: #fff; */
    font-weight: lighter;
}
.animated-border {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: gold; /* アニメーションするボーダーの色 */
    transform: scaleX(0); /* 初期状態で非表示 */
    transform-origin: left;
    transition: transform 3s ease; /* アニメーションの速度と効果 */
}

.animated-border.inview::after {
    transform: scaleX(1); /* アニメーションが完了する位置 */
}
.li-all p{
    width: 70%;
    margin-top: 30px;
    line-height: 30px;
    color: #fff;
    text-shadow: #000 1px 1px 10px;
}
.li-back p{
    width: 50%;
}
.li-back2{
    text-align: right;
}
.li-back2 p{
    display: block;
    margin-left: auto;
    margin-right: 0;
}
.li-back2 .worries-li{
    margin: 10px 0 0 auto;
    justify-content: flex-end;
}
.li-right{
    width: 80%;
    text-align: right;
}
.li-right p{
    text-align: left;
    margin: 30px 0 0 auto;
} 
.li-right .worries-li{
    margin: 10px 0 0 auto;
    width: 100%;
}
.blue{
    color: #fff;
    margin-top: 20px;
    display: inline-block;
    text-shadow: #000 1px 1px 10px;
}
.worries-li{
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.worries-li-right{
    justify-content: right;
}
.worries-li li{
    width: 24%;
    background-color: #fff;
    padding: 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
}
.worries-li span{
    width: 100%;
    text-align: center;
}
.center-b{
    position: relative;
}
.li-back::before{
    content: "";
    width: 60%;
    height: 70%;
    position: absolute;
    top: 0;
    right: 0;
    background-image: url(../img/slider-top2.jpg),linear-gradient(to top,  #E9E6DF,rgba(255,255,255,0), rgba(255,255,255,0));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: screen;
    z-index: -1;
}
.li-back2::before{
    content: "";
    width: 60%;
    height: 70%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../img/onkyou.jpg),linear-gradient(to right,  #E9E6DF, rgba(255,255,255,0));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: screen;
    z-index: -1;
}
.li-center{
    width: 80%;
    margin: 0 auto;
}
.li-img{
    position: absolute; /* 親要素に基準を設定 */
    display: inline-block; /* 必要に応じて */
    width: 100%; /* 必要に応じてサイズを調整 */
    height: 100%; /* 必要に応じてサイズを調整 */
}
.li-img img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の表示方法を調整 */
}
.li-img::after {
    content: '';
    position: absolute;
    top: -20px; /* ボーダーの幅に応じて調整 */
    left: -20px; /* ボーダーの幅に応じて調整 */
    width: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    height: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    border-radius: 50%; /* グラデーションボーダーも円形に */
    background: linear-gradient(to top, #f9f4f4,rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); /* グラデーションを適用 */
    pointer-events: none; /* 操作を妨げない */
    z-index: 30; /* 画像の上に表示 */
}
.img-size{
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.li-1-img-1{
    top: 50%;
    right: 50%;
    width: 380px;
    height: 380px;
    transform: translate(50%, -50%);
}
.li-1-img-1 img{
    width: 100%;
    height: 100%;
    border-radius: 50%; /* 円形にする */
}
.li-1-img-1::before {
    content: '';
    position: absolute;
    top: -20px; /* ボーダーの幅に応じて調整 */
    left: -20px; /* ボーダーの幅に応じて調整 */
    width: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    height: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    border-radius: 50%; /* グラデーションボーダーも円形に */
    background: linear-gradient(to bottom, #656565, #272727);
    z-index: -1;
}
.li-1-img-2{
    bottom: -150px;
    left: -10px;
    width: 230px;
    height: 230px;
}
.li-1-img-2::before {
    content: '';
    position: absolute;
    top: -20px; /* ボーダーの幅に応じて調整 */
    left: -20px; /* ボーダーの幅に応じて調整 */
    width: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    height: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    border-radius: 50%; /* グラデーションボーダーも円形に */
    background: linear-gradient(to bottom, #5856A4, #352F66);
    z-index: -1;
}
.li-2-img-1{
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}
.li-2-img-1::before {
    content: '';
    position: absolute;
    top: -20px; /* ボーダーの幅に応じて調整 */
    left: -20px; /* ボーダーの幅に応じて調整 */
    width: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    height: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    border-radius: 50%; /* グラデーションボーダーも円形に */
    background: linear-gradient(to bottom, #D7C29A, #A59B87);
    z-index: -1;
}
.li-2-img-2{
    top: -80px;
    right: 50px;
    width: 250px;
    height: 250px;
}
.li-2-img-2::before {
    content: '';
    position: absolute;
    top: -20px; /* ボーダーの幅に応じて調整 */
    left: -20px; /* ボーダーの幅に応じて調整 */
    width: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    height: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    border-radius: 50%; /* グラデーションボーダーも円形に */
    background: linear-gradient(to bottom, #EF5A52, #A42823);
    z-index: -1;
}
.li-3-img-1{
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}
.li-3-img-1::before {
    content: '';
    position: absolute;
    top: -20px; /* ボーダーの幅に応じて調整 */
    left: -20px; /* ボーダーの幅に応じて調整 */
    width: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    height: calc(100% + 40px); /* ボーダーの幅に応じて調整 */
    border-radius: 50%; /* グラデーションボーダーも円形に */
    background: linear-gradient(to bottom, #B9B6B7, #837F7F);
    z-index: -1;
}
/* CTAコンテナのスタイル */
.cta-container {
    width: 100%;
    display: flex;
    justify-content: space-around; /* 3つのCTAを均等に配置 */
    padding: 5px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05); /* 上部に軽い影を追加 */
    transition: background-color 0.3s ease-in-out;
}

/* CTAボタンのベーススタイル */
.cta {
    width: 49%; /* 3つのCTAボタンの幅を均等に */
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border-radius: 10px; /* ボタンを丸く */
    text-decoration: none;
    transition: all 0.3s ease; /* 全体的なトランジション */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* ボタンに影を追加 */
    position: relative;
    overflow: hidden;
}

/* 背景アニメーション用の擬似要素 */
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
    transform: translate(-50%, -50%);
    transition: transform 0.6s ease;
    opacity: 0;
}

/* ホバー時のアクション */
.cta:hover {
    transform: translateY(-5px); /* 少し上に浮かぶ効果 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* ホバー時に影を濃く */
    letter-spacing: 1px; /* テキストの間隔を広げて視認性を高める */
}

.cta:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 各CTAボタンのグラデーション背景を設定 */
.cta.cta-1 {
    background-color: #000; /* 青紫のグラデーション */
}

.cta.cta-1:hover {
    background: linear-gradient(135deg, #5a0eb6 0%, #1f5dbf 100%); /* ホバー時に少し濃く */
}

.cta.cta-2 {
    background-color: #000; /* 赤オレンジのグラデーション */
}

.cta.cta-2:hover {
    color: #000;
    background-color: #fff; /* ホバー時に少し濃く */
    border: 1px solid #000;
}

.cta.cta-3 {
    background-color: #3C3C3C; /* 緑のグラデーション */
}

.cta.cta-3:hover {
    color: #000;
    background-color: #fff; /* ホバー時に少し濃く */
    border: 1px solid #000;
}

/* ボタンのテキストに軽い影を追加して立体感を出す */
.cta span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* ホバー時に文字が少し浮き上がる */
.cta:hover span {
    transform: translateY(-3px);
}

/* CTAボタンを押しやすくするアニメーション (脈打つ効果) */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05); /* 少し大きくして注目させる */
    }
    100% {
        transform: scale(1);
    }
}

/* 初期状態でレスポンシブテキストを非表示 */
.responsive-text {
    display: none;
}

/* デスクトップサイズの時の表示 */
.desktop-text {
    display: inline;
}
footer{
    width: 100%;
    height: 100%;
    background-color: #272727;
}
footer p{
    width: 100%;
    text-align: center;
    color: #fff;
}
    /* 480px以下の画面での対応 */
@media (max-width: 480px) {
    .black-bg {
        width: 80vw;
    }
    .logo span{
        padding-left: 0;
    }
    .logo-img{
        width: 100px;
    }
    /* header */
    .header-fixed{
        height: 35px;
    }
    .hamb{
        height: 30px;
    }
    .logo a{
        font-size: 20px;
    }
    .top-img h2{
        font-size: 25px;
    }
    .content-top{
        width: 100%;
        right: 50%;
        transform: translateX(50%);
        text-align: center;
    }
    .content-top h3{
        font-size: 30px;
    }
    .content-top span{
        font-size: 40px;
    }
    .list-title{
        font-size: 20px;
    }
    .menu-list1{
        width: 100%;
    }
    .menu-list1 li{
        width: 100%;
    }
    .click{
        width: 20%;
        height: 30px;
        font-size: 12px;
        line-height: 30px;
    }
    .center-ul{
        margin-top: 0;
    }
    .li-all{
        width: 100%;
        height: 100%;
        scroll-margin-top: 40vh; /* 画面の50%の高さに */
    }
    .li-all h3 span {
        font-size: 22px;
    }
    .li-all p{
        width: 80%;
        font-size: 14px;
    }
    .li-1{
        height: 400px;
    }
    .li-2{
        height: 400px;
    }
    .li-3{
        height: 400px;
    }
    .li-1-img-1{
        width: 400px;
        height: 400px;
        top: -30%;
        right: -20%;
        transform: none;
    }
    .li-1-img-2{
        bottom: -80px;
        left: 0;
        width: 200px;
        height: 200px;
    }
    .li-back{
        margin-left: 10px;
    }
    .li-back p{
        width: 80%;
    }
    .li-back::before{
        top: auto;
        bottom: 0;
    }
    .worries-li{
        width: 100%;
        font-size: 10px;
    }
    .worries-li li{
        width: 40%;
    }
    .li-2-img-1{
        width: 300px;
        height: 300px;
        top: auto;
        bottom: -10%;
        transform: none;
    }
    .li-2-img-2{
        top: -50px;
        width: 150px;
        height: 150px;
    }
    .li-end{
        display: none;
    }
    .li-right{
        width: 100%;
    }
    .cta-container {
        flex-direction: row; /* 小さい画面でも横並びを維持 */
        padding: 8px;
    }
    .cta {
        padding: 8px; /* ボタンの余白をさらに減らす */
        font-size: 14px; /* フォントサイズをさらに小さく */
        margin: 0 5px; /* ボタン間の余白を狭める */
    }
    .desktop-text {
        display: none;
    }
    .responsive-text {
        display: inline;
    }
    footer{
        margin-top: 50px;
    }
}