/* ==============================================
   アノコロ.jp — anokoro-front.css  v2.0
   Design: Nostalgia Retro
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── SWELL Reset ── */
.anokoro-app,
.anokoro-app * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
  list-style: none;
}
.anokoro-app button {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.anokoro-app input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
}
.anokoro-app a { color: inherit; text-decoration: none; }
.anokoro-app h1,
.anokoro-app h2,
.anokoro-app h3,
.anokoro-app h4,
.anokoro-app p {
  margin: 0;
  padding: 0;
  border: none;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ── SWELL Theme Integration ──
   SWELLの白ボックス・余白を消してプラグインを馴染ませる */

/* ページ全体の背景をクリームに */
body:has(.anokoro-app) {
  background-color: #F7F2E8 !important;
}

/* #content.l-content.l-container の余白を消す */
body:has(.anokoro-app) .l-content.l-container {
  padding: 0 !important;
  max-width: none !important;
}

/* main.l-mainContent の余白を消す */
body:has(.anokoro-app) .l-mainContent,
body:has(.anokoro-app) .l-mainContent__inner {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* .post_content の白背景・影・パディングを消す */
body:has(.anokoro-app) .post_content {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ヘッダーとコンテンツ間の隙間を消す */
body:has(.anokoro-app) .l-header + *,
body:has(.anokoro-app) .c-pageTitle {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── Variables ── */
.anokoro-app {
  --ak-cream : #F7F2E8;
  --ak-paper : #EDE5D0;
  --ak-sepia : #C8A96E;
  --ak-rust  : #A0522D;
  --ak-ink   : #2C1A0E;
  --ak-inkm  : #6B4E35;
  --ak-inkl  : #A08060;
  --ak-line  : rgba(160,130,80,.25);
  --ak-white : #FFFDF7;
  --ak-dark  : #1a1208;
}

.anokoro-app {
  font-family: 'Shippori Mincho','Noto Serif JP','Hiragino Kaku Gothic ProN',serif;
  background: var(--ak-cream);
  color: var(--ak-ink);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}
.anokoro-app p { margin: 0; }

/* ── HERO ── */
.anokoro-hero {
  background: var(--ak-dark);
  padding: 36px 24px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.anokoro-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg,rgba(255,255,255,.025) 0,rgba(255,255,255,.025) 1px,transparent 1px,transparent 8px);
  pointer-events: none;
}
.anokoro-hero__eyebrow {
  font-family: 'DM Serif Display',serif;
  font-size: 10px;
  letter-spacing: .35em;
  color: #8a7050;
  margin-bottom: 12px;
  position: relative;
}
.anokoro-hero__title {
  font-family: 'Shippori Mincho',serif;
  font-size: clamp(24px,5.5vw,34px);
  font-weight: 700;
  color: #f5e8c8;
  line-height: 1.35;
  margin-bottom: 10px;
  position: relative;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.anokoro-hero__title em {
  font-style: italic;
  font-family: 'DM Serif Display',serif;
  color: #c87941;
}
.anokoro-hero__subtitle {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.8;
  position: relative;
}

/* ── STEP BAR ── */
.anokoro-steps {
  display: flex;
  align-items: flex-start;
  padding: 18px 20px 0;
  background: var(--ak-cream);
}
.anokoro-step-item {
  flex: 1;
  text-align: center;
  position: relative;
}
.anokoro-step-item::after {
  content: '';
  position: absolute;
  top: 13px; left: 50%;
  width: 100%; height: 1px;
  background: var(--ak-line);
  z-index: 0;
}
.anokoro-step-item:last-child::after { display: none; }
.anokoro-step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: sans-serif;
  position: relative;
  z-index: 1;
  transition: .2s;
}
.anokoro-step-dot.is-done   { background: var(--ak-rust); color: #fff; }
.anokoro-step-dot.is-active { background: var(--ak-ink); color: var(--ak-sepia); box-shadow: 0 0 0 3px rgba(160,130,80,.3); }
.anokoro-step-dot.is-idle   { background: var(--ak-paper); color: var(--ak-inkl); border: 1px solid var(--ak-line); }
.anokoro-step-label {
  font-size: 10px;
  color: var(--ak-inkl);
  margin-top: 4px;
  display: block;
  font-family: sans-serif;
}
.anokoro-step-item.is-active .anokoro-step-label { color: var(--ak-rust); font-weight: 700; }

.anokoro-divider { height: 1px; background: var(--ak-line); }

/* ── SUMMARY ── */
.anokoro-summary {
  padding: 10px 20px;
  background: var(--ak-paper);
  font-size: 12px;
  color: var(--ak-inkm);
  font-family: sans-serif;
  text-align: center;
  border-bottom: 1px solid var(--ak-line);
}
.anokoro-summary__sep {
  margin: 0 6px;
  color: var(--ak-sepia);
}

/* ── PANELS ── */
.anokoro-panel { display: none; padding: 20px; animation: akFadeUp .3s ease; }
.anokoro-panel.is-active { display: block; }
@keyframes akFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.anokoro-panel__title {
  font-family: 'Shippori Mincho',serif;
  font-size: 15px; font-weight: 700;
  color: var(--ak-ink);
  margin-bottom: 4px;
}
.anokoro-panel__sub {
  font-size: 12px; color: var(--ak-inkl);
  line-height: 1.7; margin-bottom: 16px;
  font-family: sans-serif;
}

/* ── PANEL 0: AGE ── */
.anokoro-age-box {
  background: var(--ak-white);
  border: 1px solid var(--ak-line);
  border-radius: 3px;
  padding: 28px 24px;
  text-align: center;
}
.anokoro-age-eyebrow {
  font-family: 'DM Serif Display',serif;
  font-size: 10px; letter-spacing: .3em;
  color: var(--ak-sepia); margin-bottom: 14px;
}
.anokoro-age-display {
  display: flex; align-items: baseline;
  justify-content: center; gap: 8px; margin-bottom: 6px;
}
.anokoro-age-num {
  font-family: 'DM Serif Display',serif;
  font-size: 72px; color: var(--ak-ink);
  line-height: 1; min-width: 3ch; text-align: center;
}
.anokoro-age-unit {
  font-family: 'Shippori Mincho',serif;
  font-size: 20px; color: var(--ak-inkm);
}
.anokoro-age-hint {
  font-size: 12px; color: var(--ak-inkl);
  min-height: 18px; margin-bottom: 22px;
  font-style: italic; font-family: sans-serif;
}
.anokoro-slider-wrap { padding: 0 4px; margin-bottom: 8px; }
.anokoro-slider {
  width: 100%; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--ak-line); border-radius: 2px;
  outline: none; cursor: pointer;
}
.anokoro-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ak-ink); border: 3px solid var(--ak-sepia); cursor: pointer;
}
.anokoro-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ak-ink); border: 3px solid var(--ak-sepia); cursor: pointer;
}
.anokoro-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ak-inkl);
  font-family: sans-serif; margin-top: 6px;
}
.anokoro-quick-picks {
  display: flex; gap: 6px;
  justify-content: center; flex-wrap: wrap; margin-top: 16px;
}
.anokoro-quick-btn {
  font-size: 12px; color: var(--ak-inkm);
  border: 1px solid var(--ak-line); background: transparent;
  padding: 5px 14px; border-radius: 2px;
  cursor: pointer; font-family: sans-serif; transition: .15s;
}
.anokoro-quick-btn:hover { border-color: var(--ak-sepia); color: var(--ak-ink); }

/* ── PANEL 1: GENDER ── */
.anokoro-gender-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.anokoro-gender-card {
  border: 1px solid var(--ak-line); border-radius: 3px;
  padding: 18px 8px; text-align: center;
  cursor: pointer; background: var(--ak-white); transition: .15s;
}
.anokoro-gender-card:hover { border-color: var(--ak-sepia); }
.anokoro-gender-card.is-selected { border-color: var(--ak-rust); background: rgba(160,82,45,.05); }
.ak-gc-icon { font-size: 22px; margin-bottom: 6px; }
.ak-gc-label { font-size: 13px; color: var(--ak-ink); font-family: sans-serif; }
.anokoro-gender-card.is-selected .ak-gc-label { color: var(--ak-rust); font-weight: 700; }

/* ── PANEL 2: STAGE + YEAR DRILL ── */
.anokoro-stage-list { display: flex; flex-direction: column; gap: 6px; }
.anokoro-stage-row {
  border: 1px solid var(--ak-line); border-radius: 3px;
  overflow: hidden; background: var(--ak-white); transition: border-color .15s;
}
.anokoro-stage-row.has-selection { border-color: var(--ak-rust); }
.anokoro-stage-header {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 10px; align-items: center;
  padding: 13px 14px; cursor: pointer; transition: background .15s;
}
.anokoro-stage-header:hover { background: rgba(200,169,110,.07); }
.ak-sh-year {
  font-family: 'DM Serif Display',serif;
  font-size: 20px; color: var(--ak-rust); line-height: 1;
}
.ak-sh-year span {
  display: block; font-family: sans-serif;
  font-size: 10px; color: var(--ak-inkl); margin-top: 2px;
}
.ak-sh-name {
  font-family: 'Shippori Mincho',serif;
  font-size: 14px; font-weight: 700; color: var(--ak-ink);
}
.ak-sh-range { font-size: 11px; color: var(--ak-inkl); font-family: sans-serif; margin-top: 2px; }
.ak-sh-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ak-sh-arrow { font-size: 11px; color: var(--ak-inkl); font-family: sans-serif; transition: transform .2s; }
.anokoro-stage-row.is-open .ak-sh-arrow { transform: rotate(180deg); }
.ak-sh-badge {
  font-size: 10px; color: var(--ak-rust);
  font-family: sans-serif; font-weight: 700;
  text-align: right; white-space: nowrap;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis;
}
.anokoro-year-drill {
  display: none;
  border-top: 1px solid var(--ak-line);
  padding: 14px; background: var(--ak-paper);
}
.anokoro-stage-row.is-open .anokoro-year-drill { display: block; }
.anokoro-year-drill-label {
  font-size: 10px; letter-spacing: .15em;
  color: var(--ak-sepia); margin-bottom: 10px; font-family: sans-serif;
}
.anokoro-year-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.anokoro-year-chip {
  border: 1px solid var(--ak-line); border-radius: 2px;
  padding: 7px 10px; font-size: 12px; cursor: pointer;
  background: var(--ak-white); color: var(--ak-inkm);
  font-family: sans-serif; transition: .15s; user-select: none;
  display: flex; flex-direction: column; align-items: center; min-width: 54px;
}
.anokoro-year-chip:hover { border-color: var(--ak-sepia); }
.anokoro-year-chip.is-selected { background: var(--ak-ink); border-color: var(--ak-ink); color: var(--ak-sepia); }
.ak-yc-num { font-family: 'DM Serif Display',serif; font-size: 18px; line-height: 1; }
.ak-yc-era { font-size: 9px; opacity: .7; margin-top: 2px; }
.ak-yc-age { font-size: 9px; color: var(--ak-rust); font-weight: 700; margin-top: 1px; }
.anokoro-year-chip.is-selected .ak-yc-age { color: var(--ak-sepia); }
.anokoro-stage-note {
  font-size: 12px; color: var(--ak-inkl);
  text-align: center; margin-top: 12px;
  font-style: italic; font-family: sans-serif;
}

/* ── PANEL 3: GENRE ── */
.anokoro-genre-clear {
  font-size: 12px; color: var(--ak-rust);
  border: none; background: transparent; cursor: pointer;
  font-family: sans-serif; text-decoration: underline;
  margin-bottom: 14px; padding: 0; display: block;
}
.anokoro-genre-section { margin-bottom: 16px; }
.anokoro-genre-section-label {
  font-size: 10px; letter-spacing: .15em;
  color: var(--ak-sepia); margin-bottom: 9px; font-family: sans-serif;
}
.anokoro-genre-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.anokoro-genre-chip {
  border: 1px solid var(--ak-line); border-radius: 2px;
  padding: 6px 14px; font-size: 12px; cursor: pointer;
  background: var(--ak-white); color: var(--ak-inkm);
  font-family: sans-serif; transition: .15s; user-select: none;
}
.anokoro-genre-chip:hover { border-color: var(--ak-sepia); }
.anokoro-genre-chip.is-selected { background: var(--ak-ink); border-color: var(--ak-ink); color: var(--ak-sepia); }

/* ── NAV ── */
.anokoro-nav { display: flex; gap: 10px; padding: 12px 20px 28px; background: var(--ak-cream); }
.anokoro-btn-back {
  flex: 0 0 auto;
  border: 1px solid var(--ak-line); background: transparent;
  color: var(--ak-inkl); font-size: 14px; padding: 12px 18px;
  border-radius: 2px; cursor: pointer; font-family: sans-serif; transition: .15s;
}
.anokoro-btn-back:hover { border-color: var(--ak-sepia); color: var(--ak-ink); }
.anokoro-btn-next {
  flex: 1;
  background: var(--ak-ink); color: var(--ak-sepia);
  font-family: 'Shippori Mincho',serif; font-size: 15px; font-weight: 700;
  padding: 14px; border-radius: 2px; border: none; cursor: pointer;
  letter-spacing: .05em; transition: .2s;
}
.anokoro-btn-next:hover { background: var(--ak-rust); color: #fff; }
.anokoro-btn-next:disabled { background: var(--ak-paper); color: var(--ak-inkl); cursor: default; }

/* ── LOADING ── */
.anokoro-loading { text-align: center; padding: 48px 20px; }
.anokoro-loading__spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--ak-line);
  border-top-color: var(--ak-rust);
  border-radius: 50%;
  animation: akSpin .8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes akSpin { to { transform: rotate(360deg); } }
.anokoro-loading__text {
  font-size: 13px; color: var(--ak-inkl);
  font-style: italic; font-family: sans-serif;
}

/* ── RESULTS ── */
.anokoro-results { padding: 0 20px 32px; }
.anokoro-results-header {
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--ak-line); margin-bottom: 0;
}
.anokoro-results-header h2 {
  font-family: 'Shippori Mincho',serif;
  font-size: 16px; font-weight: 700; color: var(--ak-ink); margin-bottom: 4px;
}
.anokoro-results-header p { font-size: 12px; color: var(--ak-inkl); font-family: sans-serif; }

/* タブ */
.anokoro-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 14px 0; border-bottom: 1px solid var(--ak-line);
  margin-bottom: 16px;
}
.anokoro-tabs__btn {
  font-size: 12px; font-family: sans-serif;
  padding: 6px 12px; border-radius: 2px;
  border: 1px solid var(--ak-line); background: transparent;
  color: var(--ak-inkm); cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.anokoro-tabs__btn:hover { border-color: var(--ak-sepia); color: var(--ak-ink); }
.anokoro-tabs__btn.is-active {
  background: var(--ak-ink); border-color: var(--ak-ink); color: var(--ak-sepia); font-weight: 700;
}

/* 年セクション */
.anokoro-year-section { margin-bottom: 28px; }
.anokoro-year-section-head {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ak-line); margin-bottom: 14px;
}
.ays-year { font-family: 'DM Serif Display',serif; font-size: 30px; color: var(--ak-rust); line-height: 1; }
.ays-era  { font-size: 13px; color: var(--ak-inkl); font-family: sans-serif; }
.ays-age  { font-size: 13px; color: var(--ak-inkm); font-family: sans-serif; font-weight: 700; }
.ays-stage { font-family: 'Shippori Mincho',serif; font-size: 13px; color: var(--ak-inkm); margin-left: auto; }

/* カテゴリセクション */
.anokoro-cat-section { margin-bottom: 16px; }
.anokoro-cat-section__head {
  font-size: 11px; letter-spacing: .15em; color: var(--ak-sepia);
  font-family: sans-serif; margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--ak-line);
}

/* ジャンル結果 */
.anokoro-genre-result { margin-bottom: 14px; }
.anokoro-genre-result__title {
  font-family: 'Shippori Mincho',serif;
  font-size: 13px; font-weight: 700; color: var(--ak-ink);
  margin-bottom: 8px;
}
.anokoro-genre-result__items { display: flex; flex-direction: column; gap: 6px; }

/* アイテム */
.anokoro-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--ak-white); border: 1px solid var(--ak-line);
  border-radius: 3px; padding: 12px; transition: border-color .15s;
}
.anokoro-item:hover { border-color: var(--ak-sepia); }
.anokoro-item__rank {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display',serif; font-size: 14px;
  border-radius: 50%; background: var(--ak-paper); color: var(--ak-inkm);
  border: 1px solid var(--ak-line);
}
.anokoro-item__rank--1 { background: #d4a940; color: #fff; border-color: #d4a940; }
.anokoro-item__rank--2 { background: #a0a0a0; color: #fff; border-color: #a0a0a0; }
.anokoro-item__rank--3 { background: #b07840; color: #fff; border-color: #b07840; }
.anokoro-item__body { flex: 1; min-width: 0; }
.anokoro-item__tag {
  display: inline-block; font-size: 9px; letter-spacing: .15em;
  color: var(--ak-sepia); font-family: sans-serif; margin-bottom: 2px;
}
.anokoro-item__title {
  font-family: 'Shippori Mincho',serif;
  font-size: 14px; font-weight: 700; color: var(--ak-ink); line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.anokoro-item__title a {
  color: var(--ak-rust); text-decoration: underline dotted rgba(160,82,45,.4);
  text-underline-offset: 3px;
}
.anokoro-item__title a:hover {
  color: var(--ak-ink); text-decoration: underline solid var(--ak-ink);
}
.anokoro-item__desc {
  font-size: 11px; color: var(--ak-inkl); font-family: sans-serif;
  line-height: 1.5; margin-top: 4px;
}
.anokoro-item__links { margin-top: 8px; }

/* ── BOTTOM SHEET TRIGGER ── */
.anokoro-sheet-trigger {
  display: block; width: 100%;
  font-size: 12px; color: var(--ak-rust) !important;
  background: rgba(160,82,45,.04) !important; border: 1px solid var(--ak-sepia) !important;
  padding: 8px 12px !important; border-radius: 3px;
  font-family: sans-serif; cursor: pointer; transition: .15s;
  text-align: center; line-height: 1.4;
}
.anokoro-sheet-trigger:hover {
  border-color: var(--ak-rust) !important; background: rgba(160,82,45,.1) !important;
}

/* もっと見る */
.anokoro-more-btn {
  font-size: 12px; color: var(--ak-rust); background: transparent;
  border: none; cursor: pointer; padding: 6px 0;
  font-family: sans-serif; text-decoration: underline;
}

/* アーカイブリンク */
.anokoro-archive-link {
  display: block; font-size: 12px; color: var(--ak-inkm);
  font-family: sans-serif; margin-top: 6px; padding: 4px 0;
  text-decoration: none; transition: color .15s;
}
.anokoro-archive-link:hover { color: var(--ak-rust); }

/* 空表示 */
.anokoro-empty {
  padding: 40px 0; text-align: center;
  font-size: 14px; color: var(--ak-inkl); font-style: italic;
}

/* シェア・リトライ */
.anokoro-share-row {
  margin-top: 28px; text-align: center;
  padding-top: 20px; border-top: 1px solid var(--ak-line);
}
.anokoro-app .anokoro-share-btn,
a.anokoro-share-btn {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: #A0522D !important; color: #fff !important;
  font-family: 'Shippori Mincho',serif; font-size: 14px;
  padding: 12px 24px !important; border-radius: 2px; border: none; cursor: pointer; transition: .2s;
  text-decoration: none !important;
}
.anokoro-app .anokoro-share-btn:hover,
a.anokoro-share-btn:hover { background: #2C1A0E !important; color: #C8A96E !important; }
.anokoro-retry-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ak-inkm);
  font-family: sans-serif; font-size: 13px;
  padding: 10px 20px; border-radius: 2px;
  border: 1px solid var(--ak-line); cursor: pointer; margin-top: 10px; transition: .15s;
}
.anokoro-retry-btn:hover { border-color: var(--ak-sepia); color: var(--ak-ink); }

/* ── ARCHIVE: フィルタバー ── */
.anokoro-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 12px 20px; background: var(--ak-paper);
  border-bottom: 1px solid var(--ak-line);
}
.anokoro-filter-tag {
  font-size: 11px; font-family: sans-serif;
  padding: 4px 10px; border-radius: 2px;
  background: var(--ak-ink); color: var(--ak-sepia);
}
.anokoro-filter-clear {
  font-size: 11px; color: var(--ak-rust); font-family: sans-serif;
  margin-left: auto; text-decoration: underline;
}

/* ── ARCHIVE: 折りたたみカテゴリ ── */
.anokoro-cat-collapsed {
  margin: 8px 20px; border: 1px solid var(--ak-line);
  border-radius: 3px; background: var(--ak-white); overflow: hidden;
}
.anokoro-cat-collapsed__btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 16px;
  font-family: sans-serif; font-size: 13px; color: var(--ak-inkm);
  background: transparent; border: none; cursor: pointer; transition: background .15s;
}
.anokoro-cat-collapsed__btn:hover { background: rgba(200,169,110,.07); }
.anokoro-cat-collapsed__arrow {
  font-size: 10px; color: var(--ak-inkl); transition: transform .2s;
}
.anokoro-cat-collapsed__body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--ak-line);
}

/* ── ARCHIVE: 展開カテゴリの余白 ── */
.anokoro-app > .anokoro-cat-section { padding: 16px 20px 0; }

/* ── ARCHIVE: 年ナビ ── */
.anokoro-year-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-top: 1px solid var(--ak-line); margin-top: 16px;
}
.anokoro-year-nav__link {
  font-size: 13px; font-family: sans-serif; color: var(--ak-inkm);
  text-decoration: none; transition: color .15s;
}
.anokoro-year-nav__link:hover { color: var(--ak-rust); }

/* ── GENRE ARCHIVE: 親カテゴリ子ジャンル一覧 ── */
.anokoro-genre-list { padding: 0 20px; display: flex; flex-direction: column; gap: 6px; }
.anokoro-genre-list__item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--ak-line);
  border-radius: 4px; background: var(--ak-white);
  text-decoration: none !important; color: inherit; transition: .15s;
  position: relative;
}
.anokoro-genre-list__item:hover { border-color: var(--ak-rust); background: rgba(160,82,45,.03); }
.anokoro-genre-list__main { flex: 1; min-width: 0; }
.anokoro-genre-list__name {
  font-family: 'Shippori Mincho',serif; font-size: 15px; font-weight: 700;
  color: var(--ak-ink); display: block; line-height: 1.3;
}
.anokoro-genre-list__count {
  font-size: 11px; color: var(--ak-inkl); font-family: sans-serif;
  margin-top: 2px; display: block;
}
.anokoro-genre-list__preview {
  font-size: 11px; color: var(--ak-inkm); font-family: sans-serif;
  line-height: 1.5; margin: 0; flex: 2; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.anokoro-genre-list__arrow {
  flex-shrink: 0; font-size: 14px; color: var(--ak-inkl);
  font-family: sans-serif;
}

/* ── ERA ARCHIVE: 年カードグリッド ── */
.anokoro-era-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px; padding: 0 20px;
}
.anokoro-era-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px; border: 1px solid var(--ak-line);
  border-radius: 4px; background: var(--ak-white);
  text-decoration: none !important; color: inherit; transition: .15s;
}
.anokoro-era-card:hover { border-color: var(--ak-rust); background: rgba(160,82,45,.04); }
.anokoro-era-card__year {
  font-family: 'DM Serif Display',serif; font-size: 22px;
  color: var(--ak-rust); line-height: 1;
}
.anokoro-era-card__era { font-size: 10px; color: var(--ak-inkl); font-family: sans-serif; }
.anokoro-era-card__count { font-size: 10px; color: var(--ak-inkm); font-family: sans-serif; font-weight: 700; }
.anokoro-era-card--nav .anokoro-era-card__year { font-size: 16px; font-family: sans-serif; }

/* ── ERA ARCHIVE: ハイライト ── */
.anokoro-era-highlights { padding: 0 20px; }
.anokoro-era-highlight-row {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--ak-line); font-size: 12px;
  align-items: flex-start;
}
.anokoro-era-highlight-label {
  flex-shrink: 0; font-weight: 700; color: var(--ak-ink);
  font-family: sans-serif; min-width: 80px;
}
.anokoro-era-highlight-items {
  color: var(--ak-inkm); font-family: sans-serif; line-height: 1.6;
}
.anokoro-era-nav-section { padding: 0 0 16px; }

/* ── BOTTOM SHEET OVERLAY ── */
.anokoro-sheet-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: akSheetFadeIn .2s ease;
}
@keyframes akSheetFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.anokoro-sheet {
  background: var(--ak-cream, #F7F2E8);
  border-radius: 12px 12px 0 0;
  width: 100%; max-width: 480px;
  max-height: 70vh; overflow-y: auto;
  animation: akSheetSlideUp .25s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
}
@keyframes akSheetSlideUp {
  from { transform: translateY(100%); } to { transform: none; }
}
.anokoro-sheet__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(160,130,80,.25);
}
.anokoro-sheet__title {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px; font-weight: 700;
  color: #2C1A0E;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.anokoro-sheet__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #6B4E35;
  background: transparent !important; border: none !important; cursor: pointer;
  border-radius: 50%; transition: background .15s;
  flex-shrink: 0; margin-left: 12px;
}
.anokoro-sheet__close:hover { background: rgba(160,130,80,.15) !important; }
.anokoro-sheet__body {
  padding: 12px 20px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.anokoro-sheet__link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 4px;
  background: var(--link-color, #333) !important; color: #fff !important;
  font-family: sans-serif; font-size: 14px; font-weight: 700;
  text-decoration: none !important; transition: opacity .15s;
}
.anokoro-sheet__link:hover { opacity: .85; color: #fff !important; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .anokoro-age-num { font-size: 56px; }
  .anokoro-stage-header { grid-template-columns: 54px 1fr auto; }
  .anokoro-tabs__btn { font-size: 11px; padding: 5px 8px; }
  .anokoro-sheet { max-width: none; }
}
