/* ---------------
  共通
-----------------*/
html{
  scroll-behavior: smooth;
  scroll-padding: 140px;
}
@media screen and (max-width: 750px) {
  html {
    scroll-padding: 110px;
  }
}
/* ---------------
  グローバル & アニメーション
-----------------*/
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------------
  ナビゲーション
-----------------*/
.navigation {
  padding: 90px 40px 100px;
  background: #F2F8FD;
}

.navigation__inner {
  max-width: 1150px;
  margin: 0 auto;
}

.page__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1.3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-light-blue);
}

.navigation__list {
  margin-top: 30px;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  padding: 0 50px;
}

.navigation__item {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.navigation__item a {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-light-blue);
  transition: 0.5s ease;
}

.navigation__item a:hover {
  opacity: 0.5;
}

.navigation__item a span {
  flex: 1;
}

.navigation__item a svg {
  width: 7px;
  height: 13px;
}


/* ---------------
  製品ページ
-----------------*/
.product__inner {
  padding: 90px 40px;
}

.ap5 .product__inner {
  padding: 120px 40px;
}

.product__layout {
  max-width: 1010px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.product__layout--add:not(:first-child) {
  margin-top: 240px;
}

/* ギャラリー */
.product__gallery {
  width: 42.8%;
  position: relative;
  transition: opacity 0.3s ease;
}

/* ギャラリー ローディング関連 */
.product__gallery.loading .product__thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-light, #f5f5f5);
  z-index: 10;
}

.product__gallery.loading .product__thumbnail::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-main, #007cba);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

.product__gallery.loading .swiper {
  opacity: 0;
}

.product__gallery .swiper {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* スケルトン & オーバーレイ */
.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-image-wrapper img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image-wrapper img.loaded {
  opacity: 1;
}

.skeleton-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.skeleton-loader.small {
  background: linear-gradient(90deg, #f8f8f8 25%, #e8e8e8 50%, #f8f8f8 75%);
  animation-duration: 1.2s;
}

.skeleton-loader.hidden {
  opacity: 0;
}

.swiper-slide .slide-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-light, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.swiper-slide .slide-loading-overlay.hidden {
  opacity: 0;
}

.swiper-slide .slide-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--color-main, #007cba);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* メイン画像 */
.product__thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.product__gallery .swiper.swiper-main {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.product__gallery .swiper-main .swiper-slide {
  overflow: hidden;
}

.product__gallery .swiper-main .swiper-slide .gallery-slide-content {
  width: 100%;
  position: relative;
  aspect-ratio: 1 / 1;
}

.product__gallery .swiper-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
  transform-origin: center center;
}

/* サムネイル画像 */
.product__gallery .swiper.swiper-sub {
  width: 100%;
  margin: 30px 0 0 0;
  padding: 0;
}

.swiper-sub.loading {
  opacity: 0;
}

.product__gallery .swiper-sub .swiper-slide {
  max-width: 135px;
  overflow: hidden;
  transition: opacity 0.5s ease;
  cursor: pointer;
  opacity: 0.6;
}

.product__gallery .swiper-sub .swiper-slide:hover,
.product__gallery .swiper-sub .swiper-slide.swiper-slide-thumb-active {
  opacity: 1;
}

.product__gallery .swiper-sub .swiper-slide .gallery-slide-content {
  width: 100%;
  position: relative;
  aspect-ratio: 1 / 1;
}

.product__gallery .swiper-sub .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-sub .swiper-slide .slide-loading-spinner {
  width: 16px;
  height: 16px;
  border-width: 1.5px;
}

/* 製品情報 */
.product__content {
  width: 50%;
  margin-left: auto;
}

.product__content-top {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-light-blue);
}

.product__content-bottom {
  padding-top: 60px;
}

.product__title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 1.6px;
}

.product__meta {
  margin-top: 30px;
}

.product__categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product__category {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0 8px;
  height: 32px;
  border-radius: 30px;
  border: 1px solid var(--color-main);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.7px;
}
.product__category.refrigeration{
  border-color: var(--color-light-blue);
  color: var(--color-light-blue);
}
.product__category.quasi-drugs{
  background: var(--color-main);
  color: #FCFEFF;
}
.product__headding {
  margin-top: 30px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 1px;
}

.product__desc {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.7px;
}

.product_detail {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product_detail dt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.7px;
}

.product_detail dd {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.83;
  letter-spacing: 0.6px;
}

.product_detail dd a {
  text-decoration: underline;
  color: var(--color-light-blue) !important;
  transition: 0.5s ease;
}

.product_detail dd a:hover {
  opacity: 0.5;
}

.product_detail dd p span[style*="font-size: 16px"] {
  font-weight: 600;
  line-height: 2.25;
}

.product_detail dd p span[style*="font-size: 12px"] {
  font-weight: 400;
  line-height: 1.85;
}

.product_detail dd p span[style*="font-size: 10px"] {
  font-weight: 400;
  line-height: 1.6;
}

.product_detail li {
  position: relative;
  padding-left: 10px;
}

.product_detail li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 3px;
  height: 3px;
  background-color: var(--color-main);
  border-radius: 50%;
}

.product__button-wrapper {
  margin-top: 60px;
}

.product__button {
  width: 100%;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  transition: .5s ease;
}

.product__button span {
  font-size: 12px;
}

.product__button-order {
  flex-direction: column;
  border: 1px solid var(--color-main);
  background: var(--color-light);
}

.product__button-order:hover,
.product__button-serch:hover {
  background: var(--color-main);
  color: #fff;
}

.product__button-serch {
  margin-top: 30px;
  background: #F2F8FD;
}

.product__note {
  margin-top: 20px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
}

/* ---------------
  クリニックを探すセクション
-----------------*/
.section__clinic {
  padding: 70px 40px;
  background: #F6F7FF;
}

.section__clinic-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.section__clinic-btn {
  max-width: 430px;
  width: 80%;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 50px;
  background: #FFF;
  transition: .5s ease;
}

.section__clinic-btn:hover {
  background: var(--color-main);
  color: #fff;
}

.section__clinic-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.83;
  letter-spacing: 0.6px;
}

/* ---------------
  ラインナップ
-----------------*/
.lineup {
  padding: 90px 40px 130px;
  background: #F6F7FF;
}

.lineup__inner {
  max-width: 1150px;
  margin: 0 auto;
}

.lineup__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1.3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-light-blue);
}

.lineup__list {
  position: relative;
}

.swiper-lineup {
  margin: 30px auto 0;
  width: 87.8%;
}

.swiper-lineup .swiper-container {
  width: 100%;
  margin: 0;
}

.lineup__list .swiper-button-next:after,
.lineup__list .swiper-button-prev:after {
  display: none;
}

.lineup__list .swiper-button-next,
.lineup__list .swiper-button-prev {
  position: absolute !important;
  width: 24px;
  height: 39px;
  margin-top: -17.5px;
  background: none;
}

.lineup__list .swiper-button-next {
  right: 0;
}

.lineup__list .swiper-button-prev {
  left: 0;
}

.lineup__list .swiper-button-next:before,
.lineup__list .swiper-button-prev:before {
  content: '';
  position: absolute;
  top: 35%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-top: 1px solid #171C61;
  border-right: 1px solid #171C61;
  transform-origin: center;
}

.lineup__list .swiper-button-prev:before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.lineup__list .swiper-button-next:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lineup__list .swiper-button-next:hover:before,
.lineup__list .swiper-button-prev:hover:before {
  border-color: #0f1347;
}

.lineup__list .swiper-button-disabled:before {
  border-color: #ccc !important;
  opacity: 0.5;
}

.lineup__link {
  display: block;
  width: 100%;
  height: 100%;
  transition: .5s ease;
}

.lineup__link:hover {
  opacity: 0.7;
}

.lineup__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.lineup__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: .5s ease;
}

.lineup__link:hover .lineup__img img {
  transform: scale(1.05);
}

.lineup__name {
  margin-top: 9px;
  font-size: 16px;
  font-weight: 600;
}

.lineup__no-items {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  padding: 160px 0 40px;
}


/* =================================
  レスポンシブ @media
================================= */

/* ---------------
  1024px以下
-----------------*/
@media screen and (max-width: 1024px) {

  /* ナビゲーション */
  .navigation__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px;
  }
}

/* ---------------
  750px以下
-----------------*/
@media screen and (max-width: 750px) {

  /* ナビゲーション */
  .navigation {
    padding: 5rem 3.2rem;
  }

  .page__title {
    font-size: 2rem;
    letter-spacing: 0.1rem;
    padding-bottom: 0;
    border-bottom: none;
  }

  .navigation__list {
    margin-top: 3rem;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
    padding: 0;
  }

  .navigation__item {
    font-size: 1.4rem;
    letter-spacing: 0.07rem;
  }

  .navigation__item a {
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .navigation__item a svg {
    width: 0.8rem;
    height: 1.6rem;
  }

  /* 製品ページ */
  .product__inner,
  .ap5 .product__inner {
    padding: 6rem 3.2rem;
  }

  .product__layout--add:not(:first-child) {
    margin-top: 12rem;
  }

  .product__layout {
    flex-direction: column;
  }

  .product__gallery {
    order: 3;
    width: 100%;
    margin-top: 3.5rem;
  }

  .product__gallery .swiper.swiper-sub {
    margin: 2rem 0 0 0;
  }

  .product__gallery .swiper-sub .swiper-slide {
    max-width: 200px;
  }

  .product__content {
    display: contents;
    width: 100%;
    margin-left: 0;
  }

  .product__content-top {
    display: contents;
    border-bottom: none;
  }

  .product__title {
    order: 1;
    font-size: 2.4rem;
    letter-spacing: 0.12rem;
  }

  .product__meta {
    order: 2;
    margin-top: 2rem;
  }

  .product__categories {
    gap: 1rem;
  }

  .product__category {
    min-width: 11rem;
    padding: 0 0.8rem;
    height: 2.6rem;
    font-size: 1rem;
  }

  .product__headding {
    order: 4;
    font-size: 2rem;
    letter-spacing: 0.1rem;
    margin-top: 3rem;
  }

  .product__desc {
    margin-top: 2rem;
    order: 5;
    font-size: 1.4rem;
    letter-spacing: 0.07rem;
  }

  .product__content-bottom {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-light-blue);
    order: 6;
  }

  .product_detail {
    gap: 3rem;
  }

  .product_detail dt {
    font-size: 1.4rem;
    letter-spacing: 0.07rem;
  }

  .product_detail dd {
    margin-top: 0.3rem;
    font-size: 1.2rem;
    letter-spacing: 0.06rem;
  }

  .product_detail dd p span[style*="font-size: 16px"] {
    font-size: 1.6rem !important;
  }

  .product_detail dd p span[style*="font-size: 12px"] {
    font-size: 1.2rem !important;
  }

  .product_detail dd p span[style*="font-size: 10px"] {
    font-size: 1rem !important;
    line-height: 0.8;
  }

  .product_detail li::before {
    width: 0.3rem;
    height: 0.3rem;
  }

  .product__button-wrapper {
    margin-top: 6rem;
  }

  .product__button {
    width: 30rem;
    height: 7rem;
    padding: 1.6rem 1rem;
    font-size: 1.6rem;
    border-radius: 5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .product__button span {
    font-size: 1rem;
  }

  .product__button-serch {
    margin-top: 3rem;
  }

  .product__note {
    margin-top: 3rem;
    font-size: 1rem;
  }

  /* クリニックを探す */
  .section__clinic {
    padding: 6rem 3.3rem;
  }

  .section__clinic-inner {
    gap: 3rem;
  }

  .section__clinic-btn {
    width: 30rem;
    height: 7rem;
    font-size: 1.6rem;
    border-radius: 5rem;
  }

  .section__clinic-text {
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.06rem;
  }

  /* ラインナップ */
  .lineup {
    padding: 6rem 3.3rem;
  }

  .lineup__title {
    font-size: 1.6rem;
    letter-spacing: 0.13rem;
    padding-bottom: 1rem;
  }

  .swiper-lineup {
    margin: 3rem auto 0;
    width: 100%;
  }

  .swiper-lineup .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
  }

  .lineup__name {
    margin-top: 1rem;
    font-size: 1.4rem;
    letter-spacing: 0.07rem;
  }

  .lineup .swiper-navigation {
    display: none;
  }

  .lineup__no-items {
    font-size: 1.4rem;
    padding: 8rem 0 2rem;
  }

  /* ラインナップ モバイル用コントロール */
  .lineup__mobile-controls {
    margin-top: 5rem;
    text-align: center;
  }

  .lineup__load-more {
    color: var(--color-main);
    border: none;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }

  .lineup__load-more svg {
    width: 2.2rem;
    height: 2.2rem;
  }

  .lineup__load-more:hover:not(:disabled) {
    opacity: 0.5;
  }

  .lineup__load-more:disabled {
    cursor: not-allowed;
  }

  .lineup__load-more.loading {
    pointer-events: none;
  }

  .loading-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .lineup__item {
    transition: all 0.3s ease;
  }

  .lineup__item.fade-in {
    animation: fadeInUp 0.5s ease forwards;
  }

  .lineup__load-more.fade-out {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ---------------
  751px以上
-----------------*/
@media (min-width: 751px) {
  .lineup__mobile-controls {
    display: none !important;
  }
}