body {
  margin: 20px;
  background: #ffffff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

.center {
  text-align: center;
  margin: 0;
  padding: 0;
}

.header-center {
  text-align: center;
}

.logo-img {
  display: block;      /* 下の余白を消す */
  margin: 0 auto;      /* 中央寄せ */
  max-width: 100%;     /* 画面幅超え防止 */
  height: auto;
}

.title {
  font-size: 30px;
  font-family: 'Zen Antique', serif;
  line-height: 1;
  margin: 0;
}

.subtitle {
  font-size: 15px;
  line-height: 0.5;
  color: #6d6b6b;
  margin: 0;
}

/* まず基本はPC用（左揃えなど） */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

/* スマホ版：画面幅600px以下なら中央揃え */
@media screen and (max-width: 440px) {
  nav ul {
    margin-top: 20px; /* 下に下げる */
    justify-content: center; /* 中央揃え */
    flex-wrap: wrap; /* 幅が狭いときは折り返す */
  }
}


h1.title {
  font-family: 'Zen Antique', serif;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
  margin-top: 0;
  color: #000000;
}

h1 {
  margin-top: 0;
  font-size: 30px;
  font-family: 'Zen Antique', serif;
  line-height: 1;
}

h2 {
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
  font-weight: 700;
}

nav a {
  text-decoration: none;   /* 下線を消す */
  color: #6d6b6b;          /* 色を固定 */
  font-family: 'Noto Sans JP', serif;
}

nav a:hover {
  color: rgb(148, 200, 250);  /* ホバー色 */
  text-decoration: none;       /* 下線なし */
  cursor: pointer;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav.breadcrumb {
  font-size: 14px;
  color: #555;
  font-family: 'Noto Sans JP', serif;
}

nav.breadcrumb a {
  text-decoration: none;
  color: #6d6b6b;
  font-family: 'Noto Sans JP', serif;
  margin-right: 6px;
}

nav.breadcrumb a:hover {
  color: rgb(148, 200, 250);
  text-decoration: none;
  cursor: pointer;
}

.breadcrumb {
  margin: 10px 0 30px;
  font-size: 14px;
  color: #6d6b6b;
}

.breadcrumb a {
  color: #6d6b6b;
  text-decoration: none;
  margin-right: 5px;
  font-size: 16px; /* PC向け */
}

@media screen and (max-width: 440px) {
  .breadcrumb a {
    font-size: 18px; /* スマホで少し大きく */
  }
}

.breadcrumb span {
  margin-left: 5px;
}

/* Profile */

.about {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.about p {
  margin-bottom: 1.2em;
}

.signature {
  text-align: right;
  margin-top: 2em;
}

.profile {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px 40px;
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 20px;
}

.profile-photo {
  width: 350px;
  height: auto;
  margin-top: 140px;
  border-radius: 8px;
}

.profile-text {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.profile-text h2 {
  font-size: 24px;
  color: #333333;
  margin-bottom: 1em;
}

.title-small {
  font-size: 15px;
  font-weight: bold;
}

.name-large {
  font-size: 30px;
  font-weight: bold;
}

.profile-text h3 {
  font-size: 20px;
  color: #555555;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.profile-text ul {
  padding-left: 0;
  color: #666666;
  font-size: 12px;
  line-height: 1.4;
  list-style: none;
  margin-left: 0;
}

.profile-text ul li {
  margin-bottom: 0.4em;
}

@media (max-width: 850px) {
  .profile {
    flex-direction: column-reverse;
    align-items: center;
    text-align: flex-start;
    padding: 20px 15px;
  }

  .profile-photo {
    width: max-width;
    margin-top: 15px;
    margin-bottom: 0;
  }
}

/* Home */

.categories {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Noto Sans JP', sans-serif;
}

.category {
  margin-bottom: 40px;
}

.category h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

/* Cards */

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: block;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 100%;
  display: block;
}

.card p {
  padding: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

footer {
  background-color: #ffffff;
  color: #6d6b6b;
  text-align: center;
  font-family: 'Noto Sans JP', serif;
  padding: 20px 0;
  font-size: 14px;
}

/* Video player and carousel */

#video-player-container {
  position: relative;   /* 追加 */
  text-align: center;
  margin-bottom: 25px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9; /* 追加：親コンテナにも縦横比を付けて高さを確保 */
}

#video-player {
  border-radius: 8px;
  box-shadow: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  cursor: pointer;
  border: none;
  z-index: 1;
}

#player-placeholder {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  z-index: 0;
  border-radius: 8px; /* iframeの角丸に合わせる */
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 0 30px 0; /* 余白を追加 */
  overflow-x: auto; /* 横スクロールを有効化 */
  scroll-snap-type: x mandatory; /* スナップ揃え */
  -webkit-overflow-scrolling: touch; /* iOSスムーズスクロール */
}

.carousel-wrapper {
  display: flex;
  gap: 16px; /* カードの間隔をここで管理 */
}

.video-card {
  position: relative;
  flex: 0 0 auto; /* 横スクロール用に固定幅 */
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  filter: grayscale(70%);
  opacity: 0.6;
  transition:
    filter 0.4s ease,
    opacity 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: none;
  background: #fafafa;
  box-sizing: border-box;
  scroll-snap-align: center; /* 中央で止まるように */
}

.video-card.selected {
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: 0 0 15px rgba(100, 100, 100, 0.5);
  z-index: 10;
}


.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
  background-color: transparent;
  border-radius: 12px;
}

.video-info {
  padding: 12px 15px;
}

.video-info h4 {
  margin: 0 0 6px 0;
  font-weight: 700;
  font-size: 18px;
}

.video-info p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.3;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2.8rem;
  color: #666;
  cursor: pointer;
  z-index: 20;
  user-select: none;
  padding: 0 10px;
}

.carousel-button.left {
  left: 0;
}

.carousel-button.right {
  right: 0;
}

@media (max-width: 960px) {
  .carousel-container {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .video-card {
    width: 240px;
    margin: 0 8px;
  }
}

@media (max-width: 440px) {
  .video-card {
    width: 60vw;
    margin: 0 5vw;
  }
}

/* Cast section */

.cast {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.cast h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.cast-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cast-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 280px;
  padding: 15px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cast-card img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  user-select: none;
}

.cast-name {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 18px;
}

.cast-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.3;
}

@media (max-width: 440px) {
  .cast-list {
    flex-direction: column;
    align-items: center;
  }
}

/* Director words */

.director-words {
  max-width: 700px;
  margin: 0 auto;
}

.director-card {
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-direction: row;
}

.director-comment {
  font-size: 15px;
  color: #444;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: justify;
}

.director-comment-text {
  margin-bottom: 20px;
  line-height: 1.5;
}

.director-signature {
  font-weight: 700;
  align-self: flex-end;
}

.director-card img {
  width: 250px;
  height: 300px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 440px) {
  .director-card {
    flex-direction: column;
    text-align: center;
  }
  .director-comment {
    text-align: justify;
    font-size: 14px;
  }
  .director-signature {
    align-self: flex-end;
  }
  .director-card img {
    margin-top: 15px;
  }
}

