/*
 * 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.
 */
 body {
    font-family: Helvetica, sans-serif;
    padding: 0;
    margin: 0;
  }
  
  /* ヘッダーナビ専用（ページ内の <nav> まで固定しない） */
  .site-header .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background-color: rgb(169, 186, 169);
    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: #555;
    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: #000;
    text-decoration: underline;
    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: underline;
    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) {
    /* PCメニューを隠す */
    .navbar-menu.desktop-menu {
      display: none;
    }
    
    /* アイコンを隠す */
    .navbar-icons {
      display: none;
    }

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

    .hamburger-line {
      display: block;
      width: 24px;
      height: 2px;
      background-color: #333;
      margin: 5px 0;
    }

    /* ロゴを中央寄せにする調整 */
    .navbar-brand {
      flex-grow: 1;
      text-align: center;
      margin-right: 44px; /* ハンバーガー分の余白でバランスを取る */
    }

    /* ドロワーメニューの基本スタイル（表示切り替えはJSで行うが、display:blockにしておく） */
    .mobile-menu-drawer {
      display: flex; /* JSでactiveクラスがついた時にスライドインさせるため、ここではflexにしておく */
      /* ただし、初期状態は画面外 */
      position: fixed;
      top: 0;
      left: -280px;
      width: 280px;
      height: 100vh;
      background-color: #fff;
      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 #eee;
    }

    .close-menu-btn {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: #333;
    }

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

    .mobile-menu-list li {
      border-bottom: 1px solid #eee;
    }

    .mobile-menu-link {
      display: block;
      padding: 15px 20px;
      text-decoration: none;
      color: #333;
      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: #333;
      font-size: 16px;
      cursor: pointer;
      text-decoration: none;
    }

    .mobile-menu-button:hover {
      background-color: #f5f5f5;
    }
  }
  
  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: #eee9ce;
    color: #433838;
    border-radius: 5px;
    text-align: center;
  }

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

  .breadcrumbs a {
    color: #a3a3a3;
    text-decoration: none;
  }

  .breadcrumbs a:hover {
    color: #526f54;
  }

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

  .title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 5px;
    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: #3498db;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border:none;
  }
  
  .btn-primary:hover {
    background-color: #2980b9;
  }

  .btn-secondary {
    background-color: #7f8c8d;
    color: white;
    border: none;
  }
  
  .btn-secondary:hover {
    background-color: #95a5a6;
  }

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

  .page-description {
    text-align: center;
    color: #34495e;
  }
  
  .home__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .home__card {
    background-color: #f7f9fc;
    color: #2c3e50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .home__card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
  }
  
  .home__card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .home__card p {
    font-size: 1rem;
    color: #7f8c8d;
  }

.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: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table__link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.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: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-card h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.dashboard-card p {
  font-size: 1rem;
  color: #7f8c8d;
  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: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  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: #f9f9f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.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: #666;
  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: #2c3e50;
  margin: 0;
  line-height: 1.4;
}

/* レスポンシブ対応 */
@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: 15px;
  }
}

.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;
}

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

.products-page-title {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* フィルターセクション */
.products-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  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: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-button:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.filter-button[aria-expanded="true"] {
  background-color: #1a365d;
  color: #fff;
  border-color: #1a365d;
}

.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: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  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;
}

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

.filter-option:hover {
  background-color: #f5f5f5;
}

.filter-option.active {
  background-color: #e3f2fd;
  color: #1a365d;
  font-weight: 500;
}

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

.filter-reset:hover {
  color: #333;
}

/* フィルターのレスポンシブ対応 */
@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: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.product-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 正方形のアスペクト比 */
  background-color: #f9f9f9;
  overflow: hidden;
}

.product-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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: #999;
  font-size: 14px;
}

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

.product-card-brand {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 8px 0;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: #333;
  line-height: 1.4;
  flex-grow: 1;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  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: 15px;
  }
  
  .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: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s;
}

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

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

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

.product-card a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
  transition: color 0.3s ease;
}

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

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

.updated_at {
  color: #7f8c8d;
  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: 8px;
  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: 5px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

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

.admin-brand-info {
  font-size: 1rem;
  color: #555;
}

.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: #fff;
  padding: 1rem;
  border-radius: 8px;
  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: 5px;
  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: 8px;
}

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

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

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

.product-brand {
  font-size: 1rem;
  color: #555;
}

.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: 5px;
  border: 1px solid #ccc;
}

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

.tag-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: #a3a3a3;
  color: white;
  border-radius: 10px;
  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: #7f8c8d;
}

.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: 8px;
  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: 120px;
  object-fit: cover;
  border-radius: 5px;
}

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

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

.tabs button:hover {
  background: #ddd;
}

.tabs button.active {
  background: rgb(169, 186, 169);
  color: white;
}

.hidden {
  display: none;
}

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

.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: 12px;
  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: #333;
  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 {
  border-radius: 10px;
  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: #ffffff;
    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: bold;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.05em;
  }
  
  .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: #555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .navbar-menu a:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  
  /* アイコンリンクのスタイル */
  .navbar-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  
  .icon-link {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    padding: 4px;
  }
  
  .icon-link:hover {
    color: #000;
  }
  
  .icon-link svg {
    width: 24px;
    height: 24px;
  }

/* =========================
   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: 12px;
  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: #555;
}

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

.brand-tooltip-name {
  text-align: center;
  font-weight: 700;
  color: #333;
  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: 10px;
}

.tag-stacked-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  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: underline;
  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 #eee;
  display: flex;
  align-items: baseline;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-right: 15px;
  min-width: 100px;
}

.news-title {
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
}

.news-title:hover {
  text-decoration: underline;
  color: #0056b3;
}

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

.article-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.article-meta {
  margin-bottom: 20px;
  color: #7f8c8d;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.article-image {
  margin-bottom: 20px;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #34495e;
  margin-bottom: 30px;
}

.article-brands {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

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

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

.article-brands li a {
  display: inline-block;
  padding: 5px 15px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #555;
  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: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  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: #333;
  color: #fff;
  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: #a9baa9;
  color: #333;
}

.ranking-image {
  width: 100%;
  height: 220px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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: #7f8c8d;
  margin-bottom: 5px;
}

.ranking-info .product-name {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: bold;
  color: #2c3e50;
  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: underline;
}

.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: 4px;
  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: 4px;
}

.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: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  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: 0 8px 20px rgba(0,0,0,0.15);
}

.ranking-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: #fff;
  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: #333; } /* Gold */
.rank-2 { background-color: #c0c0c0; color: #333; } /* Silver */
.rank-3 { background-color: #cd7f32; color: #fff; } /* Bronze */
.rank-4, .rank-5 { background-color: #a9baa9; color: #333; }

.ranking-image {
  width: 100%;
  height: 220px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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: #7f8c8d;
  margin-bottom: 5px;
}

.ranking-info .product-name {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: bold;
  color: #2c3e50;
  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: #666;
  text-decoration: none;
}

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

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

.news-sub-list {
  margin-top: 15px;
  background-color: #f9f9f9;
  padding: 15px;
}

.news-sub-item {
  border-bottom: 1px solid #eee;
  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: 10px;
}

.product-card-simple,
.ranking-card-simple {
  width: 32%;
  text-decoration: none;
  color: #333;
  text-align: center;
}

.product-image-simple img,
.ranking-image-simple img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1; /* 正方形にする */
}

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

.product-brand-name {
  font-size: 12px;
  color: #666;
  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, #f5e6d3 0%, #e8d5c4 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: 1;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-button {
  display: inline-block;
  background-color: #1a365d;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #2c5282;
  color: white;
}

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

/* 横長長方形のニュースカード（共通） */
.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: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  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;
  height: 200px;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
}

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

.news-card-horizontal-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  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: 4px;
  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: #999;
  margin-bottom: 10px;
}

.news-card-horizontal-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 12px 0;
  line-height: 1.5;
  color: #333;
  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: #666;
  background-color: #f5f5f5;
  padding: 4px 10px;
  border-radius: 4px;
}

.news-card-horizontal-link {
  font-size: 0.9rem;
  color: #1a365d;
  text-decoration: underline;
  align-self: flex-start;
}

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

/* ホームページ用ニュースグリッド */
.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: #333;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.news-card-home-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

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

.news-card-home-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 8px;
}

.news-card-home-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 10px 0;
  line-height: 1.5;
  color: #333;
  display: -webkit-box;
  -webkit-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: #666;
  background-color: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
}

/* 新着フレグランス（ホーム用） */
.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: #333;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image-home {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f9f9f9;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
}

.product-image-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.product-brand-home {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
}

.product-name-home {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.product-price-home {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  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: #333;
  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: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

.ranking-badge-card.rank-1 {
  background-color: #ffd700;
  color: #333;
  width: 50px;
  height: 50px;
  font-size: 1rem;
}

.ranking-badge-card.rank-2 {
  background-color: #c0c0c0;
  color: #333;
}

.ranking-badge-card.rank-3 {
  background-color: #cd7f32;
  color: #fff;
}

.ranking-badge-card.rank-4,
.ranking-badge-card.rank-5 {
  background-color: #a9baa9;
  color: #333;
}

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

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

.ranking-top-card {
  background: #fff;
  border-radius: 12px;
  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: #333;
}

.ranking-top-image {
  width: 100%;
  height: 300px;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.ranking-top-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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: #333;
  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: #666;
  margin-bottom: 8px;
}

.ranking-top-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.ranking-top-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.ranking-top-description {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-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: #1a365d;
  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: #1a365d;
  color: #fff;
}


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

.ranking-side-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.ranking-side-image {
  width: 100%;
  height: 180px;
  background-color: #f9f9f9;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.ranking-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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: #333;
  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: #a9baa9;
  color: #333;
}

.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: #666;
  margin-bottom: 6px;
}

.ranking-side-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  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: #666;
  padding: 2px 8px;
  background-color: #f0f0f0;
  border-radius: 12px;
}

/* 新着フレグランス */
.new-arrivals-section {
  background-color: #f5f5f5;
  padding: 40px 0;
  border-radius: 8px;
  margin-bottom: 40px;
}

/* 香りのカテゴリー */
.categories-section {
  margin-bottom: 60px;
  background-color: #f5f5f5;
  padding: 40px 0;
  border-radius: 8px;
}

.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: #333;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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: 100%;
  object-fit: cover;
  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: #fff;
  text-align: center;
}

.category-name {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

.category-count {
  font-size: 0.9rem;
  color: #666;
}

/* 香りへのこだわり */
.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: 8px;
  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: #333;
}

.commitment-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 25px;
}

.commitment-link {
  color: #1a365d;
  text-decoration: underline;
  font-size: 1rem;
}

.commitment-link:hover {
  color: #2c5282;
}

/* レスポンシブ対応 */
@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) {
  .hero-section {
    height: 400px;
  }
  
  .hero-image {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .news-grid-home {
    grid-template-columns: 1fr;
  }
  
  .product-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .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-image {
    width: 100%;
    height: 200px;
  }
}

/* Footer Styles */
.site-footer {
  background-color: #1a365d; /* 画像のような濃い青 */
  padding: 60px 20px 20px;
  margin-top: 60px;
  color: #fff;
}

.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: #fff;
}

.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: #fff;
  text-decoration: underline;
}


.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: 15px;
}

.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: #fff;
  text-decoration: underline;
}

/* スマホ向け調整 */
@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: #333;
  background: #fff;
  transition: opacity 0.3s;
}

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

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

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

.news-card-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* Product Detail Page Styles (PC版) */
.product-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 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;
}

.product-detail-main-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
}

.product-detail-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 18px;
}

/* 画像のフェードインアニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.fade-in-image {
  animation: fadeIn 0.8s ease-out;
}

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

.product-detail-brand-category {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

.product-detail-name {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: #333;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

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

.rating-stars .star {
  font-size: 1.2rem;
  color: #ddd;
}

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

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

.rating-text {
  font-size: 0.9rem;
  color: #999;
}

.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: #f5f5f5;
  color: #666;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.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: #333;
  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: #333;
  text-align: center;
}

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

.product-detail-description-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #555;
  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;
}

/* 商品詳細ページ内の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: #333;
}

/* ノート詳細セクションのスタイル */
.note-detail-section {
  margin: 15px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  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: #666;
  margin: 0;
}

.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;
}

/* レスポンシブ対応 */
@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);
  }
}

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

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

.news-card-date {
  font-size: 12px;
  color: #999;
  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: #666;
  background-color: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
}

.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;
}
