/* =========================================================
= 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: 28px;
  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;
}
/* Active (黒背景・白文字・枠も黒) */
.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
========================================================= */
.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 h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
}
.maker-card h2 a {
  text-decoration: none;
  color: #222;
}
.maker-card h2 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;
  }
}

/* =========================================================
= 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;
  }
}
/* =========================================================
/* 作品ありメーカーは強調（動画 or 写真集 どちらか1件以上） */
.maker-card.has-works {
  /* background: cornsilk !important; */
  border: 1px solid #da3;
}
