/*
Theme Name: megasonic2023
Description: original theme
Author: wombWorks
Author URI:
Theme URI:
Version:
License:
License URI:
Tags:
-----------------------------------------------------------------------------*/

/* トップページ - 製品カテゴリーセクション */
.p-idx-sec.--cat {
  padding-top: 80px;
  padding-bottom: 80px;
}

.p-idx-sec.--cat .c-btn-wrap {
  margin-top: 3em;
  display: flex;
  justify-content: center;
}

.p-idx_cat__list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 2em;
  column-gap: 22px;
  margin-top: 3em;
}

.p-idx_cat__item {
  width: calc(33.3333333333% - 15px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.p-idx_cat__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.p-idx_cat__anc {
  display: flex;
  align-items: stretch;
  height: 100%;
  text-decoration: none;
}

.p-idx_cat__img {
  width: 40%;
  min-height: 180px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.p-idx_cat__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
}

.p-idx_cat__anc:hover .p-idx_cat__img img {
  transform: scale(1.05);
}

.p-idx_cat__content {
  width: 60%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-idx_cat__ttl {
  font-size: 1.8rem;
  color: #172987;
  font-weight: 700;
  line-height: 1.3em;
  margin-bottom: 0.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.p-idx_cat__txt {
  color: #111;
  font-size: 1.4rem;
  line-height: 1.5em;
  margin-bottom: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.p-idx_cat__txt br {
  display: none;
}

.c-btn_cat {
  display: inline-flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #172987;
  padding: 0.6em 1em;
  border: 2px solid #172987;
  border-radius: 4px;
  background: #fff;
  transition: all 0.3s ease;
  width: fit-content;
}

.p-idx_cat__anc:hover .c-btn_cat {
  background: #172987;
  color: #fff;
}

.c-btn_cat .fas {
  font-size: 0.9em;
  margin-right: 0.3em;
}

/* タブレット対応 */
@media (max-width: 991px) {
  .p-idx-sec.--cat {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .p-idx_cat__list {
    justify-content: space-between;
    column-gap: 16px;
    row-gap: 2em;
  }

  .p-idx_cat__item {
    width: calc(50% - 8px);
  }

  .p-idx_cat__img {
    width: 45%;
    min-height: 160px;
  }

  .p-idx_cat__content {
    width: 55%;
    padding: 1.5rem;
  }

  .p-idx_cat__ttl {
    font-size: 1.7rem;
    margin-bottom: 0.7em;
  }

  .p-idx_cat__txt {
    font-size: 1.3rem;
    margin-bottom: 0.8em;
  }

  .c-btn_cat {
    font-size: 1.2rem;
  }
}

/* スマホ対応 */
@media (max-width: 767px) {
  .p-idx-sec.--cat {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .p-idx_cat__list {
    row-gap: 1.5em;
  }

  .p-idx_cat__item {
    width: 100%;
  }

  .p-idx_cat__img {
    width: 40%;
    min-height: 150px;
  }

  .p-idx_cat__content {
    width: 60%;
    padding: 1.2rem;
  }

  .p-idx_cat__ttl {
    font-size: 1.6rem;
    margin-bottom: 0.6em;
    -webkit-line-clamp: 2;
  }

  .p-idx_cat__txt {
    font-size: 1.3rem;
    margin-bottom: 0;
    -webkit-line-clamp: 3;
  }
}


.homeTop1 {
    background-position: bottom;
    height: 45vw;
    margin-top: 0px;
}
@media (min-width: 1648px) {
    .homeTop1 {
        margin-top: 0vw !important;
    }
}
@media (max-width: 1399px) {
    .homeTop1 {
        margin-top: 0vw !important;
    }
    .homeTop2 {
        margin-top: -35vw !important;
    }
}
@media (max-width: 991px) {
    .homeTop1 {
        height: 0vw !important;
    }
}
@media (max-width: 767px) {
    .homeTop1 {
        height: 0vw !important;
    }
}
@media (max-width: 575px) {
    .homeTop1 {
        padding-bottom: 0% !important;
    }
}
.pt120 {
  padding-top: 120px !important;
}
.ptb0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.p-idx_er2 {
  background-image: url(assets/img/idx_event-rec_bg02.png) !important;
  background-position: top;
   height: 75vw!important;
}
.p-idx_er_bottom {
    padding-bottom: 0px;
}

@media (min-width: 1648px) {
  .p-idx_er2 {
    height: 75vw!important;
  }
}
@media (max-width: 1399px) {
  .p-idx_er2 {
    height: 75vw!important;
  }
}
@media (max-width: 1199px) {
  .p-idx_er2 {
    height: 75vw!important;
  }
}
@media (max-width: 991px) {
  .p-idx_er2 {
    height: 350vw!important;
  }
  #page-top > main > section.p-idx_er.p-idx_er2 > div > div  {
    height: 0vw!important;
  }
  .p-idx_er .p-idx_er__contWrap {
      top: 0;
  }
}
@media (max-width: 767px) {
  .p-idx_er2 {
    height: 250vw!important;
  }
}
@media (max-width: 575px) {
  .p-idx_er2 {
    height: 350vw!important;
  }
}

/* 768px〜991pxの範囲で、#page-top > main > section.p-idx_er.p-idx_er2 を767px以下と同じスタイルに */
@media (min-width: 768px) and (max-width: 991px) {
  .p-idx_er.p-idx_er2 {
    height: 190vw !important;
    background-color: #15277d;
    background-image: url(assets/img/idx_event-rec_bg_sp01.jpg) !important;
    background-position: top !important;
    background-size: 101%;
    padding: 0 0 5%;
    margin-bottom: 0;
    border-top: 2px solid #f3f2f0;
  }

  .p-idx_er.p-idx_er2 .p-idx_er__contWrap {
    padding: 52% 0 0;
    position: inherit;
    top: inherit;
    transform: translateY(0);
  }

  .p-idx_er.p-idx_er2 .p-idx_er__txt {
    margin-bottom: 2em;
  }

  .p-idx_er.p-idx_er2 .p-idx_er__list-item {
    width: calc(50% - 5px);
  }

  .p-idx_er.p-idx_er2 .c-btn_more {
    margin: 0 auto;
  }

  /* idx_event-rec_bg_sp03.pngを最下段に表示 */
  .p-idx_er_bottom.visible-sp {
    display: block !important;
  }
}
