/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
  background: var(--ep-bg);
  color: var(--ep-text);
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =====================
   Layout Helpers
   ===================== */
.ep-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================
   Header
   ===================== */
.ep-header {
  background: var(--ep-crimson);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ep-logo {
  color: var(--ep-white);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.ep-logo span { color: var(--ep-gold-light); }

.ep-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
.ep-nav a {
  color: var(--ep-white);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.ep-nav a:hover { opacity: 1; }

.ep-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ep-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ep-white);
  transition: transform 0.2s, opacity 0.2s;
}
.ep-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ep-hamburger.is-open span:nth-child(2) { opacity: 0; }
.ep-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================
   Footer
   ===================== */
.ep-footer {
  background: var(--ep-crimson);
  padding: 18px 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 60px;
}
.ep-footer span { color: var(--ep-gold-light); font-weight: 700; }

/* =====================
   Hero
   ===================== */
.ep-hero {
  background: var(--ep-bg);
  border-bottom: 3px solid var(--ep-gold);
  padding: 52px 24px 44px;
  text-align: center;
}
.ep-hero-tagline {
  font-size: 11px;
  color: var(--ep-crimson);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 14px;
}
.ep-hero h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 16px;
  word-break: break-all;
  overflow-wrap: break-word;
}
.ep-hero h1 span { color: var(--ep-crimson); }
.ep-hero-sub {
  font-size: 13px;
  color: var(--ep-muted);
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

/* =====================
   Button
   ===================== */
.ep-btn {
  display: inline-block;
  background: var(--ep-crimson);
  color: var(--ep-white);
  padding: 10px 28px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.ep-btn:hover { background: var(--ep-crimson-light); }

/* =====================
   Section
   ===================== */
.ep-section {
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  margin: 24px auto;
  max-width: 1080px;
  width: 100%;
}

.ep-section-head {
  padding: 20px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ep-border);
}
.ep-section-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ep-text);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}
.ep-section-head h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 15px;
  background: var(--ep-crimson);
  margin-right: 8px;
}
.ep-more {
  font-size: 12px;
  color: var(--ep-gold);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.ep-more:hover { color: var(--ep-gold-light); }

/* =====================
   Grid & Cards
   ===================== */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ep-border);
}

.ep-card {
  background: var(--ep-white);
  padding: 14px 16px;
  display: block;
  transition: background 0.12s;
}
.ep-card:hover { background: #FAFAFA; }

.ep-card-img {
  height: 140px;
  object-fit: cover;
  width: 100%;
  margin-bottom: 10px;
}
.ep-card-img-placeholder {
  height: 140px;
  background: var(--ep-crimson-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-crimson);
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.ep-card-img-placeholder--guide {
  background: var(--ep-gold-pale);
  color: var(--ep-gold);
}

.ep-card-area {
  font-size: 10px;
  color: var(--ep-gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: lowercase;
}
.ep-card-area--guide { color: var(--ep-gold); }

.ep-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-text);
  line-height: 1.5;
}
.ep-card-date {
  font-size: 10px;
  color: var(--ep-muted);
  margin-top: 6px;
}

/* =====================
   Page Header
   ===================== */
.ep-page-header {
  background: var(--ep-bg);
  border-bottom: 3px solid var(--ep-gold);
  padding: 36px 0 24px;
}
.ep-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ep-text);
  line-height: 1.4;
  margin-top: 8px;
}
.ep-post-date {
  font-size: 12px;
  color: var(--ep-gold);
  font-weight: 600;
  margin-top: 8px;
}

/* =====================
   Breadcrumb
   ===================== */
.ep-breadcrumb {
  font-size: 11px;
  color: var(--ep-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.ep-breadcrumb a { color: var(--ep-crimson); }
.ep-breadcrumb a:hover { text-decoration: underline; }

/* =====================
   Single / Page Content
   ===================== */
.ep-single-wrap { padding-top: 32px; padding-bottom: 60px; }
.ep-archive-wrap { padding-top: 24px; padding-bottom: 60px; }

.ep-content { max-width: 780px; }
.ep-content h2,
.ep-content h3 { margin: 1.8em 0 0.6em; }
.ep-content p { margin-bottom: 1em; }
.ep-content img { max-width: 100%; height: auto; }

/* =====================
   Ranking Card
   ===================== */
.ep-rank-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ep-border);
  align-items: flex-start;
}
.ep-rank-num {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.rank-1 { background: var(--ep-gold); color: white; }
.rank-2 { background: #A8A8A8; color: white; }
.rank-3 { background: #C4845A; color: white; }
.rank-n { background: var(--ep-crimson-pale); color: var(--ep-crimson); }
.ep-rank-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid var(--ep-border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--ep-bg);
}
.ep-rank-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep-rank-body { flex: 1; }
.ep-rank-name a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ep-crimson);
  text-decoration: none;
}
.ep-rank-name a:hover { text-decoration: underline; }
.ep-rank-catch { font-size: 12px; color: var(--ep-muted); margin-bottom: 8px; }
.ep-rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ep-meta-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--ep-border);
  color: var(--ep-muted);
}
.ep-meta-tag.price {
  background: var(--ep-gold-pale);
  border-color: var(--ep-gold-light);
  color: var(--ep-gold);
  font-weight: 600;
}
.ep-rank-comment {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ep-text);
  line-height: 1.7;
  border-left: 2px solid var(--ep-crimson);
  padding-left: 8px;
}

/* =====================
   Area Intro
   ===================== */
.ep-area-intro {
  background: var(--ep-bg);
  border-left: 4px solid var(--ep-crimson);
  padding: 24px;
  margin-bottom: 32px;
  border-radius: 0 4px 4px 0;
}

.ep-area-intro-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ep-crimson);
  margin-bottom: 10px;
}

.ep-area-intro-body {
  font-size: 0.9rem;
  color: var(--ep-muted);
  line-height: 1.8;
}

/* =====================
   Pagination
   ===================== */
.ep-pagination { margin-top: 24px; text-align: center; }
.ep-pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.ep-pagination a,
.ep-pagination span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--ep-border);
  font-size: 13px;
  background: var(--ep-white);
  color: var(--ep-text);
  border-radius: 2px;
}
.ep-pagination .current { background: var(--ep-crimson); color: var(--ep-white); border-color: var(--ep-crimson); }

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
  .ep-nav { display: none; }
  .ep-nav.is-open {
    display: block;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--ep-crimson);
    padding: 16px 24px 24px;
    z-index: 99;
  }
  .ep-nav.is-open ul { flex-direction: column; gap: 0; }
  .ep-nav.is-open li { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .ep-nav.is-open a { display: block; padding: 12px 0; }
  .ep-hamburger { display: flex; }

  .ep-grid { grid-template-columns: 1fr; }

  .ep-section { margin: 16px 0; border-left: none; border-right: none; }

  .ep-hero { padding: 36px 16px 32px; }
  .ep-hero h1 { font-size: 18px; }
  .ep-hero-sub { font-size: 12px; }

  .ep-btn { display: block; width: 100%; text-align: center; padding: 12px 16px; }

  .ep-rank-item { flex-wrap: wrap; gap: 10px; }
  .ep-rank-thumb { width: 64px; height: 64px; }
  .ep-rank-body { min-width: 0; }

  .ep-content { max-width: 100%; }
  .ep-content img { width: 100%; height: auto; }

  .ep-page-header { padding: 20px 0 16px; }
  .ep-page-title { font-size: 18px; }

  .ep-single-wrap, .ep-archive-wrap { padding-top: 16px; padding-bottom: 40px; }
}
