@charset "utf-8";
/* ドラマクロス：藤色 × 白 */

:root {
  --white: #ffffff;
  --mist: #f4f0fb;        /* ごく薄い藤 */
  --fuji-light: #c4b4e8;  /* 淡い藤色 */
  --fuji: #b79ddf;        /* 藤色（背景の線と同色） */
  --fuji-deep: #7c5cb8;   /* 文字・ボタン用の濃い藤 */
  --fuji-dark: #4a3578;   /* フッター・メニュー */
  --ink: #2f2745;         /* 本文 */
}

/* 共通ヘッダー・フッターに影響しないよう、html / body / footer / 素の a・img には指定しない。
   このページ専用の領域（main・メニュー）だけに適用する */
#background-wihte main, .menu, .menu-btn {
  font-size: 10px;   /* 旧 body{62.5%} と同じ10px。共通CSSのhtml/body指定に左右されないようpx固定 */
  color: var(--ink);
  line-height: 1.8em;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  text-align: center;
}
/* 共通CSSが p などに直接指定するフォントを打ち消し、明朝体を継承させる */
#dramacross main * { font-family: inherit; }
main img { border: 0; outline: none; }
main a, .menu a { text-decoration: none; transition: all .5s; }
main a:hover, .menu a:hover { opacity: .5; }
main a { color: var(--ink); }
.noto { font-family: "Noto Serif JP", serif; }

main .cf:after { content: ""; clear: both; display: block; }

/* ===== 背景（アニメーション維持） ===== */
#background-wihte {
  position: relative;   /* absoluteだと共通ヘッダーの上に重なりクリックを妨げるため */
  width: 100%;
  overflow-x: hidden;   /* 旧 html, body の overflow-x:hidden の代わり */
  background: url('../img/bg_loop.png') fixed;
}

.Gradation_3 {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -3; pointer-events: none;
  background: linear-gradient(150deg, #ffffff 0%, #dfe0f5 20%, #c4b4e8 40%, #9b77ba 60%, #c4b4e8 78%, #e9e6f7 92%, #ffffff 100%);
  background-size: 300% 300%;
  animation: Grad 10s ease-in-out infinite;
}
@keyframes Grad {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.Lines {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden; z-index: -2; pointer-events: none;
}
.Lines .line {
  position: absolute; top: 50%; left: 50%;
  width: 160vmax; height: 1px;
  background: var(--fuji);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  opacity: 0;
  will-change: transform, opacity;
  animation: lineSweep var(--d, 30s) linear infinite;
  animation-delay: var(--s, 0s);
}
.Lines .line.thick {
  height: 15px;
  background: #c6c8ee;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
@keyframes lineSweep {
  0%   { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-55vmax); opacity: 0; }
  15%  { opacity: .8; }
  85%  { opacity: .8; }
  100% { transform: translate(-50%, -50%) rotate(var(--a)) translateY(55vmax); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .Gradation_3, .Lines .line { animation: none; }
  .Lines .line { opacity: .6; }
}


/* ===== メインビジュアル ===== */
#dramacross h1 { padding-top: 180px; }
#dramacross h1 img { width: 100%; max-width: 520px; height: auto; }

.about h2 { margin-bottom: 30px; }
#dramacross .about p { font-size: 25.6px; line-height: 40px; color: var(--ink); font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; }

/* JINGLE動画の箱（16:9）。動画が入ったら video / iframe が全面に広がる */
.jingle { width: 800px; max-width: 90vw; margin: 60px auto 0; }
.jingle-box {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 25px rgba(124, 92, 184, .2);
  color: var(--fuji-deep);
  font-size: 32px; line-height: 48px; letter-spacing: .3em;
}
.jingle-box video,
.jingle-box iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; object-fit: cover; background: #000;
}

.scroll_wrap { margin: 100px 0; }
.scroll_wrap .scroll { margin-top: 70px; color: var(--fuji-dark); font-size: 25.6px; }
.scroll_wrap .txt { line-height: 32px; padding-bottom: 30px; letter-spacing: .1em; }
.scroll_wrap .arrow01 {
  display: block; width: 30px; height: 30px;
  border-top: solid 1px var(--fuji-dark);
  border-right: solid 1px var(--fuji-dark);
  transform: rotate(135deg);
  margin: -10px auto 0;
}
.fuwa { animation: vertical 1.5s ease-in-out infinite alternate; }
@keyframes vertical { 0% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* ===== 見出し ===== */
main section h2 {
  padding-top: 150px;
  margin: 0 0 100px;
  font-size: 48px;
  line-height: 48px;
  letter-spacing: 3.2px;
  font-weight: normal;
  background-image: linear-gradient(var(--fuji-dark) 60%, var(--fuji-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#mainimg .about h2 { padding-top: 0; margin-bottom: 30px; }

/* ===== ドラマメイン画像スライダー（Swiper） ===== */
#new { padding-top: 40px; }
.slider {
  --w: min(36vw, 960px);
  --swiper-theme-color: var(--fuji-deep);
  --swiper-navigation-size: 45px;
  width: 100%;
  margin-bottom: 100px;
}
.slider .swiper { overflow: hidden; padding: 0 0 45px; }
.slider .swiper-slide { width: var(--w); }
.slider .swiper-slide a {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, .85);
}
.slider .swiper-slide a:hover { opacity: 1; }
.slider .swiper-slide img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
/* 中央以外は暗くする */
.slider .swiper-slide a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(47, 39, 69, .6);
  transition: opacity .6s;
}
.slider .swiper-slide-active a::after { opacity: 0; }
/* 矢印：中央画像の左右の端に置く */
.slider .swiper-button-prev,
.slider .swiper-button-next { top: calc((var(--w) * 2 / 3) / 2); margin-top: -25px; color: #fff; filter: drop-shadow(0 0 5px rgba(47, 39, 69, .6)); }
.slider .swiper-button-prev { left: calc(50% - var(--w) / 2 + 10px); }
.slider .swiper-button-next { right: auto; left: calc(50% + var(--w) / 2 - 10px - 30px); }
/* ページ送り：四角いドット */
.slider .swiper-pagination { bottom: 10px; }
.slider .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 5px !important; border-radius: 0; background: var(--fuji-deep); opacity: .3; }
.slider .swiper-pagination-bullet-active { opacity: 1; }
.slider.single .swiper-button-prev,
.slider.single .swiper-button-next,
.slider.single .swiper-pagination { display: none; }

/* ===== 放送中ドラマ ===== */
#new article.box {
  display: inline-block;
  box-sizing: border-box;
  width: 1100px; max-width: 100%;
  margin: 0 auto 50px;
  padding: 40px;
  background: rgba(255, 255, 255, .85);
  border-top: 3px solid var(--fuji);
  box-shadow: 0 0 25px rgba(124, 92, 184, .2);
  color: var(--ink);
}
#new article.box dl { display: flex; justify-content: space-between; }
#new article.box dt { width: 30%; padding-right: 40px; text-align: center; }
#new article.box dt img { max-width: 100%; }
#new article.box dd { width: 65%; text-align: left; font-size: 14.4px; }
#new article.box span.start { font-size: 19.2px; line-height: 19.2px; color: var(--fuji-deep); }
#new article.box h3 { font-size: 32px; line-height: 32px; font-weight: normal; margin: 10px 0 15px; }
#new article.box span.date { font-size: 24px; line-height: 24px; }
#new article.box p { margin-top: 30px; line-height: 32px; font-size: 16px; }

/* 公式サイト・SNSボタン */
div.btn-edge { position: relative; max-width: 70%; margin-left: 20px; z-index: 2; transition: opacity .3s; }
div.btn-edge + div.btn-edge { margin-top: 12px; }
#new article.box p + div.btn-edge { margin-top: 24px; }
div.btn-edge::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--fuji-deep);
  transform: skew(-35deg);
}
div.btn-edge a { display: block; position: relative; z-index: 3; color: var(--white); }
div.btn-edge a:hover { opacity: 1; }
div.btn-edge:hover { opacity: .6; }
/* 本文用の #new article.box p（margin-top:30px 等）がボタン内のpに効かないよう、同じ強さで上書き */
#new article.box div.btn-edge p {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 3;
  width: auto; margin: 0; padding: 12px 0;
  font-size: 18px; line-height: 1.4; letter-spacing: .1em;
  color: var(--white);
}
div.btn-edge p .svg { width: 18px; height: 14px; margin-left: 10px; flex: none; }

/* ===== 過去放送一覧ボタン ===== */
/* 幅はドラマのボックス（#new article.box）と同じ */
#archive-link { box-sizing: border-box; width: 1100px; max-width: 100%; margin: 80px auto 0; }
#archive-link p.lead { margin-bottom: 20px; font-size: 20px; line-height: 1.8; letter-spacing: .1em; color: var(--ink); }
#archive-link div.btn-edge { width: 100%; max-width: none; margin: 0 auto; }
/* 縁・文字＝藤色、中＝白。ホバーで色を反転 */
#archive-link div.btn-edge::before {
  transform: none;   /* 四角いボタン */
  box-sizing: border-box;
  background: var(--white);
  border: 2px solid var(--fuji-deep);
  transition: background-color .3s;
}
#archive-link div.btn-edge a { color: var(--fuji-deep); transition: color .3s; }
#archive-link div.btn-edge:hover { opacity: 1; }
#archive-link div.btn-edge:hover::before { background: var(--fuji-deep); }
#archive-link div.btn-edge:hover a { color: var(--white); }
#archive-link div.btn-edge p {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 3;
  width: auto; margin: 0; padding: 22px 0;
  font-size: 20px; line-height: 1.4; letter-spacing: .1em;
  color: inherit;
}

/* ===== SNS ===== */
#dramacross main > small { display: block; margin: 20px auto; font-size: 19.2px; color: var(--ink); }
/* TikTokバナー：放送中ドラマのboxと同じ横幅 */
#sns .bnr_sns { box-sizing: border-box; width: 900px; max-width: 100%; margin: 0 auto; }
#sns .bnr_sns a { display: block; }
#sns .bnr_sns img { display: block; width: 100%; height: auto; }
#sns { margin-bottom: 100px; }

/* ===== 過去放送一覧（bn.html 用） ===== */
#old .box { box-sizing: border-box; width: 1100px; max-width: 100%; margin: 0 auto; color: var(--ink); }
#old ul { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 32px; margin-top: -20px; }
#old li { list-style: none; background: rgba(255, 255, 255, .8); box-shadow: 0 0 25px rgba(124, 92, 184, .2); padding: 40px; letter-spacing: 3.2px; }
#old a { margin: 20px 0 0; padding: 0 0 10px; width: 48.5%; }

/* ===== メニュー ===== */
.menu-block { height: 0; }
.menu-btn {
  position: fixed; top: 150px; right: 10px; z-index: 10;
  width: 80px; height: 80px; line-height: 80px;
  font-size: 14px; text-align: center; cursor: pointer;
  background: rgba(124, 92, 184, .9);
  transition: all .5s;
}

/* MENUボタン：中身(span)は使わず、文字を自前で描く。共通CSS由来の縦線などを出さない */
#js__btn {
  background-image: none !important;
  border: 0 !important;
  border-image: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  overflow: hidden;
}
#js__btn > *,
#js__btn::before { display: none !important; content: none !important; }
#js__btn::after {
  content: "MENU";
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .2em;
  text-indent: .2em;
}
.side-open #js__btn::after { content: "CLOSE"; }

.menu {
  position: fixed; display: table; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(74, 53, 120, .95);
  transition: all .5s; visibility: hidden; opacity: 0;
}
#js__nav { z-index: 5; }
.side-open .menu { visibility: visible; opacity: 1; cursor: pointer; }
.menu ul { display: table-cell; vertical-align: middle; }
.menu li { width: 300px; margin: 0 auto; text-align: center; opacity: 0; }
.side-open .menu li { opacity: 1; }
.side-open .menu li:nth-child(1) { transition: opacity 1s ease .5s; }
.side-open .menu li:nth-child(2) { transition: opacity 1s ease .6s; }
.side-open .menu li:nth-child(3) { transition: opacity 1s ease .7s; }
.side-open .menu li:nth-child(4) { transition: opacity 1s ease .8s; }
.menu li a { display: block; height: 80px; line-height: 80px; font-size: 3em; font-family: "Noto Serif JP", serif; color: var(--white); }
.menu li a:hover { color: var(--fuji-light); opacity: 1; }

/* ===== トップに戻るボタン ===== */
.pagetop {
  position: fixed; right: 20px; bottom: 70px; z-index: 4;
  width: 55px; height: 55px;
  background: rgba(124, 92, 184, .9);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s, background-color .3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; }
.pagetop.is-show:hover { opacity: 1; background: var(--fuji-dark); }
.pagetop::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 15px; height: 15px;
  border-top: 2px solid var(--white);
  border-left: 2px solid var(--white);
  transform: translate(-50%, -30%) rotate(45deg);
}

/* ===== スマホ ===== */
@media screen and (max-width: 900px), print {
  /* メインビジュアル */
  #dramacross h1 { padding-top: 110px; }
  #dramacross h1 img { width: 70%; max-width: 320px; margin: 0 auto; }
  #mainimg .about h2 { font-size: 20px; line-height: 1.6; letter-spacing: .1em; margin-bottom: 15px; }
  #dramacross .about p { width: 90vw; margin: 0 auto; font-size: 13.5px; line-height: 25px; }
  .scroll_wrap { margin: 60px 0 0; }

  /* JINGLE動画 */
  .jingle { width: 90vw; max-width: none; margin-top: 40px; }
  .jingle-box { font-size: 14px; line-height: 25px; letter-spacing: .2em; }

  /* 見出し */
  main section h2 { padding-top: 80px; margin-bottom: 40px; font-size: 25px; line-height: 1.4; letter-spacing: .1em; }

  /* スライダー（そのまま） */
  .slider { --w: 80vw; }
  .slider .swiper-button-prev, .slider .swiper-button-next { display: none; }

  /* 放送中ドラマ */
  #new { padding-top: 20px; }
  #new article.box { width: 90vw; margin-bottom: 30px; padding: 25px 15px; }
  #new article.box dl { display: block; }
  #new article.box dt { width: 100%; margin-bottom: 25px; padding-right: 0; }
  #new article.box dd { width: 100%; font-size: 14px; }
  #new article.box span.start { font-size: 14px; line-height: 20px; }
  #new article.box h3 { margin: 5px 0 10px; font-size: 20px; line-height: 1.4; }
  #new article.box span.date { font-size: 14px; line-height: 20px; }
  #new article.box p { margin-top: 15px; font-size: 14px; line-height: 25px; }

  /* 公式サイト・SNSボタン */
  div.btn-edge { width: 90%; margin: 0 auto; }
  div.btn-edge + div.btn-edge { margin-top: 10px; }
  #new article.box div.btn-edge:first-of-type { margin: 20px auto; }
  #new article.box div.btn-edge p { width: 100%; max-width: 200px; margin: 0 auto; padding: 10px 0; font-size: 14px; line-height: 25px; text-align: center;}
  div.btn-edge p .svg { width: 20px; height: 15px; }

  /* 過去放送一覧ボタン */
  #archive-link { width: 90vw; margin-top: 50px; }
  #archive-link p.lead { font-size: 14px; margin-bottom: 15px; }
  #archive-link div.btn-edge p { font-size: 16px; }

  /* TikTok */
  #dramacross main > small { width: 90vw; margin: 20px auto; font-size: 12px; line-height: 20px; }
  #sns .bnr_sns { width: 90vw; }

  /* 過去放送一覧 */
  #old .box { width: 90vw; }
  #old ul { display: block; margin-top: 0; font-size: 14px; }
  #old li { margin-bottom: 15px; padding: 20px 15px; letter-spacing: 1.6px; }
  #old a { display: block; width: 100%; margin: 0; padding: 0; }

  /* トップに戻る */
  .pagetop { right: 10px; bottom: 80px; width: 45px; height: 45px; }

  /* メニュー */
  .menu-btn { top: 140px; right: 10px; width: 60px; height: 60px; line-height: 60px; font-size: 11px; }
  #js__btn::after { letter-spacing: .08em; text-indent: .08em; }
  .menu li { width: 80vw; }
  .menu li a { height: 80px; line-height: 65px; font-size: 20px; }
}

/* ===== タブレット（601〜900px）：スマホ設定より文字を大きく ===== */
@media screen and (min-width: 601px) and (max-width: 900px) {
  #dramacross h1 img { max-width: 420px; }
  #mainimg .about h2 { font-size: 30px; }
  #dramacross .about p { font-size: 20px; line-height: 35px; }

  .jingle-box { font-size: 20px; line-height: 30px; }

  main section h2 { font-size: 30px; }

  #new article.box { padding: 30px; }
  #new article.box dd { font-size: 20px; }
  #new article.box span.start { font-size: 20px; line-height: 25px; }
  #new article.box h3 { font-size: 30px; }
  #new article.box span.date { font-size: 20px; line-height: 30px; }
  #new article.box p { font-size: 20px; line-height: 35px; }

  div.btn-edge { width: 90%; }
  #new article.box div.btn-edge p { max-width: 240px; padding: 10px 0; font-size: 20px; line-height: 30px; }
  div.btn-edge p .svg { width: 20px; height: 15px; }

  #dramacross main > small { font-size: 16px; line-height: 20px; }

  #old ul { font-size: 20px; }
  #old li { padding: 30px 25px; }

  .menu li a { font-size: 25px; }
}