/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
@import url('https://fonts.googleapis.com/css2?family=Jacques+Francois&display=swap');

 body {
    font-family: var(--font-family-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    padding: 0;
    margin: 0;
  }
  
  /* ヘッダーナビ専用（ページ内の <nav> まで固定しない） */
  .site-header .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background-color: var(--color-bg-surface); border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000; /* 他の要素より上に表示 */
  }

  /* デフォルト（PC）ではハンバーガーとドロワーを隠す */
  .hamburger-menu,
  .mobile-menu-overlay,
  .mobile-menu-drawer {
    display: none;
  }

  /* PCメニューのスタイル */
  .navbar-menu.desktop-menu {
    display: flex;
    list-style: none;
    gap: 20px;
  }
  
  /* PCではアイコンを表示 */
  .navbar-icons {
    display: flex;
  }

  /* PCメニュー内のbutton_to用スタイル（feature-branch固有） */
  .navbar-menu.desktop-menu .nav-link-button {
    background: none;
    border: none;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
  }

  .navbar-menu.desktop-menu .nav-link-button:hover {
    color: var(--color-text-main);
    text-decoration: none; opacity: 0.6;
    text-underline-offset: 4px;
  }

  /* 管理者リンクのスタイル */
  .navbar-menu.desktop-menu .admin-link {
    color: #d32f2f;
    font-weight: 600;
    border-left: 2px solid #d32f2f;
    padding-left: 12px;
    margin-left: 8px;
  }

  .navbar-menu.desktop-menu .admin-link:hover {
    color: #b71c1c;
    text-decoration: none; opacity: 0.6;
    text-underline-offset: 4px;
  }

  .mobile-menu-list .admin-link {
    color: #d32f2f;
    font-weight: 600;
    border-left: 3px solid #d32f2f;
    padding-left: 12px;
  }

  /* --- スマホ用スタイル (768px以下) --- */
  @media (max-width: 768px) {
    .navbar {
      display: grid;
      grid-template-columns: 64px 1fr 64px;
      align-items: center;
    }

    /* PCメニューを隠す */
    .navbar-menu.desktop-menu {
      display: none;
    }
    
    /* 検索導線を表示（アイコン + ラベル） */
    .navbar-icons {
      display: flex;
      min-width: 64px;
      justify-content: flex-end;
      grid-column: 3;
    }

    /* ハンバーガーボタンを表示 */
    .hamburger-menu {
      display: block;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px 10px 10px 4px;
      margin-left: -30px;
      z-index: 10001; /* ドロワーより手前に */
      grid-column: 1;
      justify-self: start;
    }

    .hamburger-line {
      display: block;
      width: 24px;
      height: 2px;
      background-color: var(--color-text-main);
      margin: 5px 0;
    }

    /* ロゴを中央寄せにする調整 */
    .navbar-brand {
      grid-column: 2;
      flex-grow: 1;
      text-align: center;
      margin-right: 0;
      margin-left: 0;
    }

    .icon-link {
      padding: 8px 10px;
      border: 1px solid #d8d8d8;
      border-radius: 999px;
      background-color: var(--color-bg-surface);
    }

    .icon-link .search-text {
      display: inline;
      font-size: 0.78rem;
    }

    /* ドロワーメニューの基本スタイル（表示切り替えはJSで行うが、display:blockにしておく） */
    .mobile-menu-drawer {
      display: flex; /* JSでactiveクラスがついた時にスライドインさせるため、ここではflexにしておく */
      /* ただし、初期状態は画面外 */
      position: fixed;
      top: 0;
      left: -280px;
      width: 280px;
      height: 100vh;
      background-color: var(--color-bg-surface);
      z-index: 10000;
      transition: left 0.3s ease;
      flex-direction: column;
      box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    .mobile-menu-drawer.active {
      left: 0;
    }

    .mobile-menu-overlay {
      display: block; /* オーバーレイ自体は存在させる */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 9999;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
    /* ドロワー内のスタイル */
    .mobile-menu-header {
      padding: 15px;
      text-align: right;
      border-bottom: 1px solid var(--color-border);
    }

    .close-menu-btn {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--color-text-main);
    }

    .mobile-menu-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .mobile-menu-list li {
      border-bottom: 1px solid var(--color-border);
    }

    .mobile-menu-link {
      display: block;
      padding: 15px 20px;
      text-decoration: none;
      color: var(--color-text-main);
      font-size: 16px;
    }

    /* スマホメニュー内のフォーム用スタイル */
    .mobile-menu-form {
      display: block;
      margin: 0;
      padding: 0;
    }

    .mobile-menu-button {
      background: none;
      border: none;
      width: 100%;
      text-align: left;
      padding: 15px 20px;
      color: var(--color-text-main);
      font-size: 16px;
      cursor: pointer;
      text-decoration: none;
    }

    .mobile-menu-button:hover {
      background-color: var(--color-bg-alt);
    }
  }
  
  main {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  /* ホームページ以外のページ用 */
  main:not(.home-main) {
    padding: 4rem 2rem;
    margin: 0 auto;
    max-width: 1024px;
  }

.nav__home {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
  }
  
.nav__actions {
    margin-left: auto;
  }
  
  .notice {
    margin: 0 auto;
    padding: 1rem;
    max-width: 500px;
    background-color: var(--color-accent-light);
    color: var(--color-text-main);
    border-radius: var(--radius-pill);
    text-align: center;
  }

  .flash-container {
    margin: 12px auto;
    max-width: 960px;
    padding: 0 12px;
    display: grid;
    gap: 8px;
  }

  .flash-message {
    border-radius: 6px;
    padding: 10px 12px;
    border: 1px solid transparent;
    font-size: 0.95rem;
  }

  .flash-success {
    color: #155724;
    background-color: #e6ffe6;
    border-color: #c3e6cb;
  }

  .flash-error {
    color: #721c24;
    background-color: #ffe6e6;
    border-color: #f5c6cb;
  }

  .flash-info {
    color: #0c5460;
    background-color: #e7f5ff;
    border-color: #bee5eb;
  }

  .breadcrumbs {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--color-text-light);
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .breadcrumbs a {
    color: var(--color-text-light);
    text-decoration: none;
  }

  .breadcrumbs a:hover {
    color: var(--color-primary-dark);
  }

  .global-breadcrumbs-wrap {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 0;
    box-sizing: border-box;
  }

  .global-breadcrumbs {
    margin-top: 4px;
    margin-bottom: 14px;
    font-size: 0.94rem;
  }

  h1 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
  }

  .title {
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-block;
  }
  
  .btn-warning {
    background-color: #f39c12;
    color: white;
    border: none;
  }
  
  .btn-warning:hover {
    background-color: #e67e22;
  }
  
  .btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
  }
  
  .btn-danger:hover {
    background-color: #c0392b;
  }
  
  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: white;
    background-color: var(--color-primary-dark);
    border-radius: var(--radius-pill);
    transition: background-color 0.3s ease;
    border:none;
  }
  
  .btn-primary:hover {
    background-color: var(--color-primary);
  }

  .btn-secondary {
    background-color: var(--color-bg-alt); color: var(--color-text-main); border: 1px solid var(--color-border);
    color: white;
    border: none;
  }
  
  .btn-secondary:hover {
    background-color: var(--color-border);
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
  }
  
  .card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: transform 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }

  .page-description {
    text-align: center;
    color: var(--color-text-main);
  }
  
  .home__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .home__card {
    background-color: #f7f9fc;
    color: var(--color-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .home__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .home__card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .home__card p {
    font-size: 1rem;
    color: var(--color-text-muted);
  }

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table__actions {
    display: flex;
    gap: 0.5rem;
}

.table__link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.table__link:hover {
    color: #2980b9;
    text-decoration: none; opacity: 0.6;
}

.dashboard-container {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1024px;
  width: 100%;
}

.dashboard-card {
  background-color: var(--color-bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dashboard-card h2 {
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.dashboard-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.btn-admin {
  position: absolute;
  top: 80px;
  right: 20px;
}

/* ブランド一覧グリッド */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.brand-card {
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.brand-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-base);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.brand-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8d5c4 0%, #d4c4b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-initial {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.brand-card-info {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 15px;
  }
  
  .brand-card-name {
    font-size: 1rem;
  }
  
  .brand-initial {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.brand-container {
  max-width: 1024px;
  text-align: center;
  padding: 20px;
}

.brand-container h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.brand-container .btn {
  display: inline-block;
  margin: 10px 0;
}

.brand-show-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.brand-intro-section {
  margin-bottom: 40px;
}

.brand-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.brand-image-wrapper {
  flex: 0 0 300px;
}

.brand-main-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.brand-show-image-placeholder {
  width: 100%;
  height: 300px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 48px;
  color: var(--color-text-light);
}

.brand-show-info {
  flex: 1;
  min-width: 0;
}

.brand-show-name {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: var(--color-text-main);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand-show-name-kana {
  font-size: 1.2em;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.brand-show-details {
  margin-top: 20px;
}

.brand-show-detail-item {
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.brand-show-link {
  color: #007bff;
  text-decoration: none;
}

.brand-show-description {
  margin-top: 30px;
  padding: 25px;
  background: var(--color-bg-base);
  border-radius: var(--radius-md);
  line-height: 1.8;
}

.brand-show-description-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.brand-show-description-body {
  white-space: pre-wrap;
  color: var(--color-text-main);
}

.brand-show-products-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
}

.brand-show-empty {
  text-align: center;
  padding: 40px;
  color: var(--color-text-light);
  font-size: 1.1em;
}

.brand-show-back-link-wrap,
.tag-show-back-link-wrap {
  text-align: center;
  margin-top: 40px;
}

/* 商品一覧ページ用コンテナ */
.products-page-container {
  max-width: 100%;
  padding: 20px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 120px; /* ページネーション用のスペースを確保 */
  box-sizing: border-box;
}

.products-page-title {
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: var(--color-text-main);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* フィルターセクション */
.products-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  position: relative;
}

.filter-group {
  position: relative;
  z-index: 10;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--color-bg-surface);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-button:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-text-light);
}

.filter-button[aria-expanded="true"] {
  background-color: var(--color-primary-dark);
  color: var(--color-bg-surface);
  border-color: var(--color-primary-dark);
}

.filter-button[aria-expanded="true"] .filter-arrow {
  transform: rotate(180deg);
}

.filter-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: var(--color-bg-surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.filter-dropdown.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.filter-options {
  padding: 8px 0;
  border-radius: inherit;
}

.filter-option {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-main);
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.filter-option:hover {
  background-color: var(--color-bg-alt);
}

.filter-option.active {
  background-color: #e3f2fd;
  color: var(--color-primary-dark);
  font-weight: 500;
}

.filter-reset {
  padding: 10px 20px;
  color: #000000;
  text-decoration: none;
  opacity: 1;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.filter-reset:hover {
  color: var(--color-text-main);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef4ef;
  border: 1px solid #d4e1d6;
  color: #2f4f35;
  font-size: 0.85rem;
}

/* フィルターのレスポンシブ対応 */
@media (max-width: 768px) {
  .products-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-button {
    width: 100%;
    justify-content: space-between;
  }
  
  .filter-dropdown {
    left: 0;
    right: 0;
    width: 100%;
  }
  
  .filter-reset {
    text-align: center;
    display: block;
    width: 100%;
  }
}

/* 商品一覧グリッド（4列） */
.product-grid-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  width: 100%;
}

.product-card-list {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-surface);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.product-card-list:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image {
  height: 100%;
  width: auto;
  display: block;
}

.product-card-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: var(--color-text-light);
  font-size: 14px;
}

.product-card-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-brand {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 8px 0;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: var(--color-text-main);
  line-height: 1.4;
  flex-grow: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text-main);
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .product-grid-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .products-page-container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .product-grid-list {
    grid-template-columns: 1fr;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 0;
  max-width: 700px;
  margin: 0 auto;
}

.product-card {
  position: relative; /* バッジの配置基準にするため */
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-surface);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card img {
  height: 100%;
  width: auto;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.product-card .placeholder {
  width: 100%;
  min-height: 120px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7d7d7d;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.product-card a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text-main);
  transition: color 0.3s ease;
}

.product-card a:hover {
  color: #608f75;
}

.product-card p {
  margin: 0 auto;
}

.updated_at {
  color: var(--color-text-muted);
  font-size: 0.8rem;
   text-align: end;
}

.admin-product-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.admin-product-info {
  display: flex;
  gap: 2rem;
  background: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.admin-product-image-container {
  flex: 1;
  text-align: center;
  max-width: 300px;
  min-width: 100px;
}

.admin-product-image {
  max-width: 100%;
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.admin-product-details {
  flex: 2;
}

.admin-brand-info {
  font-size: 1rem;
  color: var(--color-text-main);
}

.admin-brand-link {
  text-decoration: none;
  font-weight: bold;
  color: #007bff;
}

.admin-brand-link:hover {
  color: #0056b3;
}

.admin-product-description {
  font-size: 1rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.product-actions {
  margin-top: 1rem;
}

/* タグ管理 */
.admin-product-tags {
  margin-top: 2rem;
  background: var(--color-bg-surface);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.admin-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-tag-box {
  background: #f1f1f1;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 10px;
}

.admin-product-edit {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: var(--radius-md);
}

.admin-product-container {
  display: flex;
  gap: 2rem;
}

.admin-product-preview {
  flex: 1;
  text-align: center;
}

.product-image {
  max-width: 100%;
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.product-brand {
  font-size: 1rem;
  color: var(--color-text-main);
}

.brand-link {
  text-decoration: none;
  font-weight: bold;
  color: #007bff;
}

.brand-link:hover {
  color: #0056b3;
}

/* 編集フォーム */
.admin-product-form {
  flex: 2;
}

.product-form .form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid #ccc;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.tag-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--color-text-light);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
  border-bottom: #515151 5px solid;
}

.tag-button:hover {
  background-color: #979696;
}

.tag-button:active {
  transform: translateY(3px);
  border-bottom-width: 0px;
}

.tag-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.tag-item {
  text-align: center;
}

.tag-page {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

.tag-heading {
  font-size: 2rem;
  margin-bottom: 20px;
}

.tag-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-content: center;
}

.product-box {
  background: white;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s;
}

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

.product-image {
  width: 100%;
  max-height: 200px;
  height: auto;
  border-radius: var(--radius-pill);
}

.tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
}

.tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f0f0f0;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.tabs button:hover {
  background: var(--color-border-light);
}

.tabs button.active {
  background: var(--color-primary);
  color: white;
}

.user-tabs {
  margin-bottom: 16px;
}

.user-tab-content {
  padding: 16px;
}

.user-stats {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.user-stat-link {
  color: #007bff;
  text-decoration: none;
}

.user-profile-actions {
  margin-top: 15px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.user-reviews-section {
  margin-top: 20px;
}

.review-item {
  border: 1px solid var(--color-border);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-product-link {
  text-decoration: none;
  color: var(--color-text-main);
}

.review-stars {
  color: gold;
  margin-left: 10px;
}

.review-date {
  color: var(--color-text-light);
  font-size: 0.8em;
}

.review-body {
  margin-bottom: 10px;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-likes {
  color: #e0245e;
}

.hidden {
  display: none;
}

.tab-content {
  border: 0.5px solid #e1eddd;
  border-top: none;
}

.auth-page {
  max-width: 480px;
  margin: 24px auto;
  padding: 16px;
}

.auth-title {
  margin-bottom: 16px;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-label {
  font-weight: 600;
  color: var(--color-text-main);
}

.auth-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.auth-hint {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-submit {
  min-height: 44px;
}

.auth-links {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.auth-links p {
  margin: 0;
  color: var(--color-text-muted);
}

.detail-label {
  font-weight: normal;
  display: inline-block;
  margin: 0 10px 0 0;
  flex: 0 0 auto; /* ラベルは左端に固定 */
  text-align: left; /* 左寄せ */
}

.detail-area {
  border-left: 5px solid #d3e2d9;
  padding: 15px;
  margin-top: 0;
  margin-bottom: 5px;
  align-items: center;
}

.detail-area-center {
  border-left: 5px solid #d3e2d9;
  padding: 15px;
  margin-top: 0;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.detail-value {
  max-width: 500px;
  margin: 0 auto; 
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  display: flex;
}

.detail-value-center {
  flex: 1;
  text-align: center;
}

/* サイズ・価格表示のスタイル調整 */
.variant-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.variant-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
  width: 100%;
  max-width: 400px;
}

.variant-size {
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 1.05em;
  min-width: 80px;
  text-align: right;
}

.variant-price {
  font-weight: 600;
  color: #4caf50;
  font-size: 1.05em;
  min-width: 120px;
  text-align: left;
}

/* 以下仮でCSSとHTML記述のため、実装後修正 */
.graph-pie {
  margin-bottom: 20px;
}

.base-bar {
  position: relative;
  height: 10px;
  margin: 0 auto;
  width: 70%;
  background-color: rgb(221, 231, 225);
}

.bar-point {
#product-action-buttons.prodcts-show_top__right--records {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-items: center !important;
}

#product-action-buttons.prodcts-show_top__right--records > form,
#product-action-buttons.prodcts-show_top__right--records > a {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

#product-action-buttons.prodcts-show_top__right--records .record-btn {
  width: 100% !important;
  max-width: 120px;
  margin: 0 auto !important;
  align-items: center !important;
}

#product-action-buttons.prodcts-show_top__right--records .prodcts-show_top__right--record_btn {
  align-items: center !important;
}
  border-radius: var(--radius-md);
  width: 10px;
  height: 10px;
  background-color: #858e86;
}

.bar-point1 {
  position: absolute;
  left: -5px;
  top: -0.5px;
}
.bar-point2 {
  position: absolute;
  left: 50%;
  top: -0.5px;
}
.bar-point3 {
  position: absolute;
  right: -5px;
  top: -0.5px;
}

.graph-bar {
  max-width: 400px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.graph-bar p {
  margin-bottom: 10px;
}

.review-area {
  width: 80%;
  margin: 0 auto;
}

/* ヘッダー全体のスタイル */
.site-header {
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid #e1e1e1;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  /* ホームページではマージンなし */
  .home-main ~ .site-header {
    margin-bottom: 0;
  }
  
  /* コンテナ（幅の制限と中央寄せ） */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  /* ナビゲーションバーのレイアウト（Flexboxで横並び） */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* ロゴのスタイル */
  .logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-main);
    text-decoration: none;
    letter-spacing: 0.1em; font-family: var(--font-family-serif);
  }
  
  .logo:hover {
    text-decoration: none;
    opacity: 0.8;
  }
  
  /* メニューリストのスタイル */
  .navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem; /* メニュー項目間の余白 */
  }
  
  /* メニューリンクのスタイル */
  .navbar-menu a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .navbar-menu a:hover {
    color: var(--color-text-main);
    text-decoration: none; opacity: 0.6;
    text-underline-offset: 4px;
  }
  
  /* アイコンリンクのスタイル */
  .navbar-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  
  .icon-link {
    color: var(--color-text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: color 0.2s ease;
    padding: 4px;
  }

  .icon-link .search-text {
    display: none;
    font-size: 0.85rem;
    font-weight: 500;
  }
  
  .icon-link:hover {
    color: var(--color-text-main);
  }
  
  .icon-link svg {
    width: 24px;
    height: 24px;
  }

  .admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .admin-header .navbar-menu a.is-active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
  }

  .admin-header {
    background-color: #ffffff;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1100;
  }

  .admin-header .logo,
  .admin-header .navbar-menu a {
    color: #2f3136;
  }

/* =========================
   User profile charts UI
   ========================= */
.brand-tooltip {
  opacity: 0;
  transform: translateY(6px) scale(0.985);
  filter: blur(10px);
  transition: opacity 160ms ease, transform 240ms ease, filter 320ms ease;
  will-change: opacity, transform, filter;
}

.brand-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.brand-tooltip-card {
  /* brand-card を小さく見せる */
  width: 180px;
}

.brand-tooltip-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.06);
}

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

.brand-tooltip-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8d5c4 0%, #d4c4b0 100%);
}

.brand-tooltip-initial {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text-main);
}

.brand-tooltip-info {
  padding: 10px 12px;
}

.brand-tooltip-name {
  text-align: center;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
  margin: 0;
}

.tag-stacked-bar {
  display: flex;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #e0e0e0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.tag-stacked-segment {
  display: block;
  height: 100%;
  min-width: 3px; /* 極小割合でも見える */
  transition: filter 160ms ease, transform 160ms ease;
}

.tag-stacked-segment:hover {
  filter: brightness(1.06) saturate(1.05);
  transform: translateY(-1px);
}

.tag-stacked-legend {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.tag-stacked-legend-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tag-stacked-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.tag-stacked-legend-text a:hover {
  text-decoration: none; opacity: 0.6;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ニュース記事スタイル */
.news-list {
  margin-top: 20px;
}

.news-item {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: baseline;
}

.news-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-right: 15px;
  min-width: 100px;
}

.news-title {
  font-size: 1.1rem;
  color: var(--color-text-main);
  text-decoration: none;
}

.news-title:hover {
  text-decoration: none; opacity: 0.6;
  color: #0056b3;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .article-container--detail {
    margin-left: -16px;
    margin-right: -16px;
    padding: 16px;
  }
}

.article-title {
  font-size: 2rem;
  font-weight: normal;
  font-family: "Hiragino Kaku Gothic Pro", sans-serif;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

@media (max-width: 768px) {
  .article-title .new-badge-small {
    display: block;
    width: fit-content;
    margin-right: 0;
    margin-bottom: 8px;
  }
}

.article-meta {
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.article-image {
  margin-bottom: 20px;
  text-align: center;
  aspect-ratio: 127 / 85;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 30px;
}

.article-brands {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.article-brands h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.article-brands ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.article-brands li a {
  display: inline-block;
  padding: 5px 15px;
  background-color: #f8f9fa;
  border: none;
  border-radius: 20px;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.article-brands li a:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
}

.article-footer {
  margin-top: 40px;
  text-align: center;
}

/* ランキングページ */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.ranking-item {
  display: flex;
  align-items: center;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
  position: relative;
}

.ranking-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ranking-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 40px;
  height: 40px;
  background: var(--color-text-main);
  color: var(--color-bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  z-index: 1;
}

.ranking-badge.rank-1 {
  background: #ffd700; /* Gold */
  width: 50px;
  height: 50px;
  font-size: 1.5em;
}

.ranking-badge.rank-2 {
  background: #c0c0c0; /* Silver */
}

.ranking-badge.rank-3 {
  background: #cd7f32; /* Bronze */
}

.ranking-badge.rank-4, .ranking-badge.rank-5 {
  background: var(--color-primary);
  color: var(--color-text-main);
}

.ranking-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ranking-image img {
  height: 100%;
  width: auto;
  display: block;
}

.ranking-image .no-image {
  color: #ccc;
  font-size: 0.9rem;
}

.ranking-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ranking-info .product-brand {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.ranking-info .product-name {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: bold;
  color: var(--color-text-main);
  line-height: 1.4;
}

.ranking-info .product-price {
  font-weight: bold;
  color: #e74c3c;
  margin-top: auto;
  font-size: 1.1rem;
}

/* Action Text (Trix Editor) 用のスタイル */
.trix-content {
  /* 箇条書きなどが正しく表示されるようにする */
  padding-left: 1em; 
}

.trix-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.trix-content a {
  color: blue;
  text-decoration: none; opacity: 0.6;
}

.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4081; /* ピンク系の目立つ色 */
  color: white;
  padding: 4px 8px;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: var(--radius-pill);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.new-badge-small {
  display: inline-block;
  background-color: #ff4081;
  color: white;
  padding: 2px 6px;
  font-size: 0.7em;
  font-weight: bold;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}

.product-thumbnail {
  position: relative;
  display: inline-block;
}

.product-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-pill);
}

.product-thumbnail .new-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #ff4081;
  color: white;
  padding: 2px 4px;
  font-size: 0.7em;
  font-weight: bold;
  border-radius: 3px;
}

/* ランキングセクション用スタイル */
.ranking-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.ranking-item {
  position: relative;
  width: 220px;
  text-decoration: none;
  color: inherit;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.ranking-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ranking-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-text-main);
  color: var(--color-bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border-bottom-right-radius: 10px;
  z-index: 2;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.rank-1 { background-color: #ffd700; color: var(--color-text-main); } /* Gold */
.rank-2 { background-color: #c0c0c0; color: var(--color-text-main); } /* Silver */
.rank-3 { background-color: #cd7f32; color: var(--color-bg-surface); } /* Bronze */
.rank-4, .rank-5 { background-color: var(--color-primary); color: var(--color-text-main); }

.ranking-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ranking-image img {
  height: 100%;
  width: auto;
  display: block;
}

.ranking-image .no-image {
  color: #ccc;
  font-size: 0.9rem;
}

.ranking-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ranking-info .product-brand {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.ranking-info .product-name {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: bold;
  color: var(--color-text-main);
  line-height: 1.4;
}

.ranking-info .product-price {
  font-weight: bold;
  color: #e74c3c;
  margin-top: auto;
  font-size: 1.1rem;
}

/* Home Page Styles */
.main-visual {
  text-align: center;
  margin-bottom: 40px;
}

.main-visual-text h2 {
  font-size: 24px;
  margin: 20px 0 10px;
  line-height: 1.4;
}

.home-section {
  margin-bottom: 40px;
  padding: 0 20px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #ccc; /* 左側のバーのようなデザインがあれば */
  padding-left: 10px;
}

.text-right {
  text-align: right;
  margin-top: 10px;
}

.view-all-link {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}

/* News Section */
.news-featured-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-featured-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.news-sub-list {
  margin-top: 15px;
  background-color: var(--color-bg-base);
  padding: 15px;
}

.news-sub-item {
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
}

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

/* Product Grid Simple (New & Ranking) */
.product-grid-simple,
.ranking-grid-simple {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.product-card-simple,
.ranking-card-simple {
  width: 32%;
  text-decoration: none;
  color: var(--color-text-main);
  text-align: center;
}

.product-image-simple img,
.ranking-image-simple img {
  width: 100%;
  height: auto;
}

.product-info-simple,
.ranking-info-simple {
  margin-top: 5px;
  font-size: 12px;
}

.product-brand-name {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================
   ホームページ新デザイン用スタイル
   ============================================ */

/* ヒーローセクション */
.hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: 60px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-primary-light) 100%);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><rect fill="%23f5e6d3" width="1200" height="500"/><circle cx="200" cy="150" r="80" fill="%23ffb6c1" opacity="0.3"/><circle cx="1000" cy="350" r="100" fill="%23dda0dd" opacity="0.2"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 80px;
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero-product-flow {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 54%;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 14%, rgba(0, 0, 0, 1) 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 14%, rgba(0, 0, 0, 1) 86%, transparent 100%);
}

.hero-product-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: heroProductFlow 70s linear infinite;
  will-change: transform;
}

.hero-product-card {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
  flex: 0 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-product-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.16);
}

.hero-product-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@keyframes heroProductFlow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-content {
  max-width: 500px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-text-main);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-button {
  display: inline-block;
  background-color: var(--color-primary-dark);
  color: white;
  padding: 14px 40px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: var(--color-primary);
  color: white;
}

/* セクションタイトル（中央揃え） */
.section-title-center {
  text-align: center;
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 40px;
  color: var(--color-text-main);
}

/* 横長長方形のニュースカード（共通） */
.news-grid-horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.news-card-horizontal {
  display: flex;
  background: var(--color-bg-surface);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-card-horizontal-image {
  width: 300px;
  flex-shrink: 0;
  aspect-ratio: 127 / 85;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.news-card-horizontal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-horizontal-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
}

.news-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4081;
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.news-card-horizontal-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-horizontal-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.news-card-horizontal-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 12px 0;
  line-height: 1.5;
  color: var(--color-text-main);
  flex-grow: 1;
}

.news-card-horizontal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.news-tag-horizontal {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.news-card-horizontal-link {
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  text-decoration: none; opacity: 0.6;
  align-self: flex-start;
}

/* ニュース一覧ページ専用カードレイアウト */
.news-card-horizontal--news-page {
  flex-direction: row;
  border-radius: 24px;
}

.news-card-horizontal--news-page .news-card-horizontal-content {
  justify-content: center;
}

.news-card-horizontal--news-page .news-card-horizontal-title {
  order: 1;
  font-size: 1.35rem;
  margin: 0 0 8px 0;
  line-height: 1.4;
  flex-grow: 0;
}

.news-card-horizontal--news-page .news-card-horizontal-date {
  order: 2;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.news-card-horizontal--news-page .news-card-horizontal-tags {
  order: 3;
  margin-bottom: 0;
}

.news-card-horizontal--news-page .news-card-horizontal-link {
  display: none;
}

/* ホームのTonParコラム: タイトル/日付/タグを中央寄りに */
.home-section.column-section .news-card-horizontal-content {
  align-items: center;
}

.home-section.column-section .news-card-horizontal-date,
.home-section.column-section .news-card-horizontal-title {
  text-align: center;
  width: 100%;
}

.home-section.column-section .news-card-horizontal-tags {
  justify-content: center;
}

/* ニュースページ用コンテナ */
.articles-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.articles-news-list-title {
  width: min(96%, 980px);
  margin: 0 auto 10px;
  padding-left: 12px;
  border-left: 3px solid #d6dad7;
  color: #202520;
  font-size: 1.95rem;
  font-weight: 300;
  line-height: 1;
}

/* ホームページ用ニュースグリッド */
.news-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

/* ホームページ用ニュースカード（縦型コンパクト） */
.news-card-home {
  display: block;
  text-decoration: none;
  color: var(--color-text-main);
  background: var(--color-bg-surface);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-home:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-home-image {
  width: 100%;
  aspect-ratio: 127 / 85;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.news-card-home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-home-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
}

.news-card-home-content {
  padding: 15px;
}

.news-card-home-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.news-card-home-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 10px 0;
  line-height: 1.5;
  color: var(--color-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-tag-home {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* 新着フレグランス（ホーム用） */
.product-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.product-card-home {
  display: block;
  text-decoration: none;
  color: var(--color-text-main);
  background: var(--color-bg-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-home:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image-home {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-home img {
  height: 100%;
  width: auto;
  display: block;
}

.product-info-home {
  text-align: center;
}

.product-brand-home {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.product-name-home {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.product-price-home {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

/* ランキングページ用コンテナ */
.rankings-page-container {
  max-width: 100%;
  padding: 20px;
  margin: 0 auto;
}

.rankings-page-title {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 30px;
  color: var(--color-text-main);
  text-align: center;
}

/* ランキングバッジ（商品カード内） */
.ranking-badge-card {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--color-text-main);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

.ranking-badge-card.rank-1 {
  background-color: #ffd700;
  color: var(--color-text-main);
  width: 50px;
  height: 50px;
  font-size: 1rem;
}

.ranking-badge-card.rank-2 {
  background-color: #c0c0c0;
  color: var(--color-text-main);
}

.ranking-badge-card.rank-3 {
  background-color: #cd7f32;
  color: var(--color-bg-surface);
}

.ranking-badge-card.rank-4,
.ranking-badge-card.rank-5 {
  background-color: var(--color-primary);
  color: var(--color-text-main);
}

/* 人気ランキング（ホーム用） */
.ranking-section-home {
  margin-bottom: 60px;
}

.ranking-container-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ranking-top-card {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.ranking-top-link {
  display: block;
  text-decoration: none;
  color: var(--color-text-main);
}

.ranking-top-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-top-image img {
  height: 100%;
  width: auto;
  display: block;
}

.ranking-top-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1rem;
}

.ranking-top-image-admin-block {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fafafa;
}

.ranking-top-image-admin-title {
  font-weight: 600;
  margin: 0 0 8px;
}

.ranking-top-image-admin-preview {
  width: 180px;
  background: #f0f0f0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ranking-top-image-admin-preview-image {
  width: 100%;
  height: auto;
  display: block;
}

.ranking-top-image-admin-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.ranking-top-image-admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.ranking-badge-top {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--color-text-main);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ranking-top-info {
  padding: 20px 25px;
}

.ranking-top-brand {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.ranking-top-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.ranking-top-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.ranking-top-description {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-top-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.ranking-top-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  background-color: #f0f4f8;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ranking-top-tag:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-bg-surface);
}


.ranking-side-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ranking-side-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--color-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.ranking-side-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.ranking-side-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-side-image img {
  height: 100%;
  width: auto;
  display: block;
}

.ranking-badge-side {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--color-text-main);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

.ranking-badge-side.rank-4,
.ranking-badge-side.rank-5 {
  background-color: var(--color-primary);
  color: var(--color-text-main);
}

.ranking-side-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ranking-side-brand {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.ranking-side-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-main);
  line-height: 1.4;
}

.ranking-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.ranking-side-tag {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 2px 8px;
  background-color: #f0f0f0;
  border-radius: var(--radius-lg);
}

/* 新着フレグランス */
.new-arrivals-section {
  background-color: var(--color-bg-alt);
  padding: 40px 0;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
}

/* 香りのカテゴリー */
.categories-section {
  margin-bottom: 60px;
  background-color: var(--color-bg-alt);
  padding: 40px 0;
  border-radius: var(--radius-md);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-card {
  display: block;
  text-decoration: none;
  color: var(--color-text-main);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-image-tag {
  width: 100%;
  height: auto;
  display: block;
}

.category-image[data-category="フローラル"] {
  background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
}

.category-image[data-category="シトラス"] {
  background: linear-gradient(135deg, #ffa500 0%, #ffd700 100%);
}

.category-image[data-category="ウッディ"] {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
}

.category-image[data-category="オリエンタル"] {
  background: linear-gradient(135deg, #daa520 0%, #ffd700 100%);
}

.category-image[data-category="フレッシュ"] {
  background: linear-gradient(135deg, #90ee90 0%, #98fb98 100%);
}

.category-image[data-category="グルマン"] {
  background: linear-gradient(135deg, #deb887 0%, #f4a460 100%);
}

.category-info {
  padding: 20px;
  background: var(--color-bg-surface);
  text-align: center;
}

.category-name {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--color-text-main);
}

.category-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* 香りへのこだわり */
.commitment-section {
  margin-bottom: 60px;
}

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

.commitment-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #e8d5c4 0%, #d4c4b0 100%);
  border-radius: var(--radius-md);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 400"><rect fill="%23e8d5c4" width="600" height="400"/><circle cx="150" cy="100" r="40" fill="%23d4c4b0" opacity="0.5"/><circle cx="450" cy="300" r="50" fill="%23c4b5a0" opacity="0.4"/></svg>');
  background-size: cover;
  background-position: center;
}

.commitment-content {
  padding: 20px;
}

.commitment-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.commitment-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

.commitment-link {
  color: var(--color-primary-dark);
  text-decoration: none; opacity: 0.6;
  font-size: 1rem;
}

.commitment-link:hover {
  color: var(--color-primary);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .news-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ranking-container-home {
    grid-template-columns: 1fr;
  }
  
  .commitment-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* News index: tighten space between fixed header and top feature card */
  main:not(.home-main) .articles-page-container.articles-index-page {
    margin-top: 0;
    padding-top: 6px;
  }

  /* News index only: move breadcrumbs further to top-left and avoid overlap with top image */
  body:has(main .articles-page-container.articles-index-page) .global-breadcrumbs-wrap {
    padding: 4px 10px 0;
  }

  body:has(main .articles-page-container.articles-index-page) .global-breadcrumbs {
    margin-top: 0;
    margin-bottom: 8px;
  }

  .articles-news-list-title {
    width: 100%;
    margin-bottom: 8px;
    font-size: 1.45rem;
    padding-left: 10px;
  }

  .news-grid-horizontal {
    gap: 8px;
    padding: 0 4px;
    margin-bottom: 20px;
  }

  .hero-section {
    height: 400px;
  }
  
  .hero-image {
    padding: 0 20px;
  }

  .hero-product-flow {
    width: 100%;
    top: auto;
    bottom: 12px;
    height: 120px;
    align-items: flex-end;
    opacity: 0.78;
    z-index: 1;
  }

  .hero-product-track {
    gap: 10px;
    animation-duration: 55s;
  }

  .hero-product-card {
    width: 96px;
    height: 96px;
    border-radius: 12px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .news-grid-home {
    grid-template-columns: 1fr;
  }
  
  .product-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .ranking-container-home {
    grid-template-columns: 1fr;
  }
  
  .ranking-side-cards {
    grid-template-columns: 1fr;
  }
  
  .ranking-side-card {
    flex-direction: column;
  }
  
  .ranking-top-image {
    height: 300px;
  }
  
  .ranking-top-info {
    padding: 25px 20px;
  }
  
  .ranking-top-name {
    font-size: 1.3rem;
  }
  
  .ranking-top-price {
    font-size: 1.1rem;
  }
  
  .ranking-top-description {
    font-size: 0.9rem;
  }
  
  .ranking-side-image {
    width: 100%;
    height: 200px;
  }
  
  .news-card-horizontal {
    flex-direction: column;
  }

  .news-card-horizontal--news-page {
    flex-direction: row;
    align-items: stretch;
    min-height: 96px;
  }

  .news-card-horizontal--news-page .news-card-horizontal-image {
    width: 126px;
    aspect-ratio: 127 / 85;
    min-height: 0;
    flex-shrink: 0;
  }

  .news-card-horizontal--news-page .news-card-horizontal-content {
    padding: 8px 10px;
    gap: 0;
  }

  .news-card-horizontal--news-page .news-card-horizontal-title {
    font-size: 0.72rem;
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card-horizontal--news-page .news-card-horizontal-date {
    font-size: 0.6rem;
    margin-bottom: 4px;
  }

  .news-card-horizontal--news-page .news-card-horizontal-tags {
    gap: 4px;
  }

  .news-card-horizontal--news-page .news-tag-horizontal {
    font-size: 0.58rem;
    line-height: 1.05;
    padding: 2px 5px;
  }

  .news-card-horizontal--news-page .news-tag-horizontal:nth-child(n + 3) {
    display: none;
  }
  
  .news-card-horizontal-image {
    width: 100%;
    aspect-ratio: 127 / 85;
  }
}

/* Footer Styles */
.site-footer {
  background-color: var(--color-primary-dark); /* 画像のような濃い青 */
  padding: 60px 20px 20px;
  margin-top: 60px;
  color: var(--color-bg-surface);
}

.footer-links-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-bg-surface);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-bg-surface);
  text-decoration: none; opacity: 0.6;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin-top: 40px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--color-bg-surface);
  text-decoration: none; opacity: 0.6;
}

/* スマホ向け調整 */
@media (max-width: 1024px) {
  .footer-links-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-links-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }

  .news-grid {
    grid-template-columns: 1fr; /* スマホでは1列 */
    gap: 40px;
  }
}

/* News Index Page Styles */
.page-title {
  text-align: center;
  font-size: 24px;
  margin: 40px 0;
  font-weight: normal;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCでは常に3列 */
  gap: 30px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.news-card {
  display: block;
  text-decoration: none;
  color: var(--color-text-main);
  background: var(--color-bg-surface);
  transition: opacity 0.3s;
}

.news-card:hover {
  opacity: 0.8;
}

.news-card-image {
  width: 100%;
  aspect-ratio: 127 / 85;
  background-color: #f0f0f0;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.news-card-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
}

/* Product Detail Page Styles (PC版) */
.product-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4px 20px;
}

.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.product-detail-image-section {
  position: sticky;
  top: 100px;
  height: fit-content;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.product-detail-main-image {
  height: 100%;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

.product-detail-placeholder {
  width: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 18px;
}

/* 画像のブラー→クリア表示アニメーション */
@keyframes blurReveal {
  from {
    opacity: 0;
    filter: blur(18px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.fade-in-image {
  animation: blurReveal 1.2s ease-out both;
}

.product-detail-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-detail-brand-category {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
}

.product-detail-brand-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.product-detail-brand-link:hover {
  color: #7ba88f;
  text-decoration: underline;
}

.product-detail-name {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: var(--color-text-main);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 20px;
}

.new-badge-product {
  display: inline-block;
  background-color: #ff4081;
  color: white;
  padding: 4px 12px;
  font-size: 0.6rem;
  font-weight: bold;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars .star {
  font-size: 1.2rem;
  color: var(--color-border-light);
}

.rating-stars .star.filled {
  color: #4caf50;
}

.rating-stars .star.half {
  background: linear-gradient(90deg, #4caf50 50%, var(--color-border-light) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4caf50;
  margin: 10px 0;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.product-detail-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.product-concentration-row {
  order: -1;
  flex-basis: 100%;
}

.product-concentration-badge {
  display: inline-block;
  color: #ffffff;
}

.product-detail-tag:hover {
  background-color: #e0e0e0;
}

.product-detail-actions {
  margin: 20px 0;
}

.product-detail-section-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 30px 0 15px 0;
  color: var(--color-text-main);
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.product-detail-section-title-large {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 50px 0 30px 0;
  color: var(--color-text-main);
  text-align: center;
}

.product-detail-description {
  margin: 20px 0;
}

.product-detail-description-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-main);
  margin: 0;
  max-width: 65ch;
  padding: 15px 0;
  letter-spacing: 0.01em;
}

/* 段落間のスペースを追加 */
.product-detail-description-text p {
  margin-bottom: 1em;
}

.product-detail-description-text p:last-child {
  margin-bottom: 0;
}

.product-detail-notes,
.product-detail-basic-info {
  margin: 30px 0;
}

.product-detail-reviews-section,
.product-detail-recommendations-section {
  margin: 60px 0;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.product-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* 類似商品グリッド（基本情報タブ内） */
.similar-products-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.similar-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

/* 商品詳細ページ内のdetail-areaスタイル調整 */
.product-detail-info-section .detail-area {
  border-left: none;
  padding: 0;
  margin: 15px 0;
}

.product-detail-info-section .detail-label {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: var(--color-text-main);
}

/* ノート詳細セクションのスタイル */
.note-detail-section {
  margin: 15px 0;
  padding: 15px;
  background-color: var(--color-bg-base);
  border-radius: var(--radius-md);
  border-left: 4px solid #7ba88f;
  width: 100%;
  box-sizing: border-box;
}

.note-detail-label {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #7ba88f;
}

.note-detail-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.note-detail-image-wrap {
  margin: 2px 0 10px;
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
}

.note-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d8e2db;
  background: #ffffff;
}

.product-detail-info-section .detail-value {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ノート詳細を含むdetail-valueは縦並び */
.note-detail-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.note-group-section {
  margin: 12px 0 18px;
}

.note-group-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 500;
  color: #2f3832;
}

.note-material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.note-material-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.note-material-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.note-material-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #d3ddd5;
  border-radius: 0;
  background: #f4f4f2;
  display: block;
}

.note-material-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #88928c;
  font-size: 0.72rem;
}

.note-material-name {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  color: #2e3430;
  word-break: break-word;
}

.scent-profile-section {
  margin: 0 0 18px;
}

.scent-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.scent-profile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scent-profile-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.scent-profile-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.scent-profile-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #d3ddd5;
  background: #f4f4f2;
  display: block;
}

.scent-profile-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #88928c;
  font-size: 0.72rem;
}

.scent-profile-name {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  color: #2e3430;
  word-break: break-word;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .product-detail-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-detail-image-section {
    position: static;
  }
  
  .product-recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .similar-products-grid .product-card-list:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 768px) {
  .product-detail-container {
    padding: 2px 15px;
  }
  
  .product-detail-name {
    font-size: 1.5rem;
  }
  
  .product-detail-price {
    font-size: 1.5rem;
  }
  
  .product-recommendations-grid {
    grid-template-columns: 1fr;
  }

  .similar-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .similar-products-grid .product-card-list:nth-child(n + 4) {
    display: none;
  }

  .similar-products-section {
    margin-top: 20px;
    padding-top: 14px;
  }
}

.news-card-content {
  padding: 0 5px;
}

.news-card-date {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 5px;
}

.news-card-title {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.5;
  font-weight: normal;
}

.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-tag {
  font-size: 12px;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.news-tag.tag-new {
  color: #d9534f;
  background-color: #fde8e8;
}

/* ページネーション */
.pagination-container {
  margin: 80px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1; /* ヘッダー（z-index: 1000）より下 */
  clear: both;
  width: 100%;
}

/* nav.pagination が fixed にならないように明示（念のため） */
nav.pagination {
  position: static;
  background: transparent;
  height: auto;
  padding: 0;
}

.pagination {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 44px;
  padding: 0;
  margin: 0;
  color: #111;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.pagination .page,
.pagination .prev,
.pagination .next,
.pagination .gap {
  display: inline-block;
  border: none;
  background: transparent;
}

.pagination a {
  color: inherit;
  text-decoration: none;
  padding: 2px 0;
}

.pagination a:hover {
  opacity: 0.7;
}

/* 現在ページ：下線 */
.pagination .page.current,
.pagination .page.current span,
.pagination .pagination-current {
  position: relative;
  display: inline-block;
  padding-bottom: 22px;
}
.pagination .page.current::after,
.pagination .page.current span::after,
.pagination .pagination-current::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 56px;
  height: 2px;
  background: #111;
}

.pagination .gap {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .products-page-container .pagination-container {
    margin: 56px 0 44px;
    padding: 0 12px;
  }

  /* Small screens can have many page links; allow wrapping instead of overflowing */
  .products-page-container .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .products-page-container .pagination .page.current,
  .products-page-container .pagination .page.current span,
  .products-page-container .pagination .pagination-current {
    padding-bottom: 14px;
  }

  .products-page-container .pagination .page.current::after,
  .products-page-container .pagination .page.current span::after,
  .products-page-container .pagination .pagination-current::after {
    width: 32px;
  }
}

/* Read More Toggle Component for Descriptions */
.read-more-wrapper {
  position: relative;
  max-width: 65ch;
  margin-bottom: 2rem;
}

.product-detail-description-content {
  position: relative;
  max-height: 180px; /* Approx 5 lines */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.product-detail-description-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-main);
  /* Optional: justify text for a cleaner block edge, good for long form text */
  text-align: justify;
}

.product-detail-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-base));
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.read-more-actions {
  text-align: center;
  margin-top: 15px;
}

.read-more-btn {
  display: inline-block;
  cursor: pointer;
  color: var(--color-primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease;
}

.read-more-btn:hover {
  background-color: var(--color-border-light);
}

.read-more-btn::before {
  content: attr(data-more);
}

/* Checked (Expanded) State */
.read-more-checkbox:checked ~ .product-detail-description-content {
  max-height: 2500px; /* High enough to fit long text but keep transition */
}

.read-more-checkbox:checked ~ .product-detail-description-content .product-detail-fade {
  opacity: 0;
}

.read-more-checkbox:checked ~ .read-more-actions .read-more-btn::before {
  content: attr(data-less);
}

/* Phase Refresh: Figma-inspired public pages */
.home-main {
  background: radial-gradient(circle at 10% 0%, #f6faf6 0%, #fefefe 40%, #f8f8f6 100%);
}

.section-title-center,
.products-page-title,
.page-title,
.title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.04em;
}

.home-section {
  border-radius: 18px;
  margin-bottom: 36px;
}

.news-card-home,
.ranking-side-card,
.ranking-top-card,
.product-card-list,
.brand-card,
.news-card-horizontal {
  border: 1px solid #e2e8e3;
  box-shadow: 0 10px 24px rgba(35, 46, 39, 0.07);
  border-radius: 14px;
}

.products-page-container,
.brand-show-container,
.articles-page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 32px;
}

.products-filters {
  border: 1px solid #d8e3da;
  border-radius: 14px;
  background: #f9fcfa;
  padding: 12px;
}

.filter-button {
  border-radius: 999px;
  border: 1px solid #b8cabb;
  background: #ffffff;
}

.active-filters .filter-chip {
  background: #e9f3eb;
  border: 1px solid #d4e4d7;
}

.product-grid-list {
  gap: 24px;
}

.brand-show-container .brand-intro-section,
.brand-show-container .brand-products-section {
  background: #ffffff;
  border: 1px solid #e0e8e3;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(24, 34, 28, 0.05);
}

.tag-show-back-link-wrap,
.brand-show-back-link-wrap {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .products-page-container,
  .brand-show-container,
  .articles-page-container {
    padding: 16px 12px 24px;
  }

  .products-filters {
    padding: 10px;
    gap: 10px;
  }

  .product-grid-list {
    gap: 14px;
  }

  .news-card-home,
  .ranking-side-card,
  .product-card-list,
  .brand-card {
    border-radius: 12px;
  }
}

.catalog-page-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 1px solid #e0e8e2;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(29, 42, 34, 0.06);
}

.brands-page-shell .brands-grid,
.tags-page-shell .product-grid-list {
  margin-top: 18px;
}

/* ブランド一覧ページは外枠なし */
.brands-page-shell {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* 香調の商品一覧ページも外枠なし */
.tags-page-shell {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.brands-page-shell .brand-card,
.tags-page-shell .product-card-list {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brands-page-shell .brand-card:hover,
.tags-page-shell .product-card-list:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 34, 24, 0.12);
}

.news-card-horizontal {
  border-radius: 14px;
  background: #fff;
}

.site-header .navbar {
  height: 4.4rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #dbe7dd;
}

.navbar-brand .logo {
  font-family: "Jacques Francois", "Times New Roman", serif !important;
  font-size: clamp(1.35rem, 3.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #1f2b24;
  text-decoration: none;
}

.navbar-menu.desktop-menu > li > a,
.navbar-menu.desktop-menu .nav-link-button {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.site-footer {
  background: linear-gradient(180deg, #253229 0%, #1f2a23 100%);
  border-top: 1px solid rgba(234, 244, 236, 0.12);
}

.footer-logo {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.12em;
}

.footer-links a {
  color: rgba(241, 248, 243, 0.92);
}

.product-detail-container {
  max-width: 1280px;
  padding: 4px 20px 40px;
}

.product-detail-top {
  grid-template-columns: minmax(520px, 58%) minmax(380px, 42%);
  gap: 46px;
}

.product-detail-main-image,
.product-detail-placeholder {
  border-radius: 16px;
  border: 1px solid #d9e4db;
  box-shadow: 0 18px 30px rgba(25, 39, 29, 0.11);
}

.product-detail-name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 2.2vw, 2.4rem);
  line-height: 1.2;
}

.product-detail-section-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.45rem;
  margin: 12px 0 14px;
  border-bottom: 0;
  padding-bottom: 0;
}

.product-detail-notes,
.product-detail-basic-info,
.product-detail-reviews-inline {
  margin: 8px 0 18px;
}

@media (max-width: 1024px) {
  .product-detail-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-detail-main-image,
  .product-detail-placeholder {
    box-shadow: 0 12px 22px rgba(25, 39, 29, 0.1);
  }
}

.hero-section {
  height: clamp(420px, 58vw, 580px);
  border-radius: 18px;
  margin: 10px 20px 46px;
  border: 1px solid #dde9df;
  box-shadow: 0 16px 30px rgba(25, 39, 29, 0.08);
}

.hero-image {
  padding: 0 36px;
}

.hero-content {
  max-width: 470px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(220, 231, 223, 0.9);
  border-radius: 14px;
  padding: 22px 24px;
  backdrop-filter: blur(2px);
}

.section-title-center {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.home-section {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.products-page-container .products-page-title {
  margin-top: 6px;
  margin-bottom: 22px;
}

.products-filters {
  gap: 12px;
  justify-content: flex-start;
}

.filter-group {
  min-width: 170px;
}

.filter-dropdown {
  border: 1px solid #dce6de;
}

.news-grid-home,
.product-grid-home,
.ranking-container-home,
.categories-grid {
  max-width: 1240px;
}

@media (max-width: 768px) {
  .hero-section {
    margin: 8px 12px 26px;
    border-radius: 14px;
    height: 440px;
  }

  .hero-image {
    padding: 0 14px;
  }

  .hero-content {
    padding: 16px;
    max-width: 100%;
  }

  .products-filters {
    justify-content: center;
  }

  .filter-group {
    min-width: 0;
  }
}

/* Product list: align heading/filter area to Figma-like composition */
.products-page-container .breadcrumbs {
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 0.94rem;
}

.products-page-container .products-page-title {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  margin-bottom: 28px;
}

.products-page-container > .products-page-title {
  margin-top: 28px;
}

.products-page-container.tags-page-shell > .products-page-title {
  margin-top: 28px;
  margin-bottom: 28px;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.07em;
}

.products-page-container .products-filters {
  justify-content: flex-start;
  min-height: 96px;
  border: 1px solid #d3e0d5;
  border-radius: 22px;
  background: #ffffff;
  padding: 16px 20px;
}

.products-page-container .filter-button {
  min-height: 52px;
  min-width: 168px;
  padding: 12px 28px;
  font-size: 1rem;
  border: 2px solid #bfd0c2;
  color: #39453d;
}

/* Product detail: one tabbed card under actions, placed left of image on desktop */
.product-detail-top {
  grid-template-columns: minmax(420px, 54%) minmax(360px, 46%);
  gap: 34px;
}

.product-detail-tab-card {
  border: 1px solid #d5e1d7;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(24, 36, 28, 0.06);
  overflow: hidden;
}

.product-detail-tab-nav.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #d7e3d9;
  background: #ffffff;
}

.product-detail-tab-nav.tabs button {
  border: 0;
  border-right: 1px solid #d7e3d9;
  background: transparent;
  padding: 14px 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #415447;
}

.product-detail-tab-nav.tabs button:last-child {
  border-right: 0;
}

.product-detail-tab-nav.tabs button.active {
  background: #ffffff;
  color: #243229;
  box-shadow: inset 0 -2px 0 #9cb8a2;
}

.product-detail-tab-panel {
  border: 0;
  padding: 18px;
  background: #ffffff;
}

@media (min-width: 1025px) {
  .product-detail-info-section {
    order: 1;
  }

  .product-detail-image-section {
    order: 2;
  }
}

@media (max-width: 768px) {
  .products-page-container .products-filters {
    min-height: auto;
    padding: 10px;
  }

  .products-page-container .filter-button {
    min-width: 0;
    font-size: 1rem;
    min-height: 48px;
    padding: 10px 16px;
  }

  .product-detail-tab-nav.tabs button {
    font-size: 0.9rem;
    padding: 12px 8px;
  }

  .product-detail-tab-panel {
    padding: 14px;
  }
}

/* Figma alignment pass: neutral header/background and simplified cards */
body {
  background: #ffffff;
}

main,
main.home-main,
main:not(.home-main) {
  background: #ffffff;
}

.site-header,
.site-header .navbar {
  background: #ffffff;
  border-bottom-color: #d9e5db;
  backdrop-filter: none;
}

.products-page-container,
.catalog-page-shell,
.product-detail-container,
.home-section {
  background: transparent;
}

.product-card-list {
  border: 1px solid #d7e3d9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.product-card-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(32, 45, 36, 0.08);
}

.product-card-info {
  padding: 10px 12px 14px;
}

.product-card-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Hide optional fields to keep cards image + product name only */
.product-card-brand,
.product-card-price {
  display: none;
}

/* Home ranking: Top3 simple cards */
.ranking-top3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.ranking-top3-card {
  display: block;
  text-decoration: none;
  color: var(--color-text-main);
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.ranking-top3-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-top3-image img {
  height: 100%;
  width: auto;
  display: block;
}

.ranking-top3-name {
  margin: 0;
  padding: 11px 12px 13px;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.35;
  font-weight: 500;
}

/* Product detail desktop: image left, detail panel right */
@media (min-width: 1025px) {
  .product-detail-image-section {
    order: 1;
  }

  .product-detail-info-section {
    order: 2;
  }
}

/* Figma strict override: header color and white page background */
html,
body,
main,
main.home-main,
main:not(.home-main),
.home-main,
.products-page-container,
.catalog-page-shell,
.brand-show-container,
.articles-page-container,
.product-detail-container,
.home-section,
.new-arrivals-section,
.categories-section,
.ranking-section-home,
.news-section {
  background: #ffffff !important;
}

/* Remove decorative gradient/image layers that made background look non-white */
.hero-section,
.hero-image {
  background: #ffffff !important;
  background-image: none !important;
}

/* Header final override: no overlap, no transparency */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1200 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #889f8b !important;
  background-color: #889f8b !important;
  border-bottom: 1px solid #889f8b !important;
  backdrop-filter: none !important;
}

.site-header .navbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 4.4rem !important;
  background: #889f8b !important;
  background-color: #889f8b !important;
  border-bottom: 1px solid #889f8b !important;
  backdrop-filter: none !important;
}

/* Figma: section left gray line (News / New / Top3) */
.news-section,
.new-arrivals-section,
.ranking-section-home {
  position: relative;
  border-left: 0;
  padding-left: 12px;
}

.news-section::before,
.new-arrivals-section::before,
.ranking-section-home::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #889f8b;
}

@media (min-width: 769px) {
  .news-section,
  .new-arrivals-section,
  .ranking-section-home {
    padding-left: 16px;
  }

  .news-section::before,
  .new-arrivals-section::before,
  .ranking-section-home::before {
    width: 6px;
    left: -4px;
  }
}

/* Home news: figma node 196:1255 */
.home-news-title {
  margin: 0 0 10px;
  padding: 0 10px;
  font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
}

.home-news-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;
}

.home-news-layout--main-first {
  display: block;
}

.home-news-main {
  display: block;
  text-decoration: none;
  color: #2f3530;
}

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

.home-news-main--feature {
  margin-bottom: 10px;
}

.home-news-main__image-wrap {
  width: 100%;
  aspect-ratio: 127 / 85;
  overflow: hidden;
  background: #eaeaea;
}

.home-news-main__image-wrap--feature {
  border-radius: 0;
}

.home-news-main__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-news-main__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f958f;
  font-size: 0.7rem;
}

.home-news-main__headline {
  margin: 10px 0 0;
  font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.35rem);
  font-weight: 300;
  line-height: 1.18;
}

.home-news-main__headline--feature {
  letter-spacing: 0.01em;
}

.home-news-main__summary {
  margin: 8px 0 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.3;
}

.home-news-side-list {
  border: 1px solid #dbdbdb;
  background: #efefef;
  padding: 8px 10px;
}

.home-news-side-list__item {
  display: block;
  text-decoration: none;
  color: #2f3530;
  font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
  font-size: 0.62rem;
  line-height: 1.25;
  padding: 4px 0;
  border-bottom: 1px solid #dadada;
}

.home-news-side-list__item:last-child {
  border-bottom: 0;
}

@media (min-width: 769px) {
  .home-news-title {
    font-size: 1.45rem;
    margin-bottom: 12px;
    padding: 0 20px;
  }

  .home-news-layout {
    padding: 0 20px;
  }

  .home-news-main__headline {
    margin-top: 14px;
  }

  .home-news-main__summary {
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 0;
  }

  .home-news-side-list {
    margin-top: 12px;
    max-width: 540px;
  }
}

/* Home mobile cards: 375px baseline (Figma node 196:1255) */
.home-section-more-link-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  padding: 0 20px;
}

.home-section-more-link {
  color: #6b756e;
  font-size: 0.62rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .new-arrivals-section,
  .ranking-section-home {
    padding: 10px 0 8px;
    margin-bottom: 12px;
  }

  .new-arrivals-section .section-title-center,
  .ranking-section-home .section-title-center,
  .news-section .home-news-title {
    text-align: left;
    font-size: 1.15rem;
    letter-spacing: 0;
    margin: 0 0 6px;
    padding: 0 10px;
    font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
    font-weight: 300;
  }

  .product-grid-home,
  .ranking-top3-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: initial;
    column-gap: 8px;
    row-gap: 10px;
    max-width: none;
    margin: 0;
    padding: 0 10px;
  }

  .product-grid-home .ranking-top3-card,
  .ranking-top3-grid .ranking-top3-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .product-grid-home .ranking-top3-image,
  .ranking-top3-grid .ranking-top3-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-grid-home .ranking-top3-image img,
  .ranking-top3-grid .ranking-top3-image img {
    height: 100%;
    width: auto;
    display: block;
  }

  .product-grid-home .ranking-top3-name,
  .ranking-top3-grid .ranking-top3-name {
    font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    line-height: 1.15;
    padding: 4px 2px 0;
    text-align: center;
    min-height: 1.95em;
    color: #2f3530;
  }

  .ranking-top3-grid .ranking-badge-side {
    display: none;
  }

  .home-section-more-link-wrap {
    padding: 0 10px;
    margin-top: 0;
  }

  .home-section-more-link {
    font-size: 0.62rem;
  }
}

/* Footer compact mobile override */
.footer-logo-container {
  max-width: 980px;
  margin: 0 auto 14px;
  text-align: center;
}

.footer-wave-line {
  height: 16px;
  margin: 0 auto 4px;
  width: min(92%, 420px);
  border-top: 1px solid rgba(243, 249, 245, 0.85);
  border-radius: 999px;
}

/* Product cards: normalize to home style (image + name only, no frame) */
.product-card-list {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-card-list:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .product-grid-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 14px;
  }

  .product-card-list {
    border-radius: 0;
  }

  .product-card-image-wrapper {
    padding-top: 0;
    background: #ffffff;
  }

  .product-card-image {
  }


/* Tag page header: image left, name + description right */
.tag-show-header {
  margin-bottom: 18px;
}

.tag-show-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tag-show-header-image-wrap {
  flex: 0 0 auto;
}

.tag-show-header-image {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.tag-show-header-image-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 1px dashed var(--color-border);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.tag-show-header-text {
  min-width: 0;
}

.tag-show-header-text .products-page-title {
  margin: 0;
  text-align: left;
}

.tag-show-description {
  margin: 8px 0 0;
  color: var(--color-text-main);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .tag-show-header-main {
    align-items: flex-start;
  }

  .tag-show-header-image,
  .tag-show-header-image-placeholder {
    width: 70px;
    height: 70px;
  }
}

/* Brand page header: same composition as tag page */
.brand-show-header {
  margin-bottom: 18px;
}

.brand-show-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-show-header-image-wrap {
  flex: 0 0 auto;
}

.brand-show-header-image {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.brand-show-header-image-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  border: 1px dashed var(--color-border);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.brand-show-header-text {
  min-width: 0;
}

.brand-show-header-text .products-page-title {
  margin: 0;
  text-align: left;
}

.brand-show-description {
  margin: 8px 0 0;
  color: var(--color-text-main);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .brand-show-header-main {
    align-items: flex-start;
  }

  .brand-show-header-image,
  .brand-show-header-image-placeholder {
    width: 70px;
    height: 70px;
  }
}
  .product-card-info {
    padding: 6px 2px 4px;
  }

  .product-card-name {
    font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    line-height: 1.15;
    text-align: center;
    min-height: 2.25em;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 16px 10px 10px;
    margin-top: 20px;
  }

  .footer-logo-container {
    margin-bottom: 10px;
  }

  .footer-logo {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.1;
  }

  .footer-links-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 auto;
    text-align: left;
    max-width: 100%;
  }

  .footer-heading {
    font-size: 0.68rem;
    margin-bottom: 4px;
    line-height: 1.2;
    font-weight: 400;
  }

  .footer-links li {
    margin-bottom: 2px;
    line-height: 1.15;
  }

  .footer-links a {
    font-size: 0.66rem;
    line-height: 1.2;
    opacity: 0.95;
  }
}

/* Product detail mobile safety: prevent horizontal overflow */
@media (max-width: 1024px) {
  .product-detail-top {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .product-detail-image-section,
  .product-detail-info-section,
  .product-detail-tab-card,
  .product-detail-tab-panel {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .product-detail-container {
    padding: 16px 12px 24px;
    overflow-x: hidden;
  }

  .product-detail-tab-nav.tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail-tab-nav.tabs button {
    min-width: 0;
    font-size: 0.85rem;
    padding: 10px 4px;
  }

  .detail-value,
  .detail-value-center,
  .detail-value__url {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .review-header {
    flex-wrap: wrap;
  }
}

/* Final color unification (opaque equivalent of #889F8B at 57% on white: #bbc8bd) */
:root {
  --tp-unified-soft-green: #bbc8bd;
  --tp-footer-text: #2d3830;
}

/* Header/menu bar color */
.site-header,
.site-header .navbar {
  background: var(--tp-unified-soft-green) !important;
  background-color: var(--tp-unified-soft-green) !important;
  border-bottom-color: var(--tp-unified-soft-green) !important;
}

/* Vertical guide line for News / New / Top3 / TonPar column */
.news-section,
.new-arrivals-section,
.ranking-section-home,
.column-section {
  position: relative;
}

.news-section::before,
.new-arrivals-section::before,
.ranking-section-home::before,
.column-section::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--tp-unified-soft-green) !important;
}

.column-section {
  padding-left: 12px;
}

@media (min-width: 769px) {
  .column-section {
    padding-left: 16px;
  }

  .column-section::before {
    width: 6px;
    left: -4px;
  }
}

/* Footer base color (no actual transparency) */
.site-footer {
  background: var(--tp-unified-soft-green) !important;
  border-top: 1px solid var(--tp-unified-soft-green) !important;
}

.footer-wave-line {
  border-top-color: var(--tp-unified-soft-green) !important;
}

.footer-logo,
.footer-heading,
.footer-links a {
  color: var(--tp-footer-text) !important;
}

/* Home news layout refinement: mobile + desktop composition */
.home-news-layout--main-first {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-news-main--feature {
  margin-bottom: 0;
  padding: 0;
}

.home-news-main__top-row {
  display: grid;
  grid-template-columns: minmax(120px, 44%) 1fr;
  gap: 12px;
  align-items: center;
}

.home-news-main__image-wrap--feature {
}

.home-news-main__headline {
  margin: 0;
  font-size: clamp(1.9rem, 8.2vw, 2.45rem);
  line-height: 1.16;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
}

.home-news-main__summary {
  margin: 8px 0 0;
  font-size: 0.62rem;
  line-height: 1.35;
}

.home-news-main__summary--mobile-blur {
  position: relative;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  max-height: calc(1.5em * 3);
  font-size: 0.84rem;
  line-height: 1.5;
}

.home-news-main__summary-wrap {
  position: relative;
  margin-top: 8px;
}

.home-news-main__summary--mobile-blur::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(248, 251, 249, 0) 0%,
    rgba(248, 251, 249, 0.55) 65%,
    rgba(248, 251, 249, 0.96) 100%
  );
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}

.home-news-main__read-more-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #8fa898;
  background: rgba(255, 255, 255, 0.88);
  color: #304238;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(2px);
}

.home-news-main__read-more-btn:hover {
  background: rgba(255, 255, 255, 0.96);
}

.home-news-divider-dots {
  text-align: center;
  font-size: 2.0rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #4f5751;
}

.home-news-side-list {
  border: 1px solid #d3d7d4;
  background: #e7e9e7;
  padding: 8px 10px;
}

.home-news-side-list__item {
  font-size: 0.62rem;
  line-height: 1.2;
  padding: 4px 0;
  text-align: center;
}

@media (min-width: 769px) {
  .home-news-layout--main-first {
    display: grid;
    grid-template-columns: minmax(0, 63%) minmax(220px, 37%);
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
  }

  .home-news-main--feature {
    grid-column: 1;
    grid-row: 1;
  }

  .home-news-divider-dots {
    grid-column: 1 / -1;
    justify-self: center;
    grid-row: 4;
  }

  .home-news-side-list {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    height: 100%;
  }

  .home-news-main__top-row {
    grid-template-columns: minmax(170px, 44%) 1fr;
    gap: 14px;
  }

  .home-news-main__headline {
    font-size: clamp(1.7rem, 2.5vw, 2.45rem);
    line-height: 1.2;
  }

  .home-news-main__summary {
    font-size: 0.78rem;
  }

  .home-news-main__summary--mobile-blur {
    display: none;
  }

  .home-news-main__summary-wrap {
    display: none;
  }

  .home-news-side-list__item {
    font-size: 0.74rem;
    padding: 6px 0;
    text-align: center;
  }
}

/* Restore top featured news and keep News block centered */
.home-top-main-news {
  max-width: 980px;
  margin: 0 auto 12px;
  padding: 0 10px;
}

.home-top-main-news__inner {
  margin: 0 auto;
}

.home-top-main-news__crumb {
  margin: 0 0 4px;
  font-size: 0.72rem;
  color: #4a534d;
}

.home-top-main-news__link {
  display: block;
  text-decoration: none;
  color: #1f2421;
}

.home-top-main-news__image-wrap {
  width: min(100%, 632px);
  height: 167px;
  overflow: hidden;
  background: #e9ece9;
  margin: 0 auto;
}

.home-top-main-news__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-top-main-news__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e8781;
  font-size: 0.74rem;
}

.home-top-main-news__title {
  margin: 10px auto 0;
  font-size: clamp(1.5rem, 7.5vw, 2.2rem);
  line-height: 1.14;
  font-weight: 400;
  text-align: center;
  width: min(92%, 920px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-top-main-news__dots {
  text-align: center;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #4f5751;
  margin: 6px 0 2px;
}

.news-section {
  width: min(96%, 980px);
  margin-left: auto;
  margin-right: auto;
}

.home-news-title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.home-news-layout {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .home-top-main-news {
    padding: 0 20px;
    margin: 0 auto 10px;
  }

  .home-top-main-news__crumb {
    margin-bottom: 6px;
    font-size: 0.7rem;
  }

  .home-top-main-news__image-wrap {
    width: min(100%, 632px);
  }

  .home-top-main-news__title {
    margin-top: 12px;
  }

  .home-news-title {
    font-size: 2.15rem;
    margin-bottom: 10px;
  }

  .news-section {
    width: auto;
    margin-left: 20px;
    margin-right: 20px;
  }

  .home-news-main__top-row {
    grid-template-columns: minmax(132px, 44%) 1fr;
  }
}

@media (min-width: 769px) {
  .home-top-main-news {
    padding: 0 20px;
    margin-bottom: 18px;
  }

  .home-top-main-news__image-wrap {
    width: min(100%, 632px);
  }

  .home-top-main-news__title {
    margin-top: 12px;
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  }

  .news-section {
    width: min(94%, 980px);
  }

  .home-news-title {
    font-size: 1.9rem;
    margin-bottom: 10px;
  }
}

/* Final typography unification */
html,
body,
body * {
  font-family: "Hiragino Kaku Gothic Pro", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif !important;
}

/* Global mobile overflow prevention */
html, body {
  overflow-x: hidden;
}

/* Product detail mobile: image between name and tags, and breadcrumb wrapping */
.product-detail-image-section-mobile {
  display: none;
}

@media (max-width: 768px) {
  .product-detail-image-section-mobile {
    display: block;
    margin: 6px 0 4px;
  }

  .product-detail-image-section {
    display: none;
    position: static !important;
    top: auto !important;
  }

  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    gap: 0.2rem 0.45rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .product-recommendations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-top: 12px;
  }
}


/* Desktop: align section headings to News x-position */
@media (min-width: 769px) {
  .new-arrivals-section .section-title-center,
  .ranking-section-home .section-title-center,
  .column-section .section-title-center {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .new-arrivals-section .product-grid-home,
  .ranking-section-home .product-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
  }
}

@media (max-width: 768px) {
  /* ブランド一覧: スマホは1行3件で整列 */
  .brands-page-shell .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    max-width: none;
    margin: 12px 0 0;
  }

  .brands-page-shell .brand-card-link {
    min-width: 0;
  }

  .brands-page-shell .brand-card {
    border-radius: 10px;
  }

  .brands-page-shell .brand-card-info {
    padding: 8px 6px;
    min-height: 56px;
  }

  .brands-page-shell .brand-card-name {
    font-size: 0.6rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .brands-page-shell .brand-initial {
    font-size: 1.6rem;
  }
}

/* Home SP final tuning: New / Top3 / TonPar column */
@media (max-width: 768px) {
  .new-arrivals-section,
  .ranking-section-home,
  .column-section {
    width: auto;
    margin-left: 20px;
    margin-right: 20px;
    padding: 8px 0 10px;
    margin-bottom: 14px;
  }

  .new-arrivals-section .section-title-center,
  .ranking-section-home .section-title-center,
  .column-section .section-title-center {
    text-align: left;
    font-size: 1.15rem;
    letter-spacing: 0;
    margin: 0 0 8px;
    padding: 0 14px;
    font-weight: 300;
  }

  .new-arrivals-section .product-grid-home,
  .ranking-section-home .product-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 88px);
    justify-content: space-between;
    column-gap: 0;
    row-gap: 10px;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 14px;
  }

  .new-arrivals-section .ranking-top3-card,
  .ranking-section-home .ranking-top3-card {
    width: 88px;
  }

  .new-arrivals-section .ranking-top3-image,
  .ranking-section-home .ranking-top3-image {
    background: transparent;
  }

  .new-arrivals-section .ranking-top3-name,
  .ranking-section-home .ranking-top3-name {
    font-size: 0.62rem;
    line-height: 1.2;
    min-height: 2.35em;
    padding: 4px 0 0;
    text-align: center;
  }

  .new-arrivals-section .home-section-more-link-wrap,
  .ranking-section-home .home-section-more-link-wrap,
  .column-section .home-section-more-link-wrap {
    max-width: 520px;
    margin: 2px auto 0;
    padding: 0 14px;
  }

  .column-section .news-grid-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 14px;
  }

  .column-section .news-card-home {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    column-gap: 12px;
    border: 1px solid #d6ddd8;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
    box-shadow: none;
  }

  .column-section .news-card-home-image {
    width: 92px;
    border-radius: 4px;
    margin: 0;
  }

  .column-section .news-card-home-content {
    padding: 0;
  }

  .column-section .news-card-home-date,
  .column-section .news-card-home-tags {
    display: none;
  }

  .column-section .news-card-home-title {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .news-section,
  .new-arrivals-section,
  .ranking-section-home,
  .column-section {
    width: min(94%, 980px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
  }

  .news-section::before,
  .new-arrivals-section::before,
  .ranking-section-home::before,
  .column-section::before {
    left: -4px;
    width: 6px;
  }

  .home-section-more-link {
    font-size: 0.9rem;
  }
}

/* Final contrast pass: white header/footer text and non-link underline in footer */
.site-header .logo,
.site-header .navbar-menu a,
.site-header .navbar-menu .nav-link-button,
.site-header .icon-link,
.site-header .icon-link .search-text {
  color: #f6fbf7 !important;
}

.site-header .icon-link svg {
  stroke: currentColor;
}

.site-header .hamburger-line {
  background-color: #f6fbf7 !important;
}

.site-footer,
.site-footer .footer-logo,
.site-footer .footer-heading,
.site-footer .footer-links a,
.site-footer .footer-legal-link,
.site-footer .footer-copyright {
  color: #f6fbf7 !important;
}

/* Non-link footer labels use underline to distinguish from navigational links */
.site-footer .footer-logo,
.site-footer .footer-heading {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(246, 251, 247, 0.8);
}

.site-footer .footer-links a,
.site-footer .footer-legal-link {
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header .icon-link {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px !important;
  }

  .site-header .icon-link svg {
    stroke: #f6fbf7 !important;
  }

  /* Keep header layout stable on mobile even after later generic .navbar overrides. */
  .site-header .navbar {
    display: grid !important;
    grid-template-columns: 64px 1fr 64px !important;
    align-items: center;
    justify-content: unset !important;
  }

  .site-header .navbar-brand {
    grid-column: 2;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  .site-header .navbar-icons {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    min-width: 64px;
  }
}

/* Brand lock: keep the wordmark in Jacques Francois regardless of global font unification. */
.site-header .logo,
.site-footer .footer-logo {
  font-family: 'Jacques Francois', 'Times New Roman', serif !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

/* Product filters: keep expanded button tone unchanged and fix mobile stacking order */
.products-page-container .filter-button[aria-expanded="true"] {
  background-color: #ffffff;
  color: #39453d;
  border-color: #bfd0c2;
}

@media (max-width: 768px) {
  .products-page-container .filter-group {
    z-index: auto;
  }

  .products-page-container .filter-dropdown.active {
    z-index: 3000;
  }

  .products-page-container .filter-group:has(.filter-button[aria-expanded="true"]) {
    z-index: 3001;
  }
}

/* Product detail SP final delivery alignment */
@media (max-width: 768px) {
  .breadcrumbs {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #8b918e;
    margin: 4px 2px 10px;
  }

  .product-detail-container {
    padding: 2px 6px 24px;
  }

  .product-detail-info-section {
    gap: 10px;
  }

  .product-detail-brand-line,
  .product-detail-name,
  .product-detail-name-kana,
  .product-detail-image-section-mobile,
  .product-detail-status-row,
  .product-detail-tags,
  .product-detail-actions,
  .product-detail-tab-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .product-detail-image-section-mobile {
    order: 1;
  }

  .product-detail-brand-line {
    order: 2;
  }

  .product-detail-name {
    order: 3;
  }

  .product-detail-name-kana {
    order: 4;
  }

  .product-detail-status-row {
    order: 5;
  }

  .product-detail-tags {
    order: 6;
  }

  .product-detail-actions {
    order: 7;
  }

  .product-detail-tab-card {
    order: 8;
  }

  .product-detail-brand-line {
    margin-top: 2px;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #2f3631;
    text-align: left;
    letter-spacing: 0.01em;
  }

  .product-detail-name {
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(1.7rem, 8.2vw, 2.2rem);
    line-height: 1.08;
    font-weight: 700;
    justify-content: flex-start;
    text-align: left;
  }

  .product-detail-name-kana {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #6f7571;
    text-align: left;
  }

  .product-detail-image-section-mobile {
    margin-top: 4px;
    margin-bottom: 2px;
  }

  .product-detail-image-section-mobile .product-detail-main-image,
  .product-detail-image-section-mobile .product-detail-placeholder {
    display: block;
    width: 100%;
    max-width: min(100%, 420px);
    height: auto;
    margin-left: 0;
    margin-right: auto;
  }

  .product-detail-main-image,
  .product-detail-placeholder {
    border-radius: 24px;
    border: 1px solid #d5ddd7;
    box-shadow: none;
    background: #efefeb;
  }

  .product-detail-status-row {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
    margin-bottom: 0;
  }

  .product-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
  }

  .product-status-badge.is-new {
    background: #a9beb0;
  }

  .product-status-badge.is-ranking {
    background: #b4c1d2;
  }

  .product-detail-tags {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 0;
  }

  .product-detail-tag {
    padding: 6px 16px;
    border-radius: 999px;
    background: #e6e5e2;
    color: #6a6f6b;
    font-size: 0.78rem;
    line-height: 1;
  }

  .product-concentration-row {
    order: -1;
    flex-basis: 100%;
  }

  .product-concentration-badge {
    display: inline-block;
    color: #ffffff;
  }

  .product-detail-actions {
    margin-top: 10px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
  }

  .prodcts-show_top__right--records {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 360px;
    padding: 14px 10px;
    border-radius: 0;
    border: 1px solid #ececea;
    background: #f7f7f6;
    box-shadow: none;
    gap: 6px;
    justify-content: center;
  }

  .prodcts-show_top__right--records form,
  .prodcts-show_top__right--records > a {
    width: 100%;
    margin: 0;
    display: block;
  }

  .prodcts-show_top__right--records > * {
    min-width: 0;
  }

  .record-btn {
    padding: 9px 4px;
    border-radius: 10px;
    background: transparent;
    align-items: center;
  }

  .prodcts-show_top__right--record_btn_icon {
    width: 44px;
    height: 44px;
    background: #efefed;
  }

  .prodcts-show_top__right--record_btn-text {
    font-size: 0.74rem;
    color: #4d5250;
    line-height: 1.15;
  }

  .prodcts-show_top__right--record_btn-text .count {
    font-size: 1.55rem;
    line-height: 1;
    margin-top: 1px;
  }

  .product-detail-tab-card {
    margin-top: 10px;
    border-radius: 0;
    border-color: #b9cfc0;
    box-shadow: none;
    overflow: hidden;
  }

  .product-detail-tab-nav.tabs button {
    font-size: 0.86rem;
    font-weight: 700;
    color: #3c4b40;
    padding: 13px 6px;
  }

  .product-detail-tab-nav.tabs button.active {
    box-shadow: inset 0 -3px 0 #8fb29a;
  }

  .product-detail-tab-panel {
    padding: 14px 14px 16px;
  }

  .product-detail-tab-panel .detail-label {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 6px 0 12px;
    line-height: 1.1;
  }

  .note-detail-section {
    border-left-width: 6px;
    border-left-color: #86b39c;
    border-radius: 14px;
    background: #f1f1ef;
    padding: 14px 14px 12px;
    margin: 10px 0;
  }

  .note-detail-label {
    font-size: 1.28rem;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #7fa991;
  }

  .note-detail-text {
    font-size: 0.98rem;
    line-height: 1.62;
    color: #323835;
  }

  .note-group-section {
    margin: 8px 0 14px;
  }

  .note-group-title {
    font-size: 1.08rem;
    margin-bottom: 6px;
  }

  .note-material-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .scent-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .note-material-name {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .scent-profile-name {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.15;
  }

  /* Share function is not required */
  .product-share,
  .product-share-wrap,
  .share-button,
  .share-trigger,
  .share-action,
  [data-controller~="share-modal"],
  [aria-label*="シェア"],
  [aria-label*="share"] {
    display: none !important;
  }
}

/* Product detail desktop layout refinement */
@media (min-width: 1025px) {
  .product-detail-top {
    align-items: start;
  }

  .product-detail-image-section {
    position: sticky;
    top: calc(4.4rem + 18px);
    align-self: start;
  }

  .product-detail-tab-card--bottom {
    width: min(100%, 1160px);
    margin: 10px auto 0;
  }

  .product-detail-tab-card--bottom .product-detail-tab-nav.tabs button {
    font-size: 1.08rem;
    padding: 16px 12px;
  }

  .product-detail-tab-card--bottom .product-detail-tab-panel {
    padding: 24px 26px;
  }
}

@media (max-width: 1024px) {
  .product-detail-tab-card--bottom {
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .product-detail-recommendations-section .product-recommendations-grid .product-card-list:nth-child(n + 4) {
    display: none;
  }

  .product-detail-recommendations-section {
    margin: 18px 0 8px !important;
    padding-top: 14px !important;
  }

  .product-detail-section-title-large {
    margin: 0 0 12px;
  }

  .product-detail-container {
    padding-bottom: 8px;
  }

  .site-footer {
    margin-top: 6px !important;
  }
}

@media (min-width: 769px) {
  .product-detail-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 4px;
  }

  .product-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.01em;
  }

  .product-status-badge.is-new {
    background: #8fae9a;
  }

  .product-status-badge.is-ranking {
    background: #9aa9bf;
  }
}

/* Product detail tuning requested by user */
.product-detail-container {
  max-width: 1560px;
}

.product-detail-main-image,
.product-detail-placeholder {
  max-width: 420px;
  margin-left: auto;
}

.product-detail-name {
  font-size: 1.56rem;
  line-height: 1.35;
}

.product-detail-tab-card--bottom {
  width: min(100%, 1320px);
}

.product-detail-tab-card--bottom .product-detail-tab-panel .detail-area {
  width: 100%;
  box-sizing: border-box;
}

.product-detail-tab-card--bottom .product-detail-tab-panel .detail-value,
.product-detail-tab-card--bottom .product-detail-tab-panel .review-area {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.product-detail-tab-card--bottom .product-detail-tab-panel .product-perfumer-card-wrap {
  justify-content: flex-start;
}

.product-perfumer-card {
  width: min(100%, 240px);
}

/* Keep only tab header frame; remove the large outer panel frame. */
.product-detail-tab-card,
.product-detail-tab-card--bottom {
  border: 0;
  box-shadow: none;
}

.product-detail-tab-nav.tabs {
  border: 1px solid #d7e3d9;
  border-bottom: 1px solid #d7e3d9;
}

.product-detail-tab-panel.tab-content {
  border: 0 !important;
}

.product-review-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-review-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.product-review-title-row .detail-label {
  margin-bottom: 0;
}

.product-review-post-btn {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: #f4f8f5;
  color: #2e4136;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-review-post-btn:hover {
  background: #e6f0ea;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(44, 78, 58, 0.16);
}

.product-review-post-btn:active {
  transform: translateY(0);
}

.product-review-post-btn__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cad7cf;
}

.product-review-post-btn__icon svg {
  width: 16px;
  height: 16px;
}

.product-review-post-btn__text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-review-summary {
  margin: 0;
}

.product-review-overview {
  margin-bottom: 12px;
}

.product-review-overview-stars {
  color: #c89b0e;
  letter-spacing: 0.02em;
}

.product-review-overview-photos {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.product-review-overview-photo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid #d6dfd9;
  background: #f4f4f2;
}

.product-review-overview-count {
  margin-left: 2px;
  color: #1f2521;
  font-size: 1rem;
  line-height: 1;
}

.product-review-overview-count-link {
  text-decoration: none;
}

.product-review-overview-count-link:hover {
  opacity: 0.7;
}

.product-review-form {
  margin-bottom: 20px;
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #e2e9e4;
}

.product-review-form--modal {
  margin-bottom: 0;
}

.review-post-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  padding: 10px;
  box-sizing: border-box;
}

.review-post-modal.is-open {
  display: block;
}

.review-post-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.54);
}

.review-post-modal__content {
  position: relative;
  background: #ffffff;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  max-width: 100%;
  overflow-y: auto;
  margin: 32px auto;
  border-radius: 14px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.review-post-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.review-photo-gallery-modal__content {
  width: min(840px, calc(100vw - 32px));
}

.review-photo-gallery-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.review-photo-gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.review-photo-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #d6dfd9;
  background: #f4f4f2;
}

.review-photo-gallery-pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.review-photo-gallery-pagination__btn {
  border: 1px solid #b9c5bd;
  background: #ffffff;
  color: #2f3b33;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  line-height: 1;
}

.review-photo-gallery-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.review-photo-gallery-pagination__info {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.review-photo-selected-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.review-photo-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #dde5df;
  border-radius: 8px;
  background: #ffffff;
}

.review-photo-selected-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.review-photo-selected-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d7e0da;
  background: #f3f5f4;
  flex-shrink: 0;
}

.review-photo-selected-name {
  color: #2a332d;
  font-size: 0.86rem;
  line-height: 1.3;
  min-width: 0;
  word-break: break-all;
}

.review-photo-remove-btn {
  border: 1px solid #c95050;
  background: #fff5f5;
  color: #8d1f1f;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.review-photo-empty {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: #6c776f;
}

.product-review-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 12px;
  border-bottom: 1px solid #e6ece8;
  padding: 12px 0;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  margin-bottom: 0;
}

.product-review-user-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  flex-shrink: 0;
}

.product-review-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-review-user-name {
  font-size: 0.84rem;
  color: #37413a;
  line-height: 1.1;
  text-align: center;
  word-break: break-word;
}

.product-review-content-col {
  min-width: 0;
}

.product-review-title {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 600;
  color: #1f2521;
}

.product-review-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.product-review-stars {
  color: #c89b0e;
  letter-spacing: 0.03em;
}

.product-review-date {
  color: #8a948d;
  font-size: 0.82rem;
}

.product-review-comment p {
  margin-top: 0;
  margin-bottom: 6px;
  line-height: 1.55;
}

.product-review-photo-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.product-review-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #d6dfd9;
  background: #f4f4f2;
}

.product-review-photo--blurred {
  filter: blur(4px);
}

.product-review-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1024px) {
  .product-detail-main-image,
  .product-detail-placeholder {
    max-width: 360px;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .product-detail-name {
    font-size: 1.24rem;
  }

  .product-detail-tab-card--bottom .product-detail-tab-panel {
    padding-left: 0;
    padding-right: 0;
  }

  .product-detail-tab-card--bottom {
    width: 100%;
  }

  .product-detail-tab-card,
  .product-detail-tab-card--bottom {
    border: 0;
    box-shadow: none;
  }

  .product-review-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-review-title-row {
    margin-bottom: 10px;
  }

  .product-review-post-btn {
    padding: 4px 10px 4px 6px;
    gap: 6px;
  }

  .product-review-post-btn__icon {
    width: 28px;
    height: 28px;
  }

  .product-review-post-btn__text {
    font-size: 0.76rem;
  }

  .product-review-overview {
    margin-bottom: 10px;
  }

  .product-review-overview-photo {
    width: 32px;
    height: 32px;
  }

  .product-review-overview-count {
    font-size: 0.95rem;
  }

  .product-review-item {
    grid-template-columns: 48px 1fr;
    column-gap: 10px;
  }

  .product-review-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .product-review-title {
    font-size: 1rem;
  }

  .product-review-photo {
    width: 64px;
    height: 64px;
  }

  .review-post-modal__content {
    width: 100%;
    max-height: calc(100vh - 20px);
    margin: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .review-photo-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .review-photo-gallery-pagination {
    gap: 8px;
  }

  .review-photo-gallery-pagination__btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }

  .review-photo-gallery-pagination__info {
    font-size: 0.88rem;
  }
}
