@charset "UTF-8";

    /****************
      Topページ
      Newsナビ
    ****************/
    #s_news .news {
      display: flex;
      flex-direction: row; /* 横に並べる */
      overflow-x: auto; /* 横スクロール可能にする */
    }
    
    #s_news .header {
      width: 100%; 
      overflow: hidden;
      background-color: #E3D1BD;
      height: 530px;
      padding: 20px 0 0 0;
    
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      
    }
    
    #s_news .header .title {
      width: 100%;
      height: 200px;
    }

    @media screen and (max-width: 500px) {
        #s_news .header .title {
            width: 100%;
            height: 200px;
        }
    }
    @media screen and (min-width: 501px) {
        #s_news .header .title {
            width: 100%;
            height: 100px;
        }
    }
    
      #s_news .header .newslogo {
          position: absolute;
          top: 0;
          left: 2%;
          /*transform: translateX(-50%);*/
          display: flex;
          flex-direction: row; /* 横並びにする */
          text-align: center;
          align-items: center;
      }
      
      #s_news .header .newslogo p.jp {
          color: white; /* テキスト色を指定 */
          font-size: 17px; /* フォントサイズを指定 */
          margin: 0 10px; /* 横の要素との間隔を調整 */
          width: 75px;
          padding: 0px 0px 26px 0px;
      }
      
      #s_news .header .newslogo p.en1 {
          color: white; /* テキスト色を指定 */
          font-size: 60px; /* フォントサイズを指定 */
          font-weight: bold;
          margin: 0 0; /* 横の要素との間隔を調整 */
      }
      
      #s_news .header .newslogo p.en2 {
          color: white; /* テキスト色を指定 */
          font-size: 55px; /* フォントサイズを指定 */
          letter-spacing: 4.2px; /*文字間隔*/
          font-weight: bold;
          margin: 0 0; /* 横の要素との間隔を調整 */
          padding: 2px 0 0 0;
      }
      
      /* 代替ボタン */
      #s_news .header .substitute-button-prev {
         width: 50px;
        height: 50px;
        position: absolute;
         border-radius: 50%; /* 角を丸くする */
         justify-content: center; /* 中央揃え */
         align-items: center; /* 中央揃え */
          color: black; /* テキスト色を指定 */
         font-size: 19px; /* フォントサイズを指定 */
         background-color: white; /* 背景色を指定 */
         cursor: pointer; /* マウスアイコンを指差しにする */
         transition: all 0.5s ease; /* ホバー時のアニメーションをゆっくり */
      }

    @media screen and (max-width: 500px) {
        #s_news .header .substitute-button-prev {
            top: 90px;
            left: 15px;
        }
    }
    @media screen and (min-width: 501px) {
        #s_news .header .substitute-button-prev {
            top: 25px;
            left: 330px;
        }
    }

      #s_news .header .substitute-button-prev:hover {
          box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1); /* ホバー時の影の強さを変更 */
      }
      
      #s_news .header .substitute-button-prev p {
         margin: 7px 0 0 17px;
      }
      
      #s_news .header .substitute-button-next {
         width: 50px;
        height: 50px;
        position: absolute;
         border-radius: 50%; /* 角を丸くする */
         justify-content: center; /* 中央揃え */
         align-items: center; /* 中央揃え */
          color: black; /* テキスト色を指定 */
         font-size: 19px; /* フォントサイズを指定 */
         background-color: white; /* 背景色を指定 */
         cursor: pointer; /* マウスアイコンを指差しにする */
         transition: all 0.5s ease; /* ホバー時のアニメーションをゆっくり */
      }

    @media screen and (max-width: 500px) {
        #s_news .header .substitute-button-next {
            top: 90px;
            left: 85px;
        }
    }
    @media screen and (min-width: 501px) {
        #s_news .header .substitute-button-next {
            top: 25px;
            left: 400px;
        }
    }

      #s_news .header .substitute-button-next:hover {
          box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1); /* ホバー時の影の強さを変更 */
      }
      
      #s_news .header .substitute-button-next p {
         margin: 7px 0 0 17px;
      }
      
      #s_news .header .slider {
         overflow: hidden;
        margin: 0px 0 0px 0px;
      }
      
      /*Sliderの各記事要素*/
      #s_news .header .slider .swiper-slide.has-slider-3 {
         border-top-right-radius: 20px;
          border-bottom-left-radius: 20px;
          border-bottom-right-radius: 20px;
      }

      @media screen and (max-width: 500px) {
        #s_news .header .slider .swiper-slide.has-slider-3 {
            width: 180px;
            height: 220px;
        }

      }
      @media screen and (min-width: 501px) {
        #s_news .header .slider .swiper-slide.has-slider-3 {
            width: 220px;
        }
      }


      
      #s_news .header .slider .epb-post-slider__thumbnail {
        border-top-right-radius: 20px;
      }
      
      /*Sliderのページコントローラー*/
      #s_news .header .slider .epb-post-slider__controller {
         /*transform: translate(-15%, 0%);*/ /* 画面の中央に設置(仮) */
        padding: 0 0 0 0;
      }
      
      #s_news .header .epb-post-slider {
         margin: 0 0 0 0px;
        top: 0%;
        left: 0%;
          overflow: hidden;
      }
      
      #s_news .header .epb-post-slider_wrapper {
         top: 0%;
        left: 0%;
        height: 250px;
      }
      
      #s_news .header .epb-post-slider-button {
         display: none;
      }


      /* 表示可能行数と横幅の調整 */
      #s_news .header .epb-post-slider__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        line-height: 1.5;
        max-height: calc(1.5em* 3);
        width: 19ch;
        font-family: monospace;
    }


      
      #s_news .motto {
          width: 100%; 
          overflow: hidden; 
        background-color: #E3D1BD;
         position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      
      #s_news .motto svg { 
         transform: rotateX(180deg); 
      } 
      
      #s_news .motto .shape-fill { 
          fill: #000000; 
      }
      
      #s_news .motto .motto_btn {
         position: absolute;
          top: 40%;
          left: 50%;
          margin: 0;
          text-align: center;
          height: 50px;
        width: 200px;
        background-color: #F59C00;
        border-radius: 50px;
        display: inline-block;
        padding: 13px 20px;
        font-size: 14px;
        color: white;
          font-weight: bold;
        border: none;
        text-decoration: none;
        cursor: pointer;
        transform: translate(-50%, -50%);
        transition: all 0.5s ease; /* ホバー時のアニメーションをゆっくり */
      }
      
      #s_news .motto .motto_btn:hover {
          background-color: #F59000; /* ホバー時の色 */
          box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1); /* ホバー時の影の強さを変更 */
        transform: translate(-50%, -56%);
      }