
/* フロントページ_の画面幅が1600ピクセル以下の場合にスタイルを適用する条件 */
@media screen and ( max-width:1600px){
  
  /* ********************************** 文字大きさ ********************************** */
  
  .home #section2 {
    background-position: center top;
  }

  .home #section8 {
    background-position: top 160px right 100px;
  }











}









/* 画面幅が1200ピクセル以下の場合にスタイルを適用する条件 */
@media screen and ( max-width:1200px){

  .inner_contents {
    max-width: 90%;
    margin: 0 auto;
  }

  .home #section1 .news_bg {
    display: none;
  }


  .home #section2 {
    background-size: 90%;
  }








  .home .genre_wrapper {
    width: 100%;
  }


  .home #section7.inner_contents {
    max-width: 80%;
  }

  .home #section7 .tab_inner1,
  .home #section7 .tab_inner2 {
    gap: 3em;
  }

  .company_text_wrapper > li:nth-child(2) {
    width: 600px;
  }










}









/* 画面幅が1000ピクセル以下の場合にスタイルを適用する条件 */
@media screen and ( max-width:1000px){
  
  .home .container::before {
    display: none;
  }

  .home .container {
    padding-top: 0px;
  }

  #top-slider-wrapper .topics_swiper {
    max-width: unset;
  }

  .home #section1 .third_title {
    font-size: 1.375em;
  }

  .front_category-buttons_wrapper {
    width: 90%;
  }

  .text_link_btn a {
    margin: 1em auto 2.5em auto;
  }

  .news-swiper-button-prev, .news-swiper-button-next {
    top: 37.5%;
    width: 2.5em;
  }

  .home .genre_wrapper li {
    width: calc(100% / 2);
  }

  #section3 {
    padding-top: 3em;
  }

  #section4 {
    padding: 3em 0 9em 0;
  }

  #section4 .seen_category_contents {
    gap: 1.5em;
    margin: 3em auto 1em auto;
  }

  .home .series_flex_item .contents_box .thumbnail_box {
    min-width: unset;
  }

  #section5,
  #section6 {
    padding-top: 3em;
  }

  #section6 .list_title {
    padding-bottom: 0;
  }

  .home #section6 .sns_list {
    margin: 2em auto;
  }

  .home #section7 {
    padding-top: 3em;
  }

  .home #section7 .list_title {
    padding-bottom: 1em;
  }

  .home #section7 .tab-item{
    font-size: 0.8em;
    padding: 0.6em;
  }

  .home #section7.inner_contents {
    max-width: 90%;
  }


  .home #section7 .tab-menu-btn {
    margin: 0 auto;
  }
  
  .home #section7 .tab_btn_wrapper::before,
  .home #section7 .tab_btn_wrapper::after,
  .home #section7 .tab_btn_box::before,
  .home #section7 .tab_btn_box::before{
    content: unset;
  }

  .home #section7 .tab_inner1,
  .home #section7 .tab_inner2 {
    display: flex;
    flex-direction: column; /* 縦並び */
    gap: unset;
  }


  .home #section7 .tab_inner1 > li:nth-child(1){
    order: 2;
  }

  .home #section7 .tab_inner2 > li:nth-child(2) {
    width: 100%;
    margin-left: unset;
  }


  .home #section7 .tab_inner2 .mask_wrapper {
    margin-top: 1em;
  }

  .home #section7 .mask_wrapper {
    height: 600px;
  }

  .home #section7 .mask-container1,
  .home #section7 .mask-container2 {
    -webkit-mask-size: contain;
    mask-size: contain;
    mask-size: 100% 600px; /* 横幅を100%、縦は600px */
  }

  .home #section7 .orange_border{
    margin-top: 3em;
  }
  

  .home #section7 .mask-container1 img,
  .home #section7 .mask-container2 img {
    width: fit-content;
    height: 100%;
  }

  .home #section7 .tab_inner1 .text,
  .home #section7 .tab_inner2 .text {
    margin-top: 2em;
  }

  .home #section7 .tab_inner1 .application_icon_box a br,
  .home #section7 .tab_inner2 .application_icon_box a br{
    display: none;
  }

  .company_text_wrapper > li:nth-child(1) {
    max-width: unset;
  }

  .home #section8 .box_title {
    margin: 0 auto;
  }

  .home #section8 .mask-container3 {
    border-top-right-radius: unset;
    border-bottom-right-radius: unset;
  }

  .company_text_wrapper{
    flex-direction: column; /* 縦並び */
    margin-bottom: unset;
  }
  

  .company_text_wrapper > li:nth-child(1) {
    order: 1;
    width: 100%;
  }

  .company_text_wrapper > li:nth-child(2) {
    width: 100%;
    margin-left: unset;
  }

  .home #section8 .list_title .text_box {
    margin: 2.5em auto;
  }

  .home #section8 .list_title {
    text-align:center;
  }

  .home #section8 .company_icon_box {
    margin: 2.5em auto 0 auto;
  }

  .home #section8 {
    background-position: top 160px center;
  }












  





}




/* 画面幅が600ピクセル以下の場合にスタイルを適用する条件 */
@media screen and ( max-width:600px){

  .home .flont_logo_header {
    height: 60px;
  }

  .home .flont_tokucyan_top{
    display: block;
    text-align: center;
    width: 90%;
    margin: 1em auto 2em auto;
  }

  .home .flont_tokucyan_top img{
    max-width: 135px;
    margin-bottom: 1em;
  }

  .home .flont_tokucyan_top .third_title{
    padding: unset;
    display: block;
    line-height: 1.5em;
    letter-spacing: 0.2em; /* フォントサイズに基づいて文字間を広げる */
  }

  .topics-swiper-pagination {
    z-index: 1;
  }








  

  .topics-swiper-button-prev, .topics-swiper-button-next {
    top: 45%;
    width: 4em;
    height: 3em;
    background-size: 2em;
    background-position: 1em;
  }

  .topics-swiper-button-prev {
    left: -7px;
  }

  .topics-swiper-button-next {
    right: -7px;
  }

  .topics-swiper-pagination span {
    background-color: var(--maincolor);
  }

  .home #section1{
    max-width: 100%;
  }

  .home .tokucyan_news{
    display: none;
  }

  .home #section1 {
    padding-top: 4em;
    background-color: #F5DFC3;
  }


  .home .news-swiper-button-prev,
  .home .news-swiper-button-next {
    display: none;
  }

  .home #section1 .news_box {
    width: 80%;
    background-color: white;
    border: 4px solid var(--maincolor);
    margin: 2em auto 0 auto;
  }

  .flont_News_ttl_wrapper{
    display: block;
  }

  .home .flont_News_ttl_wrapper{
    text-align: center;
  }

  .home .flont_News_ttl_wrapper .flont_News_ttl{
    color: var(--maincolor);
    display: block;
    margin-bottom: 8px;
  }

  .home #section1 .news_box .swiper-wrapper{
    height: 620px;
    display: block;
    padding: 2em 1em;
    width: 100% !important;
    overflow-y: auto;
    box-sizing: border-box; /* 親要素からはみ出ないように調整 */
    transform: none !important; /* スワイパーで1カラムになった際の変形を無効にする */
  }

  /* オリジナルスクロールバーを不可視にして、下記デフォルトのスクロールバーでカスタム */
  .home .news-swiper-scrollbar{
    display: none;
  }


  /* スクロールバーのカスタム */
  .home #section1 .news_box .swiper-wrapper::-webkit-scrollbar,
  .home #section1 .news_box .swiper-wrapper::-webkit-scrollbar-track{
    width: 12px; /* 横幅を指定 */
    background-color: var(--maincolor); /* 背景色を指定 */
  }

  /* スクロールバーのつかむ部分（thumb） */
  .home #section1 .news_box .swiper-wrapper::-webkit-scrollbar-thumb,
  .home #section1 .news_box .swiper-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #CCC124; /* 色を指定 */
  }











  .home #section1 .news_box .swiper-wrapper li{
    width: 100% !important;
    height: auto !important;
    margin-right: unset !important;
  }

  .home #section1 .news_box .swiper-slide-blank{
    display: none;
  }

  

  .home #section1 .news_contents{
    display: flex;
    width: 100%;

    padding-bottom: 2em;
    border-bottom: 2px solid var(--assortcolor);
    margin-bottom: 2em;
  }

  .home #section1 .news_box .swiper-wrapper li:last-of-type .news_contents{
    padding-bottom: 0;
    border-bottom: unset;
    margin-bottom: 0;
  }


  .home #section1 .news_contents li{
    flex: 1; /* 各li要素を均等に配置 */
    width: 50%; /* 幅を50%に設定 */
    box-sizing: border-box; /* パディングやボーダーを含めて幅を計算 */
  }

  .home #section1 .news_contents li:nth-child(2){
    padding-left: 1em;
  }

  .home  #section1 .news_category{
    margin: 1em 1em 0 0;
    border: unset;
    padding: unset;
    border-radius: unset;
  }

  .home  #section1 .news_box .news_ttl {
    margin-top: 1em;
  }

  .home #section1 .text_link_btn a{
    margin: 2em auto 2em auto;
    padding: 1em 0;
    width: 90%;
    background-color: var(--maincolor);
    color: white;
    border-radius: 0;
  }

  .text_link_btn a .btn_arrow {
    filter: invert(100%) sepia(25%) saturate(0%) hue-rotate(86deg) brightness(101%) contrast(102%);
  }









  .home #section2 {
    padding-top: 2em;
    position: relative;
  }

  .front_category-buttons_wrapper .front_category-buttons {
    width: 85%;
    margin: 0 auto;
  }

  .front_category-buttons_wrapper .front_category-buttons button {
    padding: 0.5em 3em;
    margin: 0;
    border-left: none;
  }

  .front_category-buttons_wrapper .front_category-buttons li:last-of-type button{
    border-right: none;
  }

  

  .front_category-buttons_wrapper #scroll-left-front {
    left: 0;
  }

  .front_category-buttons_wrapper #scroll-right-front {
    right: 0;
  }








  #section3 .main_title::before{
    margin-right: 0.4em;
  }

  #section3 .main_title::after{
    margin-left: 0.4em;
  }

  .home .front_category_post_wrapper {
    width: 90%;
    margin: 2em auto 0 auto;
    position: unset;
  }

  .front_item_swiper {
    height: 420px;
  }

  .front_item_swiper .swiper-grid-column>.swiper-wrapper{
    flex-direction: unset;
  }

  .front_item_swiper .swiper-wrapper li:nth-child(odd){
    margin-right: 1em;
  }

  .home .items_overlay_text,
  .home .hover_text_box {
    opacity: 1;
    color: unset;
    background-color: unset;
    top: unset;
    left: unset;
    height: fit-content;
  }

  .home .hover_text_box {
    flex-direction: unset;
    justify-content: unset;
    align-items: unset;
    padding: unset;
    box-sizing: unset;
    transform: unset;
    position: absolute;
    top: 0.5em;
    left: 0;
    bottom: 0;
  }

  .items_overlay_text .read_text,
  .home .items_overlay_text .text_link_btn{
    display: none;
  }

  .home .hover_text_box_wrapper {
    padding: 0;
    flex: unset;
    position: unset;
    flex-direction: column !important;
  }

  .front_item_swiper .swiper-slide .post-thumbnail img {
    height: auto !important;
  }

  .front_category_post_wrapper .front_item_swiper-button-prev,
  .front_category_post_wrapper .front_item_swiper-button-next{
    top: unset;
    bottom: 0;
    z-index: 1;
  }

  .front_category_post_wrapper .btn_text{
    display: flex; /* Flexboxを有効化 */
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    background-color: var(--assortcolor);
    color: white;
    border: 3px solid white;
    height: 60px;
    margin-top: 1em;
  }

  .front_category_post_wrapper .front_item_swiper-button-prev,
  .front_category_post_wrapper .front_item_swiper-button-next {
    width: 25px;
    height: 25px;
  }

  

  /* スワイパーのナビゲーション（矢印）を差し替え */
  .front_category_post_wrapper .front_item_swiper-button-next {
    background-color: #675B55;
    border: 3px solid white;
  }

  .front_category_post_wrapper .front_item_swiper-button-prev {
    background-color: #675B55;
    border: 3px solid white;
  }









  .home #section3 {
    padding: 2em 0 0 0;
  }

  
  

  .home #section3 .list_title {
    padding: 0 2em 2em 2em;
  }

  .home #section3 .category_box {
    width: 90%;
    margin: 0 auto;
  }

  .home .genre_wrapper li{
    width: calc(100% / 2);
    outline: 4px solid white;
  }

  .home .genre_wrapper li {
    height: 200px
  }

  .home .genre_wrapper li::after {
    bottom: -60px;
    width: 150px;
    height: 130px;
  }


  










  #section4 {
    padding: 2em 0 3em 0;
    background-size: 100%;
  }


  #section4 .seen_category_contents {
    gap: 1.5em;
  }

  #section4 .seen_category_contents {
    margin: 0em auto 0 auto;
  }

  #section4 .seen_category_contents > li {
    height: 150px;
  }



  #section4 .front_search_title{
    display: block;
    margin-top: 1em;
  }

  .search_box_wrapper .custom_input,
  .search_box_wrapper .custom_select,
  .search_box_wrapper .custom-search-button {
    width: 48%;
    margin-bottom: 1em;
    display: inline-flex;
    justify-content: space-between; /* 両端揃え */
  }

  .search_box_wrapper .custom_search_btn {
    margin-top: 0.5em;
    width: 100%;
    border-radius: 0;
  }

  .seen_category_contents li .seen_ttl{
    bottom: 1em;
  }

  .seen_category_contents li:hover .seen_ttl{
    bottom: 0.75em;
  }

  .seen_category_contents li:nth-child(2) img,
  .seen_category_contents li:nth-child(3) img{
    top: 45%;
  }

  .seen_category_contents li:nth-child(10) img{
    top: 40%;
  }









  #section5 {
    padding-top: 2em;
    background-color: #F5DFC3;
  }

  #section5 .list_title {
    padding: 0 2em 2em 2em;
  }

  .home .series_flex_container {
    gap: 1.5em;
  }

  .home .series_flex_item .contents_box a {
    display: block;
  }

  .home .series_flex_item .contents_box .thumbnail_box {
    width: 100%;
  }

  .home .series_flex_container li .series_txt_box{
    margin-top: 1.5em;
    position: relative;
  }

  .home .series_txt_box .series_more_btn{
    position: unset;
    right: 0;
    bottom: 0;
  }

  .home #section5 .text_link_btn a {
    margin: 1.8em auto 2em auto;
    width: 100%;
    border-radius: unset;
    background-color: var(--maincolor);
    color: white;
    border: 2px solid var(--maincolor);
  }

  .home #section5 .text_link_btn a .btn_arrow {
    filter: invert(100%) sepia(3%) saturate(7489%) hue-rotate(328deg) brightness(112%) contrast(117%);
  }

  .home #section5 .text_link_btn a:hover{
    background-color: var(--hovercolor);
    color: var(--maincolor);
  }

  .home #section5 .text_link_btn a:hover .btn_arrow {
    filter: invert(62%) sepia(47%) saturate(5331%) hue-rotate(8deg) brightness(96%) contrast(101%);
  }

  









  #section6 {
    padding-top: 2em;
  }

  #section6 .list_title {
    padding-bottom: 2em;
  }


  #section6 #sb_instagram .sb_instagram_header,
  #section6 .sb_instagram_header,
  #sb_instagram #sbi_images {
    padding: 0;
  }

  .home #section6 .sns_list {
    text-align: center;
    margin: 2em auto 2em auto;
  }

  .home #section6 .tag_list {
    margin: 1em 0 0.5em 0;
  }

  .home #section6 .tag_list_box {
    padding: 1em 0;
  }

  .home #section6 .tag_list_box span{
    display: none;
  }
  

  .home #section6 .tag-scroll-container li a {
    padding: 0.5em 1.5em;
  }

  .home #section6 #sb_instagram.sbi_tab_col_3 #sbi_images {
    margin-bottom: 2em;
  }

  .home #section6 #sb_instagram.sbi_palette_custom_1{
    padding: 0 !important;
  }

  .home #section6 .tokucyan_sns {
    width: 130px;
  }









  .home #section7 {
    padding-top: 2.5em;
  }



  .home #section7 .orange_border {
    margin-top: 2em 0;
  }

  .home #section7 .tab-menu-btn{
    border: 4px solid var(--assortcolor);
  }





  .home #section7 .tab_inner1 .text,
  .home #section7 .tab_inner2 .text {
    margin-top: 0;
  }

  .home #section7 .tab-menu-btn {
    margin: 0 auto 0.5em auto;
    width: 100%;
  }

  .home #section7 .tab_inner1 .application_icon_box,
  .home #section7 .tab_inner2 .application_icon_box {
    margin: 1em auto 2em auto;
  }

  .home #section7 .tab_inner1 .application_icon_box a br,
  .home #section7 .tab_inner2 .application_icon_box a br {
    display: block;
  }


  .home #section7 .mask_wrapper {
    height: 600px;
    display: none;
  }

  .home #section7 .tab_inner1 .application_list_box li:last-of-type,
  .home #section7 .tab_inner2 .application_list_box li:last-of-type {
    margin-bottom: 0;
  }

 



  









  .home #section8 .box_title {
    width: 100%;
    margin: 0 auto 0em auto;
  }

  .home #section8 .sub_ttl_boarder {
    margin: 0em auto 2em auto;
  }

  .home #section8 {
    background-position: top 130px center;
    background-size: 90%;
  }

  .home #section8 .list_title {
    padding-bottom: 1.5em;
  }

  .home #section8 .list_title .text_box{
    font-size: 0.8em;
  }

  .company_modal-content {
    width: 95%;
  }

  .home #section8 .company_icon_box {
    justify-content: space-between;
    margin: 2.5em 0 0 0;
    max-width: unset;
  }

  .home #section8 .company_icon_box li{
    width: 30%;
    margin-right: unset;
  }

  .home #section8 .company_icon_box li:last-of-type{
    margin-right: 0;
  }

  .home #section8 .company_icon_box a {
    width: 100%;
  }



  












}





/* 画面幅が500ピクセル以下の場合にスタイルを適用する条件 */
@media screen and ( max-width:500px){

  .flont_logo_header {
    height: 50px;
  }

  .home #section1 {
    padding-top: 3em;
  }

  .home #section1 .third_title {
    margin-top: 1em;
  }

  .home #section1 .flont_News_ttl {
    margin: 0 0 0.2em 0;
  }

  .home #section1 .flont_tokucyan_top img {
    max-width: 120px;
  }

  .home #section1 .news_contents {
    display: block;
  }

  .home #section1 .news_contents li:nth-child(2) {
    padding-left: 0.5em;
  }

  .home #section1 .news_box .news_ttl {
    margin-top: 0.5em;
  }

  .home #section1 .news_box .swiper-wrapper {
    padding: 2em 1em;
  }

  .news_box .news_date {
    margin-top: 1em;
  }

  .home #section1 .news_box .swiper-wrapper li {
    margin-top: 0 !important;
  }

  .home #section1 .news_box .swiper-wrapper li:last-of-type{
    padding-bottom: unset !important;
  }

  .home #section1 .news_category {
    margin: 0.75em 1em 0 0;
  }

  .home #section1 .text_link_btn a {
    margin: 2em auto;
  }


  .home .list_title {
    padding: 0 2em 2em 2em;
  }

  .home #section2 {
    background-size: 110%;
  }

  .front_item_swiper {
    min-height: 520px;
  }

  .front_item_swiper .swiper-wrapper li{
    overflow: hidden;
  }

  .front_item_swiper .swiper-wrapper li:nth-child(odd) {
    margin-right: unset;
  }

  .front_item_swiper .swiper-slide .post-thumbnail img {
    height: 200px !important;
  }

  .front_category_post_wrapper .btn_text {
    margin-top: 0;
  }

  /* 下記とセットで必要 */
  #section4 .seen_category_contents {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1em;
  }

  /* 最後のliの余白スペースを埋めるための要素 */
  #section4 .seen_category_contents::after{
    grid-column: span 2; /* 2列にわたって配置 */
  }









  #section5 {
    padding-bottom: 0;
  }












  .home #section8 .company_message {
    text-align: left;
  }

  .home #section8 .company_icon_box {
    margin: 1.5em 0 0 0;
  }

  .home #section8 .company_icon_box li {
    width: 48%;
    margin-bottom: 1em;
  }

  .home #section8 .company_icon_box li:last-of-type {
    display: none;
  }















  

 




























}





