:root {
  --et-green: #629d35;
  --et-green-dark: #477927;
  --et-green-light: #eef6e6;
  --et-orange: #f28a22;
  --et-orange-light: #fff3e6;
  --et-beige: #fbf8f3;
  --et-text: #2f2b28;
  --et-subtext: #69635e;
  --et-border: #e8e2db;
  --et-white: #ffffff;
  --et-error-bg: #fff5f4;
  --et-error-text: #a8231b;
  --et-error-border: #d93025;
  --eratane-border: var(--et-border);
  --eratane-muted: var(--et-subtext);
  --eratane-primary: var(--et-green);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--et-text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.eratane-ranking-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 360px);
}

.eratane-ranking-header {
  border-bottom: 1px solid var(--et-border);
  background: rgba(255, 255, 255, 0.94);
}

.eratane-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.eratane-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.eratane-logo {
  color: var(--et-green-dark);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eratane-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--et-subtext);
  font-size: 14px;
  font-weight: 700;
}

.eratane-header-nav a:hover {
  color: var(--et-green-dark);
}

.eratane-main {
  padding: 48px 0 72px;
}

.eratane-hero {
  padding: 44px;
  border: 1px solid var(--et-border);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 92% 16%,
      rgba(98, 157, 53, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 78% 78%,
      rgba(242, 138, 34, 0.15),
      transparent 30%
    ),
    #ffffff;
  box-shadow: 0 18px 48px rgba(66, 56, 45, 0.08);
}

.eratane-eyecatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--et-green-light);
  color: var(--et-green-dark);
  font-size: 14px;
  font-weight: 700;
}

.eratane-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.eratane-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--et-subtext);
  font-size: 16px;
}

.eratane-search-box {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--et-border);
  border-radius: 18px;
  background: var(--et-white);
}

.eratane-search-box h2,
.eratane-section-title {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
}

.eratane-search-form {
  display: flex;
  max-width: 760px;
  overflow: hidden;
  border: 1px solid #d8d1c9;
  border-radius: 999px;
  background: #ffffff;
}

.eratane-search-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.eratane-search-form button {
  min-width: 88px;
  border: 0;
  background: var(--et-green);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.eratane-search-form button:hover {
  background: var(--et-green-dark);
}

.eratane-section {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--et-border);
  border-radius: 20px;
  background: var(--et-white);
}

.eratane-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.eratane-action-card {
  display: block;
  min-height: 140px;
  padding: 24px;
  border: 1px solid var(--et-border);
  border-radius: 16px;
  background: var(--et-beige);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.eratane-action-card:hover {
  border-color: var(--et-green);
  box-shadow: 0 12px 28px rgba(66, 56, 45, 0.1);
  transform: translateY(-3px);
}

.eratane-action-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--et-green-dark);
  font-size: 20px;
}

.eratane-action-card span {
  color: var(--et-subtext);
  font-size: 14px;
}

.eratane-genre-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eratane-genre-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 13px 15px;
  border: 1px solid var(--et-border);
  border-radius: 12px;
  background: #ffffff;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.eratane-genre-list a:hover {
  border-color: var(--et-green);
  background: var(--et-green-light);
  color: var(--et-green-dark);
}

.eratane-genre-id {
  color: var(--et-subtext);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.eratane-notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--et-orange-light);
  color: #7a4a13;
  font-size: 14px;
}

.eratane-error {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--et-error-border);
  border-radius: 12px;
  background: var(--et-error-bg);
  color: var(--et-error-text);
}

.eratane-empty {
  padding: 18px;
  border: 1px dashed var(--et-border);
  border-radius: 12px;
  color: var(--et-subtext);
  text-align: center;
}

.eratane-footer {
  padding: 28px 0;
  border-top: 1px solid var(--et-border);
  color: var(--et-subtext);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 820px) {
  .eratane-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .eratane-main {
    padding-top: 30px;
  }

  .eratane-hero,
  .eratane-section,
  .eratane-search-box {
    padding: 22px 18px;
  }

  .eratane-actions,
  .eratane-genre-list {
    grid-template-columns: 1fr;
  }

  .eratane-search-form {
    border-radius: 14px;
  }

  .eratane-search-form button {
    min-width: 72px;
  }
}

.eratane-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--et-subtext);
  font-size: 13px;
}

.eratane-breadcrumb a {
  color: var(--et-green-dark);
  font-weight: 700;
}

.eratane-breadcrumb a:hover {
  text-decoration: underline;
}

.eratane-date-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.eratane-date-form label {
  color: var(--et-subtext);
  font-size: 14px;
  font-weight: 700;
}

.eratane-date-form input[type="date"] {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d8d1c9;
  border-radius: 8px;
  background: #ffffff;
  color: var(--et-text);
  font-family: inherit;
  font-size: 15px;
}

.eratane-date-form button {
  min-height: 44px;
  padding: 9px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--et-green);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.eratane-date-form button:hover {
  background: var(--et-green-dark);
}

.eratane-date-latest {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--et-green-dark);
  font-size: 14px;
  font-weight: 700;
}

.eratane-date-latest:hover {
  text-decoration: underline;
}

.eratane-date-note {
  margin: 16px 0 0;
  color: var(--et-subtext);
  font-size: 14px;
}

.eratane-ranking-list {
  display: grid;
  gap: 16px;
}

.eratane-ranking-item {
  display: grid;
  grid-template-columns: 70px 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--et-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(66, 56, 45, 0.06);
}

.eratane-ranking-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  border-radius: 14px;
  background: var(--et-green);
  color: #ffffff;
  font-weight: 800;
}

.eratane-ranking-rank span {
  font-size: 28px;
  line-height: 1;
}

.eratane-ranking-rank small {
  margin-left: 2px;
  font-size: 13px;
}

.eratane-ranking-item:nth-child(1) .eratane-ranking-rank {
  background: #f1b51c;
}

.eratane-ranking-item:nth-child(2) .eratane-ranking-rank {
  background: #aeb5ba;
}

.eratane-ranking-item:nth-child(3) .eratane-ranking-rank {
  background: #c98743;
}

.eratane-ranking-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--et-border);
  border-radius: 14px;
  background: #f7f3ec;
  color: var(--et-subtext);
  font-size: 13px;
}

.eratane-ranking-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.eratane-ranking-content {
  min-width: 0;
}

.eratane-ranking-item-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.6;
}

.eratane-ranking-item-title a:hover {
  color: var(--et-green-dark);
  text-decoration: underline;
}

.eratane-ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--et-subtext);
  font-size: 13px;
}

.eratane-ranking-meta span {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--et-green-light);
}

.eratane-ranking-price {
  margin: 0 0 8px;
  color: var(--et-text);
  font-size: 20px;
  font-weight: 800;
}

.eratane-ranking-review {
  margin: 0 0 14px;
  color: var(--et-subtext);
  font-size: 14px;
}

.eratane-ranking-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eratane-rakuten-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--et-orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.eratane-rakuten-button:hover {
  background: #d96f0f;
  color: #ffffff;
}

@media (max-width: 820px) {
  .eratane-ranking-item {
    grid-template-columns: 56px 96px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .eratane-ranking-rank {
    min-height: 56px;
    border-radius: 12px;
  }

  .eratane-ranking-rank span {
    font-size: 22px;
  }

  .eratane-ranking-item-title {
    font-size: 15px;
  }

  .eratane-ranking-price {
    font-size: 17px;
  }

  .eratane-ranking-buttons {
    flex-direction: column;
  }

  .eratane-ranking-buttons .eratane-card-button,
  .eratane-ranking-buttons .eratane-rakuten-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .eratane-ranking-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .eratane-ranking-image {
    grid-column: 1 / 2;
    width: 56px;
  }

  .eratane-ranking-content {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
  }
}

.eratane-genre-list {
  align-items: stretch;
}

.eratane-genre-list li {
  min-width: 0;
}

.eratane-history-table-wrap {
  overflow-x: auto;
}

.eratane-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
  border: 1px solid var(--eratane-border);
  border-radius: 18px;
  overflow: hidden;
}

.eratane-history-table th,
.eratane-history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--eratane-border);
  text-align: left;
  vertical-align: top;
}

.eratane-history-table th {
  background: #f8fafc;
  color: var(--eratane-muted);
  font-size: 0.9rem;
}

.eratane-history-table tr:last-child td {
  border-bottom: none;
}

.eratane-history-table a {
  color: var(--eratane-primary);
  font-weight: 700;
  text-decoration: none;
}

.eratane-history-table a:hover {
  text-decoration: underline;
}

.eratane-item-hero {
  padding: 28px 32px;
}

.eratane-item-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.65;
  letter-spacing: 0.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.eratane-item-hero p {
  max-width: 960px;
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 820px) {
  .eratane-item-hero {
    padding: 22px 18px;
  }

  .eratane-item-hero h1 {
    font-size: clamp(20px, 5.6vw, 26px);
    line-height: 1.55;
  }

  .eratane-item-hero p {
    font-size: 13px;
  }
}

.eratane-affiliate-disclosure {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #7c2d12;
  font-size: 0.9rem;
  line-height: 1.7;
}

.eratane-affiliate-disclosure span {
  flex: 0 0 auto;
  padding: 2px 8px;
  background: #fb923c;
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.eratane-ad-slot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 22px 0;
  padding: 18px;
  min-height: 72px;
  background: #f8fafc;
  border: 1px dashed var(--eratane-border);
  border-radius: 16px;
  color: var(--eratane-muted);
  font-size: 0.9rem;
  text-align: center;
}

.eratane-ad-slot span {
  flex: 0 0 auto;
  padding: 2px 8px;
  background: #94a3b8;
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .eratane-affiliate-disclosure {
    font-size: 0.84rem;
  }

  .eratane-ad-slot {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    text-align: left;
  }
}

.eratane-search-results {
  display: grid;
  gap: 18px;
}

.eratane-search-result-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--et-border);
  border-radius: 20px;
}

.eratane-search-result-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  color: var(--et-subtext);
  text-decoration: none;
}

.eratane-search-result-image img {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: contain;
}

.eratane-search-result-content h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.65;
}

.eratane-search-result-content h2 a {
  color: var(--et-text);
  text-decoration: none;
}

.eratane-search-result-content h2 a:hover {
  color: var(--et-green);
}

.eratane-search-result-summary {
  margin: 10px 0 0;
  color: var(--et-subtext);
  font-size: 0.92rem;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .eratane-search-result-card {
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .eratane-search-result-image {
    min-height: 96px;
  }

  .eratane-search-result-content h2 {
    font-size: 1rem;
  }
}

.eratane-history-summary {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--et-green-light);
  border: 1px solid var(--et-border);
  border-radius: 16px;
  color: var(--et-text);
}

.eratane-history-summary strong {
  margin-right: 12px;
}

.eratane-change-section {
  margin-top: 28px;
}

.eratane-change-description {
  margin: -8px 0 16px;
  color: var(--et-subtext);
  font-size: 0.92rem;
}

.eratane-change-list {
  display: grid;
  gap: 14px;
}

.eratane-change-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--et-border);
  border-radius: 18px;
}

.eratane-change-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--et-subtext);
}

.eratane-hero-history-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 10px 16px;
  border: 1px solid var(--et-green);
  border-radius: 999px;
  color: var(--et-green-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.eratane-hero-history-link:hover {
  background: var(--et-green-light);
}

.eratane-change-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eratane-change-content h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.6;
}

.eratane-change-content h3 a {
  color: var(--et-text);
}

.eratane-change-content > p {
  margin: 6px 0;
  color: var(--et-subtext);
  font-size: 0.88rem;
}

.eratane-change-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  font-size: 0.9rem;
}

.eratane-change-meta > span,
.eratane-rank-change {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.eratane-rank-change-rise { background: #dcfce7; color: #166534; }
.eratane-rank-change-new { background: #dbeafe; color: #1d4ed8; }
.eratane-rank-change-keep { background: #fef3c7; color: #92400e; }
.eratane-rank-change-down { background: #fee2e2; color: #b91c1c; }

.eratane-back-link {
  margin: 24px 0;
}

.eratane-back-link a {
  color: var(--et-green-dark);
  font-weight: 700;
}

@media (max-width: 720px) {
  .eratane-change-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .eratane-change-image {
    min-height: 80px;
  }

  .eratane-change-meta {
    gap: 6px;
    font-size: 0.82rem;
  }
}
