@charset "utf-8";

/* =====================
   RESET / BASE
===================== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #333;
  line-height: 1.6;
  letter-spacing: 1.2px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: underline; }
.container { max-width: 1440px; margin: 0 auto; }

.sp-br { display: none; }
.pc-br { display: inline; }

@media (max-width: 768px) {
  .sp-br { display: inline; }
  .pc-br { display: none; }
  body { font-size: 0.8rem; }
}

/* =====================
   HEADER
===================== */
.header { height: 120px; }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 120px;
  padding: 0;
}
.logo { width: 22%; padding: 30px 20px; display: flex; align-items: center; }
.logo img { width: 100%; max-width: 240px; }

.navi { flex: 1; display: flex; justify-content: center; align-items: center; }
.navi-items { display: flex; align-items: center; gap: 40px; }
.navi-items a { text-decoration: none; }
.navi-items img { transition: opacity 0.3s; cursor: pointer; }
.navi-items img:hover { opacity: 0.6; }
.nav-line { width: 1px; height: 40px; background: #e29500; }

.hamburger {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background: #333; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* SP MENU */
.sp-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: #fff; z-index: 1000;
}
.sp-menu-inner { padding: 40px 10%; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.sp-close {
  position: absolute; top: 20px; right: 20px; width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
}
.sp-close::before, .sp-close::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: #333;
}
.sp-close::before { transform: translateY(-50%) rotate(45deg); }
.sp-close::after { transform: translateY(-50%) rotate(-45deg); }
.sp-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 900; }

@media (max-width: 768px) {
  .header, .header-inner { height: 60px; }
  .logo { width: 45%; }
  .navi { display: none; }
  .hamburger { display: block; }
}

/* =====================
   MV
===================== */
.mv { 
	max-width: 1440px;
	margin: 0 auto;
	position: relative;
}

.mv-credit {
  position: absolute;
  left: 20px;          /* 画像の左端からの距離 */
  bottom: 15px;        /* 画像の下端からの距離 */
  background-color: rgba(255, 255, 255, 0.7); /* 白半透明の背景 */
  color: #333;         /* 黒字（読みやすさを考慮した濃いグレー） */
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 2px;
  z-index: 20;
  line-height: 1;
  letter-spacing: 0.05em;
  pointer-events: none; /* 下の画像への干渉を防ぐ */
}

@media (max-width: 768px) {
  .mv-credit {
    left: 5px;
    bottom: 5px;
    font-size: 10px;   /* スマホ時は一回り小さく */
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.85); /* スマホは視認性優先で不透明度を上げる */
  }
}

/* =====================
   ABOUT
===================== */
.about-text { padding: 70px 20% 0; }
.about-text img + img { margin-top: 20px; }
.about-movie { padding: 20px 140px; display: flex; gap: 20px; }
.movie-box { flex: 1; }
.movie-title {
  background: #e29500;
  color: #fff;
  border-radius: 6px;
  padding: 12px 15px; /* 上下左右の余白を微増 */
  margin-bottom: 12px;
  text-align: center;
  font-size: 24px;     /* 16pxから24pxへ拡大 */
  font-weight: bold;   /* 視認性確保のため太字を明示 */
  line-height: 1.4;
}

/* 柔整側の色指定は維持 */
.movie-box:nth-of-type(2) .movie-title {
  background: #3cb5ff;
}

@media (max-width: 768px) {
  .about-text { padding: 30px 10px 50px; }
  .about-movie { padding: 0 10px; flex-direction: column; gap: 40px; }
  .movie-title {
    padding: 15px 10px;
    border-radius: 12px; /* スマホ時の過剰な角丸を抑制（20px→12px） */
    font-size: 20px;     /* モバイル端末の幅に合わせて調整 */
  }
}

/* =====================
   AHAKI & JUSEI SECTION
===================== */
#ahaki-jusei { overflow: hidden; padding: 80px 0; }
.flex-wrapper { display: flex; gap: 10px; padding: 0 120px; }

.ahaki-box, .jusei-box { position: relative; flex: 1; background-color: #FFF; display: flex; flex-direction: column; margin-bottom: 100px; }
.ahaki-inner, .jusei-inner { margin: -80px auto; padding: 100px 30px 50px; width: 95%; flex-grow: 1; }
.ahaki-inner { background-color: #fcf4e7; }
.jusei-inner { background-color: #cceaf7; }

.img-ttl { width: 100%; height: auto; z-index: 10; }
.img-chara01, .img-chara02, .img-narrator01, .img-narrator02, .img-chara-narrator { position: absolute; z-index: 15; pointer-events: none; }
.img-chara01 { top: 82%; left: -20px; width: 110px; }
.img-chara02 { top: 82%; right: -20px; width: 110px; }
.img-narrator01 { bottom: -120px; right: 10px; width: 140px; }
.img-narrator02 { bottom: -120px; left: -10px; width: 140px; }
.img-chara-narrator { display: none; }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.last-video { grid-column: 1 / 3; justify-self: center; width: calc(50% - 10px); }
.video-ttl { font-size: 1.2rem; font-weight: bold; margin-bottom: 8px; text-align: center; }
.ahaki-inner .video-ttl { color: #E29500; }
.jusei-inner .video-ttl { color: #3DB5FF; }

@media (max-width: 768px) {
  .flex-wrapper { flex-direction: column; padding: 0 30px; gap: 100px; }
  .ahaki-inner, .jusei-inner { padding: 60px 20px 100px; }
  .video-ttl { font-size: 20px; }
  .img-chara01, .img-chara02, .img-narrator01, .img-narrator02 { display: none; }
  .img-chara-narrator { display: block; bottom: -110px; left: 50%; transform: translateX(-50%); width: 100%; }
  .video-grid { grid-template-columns: 1fr; }
  .last-video { grid-column: auto; width: 100%; }
}

/* =====================
   YOUTUBE THUMBNAIL & PLAY BUTTON
===================== */
.iframe-wrap { position: relative; aspect-ratio: 16 / 9; width: 100%; background-color: #000; overflow: hidden; }
.iframe-wrap.is-image a { display: block; width: 100%; height: 100%; text-decoration: none; }
.iframe-wrap img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.iframe-wrap:hover img { opacity: 0.8; }

/* 再生ボタン基本（ABOUTサイズ） */
.play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; background-color: rgba(33, 33, 33, 0.8);
  border-radius: 12px; transition: all 0.3s ease; z-index: 2;
}
.play-button::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%);
  border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff;
}
.iframe-wrap:hover .play-button { background-color: #ff0000; transform: translate(-50%, -50%) scale(1.1); }

/* PC用：グリッド内は小さく表示 */
.ahaki-box .play-button, .jusei-box .play-button { width: 36px; height: 26px; border-radius: 6px; }
.ahaki-box .play-button::after, .jusei-box .play-button::after { border-width: 5px 0 5px 9px; }

/* スマホ用：グリッド内もABOUTと同じサイズに拡大 */
@media (max-width: 768px) {
  .ahaki-box .play-button, .jusei-box .play-button {
    width: 68px; height: 48px; border-radius: 12px; background-color: rgba(255, 0, 0, 0.9);
  }
  .ahaki-box .play-button::after, .jusei-box .play-button::after { border-width: 10px 0 10px 18px; }
}

/* =====================
   GUIDELINE
===================== */
#guideline { color: #ff7777; margin-top: 100px; }
.guideline-inner { padding: 0 10%; }

/* 見出しエリア：リンク自体にスタイルを適用 */
.guideline-ttl { 
  margin: 0 12% 10px; 
}
.guideline-ttl a { 
  display: block;
  text-decoration: none; 
  background: #ff7777; 
  color: #fff;
  border: 2px solid #ff7777; /* 地色と同色の罫線 */
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}
.guideline-ttl h2 { padding: 10px 0; font-size: 1.5rem; }

/* マウスオーバー・フォーカス時の挙動 */
.guideline-ttl a:hover,
.guideline-ttl a:focus {
  background-color: #fff; /* 地色が白に */
  color: #ff7777;        /* 文字色が#ff7777に */
  outline: none;         /* 標準の輪郭線を消し、背景変化で視認性を確保 */
}

.guideline-body { font-size: 15px; font-weight: bold; margin: 0 8% 60px; text-align: center; line-height: 2; }
.guideline-link { background: #fcf4e7; padding: 20px; width: 100%; display: flex; justify-content: space-between; margin-bottom: 60px; }

.guideline-btn {
  background: #fff; border: 2px solid #E29500; border-radius: 20px; color: #E29500;
  padding: 20px; display: flex; align-items: center; text-decoration: none; width: 29%;
  transition: all 0.3s ease;
}
.guideline-btn .icon {
  background: #E29500; color: #fff; border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0;
  transition: all 0.3s ease;
}
.guideline-btn .text span { display: block; font-size: 16px; font-weight: bold; line-height: 1.2; }
.guideline-btn:hover { background: #E29500; color: #fff; }
.guideline-btn:hover .icon { background: #fff; color: #E29500; }

@media (max-width: 768px) {
  .guideline-ttl { margin: 0 20px; }
  .guideline-ttl a { padding: 2px 20px; } /* スマホ時の余白調整 */
  .guideline-body { font-size: 14px; text-align: left;}
  .guideline-link { flex-direction: column; gap: 30px; }
  .guideline-btn { width: 100%; }
}
/* =====================
   YOUTUBE THUMBNAIL & IFRAME
===================== */
.iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: #000;
  overflow: hidden;
}

/* 追記：iframeを親要素いっぱいに広げる設定 */
.iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-wrap.is-image a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
/* 以下、既存のスタイルを維持 */

/* =====================
   CHARACTER
===================== */
.character-inner { width: 80%; margin: 0 auto; display: flex; align-items: center; gap: 40px; justify-content: center; }
.character-image { flex: 0 0 40%; padding-left: 5%; }
.character-text { flex: 0 0 50%; }
.character-title { display: inline-block; font-size: 12px; background: #ff7777; color: #fff; border-radius: 12px; padding: 4px 16px; margin-bottom: 12px; }
.character-body { color: #ff7777; font-size: 14px; line-height: 1.6; font-weight: bold; }

@media (max-width: 768px) {
  .character-inner { width: 100%; flex-direction: column; text-align: center; padding: 0 10px; }
  .character-text { width: 100%; }
  .character-image { width: 60%; padding: 0 15% 0 0; }
}

/* =====================
   FOOTER
===================== */
#footer { padding: 100px 20px 40px; text-align: center; }
.footer-logo img { width: 240px; display: inline-block; margin-bottom: 10px; }
.footer-text { color: #000; font-size: 12px; line-height: 1.6; margin-bottom: 50px; }

@media (max-width: 768px) {
  .footer-logo img { width: 90px; }
  .footer-text { font-size: 10px; }
}

/* =====================
   PAGE TOP
===================== */
#pagetop {
  position: fixed; right: 20px; bottom: 20px; width: 80px; height: 80px;
  background: #FF9800; border-radius: 12px; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 1000;
}
.pagetop-icon { position: relative; width: 18px; height: 10px; }
.pagetop-icon::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px;
  border-top: 3px solid #fff; border-left: 3px solid #fff; transform: translateX(-50%) rotate(45deg);
}
.pagetop-text { color: #fff; font-size: 16px; line-height: 1; }
#pagetop:hover { opacity: 0.85; }

@media (max-width: 768px) {
  #pagetop { width: 70px; height: 70px; right: 15px; bottom: 15px; }
  .pagetop-text { font-size: 10px; }
}