@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

.main {
  border: none;
}

#container {
  padding: 0;
  max-width: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#content-in {
  width: 100%;
  flex: 1;
  background-color: #FAE5B9;
}

/************************************
** Instagramカルーセルスタイル
************************************/
.instagram-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 calc(50% - 0.5rem);
  aspect-ratio: 1 / 1;
  min-width: calc(50% - 0.5rem);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1rem;
  font-size: 0.85rem;
  max-height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-item:hover .carousel-caption {
  opacity: 1;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(51, 51, 51, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-nav:hover {
  background: rgba(51, 51, 51, 0.9);
}

.carousel-nav-prev {
  left: 10px;
}

.carousel-nav-next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: #333;
}

.carousel-dot:hover {
  background: #666;
}

.instagram-button {
  text-align: center;
  margin-top: 1rem;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/* モバイル対応 */
@media (max-width: 768px) {
  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .carousel-nav-prev {
    left: 5px;
  }

  .carousel-nav-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/************************************
** Product Modal Dialog
************************************/
dialog:not([open]) {
  display: none;
}

.product-modal {
  background-color: #FAE5B9;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.product-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.product-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-modal-image {
  text-align: center;
  margin-bottom: 10px;
}

.modal-product-image {
  max-width: 70%;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-modal-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-product-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.modal-product-catchphrase {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.modal-product-description {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.modal-close-button {
  padding: 12px 40px;
  background-color: transparent;
  border: 1px solid #333;
  font-size: 16px;
  font-family: 'sawarabi-mincho', serif;
  color: #333;
  cursor: pointer;
  margin: 30px auto;
  width: fit-content;
  transition: all 0.3s ease;
}

.modal-close-button:hover {
  background-color: #333;
  color: white;
}
/************************************
** Archive Header & Category Hero
************************************/
.archive-header {
  position: relative;
  margin-bottom: 40px;
}

.entry-title, .archive-header .archive-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 0 20px;
  color: #333;
}

.category-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin: 0 20px;
}

.category-main-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.category-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.category-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 48px;
  font-weight: bold;
  margin: 0;
  z-index: 2;
  text-align: center;
}

/************************************
** Product Grid
************************************/
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0 20px;
  margin-bottom: 40px;
}

.product-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-card-title {
  background-color: #FFF4E2;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  padding: 8px 16px;
  margin: 0;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*480px以下*/
@media screen and (max-width: 480px){
  .product-grid {
    gap: 20px;
    padding: 0 10px;
  }

  .entry-title, .archive-header .archive-title {
    font-size: 32px;
    padding: 0 10px;
  }

  .category-hero {
    margin: 0 10px;
    height: 240px;
  }

  .category-hero-title {
    font-size: 32px;
  }

  .product-image {
    height: 150px;
  }
}