/* ==================================================
  anchor_navi
================================================== */

.anchor_navi {
  position: relative;
  width: 100%;
}
.anchor_navi.is_fixed,
body.anchor_navi_opened .anchor_navi {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
}
body.world_map_active .anchor_navi {
  z-index: 1;
}
.anchor_navi_menu > li > a {
  color: #000;
  text-decoration: none !important;
}

@media (max-width: 1023px) {
  .anchor_navi_content {
    position: relative;
    z-index: 1;
    background: #fff;
  }
  body:not(.anchor_navi_opened) .anchor_navi_content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .anchor_navi_trigger {
    display: flex;
    align-items: center;
    height: 62px;
    padding: 0 16px;
    cursor: pointer;
  }
  .anchor_navi_trigger h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
  }
  .anchor_navi_trigger h5::after {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 6px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6"><path xmlns="http://www.w3.org/2000/svg" d="m455.465 769.707-1.847-.974 3.478-5.054-3.475-4.989 1.841-.983 4.156 5.966z" transform="rotate(90 611.663 158.045)"></path></svg>') no-repeat center center;
  }
  .anchor_navi_trigger.is_active h5::after {
    transform: rotate(180deg);
  }
  .anchor_navi_menu {
    display: none;
    opacity: 0;
  }
  body.anchor_navi_opened .anchor_navi_menu {
    opacity: 1;
  }
  .anchor_navi_menu > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 20px;
  }
  .anchor_navi.is_fixed .anchor_navi_overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
  }
  body.anchor_navi_opened .anchor_navi_overlay {
    height: 100dvh;
    background: rgb(0 0 0 / .75);
  }
  body.anchor_navi_opened {
    overflow: hidden;
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .anchor_navi {
    padding: 0 20px;
    background: #fff;
  }
  .anchor_navi_trigger {
    display: none;
  }
  .anchor_navi_content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1220px;
    height: 72px;
    padding: 7px 0;
    margin: 0 auto;
  }
  .anchor_navi_menu {
    display: flex !important;
    gap: 30px;
  }
  .anchor_navi_menu > li {
    position: relative;
    transition: background .1s ease-in,color .1s ease-in;
  }
  .anchor_navi_menu > li > a {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .anchor_navi_menu > li:hover > a {
    color: #464646;
  }
  .anchor_navi_menu > li > a.is_current {
    color: #0249d7;
  }
  .anchor_navi_menu > li::after {
    display: block;
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    transition: background .1s ease-in;
    opacity: 0;
    height: 2px;
    background: #0e3191;
  }
  .anchor_navi_menu > li:has(> .is_current)::after {
    opacity: 1;
  }
}





/* ==================================================
  product
================================================== */

.product {
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  .product {
    padding-bottom: 120px;
  }
}



/* ----------------------------------------
  product_title
---------------------------------------- */

.product_title {
  padding-top: 40px;
}
.product_title::after {
  display: block;
  content: "";
  width: 100%;
  height: 52px;
  margin-top: 20px;
  background: url(images/common_2nd_v2/line.png) no-repeat right top / cover;
  filter: invert(1);
}

@media (min-width: 768px) {
  .product_title::after {
    height: 89px;
  }
}



/* ----------------------------------------
  product_content
---------------------------------------- */

.product_content {
  margin-top: 25px;
}
.product_card {
  border-bottom: 1px solid #707070;
  border-left: 1px solid #707070;
}
.swiper-slide:last-child .product_card {
  border-right: 1px solid #707070;
}
.product_card__name {
  padding: 10px;
  background: #ccc;
  border-top: 1px solid #707070;
}
.product_card__name h3 {
  transition: font-size .2s ease;
  font-size: 16px;
  line-height: 1.1;
}
.product_card__media {
  text-align: center;
  border-top: 1px solid #707070;
}
.product_card__desc {
  padding: 10px;
  font-size: 12px;
  border-top: 1px solid #707070;
}
.product_card__desc h4 {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.2;
}
.product_card__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 10px 20px;
}
.product_card__spec_list > li {
  padding: 10px;
  font-size: 12px;
}
.product_card__spec_list > li:nth-child(odd) {
  background: #ccc;
}
.product_card__spec_list > li:nth-child(even) {
  background: #eee;
}
.product_card__spec_list h5 {
  margin-bottom: 7px;
  font-weight: bold;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .product_card__name {
    padding: 20px 15px;
  }
  .product_card__name h3 {
    font-size: 24px;
  }
  .product_content .product_card__name.is_sticky {
    display: flex;
    align-items: center;
  }
  .product_content .product_card__name.is_sticky h3 {
    font-size: 20px;
  }
  .product_card__desc {
    padding: 20px 15px;
    font-size: 16px;
  }
  .product_card__desc h4 {
    margin-bottom: 20px;
    font-size: 16px;
  }
  .product_card__cta {
    padding: 20px 15px 40px;
  }
  .product_card__spec_list > li {
    padding: 20px 15px;
    font-size: 16px;
  }
  .swiper-slide:not(:first-child) .product_card__spec_list h5 {
    opacity: 0;
  }
}

@media (min-width: 1280px) {
  .product_content {
    margin-top: 30px;
  }
}



/* ----------------------------------------
  製品名の上部固定
---------------------------------------- */

body {
  overflow-x: visible !important;
}
.product_content .swiper {
  overflow: visible !important;
}
.product_content .product_card__name {
  position: -webkit-sticky; /* Safari対策 */
  position: sticky;
  top: 62px;
  z-index: 10;
}

@media (min-width: 1024px) {
  .product_content .product_card__name {
    top: 72px;
  }
}



/* ----------------------------------------
  button
---------------------------------------- */

.product_card__cta_button {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 16px;
}
.product_content .swiper-wrapper:has(> :nth-child(7)) .product_card__cta_button .button.primary {
  padding-right: 12px;
  padding-left: 12px;
}
.product_card__cta_button .button.underline {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
  color: #000;
  background: transparent;
}
.product_card__cta_button .button.underline > span {
  position: relative;
}
.product_card__cta_button .button.underline > span::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: .3s;
  width: 0;
  height: 1px;
  background: #000;
}
.product_card__cta_button .button.underline:hover > span::after {
  width: 100%;
}

@media (max-width: 767px) {
  .product_card__cta_button .button {
    min-height: 24px;
    font-size: 10px;
  }
  .product_card__cta_button .button.primary {
    padding-right: 12px;
    padding-left: 12px;
  }
}



/* ----------------------------------------
  Swiper
---------------------------------------- */

@media (max-width: 1279px) {
  .product_content .swiper {
    overflow: visible;
    position: relative;
    padding-top: 50px;
  }
  .product_content .swiper-slide {
    max-width: 316px;
  }
}

@media (max-width: 767px) {
  .product_content .swiper-slide {
    max-width: 43%;
  }
}


/* 1280px以上でSwiper停止 -------------------- */

@media (min-width: 1280px) {
  .product_content .swiper-slide {
    max-width: 20%;
  }
  /* 子要素が6個以上の場合、すべてのswiper-slideに適用 */
  .product_content .swiper-wrapper:has(> :nth-child(6)) .swiper-slide {
    flex: 1;
  }
  /* ボタンとスクロールバーを非表示 */
  .product_content .swiper-controller,
  .product_content .swiper-scrollbar {
    display: none !important;
  }
}


/* controller -------------------- */

.product_content .swiper-controller {
  display: flex;
  gap: 20px;
  position: absolute;
  top: 0;
  right: 0;
}
.product_content [class^="swiper-button-"] {
  position: relative;
  cursor: pointer;
  transition: .2s;
  width: 30px;
  height: 30px;
}
.product_content [class^="swiper-button-"]:hover {
  background: #000;
}
.product_content [class^="swiper-button-"]::before {
  content: "";
  position: absolute;
  top: -7px;
  left: -7px;
  transition: .2s;
  width: 44px;
  height: 44px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M0,0v30h30V0H0ZM29,29H1V1h28v28Z"/><polygon points="16.09 20.11 16.8 20.82 22.6 15.02 16.75 9.18 16.05 9.89 20.69 14.53 8.03 14.53 8.03 15.53 20.67 15.53 16.09 20.11"/></svg>');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 30px 30px;
}
.product_content [class^="swiper-button-"]:hover::before {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon points="16.09 20.11 16.8 20.82 22.6 15.02 16.75 9.18 16.05 9.89 20.69 14.53 8.03 14.53 8.03 15.53 20.67 15.53 16.09 20.11"/></svg>');
  filter: invert(1);
}
.product_content .swiper-button-prev::before,
.product_content .swiper-button-prev:hover::before {
  transform: rotate(180deg);
}
.product_content .swiper-button-disabled {
  opacity: .3;
  pointer-events: none;
}


/* scrollbar -------------------- */

.product_content .swiper-scrollbar {
  width: 100%;
  height: 6px;
  margin-top: 20px;
  background: #333;
  border-radius: 2px;
}
.product_content .swiper-scrollbar-drag {
  cursor: pointer;
  height: 100%;
  background: #999;
  border-radius: 10px;
}





/* ==================================================
  isv
================================================== */

.isv {
  padding: 40px 0;
}
.isv_inner {
  display: grid;
  gap: 30px;
}
.isv_media img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.isv_content {
  padding: 30px 20px;
  border: 1px solid #000;
}

@media (min-width: 768px) {
  .isv {
    padding: 60px 0;
  }
  .isv_content {
    padding: 40px 30px;
  }
}

@media (min-width: 1024px) {
  .isv_inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .isv_content {
    padding: 40px;
  }
}





/* ==================================================
  recommend
================================================== */

.recommend {
  padding: 40px 0;
}
.recommend_list {
  display: grid;
  gap: 60px 30px;
  margin-top: 30px;
}
.recommend_list > li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 20px;
}
.recommend_list_media {
  position: relative;
  text-align: center;
}
.recommend_list_media::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #000;
}
.recommend_list_media a {
  display: inline-block;
  transition: transform .4s;
  padding: 19px 10px;
}
.recommend_list_media img {
  width: 293px;
  max-width: 100%;
}
.recommend_list_media a:hover img {
  transform: scale(1.1);
  opacity: 1;
}
.recommend_list_cta {
  padding-top: 16px;
}

@media (min-width: 768px) {
  .recommend {
    padding: 60px 0;
  }
  .recommend_list {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 65px;
  }
}
