/*==============
  セクション
 ===============*/
/* .about-product h2,
.access h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
} */

/* ====================================
   作品一覧
   ==================================== */

.about-product,
.exhibition {
  text-align: center;
  overflow: hidden;
}

.slideshow-container {
  width: 100%;
  margin-top: 3rem;
  overflow: hidden;
}

.slideshow-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  user-select: none;
  will-change: transform;
}

/* 右へスライドショー*/
.slideshow-right {
  animation: slideRight 40s linear infinite;
}

@keyframes slideRight {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(var(--slide-width, 50%) * -1));
  }
}

/* 左へスライドショー*/
.slideshow-left {
  animation: slideLeft 40s linear infinite;
}

@keyframes slideLeft {
  0% {
    transform: translateX(calc(var(--slide-width, 50%) * -1));
  }

  100% {
    transform: translateX(0);
  }
}


.product-card {
  flex-shrink: 0;
  width: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  -webkit-user-drag: none;
}

.product-card:hover {
  transform: scale(1.05) translateY(-5px);
  z-index: 10;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* 一覧へのボタン */
.product-detail-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 20px;
}

.detail-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #26A69A;
  color: #fff;

  padding: 1.2rem 3.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  min-width: 380px;
  overflow: hidden;
  z-index: 1;

  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.anim-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: -1;
  pointer-events: none;
}

.anim-bg div {
  flex: 1;
  width: 100%;
  background-color: #90CAF9;
  transform: scaleX(0);
  transform-origin: left;
  padding: 1% 0;

  transition: transform 0.45s cubic-bezier(0.34, 1.63, 0.61, 0.3);
}

.anim-bg div:nth-child(1) {
  transition-delay: 0;
}

.anim-bg div:nth-child(2) {
  transition-delay: 150ms;
}

.anim-bg div:nth-child(3) {
  padding: 1px;
  transition-delay: 200ms;
}

.detail-btn span {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-size: 2.8rem;
  min-width: 150px;
  margin-right: 0.8rem;
  line-height: 1;
  position: relative;
  display: inline-block;
  z-index: 2;
}

.detail-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(38, 166, 154, 0.3);
}

.detail-btn:hover .anim-bg div {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .product-card {
    width: 350px;
  }

  .product-detail-nav {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .detail-btn {
    width: 100%;
    max-width: 400px;
    padding: 1.2rem 2rem;
    min-width: unset;
    font-size: 1rem;
  }

  .detail-btn span {
    font-size: 2.2rem;
  }
}

/* ====================================
   アクセス
   ==================================== */
.access {
  margin: 2rem 0;
  padding: 2rem 10% 2rem;
  text-align: center;
  overflow: hidden;
}

/* マップと 説明テキストの間に空間を開けたい */
.access .maps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
}

.access .google-map {
  flex-shrink: 1;
  width: 600px;
  max-width: 600px;
}

.access .google-map iframe {
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block;
  width: 100%;
  height: 450px;
  max-width: 100%;
}

.access .text-area {
  max-width: 100%;
  min-width: 300px;
  /* width: auto; */
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #fff;
}

/* 「日本電子専門学校7号館」見出し */
.address-info h3 {
  font-size: 2rem;
}

.address-info h3 span {
  display: inline-block;
}

/* 7を巨大化 */
.address-info span span {
  font-size: 3rem;
}

/* 住所と交通アクセスの間の余白 */
.address-info {
  margin-bottom: 2rem;
}

/* 「交通アクセス」見出し */
.access-routes h3 {
  font-size: 1.5rem;
}

.access-routes li {
  list-style: circle;
  margin-left: 1rem;
}

@media(max-width: 767px) {
  .access {
    text-align: center;
  }

  .access .maps {
    flex-direction: column-reverse;

    align-items: center;
  }

  .access .text-area {
    max-width: 100%;
  }

  .access .google-map {
    flex-shrink: 1;
    width: 100%;
  }

  .address-info h3 {
    text-align: center;
  }

  .address-info p {
    margin: 0 auto;
  }

  .access-routes h3 {
    text-align: center;
  }

  .access-routes li {
    text-align: center;
  }
}

/* ====================================
   フッター
   ==================================== */

footer {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  color: #333;
}

footer .footer-contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  padding: 2rem 10% 2rem;
}

footer h3 {
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 1.5rem;
}

footer address {
  font-style: normal;
  line-height: 1.4;
}

.contact-info {
  text-align: left;
}

.footer-link {
  text-align: right;
}

footer a::before {
  content: "> ";
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

footer .copyright {
  margin-top: 15px;
}

@media (max-width: 767px) {
  footer .footer-contact {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info,
  .footer-link {
    text-align: center;
    margin-bottom: 10px;
  }
}
