/* ==========================================================
   style.css - ページ・セクション固有スタイル
   共通スタイルは common.css を参照
   ========================================================== */

/* ==============================
   HERO（index.html）
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

/* 動画背景 */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 動画用オーバーレイ（グラデーション暗幕） */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(57, 51, 51, 0.53), rgba(57, 51, 51, 0.53));
}

.hero .container {
  position: relative;
  z-index: 10;
  text-align: left;
  width: 100%;
}

.hero-badge {
  display: block;
  margin-bottom: 0.1rem;
  text-align: left;
  color: #F7C977;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.hero h1 {
  text-align: left;
  font-size: clamp(2.3rem, 7vw, 6rem);
  font-weight: 800;
  color: #FFF;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-desc {
  max-width: 48rem;
  margin-bottom: 3rem;
  text-align: left;
  font-size: 1rem;
  color: #FFF;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-actions .btn-primary:hover {
  color: #FFF;
}

/* HERO ACTIONS SP ボタン幅統一 */
@media (max-width: 960px) {
  .hero-actions .btn-lg {
    width: 100%;
  }
}

/* SP（768px以下）：縦下寄せ・テキスト左揃え */
@media (max-width: 768px) {
  .hero {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 4rem;
  }
  .hero .container {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
  .hero-badge {
    text-align: left;
  }
  .hero h1 {
    text-align: left;
  }
  .hero-desc {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
  .hero-actions {
    align-items: flex-start;
  }
}

/* ==============================
   MID VIDEO SECTION
   ============================== */
.section-mid-video {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  line-height: 0;
}

.mid-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .section-mid-video {
    height: 40vh;
  }
}

/* ==============================
   FOOTER PADDING（サポートセクションのオーバーラップ分を補正）
   SP: オーバーラップ130px + 余白100px = 230px
   PC: オーバーラップ190px + 余白100px = 290px
   ============================== */
.site-footer {
  padding-top: calc(1rem + 160px);
}

@media (min-width: 768px) {
  .site-footer {
      padding-top: calc(1rem + 250px);
  }
}

/* ==============================
   HERO ENTRANCE ANIMATION
   ============================== */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* badge：左からスライド＋フェード */
.hero-anim--1 {
  transform: translateX(-16px);
  animation-name: heroFadeLeft;
  animation-delay: 0.1s;
  animation-duration: 0.7s;
}

/* h1：下から上へ */
.hero-anim--2 {
  animation-delay: 0.35s;
  animation-duration: 0.9s;
}

/* desc：下から上へ（h1より少し遅め） */
.hero-anim--3 {
  animation-delay: 0.6s;
  animation-duration: 0.8s;
}

/* actions：フェードのみ（最後） */
.hero-anim--4 {
  transform: translateY(12px);
  animation-delay: 0.85s;
  animation-duration: 0.8s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==============================
   FEATURE SECTION（index.html）
   ============================== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #FFF;
}

.feature-block:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.feature-block h3 {
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-size: clamp(2.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #FFF;
}

.feature-block h3 span {
  display: block;
  color: var(--color-primary);
  font-size: 1.0625rem;
}

.feature-block p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.8;
  color: #FFF;
}

.feature-text p {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.feature-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================
   PRODUCTS SECTION（index.html）
   ============================== */

/* カテゴリー別2段スライダー */
.products-category-row {
  margin-bottom: 3rem;
}

.products-category-row:last-of-type {
  margin-bottom: 0;
}

.products-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.products-category-row .container > p {
  margin-bottom: 50px;
}

.products-category-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: #383838;
}

.products-category-tag.tag-bestseller {
  color: var(--color-primary);
}

.products-category-tag.tag-new {
  color: #383838;
}

.products-category-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

/* products-more 上余白 */
.products-more {
  margin-top: 3rem;
}

/* ストアリンク 3ボタン（hero-actionsと同形式） */
.products-store-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.products-store-actions .btn-primary:hover {
  color: #FFF;
}

.products-store-actions .btn-outline {
  color: #383838;
  border-color: #383838;
}

.products-store-actions .btn-outline img {
  filter: brightness(0);
}

.products-store-actions .btn-outline:hover {
  background: #383838;
  color: #fff;
  border-color: #383838;
}

.products-store-actions .btn-outline:hover img {
  filter: none;
}

@media (max-width: 960px) {
  .products-store-actions .btn-lg {
    width: 90%;
  }
}

@media (min-width: 961px) {
  .products-store-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* セクションヘッダー左揃え */
#products .section-label,
#products .section-title,
#products p {
  text-align: left;
}

#products .section-title {
  margin-bottom: 1rem;
  margin-left: 0;
}

/* PRODUCTS SLIDER SP センター表示 */
@media (max-width: 639px) {
  .products-slider-wrap {
    grid-template-columns: 0 1fr 0;
    overflow: hidden;
  }

  .products-slider .slick-list {
    overflow: visible;
  }
}

/* ==============================
   BRAND STORY SECTION（index.html）
   ============================== */
.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.brand-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.brand-text h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF;
}

.brand-text .paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-muted);
  line-height: 1.8;
}

/* ==============================
   REVIEWS（index.html）
   ============================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* レビュースライダー */
.reviews-slider-wrap {
  padding: 0 1.5rem;
  max-width: 1520px;
  margin: 0 auto;
}

/* Slick の slide を flex 化して高さを揃える */
.reviews-slider .slick-track {
  display: flex !important;
}

.reviews-slider .slick-slide {
  display: flex !important;
  height: auto !important;
}

.reviews-slider .slick-slide > div {
  display: flex;
  width: 100%;
}

.reviews-slider .review-card {
  margin: 0 0.75rem 2rem;
  width: 100%;
}

/* ==============================
   レビューカード
   構成: [画像(小)+商品名+星] 横並び / 見出し（太字・大） / 本文 / 日付・購入サイト
   ============================== */
.review-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 1.25rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ヘッダー：画像 + 商品名・星 横並び */
.review-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* 画像：小サムネイル・全面表示（切れない） */
.review-product-img {
  width: 3.5rem !important;
  height: 3.5rem !important;
  min-width: 3.5rem !important;
  max-width: 3.5rem !important;
  object-fit: cover;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  flex-shrink: 0 !important;
  display: block;
}

.review-product-img--placeholder {
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  background: #f0f0f0;
  flex-shrink: 0;
}

/* ヘッダーテキスト */
.review-header-text {
  flex: 1;
  min-width: 0;
}

/* 商品名 */
.review-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.2rem;
}

/* 星評価 */
.review-stars {
  display: flex;
  gap: 0.15rem;
  margin-bottom: 0;
}

.review-stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--color-primary);
}

/* 見出し：太字・本文より大きめ */
.review-title {
  font-size: 1rem;
  font-weight: 700 !important;
  color: #383838;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* 本文：全文表示・スペースを埋める */
.review-text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0.75rem;
}

/* 日付・購入サイト */
.review-meta {
  font-size: 0.8rem;
  color: #9a9a9a;
  margin-top: 0.75rem;
}


.review-meta {
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: right;
  margin-top: auto;
}

/* ==============================
   SUPPORT SECTION（index.html）
   ============================== */
.section-support {
  background-image: url('./image/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 2;
  width: calc(100% - 3rem);
  margin: 0 auto -130px;
}

.contact-page-hide {
  display: none;
}

/* Contact Message */
.section-contact-message {
  padding: 4rem 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.contact-message-text {
  font-size: 0.875rem;
  line-height: 2;
  color: #555;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-message-text {
    font-size: 1rem;
  }

  .br-sp {
    display: none;
  }
}

.section-support::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(57, 51, 51, 0.55);
  z-index: 0;
}

.section-support .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.support-title {
  margin-bottom: 1.5rem;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10rem;
  justify-content: center;
  justify-items: start;
}

/* 統合版：中央配置 */
.support-single {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.support-single p {
  color: var(--color-fg);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.support-single .section-label {
  text-align: center;
}

.support-single .section-title {
  text-align: center;
  color: #FFF;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .support-single .section-title {
    font-size: 1.75rem;
    white-space: nowrap;
  }
}

.support-block p {
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.support-block .btn-primary:hover {
  color: #FFF;
}

/* ==============================
   PRODUCTS ARCHIVE（products.html）
   ============================== */
.section-products-archive {
  padding: 1.5rem 0 6rem;
  background: #fff;
}

/* SP: カテゴリータグ折り返し */
.archive-cat-sp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.archive-cat-sp::-webkit-scrollbar {
  display: none;
}

.archive-cat-sp-link {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #383838;
  border: 1px solid #ccc;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.archive-cat-sp-link:hover,
.archive-cat-sp-link.is-active {
  background: #383838;
  color: #fff;
  border-color: #383838;
}

/* 2カラムレイアウト（SP: 1カラム） */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 左サイドバー（PC以外は非表示） */
.archive-sidebar {
  display: none;
}

.archive-main {
  min-width: 0;
}

/* カテゴリーセクション */
.product-cat-section {
  margin-bottom: 4rem;
  scroll-margin-top: 80px;
}

.product-cat-section:last-child {
  margin-bottom: 0;
}

.product-cat-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #383838;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #383838;
  margin-bottom: 1.5rem;
}

/* 商品グリッド（SP: 1カラム） */
.products-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.archive-intro {
  margin-bottom: 2rem;
}

.archive-intro-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #383838;
  margin-bottom: 1rem;
}

.archive-intro p {
  color: #555;
  font-size: 0.875rem;
  line-height: 1.9;
}

@media (min-width: 1024px) {
  .archive-intro p {
    font-size: 1rem;
  }
}

.section-products-archive .product-card {
  background: #fff;
}

.section-products-archive .product-card-body {
  display: flex;
  flex-direction: column;
}

.section-products-archive .product-card-body h3 {
  color: #383838;
}

.section-products-archive .product-card-body .desc {
  color: #666;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.section-products-archive .product-card-footer {
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.product-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #383838;
}

.product-card-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
  margin-left: 0.25rem;
}

/* タブレット（768px〜）: サイドバー表示・3カラム */
@media (min-width: 768px) {
  .archive-cat-sp {
    display: none;
  }

  .archive-layout {
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
  }

  .archive-sidebar {
    display: block;
    position: sticky;
    top: 110px;
    padding-top: calc(1.25rem * 1.5 + 0.75rem + 1.5rem);
  }

  .sidebar-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: #9a9a9a;
    letter-spacing: 0.09em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .sidebar-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sidebar-cat-link {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #383838;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
  }

  .sidebar-cat-link:hover,
  .sidebar-cat-link.is-active {
    color: var(--color-primary);
  }

  .products-archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ==============================
   PRODUCT DETAIL（product.html）
   ============================== */

/* 背景画像なしのpage-hero */
.page-hero--no-bg {
  background: #FFF;
  padding-top: 4.5rem;
  padding-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.page-hero--no-bg .section-label {
  color: #9a9a9a;
}

.page-hero--no-bg .section-title {
  margin-top: 40px;
  color: #383838;
}

.section-product-detail {
  padding: 1.5rem 0 5rem;
  background: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  max-height: 380px;
  background: #FFF;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.product-gallery-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: #FFF;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
  border-color: var(--color-primary);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-info-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #383838;
  line-height: 1.4;
}

.product-info-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #383838;
}

.product-info-price span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 0.25rem;
}

.product-info-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* バリエーション選択 */
.product-variants-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #9a9a9a;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.product-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.product-variant {
  width: 72px;
  height: 72px;
  padding: 0;
  background: #f5f5f5;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-variant:hover,
.product-variant.is-active {
  border-color: var(--color-primary);
}

.product-variant img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info-desc {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-info-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-info-actions .btn-store {
  flex: 1;
}

.section-product-images {
  padding: 4rem 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.product-detail-label {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

.product-detail-heading {
  font-size: 1.25rem;
  font-weight: 900;
  color: #383838;
  margin-bottom: 2rem;
}

.product-detail-images-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.product-detail-images-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.section-back {
  padding: 3rem 0 8rem;
  background: #fff;
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
  text-decoration: none;
}

.btn-back:hover {
  background: #EA7722;
}

/* ==============================
   BRAND STORY PAGE（brand-story.html）
   ============================== */
.brand-page {
  background: #fff;
}

.brand-red-wrap {
  background: #FAFAFA;
}

.brand-red-wrap .section-brand-white {
  background: transparent;
}

.brand-red-wrap .section-brand-white:first-child {
  background: linear-gradient(to bottom, #fff 50%, transparent 50%);
}

.brand-intro-hero {
  margin-top: 60px;
  position: relative;
  overflow: visible;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.brand-intro-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  z-index: 0;
}

.brand-intro-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
  z-index: 1;
}

.brand-intro-hero::before {
  content: '';
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6rem;
  background: linear-gradient(to bottom, #fff 50%, #383838 50%);
  z-index: 10;
}

.brand-intro-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.brand-intro-catch {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-align: center;
}

.brand-intro-hero .section-label {
  text-align: center;
}

.brand-intro-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.9;
  max-width: 760px;
}

.section-brand-white {
  padding: 3rem 0 4rem;
  background: #fff;
}

.section-brand-promise {
  background: #f7f7f7;
}

.brand-origin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.brand-origin-text .section-label {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.brand-origin-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #383838;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.brand-origin-text p {
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.9;
}

.brand-origin-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.brand-pillar-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.brand-pillar-heading .section-label {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-bottom: 0.5rem;
}

.brand-pillar-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #383838;
}

.brand-pillar-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.brand-pillar-block:last-child {
  margin-bottom: 0;
}

/* SP: reverseはHTML自然順を使用（order操作なし）
   テキスト先・画像後はHTMLの並び順で実現 */

.brand-pillar-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.brand-pillar-text .pillar-num {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #E6E4E4;
  letter-spacing: 0.01em;
}

.brand-pillar-text h2,
.brand-pillar-text h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #383838;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.brand-pillar-text .section-label {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
  display: block;
}

.brand-pillar-text p {
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.9;
}

.brand-promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.brand-promise-img {
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  display: block;
}

.brand-promise-text .section-label {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-promise-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #383838;
  margin-bottom: 2rem;
  line-height: 1;
}

.brand-promise-text > p {
  margin-bottom: 3rem;
}

.brand-promise-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-promise-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

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

.brand-promise-item h4 {
  font-size: 1rem;
  font-weight: 900;
  color: #383838;
  margin-bottom: 0.4rem;
}

.brand-promise-item p {
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* CTA + Support 共通背景ラッパー */
.brand-cta-support-wrap {
  position: relative;
}

.brand-cta-support-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -600px;
  background-image: url('./image/brand-atory-message_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

/* カスタム背景画像が設定された場合に::beforeをJS経由でstyleで上書き */
.brand-cta-support-wrap.has-custom-bg::before {
  background-image: var(--cta-bg-image);
}

.brand-cta-support-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -600px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.94), rgba(199,199,199,0.94));
  z-index: -1;
}


.section-brand-gray {
  padding: 3rem 0 4rem;
  position: relative;
}

.section-brand-gray::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -600px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.94), rgba(199,199,199,0.94));
  z-index: -1;
}

.section-brand-cta {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: visible;
  z-index: 2;
}

.section-brand-cta .container {
  position: relative;
  z-index: 2;
}

.section-brand-cta::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6rem;
  background: #383838;
  z-index: 10;
}

.brand-cta-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #383838;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.brand-cta-desc {
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.brand-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand-cta-actions .btn-primary,
.brand-cta-actions .btn-store {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

/* ==============================
   CONTACT（contact.html）
   ============================== */
.section-contact {
  padding: 4rem 0 6rem;
  background: #fff;
}

.contact-block {
  margin-bottom: 5rem;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-block-label {
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.09em;
  margin-bottom: 0.25rem;
}

.contact-block-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #383838;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.contact-block-desc {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 2.5rem;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group--detail {
  margin-bottom: 10px;
}

.form-group--detail-lg {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #383838;
  margin-bottom: 0.25rem;
}

.form-label .required {
  color: var(--color-primary);
  margin-left: 0.25rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #383838;
  background: #f5f5f5;
  border: 1px solid transparent;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  background: #fff;
  border-color: var(--color-primary);
}

/* セレクトボックス */
.form-select {
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23383838' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-select:focus {
  background-color: #fff;
  border-color: var(--color-primary);
}

.form-select option[value=""] {
  color: #9a9a9a;
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  margin-top: 0.25rem;
  margin-bottom: 2rem;
  text-align: right;
  font-size: 0.8125rem;
  color: #888;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
}

.form-submit {
  display: block;
  margin: 0 auto;
  min-width: 260px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.form-submit:hover {
  background: #EA7722;
}

.form-after-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #888;
}

.form-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 5rem 0;
}
/* ==============================
   Contact Form 7 スタイル統合
   CF7が出力するinput/textarea/selectに既存スタイルを適用
   ============================== */

/* CF7ラッパーを.contact-formと同等に */
.wpcf7 {
  max-width: 640px;
  margin: 0 auto;
}

/* CF7のpタグ・divをform-groupと同等に */
.wpcf7 .wpcf7-form p,
.wpcf7-form .form-group {
  margin-bottom: 1.5rem;
}

/* CF7のinput/textareaに既存スタイルを適用 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #383838;
  background: #f5f5f5;
  border: 1px solid transparent;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #383838;
  background: #f5f5f5;
  border: 1px solid transparent;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  min-height: 160px;
  resize: vertical;
  box-sizing: border-box;
}

.wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #383838;
  background: #f5f5f5;
  border: 1px solid transparent;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23383838' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  box-sizing: border-box;
}

/* フォーカス時 */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  background: #fff;
  border-color: var(--color-primary);
}

/* placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #aaa;
}

/* CF7の送信ボタン */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: block;
  margin: 0 auto;
  min-width: 260px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  background: #EA7722;
}

/* CF7のバリデーションエラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-top: 0.25rem;
  display: block;
}

.wpcf7 .wpcf7-not-valid {
  border-color: var(--color-primary) !important;
  background: #fff8f5 !important;
}

/* CF7 レスポンスメッセージ共通 */
/* 未送信時（空・hidden）は非表示 */
.wpcf7 .wpcf7-response-output:empty,
.wpcf7 .wpcf7-response-output[hidden] {
  display: none !important;
}

/* CF7 レスポンスメッセージ共通 */
.wpcf7 .wpcf7-response-output {
  max-width: 640px;
  margin: 2rem auto 0 !important;
  padding: 0.75rem 1rem 1.25rem !important;
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center !important;
  border: none !important;
  display: block !important;
  position: relative;
  box-sizing: border-box;
  background: transparent !important;
}

/* テキスト下の短い横線を疑似要素で表現 */
.wpcf7 .wpcf7-response-output::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  margin: 0.6rem auto 0;
}

/* 送信成功（緑） */
.wpcf7 .wpcf7-mail-sent-ok {
  color: #2a6e3f !important;
}
.wpcf7 .wpcf7-mail-sent-ok::after {
  background: #2a6e3f;
}

/* 送信失敗（赤） */
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-spam-blocked {
  color: #b00 !important;
}
.wpcf7 .wpcf7-mail-sent-ng::after,
.wpcf7 .wpcf7-spam-blocked::after {
  background: #b00;
}

/* バリデーションエラー（黄） */
.wpcf7 .wpcf7-validation-errors {
  color: #7a5800 !important;
}
.wpcf7 .wpcf7-validation-errors::after {
  background: #c8960a;
}

/* フィールド単体のエラー */
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-top: 0.3rem;
  display: block;
  font-weight: 600;
}

.wpcf7 .wpcf7-not-valid {
  border-color: var(--color-primary) !important;
  background: #fff8f5 !important;
}

/* CF7のスピナー（送信中） */
.wpcf7 .wpcf7-spinner {
  display: none;
}
/* CF7 label と input 間の余白を詰める */
.wpcf7 label {
  display: block;
  margin-bottom: 0.25rem;
}

/* CF7 が label 直後に挿入する <br> を非表示 */
.wpcf7 label + br,
.wpcf7 .form-label + br {
  display: none;
}

/* CF7 の span タグ（wpcf7-form-control-wrap）の上マージンを削除 */
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0;
}



/* ==============================
   SP レビューカード崩れ修正（〜767px）
   ============================== */
@media (max-width: 767px) {
  /* スライダーラッパーのオーバーフロー制御 */
  .reviews-slider-wrap {
    padding: 0 1rem;
    overflow: hidden;
  }

  /* カード全体のオーバーフロー防止 */
  .review-card {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* ヘッダー（画像＋商品名＋星）の横並びを維持 */
  .review-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  /* 商品画像サイズを強制固定 */
  .review-product-img {
    width: 3.5rem !important;
    height: 3.5rem !important;
    min-width: 3.5rem !important;
    max-width: 3.5rem !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
  }

  /* 星SVGのサイズを強制上書き（インライン属性対策） */
  .review-stars svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
    min-width: 0 !important;
    min-height: 0 !important;
    fill: var(--color-primary) !important;
    display: block;
    flex-shrink: 0;
  }

  .review-stars {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.1rem;
    overflow: hidden;
  }
}

/* ==============================
   タブレット（640px〜）
   ============================== */
@media (min-width: 640px) {
  .products-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-info-actions {
    flex-direction: row;
  }

}

/* ==============================
   タブレット（768px〜）
   ============================== */
@media (min-width: 768px) {
  /* Feature Section */
  .feature-block {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }

  /* reverseは order により img が1列目・text が2列目に配置されるため比率を逆に */
  .feature-block.reverse {
    grid-template-columns: 2fr 3fr;
  }

  .feature-block.reverse .feature-text {
    order: 2;
    padding-left: 3rem;
  }

  .feature-block.reverse .feature-img-wrap {
    order: 1;
  }

  /* Brand Story Section（index.html） */
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  /* Reviews */
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Support */
  .section-support {
    width: calc(100% - 6rem);
    margin: 0 auto -190px;
  }

  .support-grid {
    grid-template-columns: 1fr 1fr;
    justify-items: start;
    align-items: stretch;
  }

  .support-block {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .support-block .btn {
    margin-top: auto;
    width: 80%;
  }

  /* Product Detail */
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  /* Brand Story Page */
  .page-hero--no-bg .section-title {
    margin-top: 60px;
  }

  .page-hero--no-bg {
    padding-bottom: 1rem;
  }

  .brand-origin-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .brand-pillar-block {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 8rem;
  }

  /* PC: reverseクラス = 画像左・文章右 */
  .brand-pillar-block.reverse .brand-pillar-img  { order: 1; }
  .brand-pillar-block.reverse .brand-pillar-text { order: 2; }
  /* PC: 通常 = 文章左・画像右 */
  .brand-pillar-block:not(.reverse) .brand-pillar-text { order: 1; }
  .brand-pillar-block:not(.reverse) .brand-pillar-img  { order: 2; }

  .brand-pillar-text h2,
  .brand-pillar-text h3 {
    margin-bottom: 2rem;
  }

  .brand-pillar-img {
    aspect-ratio: 4 / 2.8;
  }

  .brand-promise-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .brand-cta-actions {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }

  .brand-cta-actions .btn-primary,
  .brand-cta-actions .btn-store {
    width: auto;
    max-width: 240px;
    flex: 1;
  }
}

/* ==============================
   PC（961px〜）
   ============================== */
@media (min-width: 961px) {
  /* Hero */
  .hero-actions {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Page Hero */
  .page-hero {
    padding-top: 15.5rem;
    padding-bottom: 9.5rem;
  }

  .page-hero--no-bg {
    padding-top: 9rem;
    padding-bottom: 2rem;
    margin-top: 2rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.875rem;
    margin-top: 20px;
    margin-bottom: 10rem;
  }

  /* Product Detail */
  .section-back {
    padding: 3rem 0 13rem;
  }

  .section-products-archive {
    padding: 1.5rem 0 13rem;
  }

  .products-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail-label {
    font-size: 1rem;
  }

  .product-detail-heading {
    font-size: 1.875rem;
    line-height: 1;
  }

  /* Brand Story Page */
  .page-hero--no-bg .section-title {
    margin-top: 20px;
  }

  .brand-pillar-text .pillar-num {
    font-size: 3rem;
  }

  .brand-pillar-text h3 {
    font-size: 2.25rem;
  }

  .brand-intro-hero::before {
    bottom: -4rem;
    height: 8rem;
    background: linear-gradient(to bottom, #fff 50%, #383838 50%);
  }

  .section-brand-cta::before {
    top: -4rem;
    height: 8rem;
  }

  .brand-red-wrap .section-brand-white:first-child {
    background: linear-gradient(to bottom, #fff 60%, transparent 50%);
  }

  .section-brand-cta {
    padding: 8rem 0;
  }

  .section-brand-white {
    padding: 1.5rem 0 8rem;
  }

  .section-brand-gray {
    padding: 8rem 0;
  }

  .section-brand-promise {
    padding: 8rem 0;
  }

  .brand-intro-hero {
    margin-top: 150px;
  }

  .brand-intro-hero p {
    font-size: 1rem;
  }
}

/* ==============================
   PC（1024px〜）
   ============================== */
@media (min-width: 1024px) {
  .section-support {
    width: calc(100% - 6rem);
    margin: 0 auto -190px;
    max-width: 1800px;
  }
}

/* ==============================
   PC（1860px〜）
   ============================== */
@media (min-width: 1860px) {
  .section-support {
    width: calc(100% - 6rem);
    margin: 0 auto -190px;
  }
}