@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** 商品情報ボックスのスタイル
************************************/
.product-info-box {
  background: #fff;
  margin: 30px 0;
}

.product-info-title {
  font-size: 1.3em;
  font-weight: bold;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
  color: #333;
}

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

.product-info-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.product-info-item.designs-item {
  display: block;
}

.product-info-item.designs-item .product-info-label {
  display: block;
  margin-bottom: 10px;
}

.product-info-item.designs-item .product-info-value {
  display: block;
  width: 100%;
}

.product-info-item:last-child {
  border-bottom: none;
}

.product-info-label {
  font-weight: bold;
  color: #555;
  min-width: 120px;
  flex-shrink: 0;
  padding-right: 15px;
}

.product-info-value {
  color: #333;
  flex: 1;
  min-width: 0;
}

/* 販売状況バッジ */
.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
}

.status-badge.status-on_sale {
  background: #4caf50;
  color: #fff;
}

.status-badge.status-sold_out {
  background: #9e9e9e;
  color: #fff;
}

.status-badge.status-coming_soon {
  background: #2196f3;
  color: #fff;
}

/* 価格表示 */
.price-value {
  font-size: 1.4em;
  font-weight: bold;
  color: #d32f2f;
}

.price-tax-label {
  font-size: 0.6em;
  font-weight: normal;
  color: #333;
  margin-left: 5px;
}

/* 取扱店舗リスト */
.stores-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-item {
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid #e0e0e0;
}

/* 絵柄・商品番号リスト */
.product-designs-wrapper {
  position: relative;
}

.product-designs-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f5f5f5;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.scroll-indicator.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-indicator:hover {
  background: #333;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.scroll-indicator:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-indicator svg {
  color: #333;
  transition: color 0.3s ease;
}

.scroll-indicator:hover svg {
  color: #fff;
}

.scroll-indicator-right {
  right: -10px;
  animation: scrollHintRight 1.5s ease-in-out infinite;
}

.scroll-indicator-left {
  left: -10px;
  animation: scrollHintLeft 1.5s ease-in-out infinite;
}

/* 控えめなアニメーション */
@keyframes scrollHintRight {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(5px);
  }
}

@keyframes scrollHintLeft {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-5px);
  }
}

/* ホバー時はアニメーション停止 */
.scroll-indicator:hover {
  animation: none;
}

.product-designs-list::-webkit-scrollbar {
  height: 8px;
}

.product-designs-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.product-designs-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.product-designs-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.product-design-item {
  flex: 0 0 250px;
  min-width: 250px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-design-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.design-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
  text-align: center;
}

.design-image-wrapper {
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.design-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.design-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.design-image-wrapper:hover .design-image {
  opacity: 0.9;
}

.product-number {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9em;
}

.product-number-label {
  color: #666;
  margin-right: 5px;
}

.product-number-value {
  font-weight: bold;
  color: #333;
}

/* 注目商品バッジ */
.featured-badge {
  display: inline-block;
  background: #ff5722;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
  margin-left: 10px;
  vertical-align: middle;
}

/************************************
** 共通商品カードスタイル
************************************/
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 2px solid #333;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-width: 3px;
  border-color: #000;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: #333;
}

.product-card-link:hover {
  color: #333;
  text-decoration: none;
}

.product-card-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f0f0f0;
}

.product-card-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.05);
}

.product-card-content {
  padding: 28px;
}

.product-card-status {
  margin-bottom: 12px;
}

.product-card-title {
  font-size: 1.15em;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.product-card-price {
  margin: 0;
  font-size: 1em;
}

.product-card-price .price-value {
  color: #000;
  font-weight: 700;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .product-info-label {
    min-width: 100px;
    font-size: 0.95em;
  }
  
  .product-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .product-design-item {
    flex: 0 0 220px;
    min-width: 220px;
  }
  
  .product-designs-list {
    gap: 15px;
  }
  
  .scroll-indicator {
    width: 40px;
    height: 40px;
  }
  
  .scroll-indicator-right {
    right: -5px;
  }
  
  .scroll-indicator-left {
    left: -5px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .product-info-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .product-info-label {
    min-width: auto;
    margin-bottom: 5px;
    padding-right: 0;
  }
  
  .stores-list {
    flex-direction: column;
  }
  
  .product-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .product-card-content {
    padding: 15px;
  }
  
  .product-card-title {
    font-size: 1em;
    margin-bottom: 12px;
  }
  
  .product-design-item {
    flex: 0 0 200px;
    min-width: 200px;
  }
  
  .product-designs-list {
    gap: 12px;
  }
  
  .product-design-item {
    padding: 12px;
  }
  
  .scroll-indicator {
    width: 36px;
    height: 36px;
  }
  
  .scroll-indicator svg {
    width: 20px;
    height: 20px;
  }
  
  .scroll-indicator-right {
    right: 0;
  }
  
  .scroll-indicator-left {
    left: 0;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .product-info-box {
    margin: 20px 0;
  }
  
  .product-info-title {
    font-size: 1.1em;
  }
  
  .product-info-label {
    font-size: 0.9em;
  }
  
  .product-info-value {
    font-size: 0.95em;
  }
  
  .price-value {
    font-size: 1.2em;
  }
  
  .product-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-card-content {
    padding: 12px;
  }
  
  .product-card-title {
    font-size: 0.95em;
    margin-bottom: 10px;
  }
  
  .product-card-price {
    font-size: 0.95em;
  }
  
  .product-design-item {
    flex: 0 0 180px;
    min-width: 180px;
  }
  
  .product-designs-list {
    gap: 10px;
  }
  
  .product-design-item {
    padding: 10px;
  }
  
  .design-image {
    max-height: 150px;
  }
  
  .scroll-indicator {
    width: 32px;
    height: 32px;
  }
  
  .scroll-indicator svg {
    width: 18px;
    height: 18px;
  }
  
  .scroll-indicator-right {
    right: 5px;
  }
  
  .scroll-indicator-left {
    left: 5px;
  }
}

/************************************
** 商品・ニュース個別ページのスタイル
************************************/
.product-single,
.news-single {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.entry-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.entry-title {
  font-size: 2em;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.entry-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9em;
  color: #666;
}

.entry-meta time {
  display: inline-block;
}

.entry-thumbnail {
  margin: 30px 0;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.product-info-section {
  margin: 30px 0;
}

.entry-content {
  margin: 30px 0;
  line-height: 1.8;
  font-size: 1.05em;
  color: #333;
}

.entry-content h2 {
  font-size: 1.6em;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

.entry-content h3 {
  font-size: 1.4em;
  margin: 30px 0 15px 0;
  padding-left: 10px;
  border-left: 4px solid #333;
}

.entry-content p {
  margin: 15px 0;
}

.entry-content ul,
.entry-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.entry-content li {
  margin: 8px 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

.entry-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.product-categories,
.news-categories,
.product-tags {
  margin: 15px 0;
  font-size: 0.95em;
}

.cat-label,
.tag-label {
  font-weight: bold;
  color: #555;
  margin-right: 10px;
}

.product-categories a,
.news-categories a,
.product-tags a {
  display: inline-block;
  background: #f5f5f5;
  padding: 5px 12px;
  margin: 3px;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.product-categories a:hover,
.news-categories a:hover,
.product-tags a:hover {
  background: #e0e0e0;
}

/************************************
** レスポンシブ: 商品・ニュース個別ページ
************************************/
@media screen and (max-width: 834px) {
  .product-single,
  .news-single {
    padding: 20px;
  }
  
  .entry-title {
    font-size: 1.6em;
  }
  
  .entry-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .entry-thumbnail img {
    max-height: 400px;
  }
  
  .entry-content {
    font-size: 1em;
  }
  
  .entry-content h2 {
    font-size: 1.4em;
  }
  
  .entry-content h3 {
    font-size: 1.2em;
  }
}

@media screen and (max-width: 480px) {
  .product-single,
  .news-single {
    padding: 15px;
  }
  
  .entry-title {
    font-size: 1.4em;
  }
  
  .entry-thumbnail img {
    max-height: 300px;
  }
  
  .entry-content {
    font-size: 0.95em;
    line-height: 1.7;
  }
  
  /************************************
  ** 商品ページで日付・タグを非表示
  ************************************/
  .post-type-product .date-tags {
    display: none !important;
  }
  
  .entry-content h2 {
    font-size: 1.3em;
    margin: 30px 0 15px 0;
  }
  
  .entry-content h3 {
    font-size: 1.1em;
    margin: 25px 0 12px 0;
  }
  
  .product-categories a,
  .news-categories a,
  .product-tags a {
    font-size: 0.9em;
    padding: 4px 10px;
  }
}

/************************************
** 商品検索フォーム
************************************/
.product-search-wrapper {
  background: #fff;
  padding: 40px 0;
  margin-bottom: 0;
}

.product-search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-search-form {
  width: 100%;
}

.product-search-input-wrapper {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50px;
  padding: 8px 8px 8px 24px;
  margin-bottom: 0;
  transition: border-color 0.3s ease;
}

.product-search-input-wrapper:focus-within {
  border-color: #667eea;
}

.product-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1em;
  padding: 8px 0;
  background: transparent;
}

.product-search-input::placeholder {
  color: #999;
}

.product-search-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-search-button:hover {
  background: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.product-search-button:active {
  transform: translateY(0);
}

.product-search-button svg {
  flex-shrink: 0;
}

/************************************
** レスポンシブ: 商品検索フォーム
************************************/
@media screen and (max-width: 834px) {
  .product-search-wrapper {
    padding: 30px 0;
  }
  
  .product-search-container {
    padding: 0 15px;
  }
  
  .product-search-input {
    font-size: 1em;
  }
  
  .product-search-button {
    padding: 10px 20px;
    font-size: 0.95em;
  }
}

@media screen and (max-width: 480px) {
  .product-search-wrapper {
    padding: 20px 0;
  }
  
  .product-search-container {
    padding: 0 10px;
  }
  
  .product-search-input-wrapper {
    padding: 6px 6px 6px 16px;
  }
  
  .product-search-input {
    font-size: 0.95em;
    padding: 6px 0;
  }
  
  .product-search-button {
    padding: 8px 16px;
    font-size: 0.9em;
    gap: 6px;
  }
  
  .product-search-button span {
    display: none;
  }
  
  .product-search-button svg {
    width: 18px;
    height: 18px;
  }
}

/************************************
** 注目商品セクション
************************************/
.featured-products-wrapper {
  background: #F5F3F0;
  padding: 20px 0 40px 0;
  margin-bottom: 60px;
}

.featured-products-wrapper + .featured-products-wrapper {
  padding-top: 20px;
}

.featured-products-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.featured-products-title {
  font-size: 2em;
  font-weight: bold;
  color: #333;
  margin: 0 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #333;
}

.featured-products-scroll {
  overflow: visible;
}

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 0;
}

.featured-product-card {
  background: #fff;
  border: 2px solid #333;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.featured-product-card:hover {
  border-width: 3px;
  border-color: #000;
}

.featured-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-product-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f0f0f0;
}

.featured-product-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image {
  transform: scale(1.05);
}

.featured-product-content {
  padding: 28px;
}

.featured-product-title {
  font-size: 1.15em;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.featured-product-price {
  margin: 0;
  font-size: 1em;
}

.featured-product-price .price-value {
  color: #000;
  font-weight: 700;
}

/* 販売状況エリア（TOPページカード用） */
.featured-product-status {
  margin-bottom: 12px;
}

.featured-products-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 1.2em;
}

.products-more-link-wrapper {
  margin-top: 30px;
  text-align: center;
}

.products-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #333;
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.products-more-link:hover {
  background: #555;
  color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.products-more-link:active {
  transform: translateY(0);
}

.products-more-link svg {
  transition: transform 0.2s ease;
}

.products-more-link:hover svg {
  transform: translateX(4px);
}

/************************************
** レスポンシブ: 注目商品セクション
************************************/
@media screen and (max-width: 1200px) {
  .featured-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media screen and (max-width: 834px) {
  .featured-products-wrapper {
    padding: 40px 0 30px 0;
    margin-bottom: 0;
  }
  
  .featured-products-wrapper + .featured-products-wrapper {
    padding-top: 20px;
  }
  
  .featured-products-container {
    padding: 0 15px;
  }
  
  .featured-products-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  
  .featured-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  
  .featured-product-image-wrapper {
    height: auto;
  }
  
  .featured-product-content {
    padding: 15px;
  }
  
  .featured-product-title {
    font-size: 1em;
    font-weight: bold;
  }
  
  .products-more-link {
    padding: 10px 28px;
    font-size: 0.95em;
  }
}

@media screen and (max-width: 480px) {
  .featured-products-wrapper {
    padding: 30px 0 20px 0;
    margin-bottom: 0;
  }
  
  .featured-products-wrapper + .featured-products-wrapper {
    padding-top: 20px;
  }
  
  .featured-products-container {
    padding: 0 10px;
  }
  
  .featured-products-title {
    font-size: 1.4em;
    margin-bottom: 15px;
  }
  
  .featured-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  
  .featured-product-image-wrapper {
    height: auto;
  }
  
  .featured-product-content {
    padding: 12px;
  }
  
  .featured-product-title {
    font-size: 0.95em;
    font-weight: bold;
  }
  
  .featured-product-price {
    font-size: 0.95em;
  }
  
  .price-value {
    font-size: 1.1em;
  }
  
  .products-more-link {
    padding: 10px 24px;
    font-size: 0.9em;
  }
}

/************************************
** 最新ニュースカルーセル
************************************/
.news-carousel-wrapper {
  background: #fff;
  padding: 0;
  margin-bottom: 0;
}

.news-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.news-carousel-title {
  display: none;
}

.news-carousel {
  overflow: hidden;
  position: relative;
  border-radius: 0;
  background: #fff;
  padding: 20px 0;
}

.news-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.news-carousel-item {
  flex: 0 0 calc(33.333% - 14px);
  min-width: calc(33.333% - 14px);
  background: #fff;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.news-carousel-item:hover {
  opacity: 0.8;
}

.news-carousel-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-carousel-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: transparent;
}

.news-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.news-carousel-content {
  padding: 15px 0;
}

.news-carousel-date {
  display: none;
}

.news-carousel-item-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-carousel-price {
  margin: 0;
  font-size: 0.95em;
}

.news-carousel-price .price-value {
  font-size: 1.2em;
  font-weight: bold;
  color: #d32f2f;
}

.news-carousel-price .price-tax-label {
  font-size: 0.75em;
  font-weight: normal;
  color: #666;
  margin-left: 3px;
}

.news-carousel-empty {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  font-size: 1.2em;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

.carousel-button:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-button-prev {
  left: -25px;
}

.carousel-button-next {
  right: -25px;
}

.carousel-button svg {
  color: #333;
}

/************************************
** レスポンシブ: ニュースカルーセル
************************************/
@media screen and (max-width: 1023px) {
  .news-carousel-item {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }
  
  .carousel-button-prev {
    left: 10px;
  }
  
  .carousel-button-next {
    right: 10px;
  }
}

@media screen and (max-width: 834px) {
  .news-carousel-wrapper {
    padding: 0;
  }
  
  .news-carousel-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  
  .news-carousel-image-wrapper {
    height: 180px;
  }
  
  .news-carousel-content {
    padding: 12px 0;
  }
  
  .news-carousel-item-title {
    font-size: 0.95em;
  }
}

@media screen and (max-width: 480px) {
  .news-carousel-wrapper {
    padding: 0;
  }
  
  .news-carousel-container {
    padding: 0;
  }
  
  .news-carousel {
    padding: 15px 0;
    border-radius: 0;
  }
  
  .news-carousel-track {
    gap: 0;
  }
  
  .news-carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .news-carousel-image-wrapper {
    height: 160px;
  }
  
  .news-carousel-content {
    padding: 10px;
    text-align: center;
  }
  
  .news-carousel-item-title {
    font-size: 1em;
  }
  
  .carousel-button {
    width: 40px;
    height: 40px;
  }
  
  .carousel-button-prev {
    left: 5px;
  }
  
  .carousel-button-next {
    right: 5px;
  }
}

/************************************
** QRコード表示ボタンとライトボックス
************************************/
.qr-code-button-wrapper {
  margin-top: 10px;
}

.qr-code-button {
  display: inline-block;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.qr-code-button:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.qr-code-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* ライトボックス */
.qr-code-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.qr-code-lightbox.show {
  display: flex !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.qr-code-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.qr-code-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  z-index: 10000;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.qr-code-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/************************************
** レスポンシブ: QRコードライトボックス
************************************/
@media screen and (max-width: 834px) {
  .qr-code-button {
    padding: 8px 16px;
    font-size: 0.85em;
  }
  
  .qr-code-lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
  
}

@media screen and (max-width: 480px) {
  .qr-code-button {
    padding: 6px 14px;
    font-size: 0.8em;
  }
  
  .qr-code-lightbox-content {
    max-width: 98%;
    max-height: 98%;
  }
  
  .qr-code-image {
    border-radius: 4px;
  }
}

/************************************
** 印刷用QRコードリスト（横並び表示）
************************************/
.print-qr-codes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.print-qr-codes-list .print-qr-code-item {
  flex: 0 0 auto;
  max-width: 300px;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
}

.print-qr-code-description {
  font-size: 0.95em;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.print-qr-code-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/************************************
** レスポンシブ: 印刷用QRコードリスト
************************************/
@media screen and (max-width: 834px) {
  .print-qr-codes-list {
    gap: 15px;
  }
  
  .print-qr-codes-list .print-qr-code-item {
    max-width: 250px;
    padding: 12px;
  }
  
  .print-qr-code-description {
    font-size: 0.9em;
  }
}

@media screen and (max-width: 480px) {
  .print-qr-codes-list {
    flex-direction: column;
    gap: 15px;
  }
  
  .print-qr-codes-list .print-qr-code-item {
    max-width: 100%;
    padding: 10px;
  }
  
  .print-qr-code-description {
    font-size: 0.85em;
  }
}

/************************************
** ニュースセクション
************************************/
.news-section-wrapper {
  background: #F5F3F0;
  padding: 20px 0;
  margin-top: 0;
}

.news-section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.news-section-title {
  font-size: 2em;
  font-weight: bold;
  color: #333;
  margin: 0 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #333;
}

.news-list {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-item {
  border-bottom: 1px solid #e0e0e0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.news-item-link:hover {
  background: #f8f8f8;
}

.news-item-date {
  flex-shrink: 0;
  font-size: 1em;
  color: #666;
  font-weight: 500;
  min-width: 100px;
}

.news-item-title {
  flex: 1;
  font-size: 1em;
  font-weight: normal;
  color: #333;
  margin: 0;
  line-height: 1.6;
}

.news-item-icon {
  flex-shrink: 0;
  color: #999;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.news-item-link:hover .news-item-icon {
  transform: translateX(4px);
  color: #555;
}

.news-more-link-wrapper {
  margin-top: 30px;
  text-align: center;
}

.news-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #333;
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-more-link:hover {
  background: #555;
  color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-more-link:active {
  transform: translateY(0);
}

.news-more-link svg {
  transition: transform 0.2s ease;
}

.news-more-link:hover svg {
  transform: translateX(4px);
}

/************************************
** レスポンシブ: ニュースセクション
************************************/

/************************************
** メインコンテンツエリアのパディング調整
************************************/
.post-type-archive-product #main,
.home #main {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.post-type-archive-product #main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/************************************
** 商品アーカイブページ
************************************/
.product-archive-wrapper {
  background: #F5F3F0;
  padding: 40px 0 40px 0;
  min-height: 60vh;
}

.product-archive-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.archive-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #333;
}

.archive-title {
  font-size: 2em;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.product-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.product-archive-card {
  background: #fff;
  border: 2px solid #333;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-archive-card:hover {
  border-width: 3px;
  border-color: #000;
}

.product-archive-link {
  display: block;
  text-decoration: none;
  color: #333;
}

.product-archive-link:hover {
  color: #333;
  text-decoration: none;
}

.product-archive-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f0f0f0;
}

/* 販売状況エリア（アーカイブカード用） */
.product-archive-status {
  margin-bottom: 12px;
}

/* 販売状況バッジ（アーカイブカード用） */
.product-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-status-badge.status-ended {
  background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(158, 158, 158, 0.3);
}

.product-status-badge.status-coming-soon {
  background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}


.product-archive-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.product-archive-card:hover .product-archive-image {
  transform: scale(1.05);
}

.product-archive-content {
  padding: 28px;
}

.product-archive-title {
  font-size: 1.15em;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.product-archive-price {
  margin: 0;
  font-size: 1em;
}

.product-archive-price .price-value {
  color: #000;
  font-weight: 700;
}

.no-products {
  text-align: center;
  padding: 80px 20px;
  color: #666;
  font-size: 1.2em;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination .nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pagination .page-numbers:hover {
  background: #f5f5f5;
  border-color: #333;
}

.pagination .page-numbers.current {
  background: #333;
  color: #fff;
  border-color: #333;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  font-weight: bold;
  padding: 8px 16px;
  background: transparent;
  border: none;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
  background: transparent;
  border: none;
  color: #555;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.pagination .page-numbers.dots:hover {
  background: transparent;
  border: none;
}

/************************************
** レスポンシブ: ニュースセクション
************************************/
@media screen and (max-width: 834px) {
  .news-section-wrapper {
    padding: 40px 0;
  }
  
  .news-section-container {
    padding: 0 20px;
  }
  
  .news-section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }
  
  .news-item-link {
    padding: 16px 20px;
    gap: 15px;
  }
  
  .news-item-date {
    font-size: 0.95em;
    min-width: 90px;
  }
  
  .news-item-title {
    font-size: 0.95em;
  }
  
  .news-more-link {
    padding: 10px 28px;
    font-size: 0.95em;
  }
}

/************************************
** レスポンシブ: 商品アーカイブページ
************************************/
@media screen and (max-width: 834px) {
  .product-archive-wrapper {
    padding: 0 0 30px 0;
  }
    
    .product-archive-container {
      padding: 0 15px;
    }
    
    .archive-header {
      margin-bottom: 15px;
    }
    
    .archive-title {
      font-size: 1.6em;
    }
    
    .product-archive-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-bottom: 40px;
    }
    
    .product-archive-content {
      padding: 15px;
    }
    
    .product-archive-title {
      font-size: 1em;
    }
    
    .pagination .page-numbers {
      min-width: 36px;
      height: 36px;
      padding: 6px 10px;
      font-size: 0.9em;
    }
  }
  
  @media screen and (max-width: 480px) {
    .product-archive-wrapper {
      padding: 0 0 20px 0;
    }
    
    .product-archive-container {
      padding: 0 10px;
    }
    
    .archive-header {
      margin-bottom: 10px;
    }
    
    .archive-title {
      font-size: 1.4em;
    }
    
    .product-archive-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 30px;
    }
    
    .product-archive-content {
      padding: 12px;
    }
    
    .product-archive-title {
      font-size: 0.95em;
    }
    
    .product-archive-price {
      font-size: 0.95em;
    }
    
    .pagination .page-numbers {
      min-width: 32px;
      height: 32px;
      padding: 4px 8px;
      font-size: 0.85em;
    }
    
    .pagination .nav-links {
      gap: 5px;
    }
}

@media screen and (max-width: 480px) {
  .news-section-wrapper {
    padding: 30px 0;
  }
  
  .news-section-container {
    padding: 0 15px;
  }
  
  .news-section-title {
    font-size: 1.4em;
    margin-bottom: 15px;
  }
  
  .news-item-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 8px;
  }
  
  .news-item-date {
    font-size: 0.9em;
    min-width: auto;
  }
  
  .news-item-title {
    font-size: 0.9em;
  }
  
  .news-item-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .news-item-link:hover .news-item-icon {
    transform: translateY(-50%) translateX(4px);
  }
  
  .news-item {
    position: relative;
  }
  
  .news-more-link {
    padding: 10px 24px;
    font-size: 0.9em;
  }
}
