/* ============================================================
   HAVE A GOOD MARKET - リニューアル追加スタイル
   （custom-common.css の後に読み込む前提）
   ============================================================ */

/* ---------- ファーストビュー：映像 ---------- */
#main.fv {
  padding: 0 0 40px;
}
#main.fv .main-area {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}
#main.fv .fv-video-wrap {
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
  background-color: #f2f2ef;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
#main.fv .fv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
#main.fv .fv-video-wrap.is-playing .fv-video {
  opacity: 1;
}
/* 静止画フォールバック（従来の main-pc をそのまま使用） */
#main.fv .main-pc {
  background-position: center;
  background-size: cover;
}

@media (max-width: 834px) {
  #main.fv {
    padding: 0;
  }
  #main.fv .fv-video-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 280px;
  }
  /* スマホは「ポスターのみ」設定時、video を隠して背景画像を見せる */
  #main.fv.sp-poster .fv-video {
    display: none;
  }
}

/* アクセシビリティ：動きを減らす設定の人には静止画を見せる */
@media (prefers-reduced-motion: reduce) {
  #main.fv .fv-video {
    display: none;
  }
}

/* ---------- 縦長（9:16）映像の表示 ---------- */
/* PC：全幅の黒帯の中央に、縦長のまま表示（左右は黒） */
#main.fv--portrait .main-area {
  max-width: none;
}
#main.fv--portrait .fv-video-wrap {
  background-color: #000;
  background-size: contain;     /* ポスターも中央に収める */
  height: clamp(560px, 88vh, 920px);
}
#main.fv--portrait .fv-video {
  object-fit: contain;          /* 切らずに全体を表示 */
}
#main.fv--portrait .main-pc {
  background-color: #000;
  background-size: contain;
  height: clamp(560px, 88vh, 920px);
  min-height: 0;
}
/* スマホ：9:16 の画角そのままで全幅。画面より縦長になる場合は画面高に収める */
@media (max-width: 834px) {
  #main.fv--portrait .fv-video-wrap {
    aspect-ratio: 9 / 16;
    height: auto;
    min-height: 0;
    max-height: 100vh;
    max-height: 100svh;
    background-size: cover;
  }
  #main.fv--portrait .fv-video {
    object-fit: cover;          /* 同比率なので余白なく表示。高さが制限された場合は上下を少しトリム */
  }
  #main.fv--portrait .main-pc {
    aspect-ratio: 9 / 16;
    height: auto;
    max-height: 100svh;
    background-size: cover;
  }
}

/* ---------- 音声オン/オフボタン ---------- */
.fv-sound {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .3s;
  -webkit-appearance: none;
  appearance: none;
}
.fv-sound:hover {
  background: rgba(0,0,0,.7);
}
.fv-sound .ic { display: block; }
.fv-sound .ic-sound { display: none; }
.fv-video-wrap.sound-on .fv-sound .ic-muted { display: none; }
.fv-video-wrap.sound-on .fv-sound .ic-sound { display: block; }
@media (max-width: 834px) {
  .fv-sound {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- コンセプト見出しのロゴ差し替え ---------- */
.concept-logo img {
  width: 100%;
  max-width: 420px;
  height: auto;
}
@media (max-width: 834px) {
  .concept-logo img {
    max-width: 300px;
  }
}

/* ---------- ロゴ ---------- */
#fv-logo {
  padding: 20px 0 0;
  text-align: center;
}
#fv-logo .fv-logo img {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  height: auto;
}
@media (max-width: 834px) {
  #fv-logo {
    padding: 30px 0 0;
  }
  #fv-logo .fv-logo img {
    max-width: 220px;
  }
}

/* ---------- ボタンエリア ---------- */
.cta-area {
  padding: 20px 0 80px;
}
.cta-area .cta-item {
  margin: 0 0 40px;
  text-align: center;
}
.cta-area .cta-item:last-child {
  margin-bottom: 0;
}
.cta-area .cv-btn {
  background-color: #00E100;
  color: #1d1d1d;
  padding: 12px 16px;
  border: solid 1px #00E100;
  display: block;
  font-size: 20px;
  line-height: 34px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: .3s all;
}
.cta-area .cv-btn:hover {
  background-color: #FFF;
  color: #000;
}
/* アーカイブボタンは CONTACT と同じ配色（グリーン） */
.cta-area .cta-caption {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 22px;
  color: #404040;
  text-align: center;
}
@media (max-width: 834px) {
  .cta-area {
    padding: 10px 0 60px;
  }
  .cta-area .cv-btn {
    font-size: 17px;
    line-height: 30px;
  }
}

/* ---------- アーカイブ一覧ページ ---------- */
.page-archive #container {
  padding-top: 100px;
}
.archive-page .archive-lead {
  margin: 0 0 40px;
}
.archive-page .archive-lead p {
  padding: 0 0 16px;
}
.archive-page .youtube {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 40px;
}
.archive-page .youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.archive-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.archive-item {
  margin: 0 0 15px;
}
.archive-item .report {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #00E100;
  color: #1d1d1d;
  padding: 10px 14px;
  border: solid 1px #00E100;
  font-size: 16px;
  line-height: 26px;
  font-weight: bold;
  text-decoration: none;
  text-align: left;
  transition: .3s all;
}
.archive-item .report:hover {
  background-color: #FFF;
  color: #000;
}
.archive-item .archive-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  overflow: hidden;
  background: #FFF;
}
.archive-item .archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.archive-item .archive-text {
  display: block;
  flex: 1 1 auto;
}
.archive-item .archive-date {
  display: block;
  font-size: 12px;
  line-height: 18px;
  font-weight: normal;
  letter-spacing: .05em;
}
.archive-item .archive-title {
  display: block;
}
.archive-page .link-area {
  margin: 50px 0 0;
  text-align: right;
}
.archive-page .back-link {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}
@media (max-width: 834px) {
  .page-archive #container {
    padding-top: 80px;
  }
  .archive-item .report {
    font-size: 14px;
    line-height: 22px;
    padding: 10px 12px;
  }
  .archive-item .archive-thumb {
    flex-basis: 72px;
    width: 72px;
    height: 54px;
  }
}

/* ---------- ヘッダーアイコンの色切り替え ----------
   スクロール位置に応じてJSが body に .header-on-dark を付け外しし、
   黒いエリア（FV映像・ステートメント・フッター）の上では白、
   白いエリア（スケジュール等）の上では黒で表示する */
body.renewal #topheader .nav_btn .menu__line {
  background: #1d1d1d;
  transition: background .25s ease;
}
body.renewal.header-on-dark #topheader .nav_btn .menu__line {
  background: #fff;
}
body.renewal #topheader .fix-insta img {
  transition: filter .25s ease;
}
body.renewal.header-on-dark #topheader .fix-insta img {
  filter: brightness(0) invert(1);
}
/* 映像など明暗が混在する背景でも読めるよう、白表示時はうっすら影 */
body.renewal.header-on-dark #topheader .nav_btn,
body.renewal.header-on-dark #topheader .fix-insta {
  filter: drop-shadow(0 0 4px rgba(0,0,0,.35));
}
/* メニュー展開中（黒パネル上）はエリアに関係なく白 */
body.renewal #topheader .nav_btn .menu__line.active {
  background: #fff;
}

/* ============================================================
   モノトーン化（クライアントFB対応）— body.renewal のページのみ適用。
   既存の公開ページ（緑基調）には影響しません。
   ============================================================ */

/* ② ボタン：緑 → 黒（既存の #contact .cv-btn より優先されるようIDを含める） */
body.renewal #contact.cta-area .cv-btn,
body.renewal .cta-area .cv-btn {
  background-color: #1d1d1d;
  border-color: #1d1d1d;
  color: #fff;
}
body.renewal #contact.cta-area .cv-btn:hover,
body.renewal .cta-area .cv-btn:hover {
  background-color: #fff;
  color: #1d1d1d;
}

/* ② フッター：緑 → 黒、文字・ロゴ 黒 → 白 */
body.renewal #footer {
  background-color: #1d1d1d;
}
body.renewal #footer,
body.renewal #footer p,
body.renewal #footer .heading {
  color: #fff;
}
body.renewal #footer .s-logo img {
  filter: brightness(0) invert(1); /* 黒ロゴを白に反転 */
}

/* ハンバーガーメニューのパネルも緑 → 黒（文字白） */
body.renewal #header-sp .gnav {
  background-color: #1d1d1d;
}
body.renewal #header-sp .gnav__menu__item a {
  color: #fff;
}
/* メニュー展開中のバツ印は黒パネル上なので白に */
body.renewal #topheader .nav_btn .menu__line.active {
  background: #fff;
  mix-blend-mode: normal;
}

/* ③ スクロール表示時の緑スイープ → 黒 */
body.renewal .img-animation:before {
  background: #1d1d1d;
}

/* ④ ステートメント：ロゴと同じ黒ブロックで一体表示（映像の黒とも連続） */
body.renewal .statement-block {
  background-color: #1d1d1d;
  margin-top: -40px;           /* FV下の余白を詰めて映像と一体に */
  padding: 70px 0 70px;
}
body.renewal .statement-block .concept-logo img {
  filter: brightness(0) invert(1); /* K100ロゴを白で表示 */
}
body.renewal .statement-block .spe-box,
body.renewal .statement-block p,
body.renewal .statement-block b,
body.renewal .statement-block strong {
  color: #fff;
}
body.renewal .statement-block a {
  color: #fff;
  text-decoration: underline;
}
body.renewal .statement-block p {
  text-align: center;
  padding: 0 0 20px;
}
/* スケジュール等（<hr>以降）：白地・左寄せで差別化 */
body.renewal .schedule-block {
  padding: 60px 0 20px;
}
body.renewal .schedule-block p {
  padding: 0 0 14px;
}
@media (max-width: 834px) {
  body.renewal .statement-block {
    margin-top: 0;
    padding: 50px 0 50px;
  }
}

/* ⑥ タイトル（CONTACT / ARCHIVE ボタン）のフォント：Oswald
   別の書体にしたい場合は下の font-family を差し替えるだけ */
body.renewal #contact.cta-area .cv-btn,
body.renewal .cta-area .cv-btn {
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .14em;
  font-size: 22px;
}

/* ⑥ セクション見出し（h1：MAD GOOOD / 2026 SCHEDULE / ACCESS 等）のフォント */
body.renewal .statement-block h1,
body.renewal .schedule-block h1 {
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.3;
}
body.renewal .statement-block h1 {
  font-size: 34px;
  color: #fff;
  text-align: center;
  margin: 0 0 20px;
}
body.renewal .schedule-block h1 {
  font-size: 26px;
  color: #1d1d1d;
  margin: 40px 0 18px;
  border-bottom: 1px solid #1d1d1d;
  padding-bottom: 8px;
}
body.renewal .schedule-block h1:first-child {
  margin-top: 0;
}
@media (max-width: 834px) {
  body.renewal .statement-block h1 { font-size: 26px; }
  body.renewal .schedule-block h1 { font-size: 21px; }
}


/* ---------- グローバルメニュー：英字表記（Oswald） ---------- */
.gnav__menu--en .gnav__menu__item a {
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: .14em;
}
