:root {
  --color-navy: #0b1a30;
  --color-blue: #0ea5e9;
  --color-electric: #00f0ff;
  --color-orange: #f97316;
  --color-orange-dark: #ea580c;
  --color-text: #333333;
  --color-bg-light: #f8fafc;
  --color-bg-rank: #e3f2fb;
  --font-base: RakutenSansJP2_W-Regular, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', メイリオ, Meiryo, sans-serif;
  --font-bold: RakutenSansJP2_W-Bold, RakutenSansJP2_W-Regular, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', メイリオ, Meiryo, sans-serif;
  --font-en: Arial, Helvetica, sans-serif;
  /* Rakuten Sans は ◯ 等の記号グリフが欠けるため評価マークは和文標準フォントを使う */
  --font-symbol: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', メイリオ, Meiryo, sans-serif;
}

.openear-body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden;
}

.openear-page {
  background-color: #f9fafc;
}

.hero-catch,
.hero-title,
.section-title,
.section-subtitle,
.feature-title,
.anchor-button,
.faq-q,
.spec-table th {
  font-family: var(--font-bold);
}

.page-note {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.8;
  color: #64748b;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--color-navy);
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-blue);
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--color-blue);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.local-nav-wrap {
  margin-bottom: 32px;
}

.local-nav-container {
  background-color: transparent;
  padding: 8px 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.local-nav-container[data-static="false"][data-sticky="false"] {
  border-bottom: none;
}

.local-nav-container[data-sticky="true"] {
  top: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 担当セクションのブロックが1つも表示されていない間は隠す */
.local-nav-container[data-sticky="true"]:not(:has(.anchor-button[data-in-viewport="true"])) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.anchor-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.anchor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: #fff;
  color: var(--color-navy);
  border: 1px solid var(--color-blue);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.anchor-button:hover {
  background-color: var(--color-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.anchor-button[data-in-viewport="true"] {
  background-color: var(--color-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* 複数セクションが同時に in-viewport のときは先頭だけ残す */
.anchor-button[data-in-viewport="true"] ~ .anchor-button[data-in-viewport="true"] {
  background-color: #fff;
  color: var(--color-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Sections */
.page-section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}

.bg-navy {
  background-color: var(--color-navy);
  color: #fff;
}
.bg-navy .section-title {
  color: #fff;
}

.bg-navy .section-subtitle {
  color: var(--color-electric);
}

.bg-rank {
  background-color: var(--color-bg-rank);
}

.bg-bleed {
  position: relative;
  z-index: 0;
}

.bg-bleed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background-color: inherit;
}

/* Specific Section Padding */
.section-spec {
  padding-left: 60px;
  padding-right: 60px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Hero (KV) */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  overflow: hidden;
  justify-content: center;
}

.hero-bg-grid {
  display: flex;
  height: 100%;
  width: 100%;
}

.hero-bg-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #000;
}

.hero-bg-item-01 {
  background-image: url(https://r.r10s.jp/evt/event/genre/pick-up/openear/_cmn/img/hero_01.webp);
}

.hero-bg-item-02 {
  background-image: url(https://r.r10s.jp/evt/event/genre/pick-up/openear/_cmn/img/hero_02.webp);
}

.hero-bg-item-03 {
  background-image: url(https://r.r10s.jp/evt/event/genre/pick-up/openear/_cmn/img/hero_03.webp);
}

.hero-bg-item-04 {
  background-image: url(https://r.r10s.jp/evt/event/genre/pick-up/openear/_cmn/img/hero_04.webp);
}

.hero-bg-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 26, 48, 0.2);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  width: fit-content;
  max-width: 90%;
  height: auto;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 32px 48px;
  z-index: 10;
  overflow: hidden;
}

.hero-catch {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-title {
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.hero-title span {
  display: block;
  font-size: 34px;
  margin-top: 8px;
}

/* Scene / Type blocks */
.block-stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.block-heading {
  margin-bottom: 8px;
  text-align: center;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-navy);
}

/* Alcor Customization */
.openear-alcor-card {
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.ranking-updatedate {
  margin-bottom: 16px;
  text-align: right;
  font-size: 14px;
  color: #666;
}

/* Product list */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.spec-table th, .spec-table td {
  padding: 20px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.spec-table th {
  background-color: var(--color-navy);
  color: #fff;
  font-weight: 700;
}

.spec-table th:first-child {
  background-color: #cbd5e1;
  color: var(--color-navy);
}

.spec-mark {
  display: inline-block;
  font-family: var(--font-symbol);
  color: var(--color-navy);
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

.spec-mark-best {
  color: var(--color-orange);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.faq-q {
  padding: 20px;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  display: flex;
  align-items: center;
}

.faq-q::before {
  content: 'Q.';
  color: var(--color-blue);
  font-size: 20px;
  margin-right: 12px;
  font-family: var(--font-en);
}

.faq-a {
  padding: 0 20px 20px;
  font-size: 15px;
  color: #475569;
  display: flex;
}

.faq-a::before {
  content: 'A';
  color: var(--color-orange);
  font-size: 20px;
  font-weight: 700;
  margin-right: 12px;
  font-family: var(--font-en);
}
