body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f3f4f6;
  color: #333;
  padding-top: 80px;
  padding-bottom: 60px;
}

.section-title {
  max-width: 100%;
  color: #FFF;
  background-color: #F44336;
}

h1 {
  font-size: 16px;
  color: #FFF;
  padding: 10px 0 10px;
}

h2 {
  font-size: 14px;
  padding: 0 10px;
}

.ranking {
  padding: 10px;
}

.ranking-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  background-color: #4B4B4B;
}

h3 {
  font-size: 14px;
  color: #FFF;
  background-color: #4B4B4B;
}

.rank-icon {
  position: relative;
  width: 50px;
  height: 50px;
  margin-right: 10px;
  flex-shrink: 0;
  padding: 0 10px;
}

.rank-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-icon {
  position: relative;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  flex-shrink: 0;
  padding: 0 10px;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rank-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.brand-button {
  padding: 5px;
  display: flex; /* 中央揃えのためにflex */
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-radius: 8px;
  background: linear-gradient(90deg, #1a1a1a, #4d4d4d, #1a1a1a);
  margin: 20px auto; /* 中央に配置 */
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.brand-button a {
  padding: 10px 16px;
  text-decoration: none;
  color: #E1BF00;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
}

.age-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* 年代ごとの隙間なし */
}

.age-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.age-text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.age-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.age-text a {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.age-text a:hover {
  color: #d62828;
}

.arrow-icon {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain;
  flex-shrink: 0;
}


/* ヘッダー全体 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 16px 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* ← 横に余白を追加（上下16px, 左右24px） */
}

/* ロゴ */
.logo {
  img {
    width: 100px;
  }
}

/* ナビゲーション */
.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

/* ハンバーガーメニュー内 */
.nav-label {
  display: block;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
  font-size: 12px;
}

/* 会員登録ボタン */
.nav .btn {
  background: #ec4899;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
}

.nav .btn-user {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
}

.nav .btn-logout {
  display: block;
  padding: 8px 12px;
  background-color: #262626CC; /* 赤色 */
  color: white;
  border: none;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
}

/* メニューボタン（モバイル用） */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* モバイル表示対応 */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    position: absolute;
    top: 64px;
    right: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 16px;
    border-radius: 8px;
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 34px;
    color: #D0A933;
  }

  .nav-section {
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #ccc;
  }
}

.footer {
  background: #D0A933;
  color: #FFF;
  padding: 20px;
  text-align: center;
}

.reviewed-product {
  margin: 24px 0;
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
}

.product-info {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.review-item-img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 16px;
}

.text-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-weight: bold;
  font-size: 14px;
  color: #FFF;
}

.product-price {
  font-size: 13px;
  color: #d62828;
}

/* rakutenボタン（aタグまたはbuttonタグどちらにも使える） */
.buy-button {
  background-color: #AC0517;
  border: 2px solid #AC0517;
  border-radius: 12px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* 追加部分 */
  width: 80%;
  justify-content: center;
  margin: 0 auto;
  display: flex; /* inline-flex → flex に変更 */
}

.buy-button img {
  width: 20px;
  height: 20px;
}

.buy-button a {
  text-decoration: none;
  color: inherit; /* リンクカラーも通常の文字と揃える場合 */
  font-size: 10px;
  color: #FFF;
  font-weight: bold;
}

@media screen and (min-width: 768px) {
  body {
    padding: 100px 200px 100px 200px;
  }

  .header-inner {
    padding: 0 200px 0 200px; /* ← 横に余白を追加（上下0px, 左右200px） */
  }
}

