/* =========================================================
     Variables & Base (added; non-conflicting with age.css)
     ========================================================= */
:root {
  --fg: #222;
  --fg-soft: #444;
  --muted: #666;
  --line: #eaeaea;
  --chip-bg: #fff;
  --chip-line: #ddd;
  --chip-hover: #fafafa;
  --accent-movie: #a10f2f;
  /* movie */
  --accent-photo: #1e40af;
  /* photobook */
  --badge: #111;
  --badge-fg: #fff;
  --radius: 12px;
  --radius-chip: 999px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* =========================================================
     Sections & headers (added)
     ========================================================= */
.section {
  margin: 2rem auto;
  padding: 0 0 60px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
}

.section-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  background: linear-gradient(180deg, crimson, #a10f2f);
  color: #fff;
}
.section-title .badge-photo {
  background: linear-gradient(180deg, #3b82f6, #1e40af);
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: bold;
}

/* =========================================================
     Decade box & age chips (added)
     ========================================================= */
.decade {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
  background: #fff;
  /* 年代ごとの背景色差は廃止 */
  margin: 16px 0;
}

.decade-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.decade-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.decade-title a {
  color: inherit;
  text-decoration: none;
}

.decade-title a:hover {
  text-decoration: underline;
}

.decade-total {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.age-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--chip-line);
  background-color: snow;
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.15s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  user-select: none;
}

.mode-photo .chip {
  background-color: aliceblue;
}

.chip:hover {
  background: var(--chip-hover);
}

.chip:active {
  transform: translateY(1px);
}

.chip .age {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.chip .count {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2em 0.55em;
  border-radius: 10px;
  background: #eee;
  color: #111;
}

.mode-movie .chip .count {
  background: rgba(161, 15, 47, 0.09);
  color: var(--accent-movie);
  border: 1px solid rgba(161, 15, 47, 0.18);
}

.mode-photo .chip .count {
  background: rgba(30, 64, 175, 0.09);
  color: var(--accent-photo);
  border: 1px solid rgba(30, 64, 175, 0.18);
}

.chip.is-zero {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(0.6);
}

/* =========================================================
     About frame (added; will be consistent with age.css)
     ========================================================= */
.frame {
  position: relative;
  margin: 2em 0;
  padding: 0.5em 1em;
  border: solid 2px #da3;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.frame .box-title {
  position: absolute;
  display: inline-block;
  top: -13px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  font-size: 1rem;
  background: #f9f9f9;
  color: #da3;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 6px;
}

.frame p {
  font-size: 0.88rem;
  margin: 0;
  padding: 6px 0;
  color: #333;
  line-height: 1.6;
}

/* =========================================================
     Simple separator (added)
     ========================================================= */
.separator {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

/* =========================================================
     年齢タグ枠（海の京都風・age.cssの意図を継承）
     ========================================================= */
.age-tags-frame {
  margin: 30px 0 40px;
  padding: 14px 18px;
  border: 4px solid #f0d96c;
  border-radius: 6px;
  background: #fff;
}

.age-tags-title {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  color: #000;
}

.age-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.age-tag {
  border: 1px solid #1e88e5;
  border-radius: 20px;
  padding: 6px 16px;
  background: #fff;
  text-decoration: none;
  color: #1e88e5;
  font-size: 14px;
  transition: 0.2s;
}

.age-tag:hover {
  background: #e3f2fd;
}

/* =========================================================
     Responsive additions (non-conflicting)
     ========================================================= */
@media (max-width: 700px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .decade {
    padding: 12px;
  }
  .age-chip-row {
    justify-content: left;
    gap: 6px;
  }
  .chip {
    /* width: 40%; */
    padding: 8px;
    justify-content: center;
  }
}

/* =========================================================
     ===== age.css（優先） — そのまま統合 =====
     ========================================================= */
/* Base / Layout */
.wrapper {
  max-width: 1000px;
  margin: 60px auto;
}

@media (max-width: 700px) {
  .wrapper {
    width: 96%;
    padding: 0;
  }
}

/* Breadcrumb */
.breadcrumb {
  margin-top: 80px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
}

.breadcrumb span {
  color: #bbb;
}

@media (max-width: 1000px) {
  .breadcrumb {
    margin-left: 2%;
  }
}

@media (max-width: 700px) {
  .breadcrumb {
    margin-top: 40px;
  }
}

/* Page Title / Sub note */
h1.page-title {
  font-size: 18px;
  line-height: 18px;
  margin: 40px auto;
  text-align: center;
}

h1.page-title span {
  font-size: 24px;
  background: linear-gradient(to bottom, transparent 50%, #ff6 50%);
}

.sub-note {
  font-size: 12px;
  display: block;
  margin: 20px 0;
  color: #666;
  text-align: center;
}

/* Media Type Tabs */
.media-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.media-tabs .tab {
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
  background: #eee;
  color: #333;
  font-weight: 600;
  transition: 0.2s;
}

.media-tabs .tab.tab-video.active {
  background: linear-gradient(180deg, crimson, #a10f2f);
  color: #fff;
}

.media-tabs .tab.tab-photo.active {
  background: linear-gradient(180deg, #3b82f6, #1e40af);
  color: #fff;
}

/* About Box (frame) */
.frame {
  position: relative;
  margin: 2em 0;
  padding: 0.5em 1em;
  border: solid 2px #da3;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.frame .box-title {
  position: absolute;
  display: inline-block;
  top: -13px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  font-size: 1rem;
  background: #f9f9f9;
  color: #da3;
  font-weight: bold;
  text-transform: uppercase;
}

.frame p {
  font-size: 0.8rem;
  margin: 0;
  padding: 12px 0;
  line-height: 1.4rem;
}

/* Kana Navigation */
.kana-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  margin: 6px 0 18px;
}

.kana-nav a {
  padding: 6px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: 0.15s;
  min-width: 60px;
  text-align: center;
}

.kana-nav a:hover {
  background: #fafafa;
}

.kana-nav a.active {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.kana-title {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 8px;
  padding: 4px 8px;
  border-left: 4px solid #000;
}

.kana-subhead {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 6px;
  padding: 2px 6px;
  border-left: 3px solid #555;
}

.vowel-head {
  margin: 2em 0 1em;
  padding: 0.6em 0.7em;
  background: #fff7ef;
  border: 1px dashed #a7a297;
  border-radius: 10px;
}

@media screen and (max-width: 1000px) {
  .kana-nav {
    justify-content: left;
  }
}

/* 補足テキスト */
.maker-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.maker-desc a {
  font-weight: bold;
  text-decoration: none;
}

/* Result Count */
.total {
  display: block;
  margin: 20px 0 14px;
}

/* Maker Grid / Cards (kept for compatibility; harmless on /age) */
.maker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .maker-grid {
    grid-template-columns: 1fr;
  }
}

.maker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.maker-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.maker-card h3 a {
  text-decoration: none;
  color: #222;
}

.maker-card h3 a:hover {
  text-decoration: underline;
}

.maker-card p {
  margin: 0;
  color: #555;
  font-size: 0.88rem;
  line-height: 1.5;
}

.maker-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
}

@media (max-width: 700px) {
  .maker-card {
    padding: 12px;
  }

  .maker-logo {
    width: 64px;
    height: 64px;
  }
}

.maker-card.has-works {
  border: 1px solid #da3;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 22px 0;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
  color: #333;
}

.pagination a:hover {
  background: #fafafa;
}

.pagination a.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

@media (max-width: 700px) {
  .pagination .pager-prev,
  .pagination .pager-next {
    display: none;
  }
}

/* 年齢タグ枠（age.cssにも入れておく） */
.age-tags-frame {
  margin: 30px 0 40px;
  padding: 14px 18px;
  border: 4px solid #f0d96c;
  border-radius: 6px;
  background: #fff;
}

.age-tags-title {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  color: #000;
}

.age-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.age-tag {
  border: 1px solid #1e88e5;
  border-radius: 20px;
  padding: 6px 16px;
  background: #fff;
  text-decoration: none;
  color: #1e88e5;
  font-size: 14px;
  transition: 0.2s;
}

.age-tag:hover {
  background: #e3f2fd;
}
