/* =============================================================================
   メインスタイル - レスポンシブ対応強化版
   ============================================================================= */

/* -----------------------------------------------------------------------------
   基本設定
   ----------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* メインコンテンツ */
.contents-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* -----------------------------------------------------------------------------
   共通コンポーネント
   ----------------------------------------------------------------------------- */

/* セクションタイトル */
.section-title {
  font-size: 24px;
  margin: 40px 0 20px;
  text-align: left;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .material-icons {
  font-size: 28px;
  vertical-align: middle;
}

/* ボタン共通スタイル */
.button-base,
.style-button a,
.order-button,
.more-button,
.plist-btn a,
.reco_more_btn a {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: normal;
  border: none;
  cursor: pointer;
}

/* 主要ボタン */
.button-primary,
.style-button a,
.order-button,
.plist-btn a,
.reco_more_btn a {
  background: #cdac4e;
  color: #fff;
}

.button-primary:hover,
.style-button a:hover,
.order-button:hover,
.plist-btn a:hover,
.reco_more_btn a:hover {
  background: #b8962e;
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
   ブランドストーリーセクション
   ----------------------------------------------------------------------------- */
.brand-story-section {
  margin-bottom: 80px;
  background: #f8f8f8;
  padding: 60px 0;
}

.brand-story-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brand-story-content {
  padding: 20px;
}

.brand-story-title {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.brand-story-text {
  font-size: 14px;
  color: #666;
  line-height: 2;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.brand-story-button {
  display: inline-block;
  padding: 12px 40px;
  border: 2px solid #333;
  background: transparent;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.brand-story-button:hover {
  background: #333;
  color: #fff;
}

.brand-story-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.brand-story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.brand-story-image:hover img {
  transform: scale(1.05);
}

/* -----------------------------------------------------------------------------
   スタイルセクション
   ----------------------------------------------------------------------------- */
.style-section {
  margin-bottom: 60px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.style-item {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.style-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.style-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.style-item-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.style-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.style-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px 10px 5px 10px;
  margin: 0;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -----------------------------------------------------------------------------
   ギフトランキングセクション
   ----------------------------------------------------------------------------- */
.ranking-section {
  margin-bottom: 60px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 15px !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-item {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.ranking-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* ランキング順位バッジ */
.ranking-item:nth-child(1):before,
.ranking-item:nth-child(2):before,
.ranking-item:nth-child(3):before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 35px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
}

.ranking-item:nth-child(1):before {
  background-image: url('https://file002.shop-pro.jp/PA01378/144/img/index1/rank1.png');
}

.ranking-item:nth-child(2):before {
  background-image: url('https://file002.shop-pro.jp/PA01378/144/img/index1/rank2.png');
}

.ranking-item:nth-child(3):before {
  background-image: url('https://file002.shop-pro.jp/PA01378/144/img/index1/rank3.png');
}

.ranking-item-inner {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ranking-link {
  display: block;
  margin-bottom: 12px;
}

.ranking-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.ranking-title {
  display: block;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.ranking-title:hover {
  color: #cdac4e;
}

.ranking-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
  flex-grow: 1;
}

/* 価格表示 */
.ranking-prices {
  margin-bottom: 15px;
  text-align: center;
}

.price-regular {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
}

.price-current {
  font-size: 16px;
  font-weight: bold;
  color: #b30b00;
}

.price-sale {
  color: #ff4444;
}

.price-soldout {
  font-size: 14px;
  color: #999;
  font-weight: bold;
}

.discount-badge {
  background: #ff4444;
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 10px;
  margin-left: 5px;
}

/* 注文ボタン */
.ranking-button {
  margin-top: auto;
}

.order-button {
  width: 100%;
  font-size: 12px;
  padding: 8px 0;
}

/* もっと見るボタン */
.more-button-wrapper {
  text-align: center;
  margin-top: 30px;
}

.more-button {
  background: #666;
  color: #fff;
  padding: 12px 30px;
}

.more-button:hover {
  background: #555;
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
   レスポンシブデザイン - 優先度強化
   ----------------------------------------------------------------------------- */

/* タブレット (768px以下) */
@media only screen and (max-width: 768px) {
  .contents-main {
    padding: 15px !important;
  }

  .section-title {
    font-size: 20px !important;
    margin: 30px 0 15px !important;
  }

  /* ブランドストーリーセクション */
  .brand-story-section {
    padding: 40px 0 !important;
    margin-bottom: 40px !important;
  }

  .brand-story-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .brand-story-title {
    font-size: 28px !important;
  }

  .brand-story-text {
    font-size: 13px !important;
  }

  /* スタイルセクション - 2列表示 */
  .style-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .style-item {
    overflow: hidden;
    padding: 0 !important;
  }

  .style-image {
    height: 140px !important;
  }

  .style-title {
    font-size: 15px !important;
    padding: 10px 5px 5px 5px !important;
  }

  /* ギフトランキング - 2列表示 */
  .ranking-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .ranking-item-inner {
    padding: 12px !important;
  }

  .ranking-image {
    height: 110px !important;
  }
}

/* スマートフォン (480px以下) */
@media only screen and (max-width: 480px) {
  .contents-main {
    padding: 10px !important;
  }

  .section-title {
    font-size: 18px !important;
    margin: 20px 0 15px !important;
  }

  /* ブランドストーリーセクション */
  .brand-story-section {
    padding: 30px 0 !important;
  }

  .brand-story-title {
    font-size: 24px !important;
  }

  .brand-story-button {
    padding: 10px 30px !important;
    font-size: 13px !important;
  }

  /* スタイルセクション - 2列表示 */
  .style-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .style-item {
    padding: 0 !important;
  }

  .style-image {
    height: 120px !important;
  }

  .style-title {
    font-size: 14px !important;
    padding: 10px 5px 5px 5px !important;
  }

  /* ギフトランキング - 2列表示 */
  .ranking-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .ranking-item-inner {
    padding: 10px !important;
  }

  .ranking-image {
    height: 100px !important;
  }

  .ranking-title {
    font-size: 12px !important;
  }

  .ranking-description {
    font-size: 11px !important;
  }

  .price-current {
    font-size: 14px !important;
  }

  .order-button {
    font-size: 11px !important;
    padding: 6px 0 !important;
  }
}

/* -----------------------------------------------------------------------------
   レガシーサポート（既存クラス名との互換性）
   ----------------------------------------------------------------------------- */

/* 既存のクラス名をサポート */
.bar-icon {
  font-size: 24px;
  margin: 40px 0 20px;
  text-align: left;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-icon .material-icons {
  font-size: 28px;
  vertical-align: middle;
}

.mb100 {
  margin-bottom: 100px;
}

.w100 {
  width: 100%;
}

/* 非表示要素 */
.hidden-desktop {
  display: none;
}

@media only screen and (max-width: 768px) {
  .hidden-desktop {
    display: block !important;
  }
  
  .visible-desktop {
    display: none !important;
  }
}

/* -----------------------------------------------------------------------------
   情報セクション（元のCSSから必要な部分）
   ----------------------------------------------------------------------------- */

.free-space__section {
  border: 2px solid #b30b00;
  padding: 20px 50px;
  background: #fff;
  margin-bottom: 30px;
}

.free-space__section h2 {
  font-size: 18px;
  text-align: center;
  color: #b30b00;
  margin-bottom: 10px;
}

.info__section {
  border: solid #ebebeb 20px;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  margin-bottom: 30px;
}

.info__section h2.head_info {
  padding: 5px 12px;
  font-size: 16px;
  width: max-content;
  color: #fff;
}

.info__section .info {
  border-right: 1px solid #ebebeb;
  margin-right: 20px;
}

.info__section h2.head_info.prinfo {
  background: #000;
}

.info__section h2.head_info.atteninfo {
  background: #bb7945;
}

.info__section .info-list__date {
  width: 25%;
}

.info__section a.info-list__link {
  display: block;
  width: 70%;
}

@media only screen and (max-width: 768px) {
  .info__section .info {
    border-right: none !important;
    margin-right: 0 !important;
  }
  
  .info__section .info-list__date {
    width: 30% !important;
  }
  
  .info__section a.info-list__link {
    width: 68% !important;
  }
}