/* 基本リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

li{
	list-style:none;
}

ul{
	padding-left:0;
}

/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* ヒーローセクション */
.hero {
  background-image: url('https://source.unsplash.com/1600x900/?abstract');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 160px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
}

/*video*/
.video{
  width: 100%;
  height: 585px;
  background: url(images/Black.png) no-repeat center/cover;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
}

.video::after{
  content: '';
  width: 1600px;
  height: 900px;
  background-color: #10394b;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  opacity: .3;
}

.video video{
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

/*scroll*/
/* スクロールダウンの位置 */
.scroll {
  position: absolute;
  right: 50%;
  bottom: 30%;
  writing-mode: vertical-rl;
}
/* 線のアニメーション部分 */
.scroll::before {
  animation: scroll 2s infinite;
  background-color: #ffffff;
  bottom: -115px;
  content: "";
  height: 100px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  width: 1px;
}
/* 線のアニメーション */
@keyframes scroll {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}


/* セクション共通 */
.section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Works 横スクロール */
.works-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.work-card {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.work-card img {
  width: 100%;
  height: auto;
  display: block;
}

.work-card p {
  padding: 10px;
  font-size: 0.95rem;
}

/* Contact セクション */
.socials {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.socials a {
  background-color: #eee;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.socials a:hover {
  background-color: #ccc;
}

/* フッター */
footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: #777;
  background-color: #fafafa;
}

/* メンバーグリッド */
.member-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.member-image {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.member-image img {
  border-radius: 100%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}

.member-image:hover {
  transform: scale(1.05);
}

/* モーダル全体 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
	inset: 0;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* モーダル中身 */
.modal-content {
  display: flex;
  width: 45%;
  max-width: 900px;
position: absolute;
  top: 10%;
  left: 25%;
  transform: translate(-50%, -50%); /* 中央に固定 */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  animation: slideInModal 0.4s ease forwards;
}

/* 左半分 */
.modal-left {
  width: 50%;
  overflow: hidden;
  animation: fadeInLeft 0.6s ease-out;
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右半分 */
.modal-right {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

/* 詳細ボタン */
.detail-button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}
.detail-button:hover {
  background: #333;
}

/* アニメーション */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInModal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .modal-content {
    flex-direction: row; /* 横並びを維持 */
    width: 95%;
    max-width: 600px;
    padding: 16px;
    transform: scale(0.95);
    margin: auto; /* ← 中央に配置 */
    position: relative; /* ← 位置調整に必要 */
    left: 0;
    right: 0;
  }

  .modal-left {
    width: 45%;
  }

  .modal-left img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .modal-right {
    width: 55%;
    padding: 10px;
  }

  .modal-right h3 {
    font-size: 18px;
  }

  .modal-right h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .modal-right p {
    font-size: 13px;
  }

  .detail-button {
    font-size: 13px;
    padding: 6px 12px;
  }

  .modal-close {
    top: 10px;
    right: 16px;
    font-size: 28px;
  }
}




/* swiper */
    .swiper-container{
        width:100%;
		position:relative;
		margin:auto
    }

	.swiper{
		width:100%
	}


    .swiper img{
        width: 90%;
    }

	.swiper-pagination-bullets.swiper-pagenation-horizontal{
	 bottom:-40px;
}

/* あらすじセクション全体 */
.episode-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  letter-spacing: 1px;
}

/* 各エピソードブロック */
.episode-block {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}

/* 交互に反転（画像とテキストの位置入れ替え） */
.episode-block.reverse {
  flex-direction: row-reverse;
}

/* 画像部分 */
.episode-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* テキスト部分 */
.episode-text {
  flex: 1;
}

.episode-text h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #FF5659;
}

.episode-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .episode-block,
  .episode-block.reverse {
    flex-direction: column;
    gap: 20px;
  }

  .episode-text h3 {
    text-align: center;
  }

  .episode-text p {
    text-align: center;
  }
}

/* エピソードごとの白い箱（カード） */
.episode-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
  padding: 30px;
  transition: transform 0.3s ease;
}

.episode-card:hover {
  transform: translateY(-4px);
}

/* 既存の .episode-block, .episode-image, .episode-text はそのままでOK */

.FRIENDCARD-Alto {
  flex: 1;
}

.FRIENDCARD-Alto h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #FF5659;
}


.FRIENDCARD-Rikka {
  flex: 1;
}

.FRIENDCARD-Rikka h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #45F6C1;
}
