/* --------------------
   ベーススタイル
-------------------- */
:root {
  --primary: rgb(231, 39, 14);
  --bg: #ffffff;
  --text: #333333;
  --muted: #777777;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  font-family:  "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img {
  vertical-align: bottom; /* または vertical-align: top; */
}

/* --------------------
   汎用パーツ
-------------------- */
/* 汎用パーツ - container, margin */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
@media (max-width: 768px) {
  .mb-md-1 { margin-bottom: 1rem; }
  .mb-md-2 { margin-bottom: 2rem; }
  .mb-md-3 { margin-bottom: 3rem; }
}

/* 汎用パーツ - btn */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  margin: auto;
  padding: 8px;
  border: solid 1px;
  border-color: var(--primary);
  border-radius: 50px;
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background-color: #fff;
  color: var(--primary);
  transition: 0.3s;
}

/* 汎用パーツ - h, p */
.page-title h1 {
  margin-bottom: 1rem;
  color: var(--primary);
}
h2.sec-ttl {
  margin-bottom: 1rem;
  color: var(--primary);
}
@media (max-width: 768px) {
  .page-title h1, h2.sec-ttl {
    font-weight: normal !important;
  }
}
p.note {
  position: relative;
  margin-bottom: 2rem;
}
p.note::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: 0;
  left: 0;
  margin: 0 auto;
  display: block;
  width: 100px;
  height: 2px;
  background: #e8bfba;
}
p.note02 {
  font-size: 14px;
  color: #777777;
}

/* 汎用パーツ - box */
.c_box {
  display: flex;
  justify-content: space-between;
}
.c_box .img {
  width: calc(50% - 1rem);
}
.c_box .img img {
  width: 100%;
}
.c_box .txt {
  width: calc(50% - 1rem);
}
@media (max-width: 768px) {
  .c_box {
    flex-direction: column;
  }
  .c_box .img, .c_box .txt {
    width: 100%;
  }
}
.c_box02 {
  display: flex;
  justify-content: space-between;
}
.c_box02 .img {
  display: flex;
  justify-content: space-between;
  width: calc(50% - 1rem);
  max-width: 500px;
}
.c_box02 .img .chara {
  width: calc(50% - 1rem);
}
.c_box02 .img .chara img {
  width: 100%;
}
.c_box02 .img .chara .name {
  text-align: center;
  font-size: 14px;
}
.c_box02 .txt {
  width: calc(50% - 1rem);
}
@media (max-width: 768px) {
  .c_box02 {
    flex-direction: column;
  }
  .c_box02 .img, .c_box02 .txt {
    width: 100%;
  }
}

/* --------------------
   ヘッダー
-------------------- */
header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}
.nav-right nav {
  display: flex;
  gap: 1.5rem;
}
.nav-right nav a {
  text-decoration: none;
  font-weight: 500;
}
.nav-right nav a:visited {
  color: #333;
}
.nav-right nav a:hover {
  color: var(--primary);
}

/* ヘッダー - メニュー ドロップダウン */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}
.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}
.dropdown-content a:hover {
  background: #f0f0f0;
}
.dropdown:hover .dropdown-content {
  display: block;
}
@media (max-width: 768px) {
  .nav-right nav {
    display: none;
  }
}

/* --------------------
   スマホメニュー
-------------------- */
#mobile-menu {
  display: none;
}
#mobile-menu nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  padding: 0 16px;
  background-color: #f3f3f2;
}
#mobile-menu nav a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #333;
}
#mobile-menu nav a:visited {
  color: #333;
}
#mobile-menu nav .child {
  padding-left: 16px;
}

/* スマホメニュー - ドロップダウン */
@media (max-width: 768px) {
  .dropdown-content {
    position: static; /* 下に展開 */
    background: none;
    box-shadow: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .dropdown-content.open {
    max-height: 500px; /* 必要な高さより多め */
  }
  .dropdown-content a {
    display: block;
  }
}

/* 開閉アイコン */
.menu-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  display: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* --------------------
   トップページ
-------------------- */
 /* トップページ - 作品一覧 */
.top-series-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
}
.top-series-list .item img {
  width: 100%;
}
@media (max-width: 768px) {
  .top-series-list {
    grid-template-columns: 1fr;
    grid-gap: 1.5rem;
  }
}
/* トップページ - バナー欄 */
.top-bnr {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
}
.top-bnr .item img {
    width: auto;
    max-width: 100%;
}

/* --------------------
   トップページ - スライドショー
-------------------- */
.slideshow-container {
  position: relative;
  overflow: hidden;
  max-height: 600px;
  margin-bottom: 3rem;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  position: relative; /* 表示中は相対配置 */
  z-index: 1;
}
.slide img {
  width: 100%;
  display: block;
}

/* --------------------
   作品ページ
-------------------- */
.mainVisual .title {
  margin-bottom: 1rem;
  text-align: center;
}
.mainVisual .title img {
  height: 125px;
}
.mainVisual .visual img {
  width: 100%;
}
@media (max-width: 768px) {
  .mainVisual .title img {
    height: 100px;
  }
}

/* --------------------
   フッター
-------------------- */
footer {
  background: #f5f5f5;
  padding: 20px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
footer a {
  color: #808080;
  text-decoration: none;
}
footer a:hover {
  color: var(--primary);
}
