/**
 * 共通LP専用 Critical Path CSS
 *
 * 目的:
 * WordPress「追加CSS」を共通LPでは停止し、共有ヘッダー/フッター・
 * 言語切替・動画ファサード・レスポンシブ表示に必要な最小限だけを引き継ぐ。
 *
 * 禁止:
 * .article h1〜h6 / .entry-content h1〜h6 / page-id 固有の見出し上書きを追加しない。
 */

/* ---------- 共通LPのレイアウト土台 ---------- */
body.common-lp-template #sidebar,
body.common-lp-template .sidebar,
body.common-lp-template .sidebar-menu-button {
  display: none !important;
}

body.common-lp-template .main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border: 0 !important;
  background: transparent !important;
}

body.common-lp-template .content-in {
  display: block !important;
}

body.common-lp-template .common-lp-root {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ---------- 言語切替 ---------- */
body.common-lp-template .bogo-language-switcher {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1em;
  align-items: center;
}

body.common-lp-template .bogo-language-switcher li {
  display: flex;
  align-items: center;
}

body.common-lp-template .bogo-language-switcher .bogoflags {
  margin-right: .5em;
  display: inline-block;
  width: 20px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
}

body.common-lp-template .bogo-language-switcher .current a {
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- 共通ナビ / フッター ---------- */
body.common-lp-template .navi.cf {
  background: linear-gradient(to top, #fff, #eee) !important;
}

body.common-lp-template .sub-menu > li .caption-wrap {
  background-color: #fae3e1;
  padding-left: 18px;
}

body.common-lp-template .y-b a {
  color: #0066cc !important;
  font-weight: 900;
}

body.common-lp-template .navi-footer-in > .y-b a {
  color: #fff !important;
  font-weight: 900;
}

body.common-lp-template .item-label:hover {
  color: #fff;
  background-color: #cd2f21;
}

body.common-lp-template .navi {
  border-bottom: 8px solid #cd2f21;
  font-weight: 700;
}

body.common-lp-template .current-menu-item .item-label {
  font-weight: 700;
  background-color: #cd2f21;
  color: #fff !important;
}

body.common-lp-template #footer a {
  color: #fff;
  letter-spacing: .1em;
  text-decoration: none;
}

body.common-lp-template #top-social-menu {
  text-align: center;
}

body.common-lp-template .widget-footer-center a {
  padding-left: 7px;
  padding-right: 7px;
}

body.common-lp-template .widget-footer-center a:hover {
  background-color: salmon;
}

body.common-lp-template #navi-footer .menu-footer a,
body.common-lp-template #navi-footer .menu-footer a:link,
body.common-lp-template #navi-footer .menu-footer a:visited,
body.common-lp-template #navi-footer .menu-footer a:hover,
body.common-lp-template #navi-footer .menu-footer a:focus,
body.common-lp-template #navi-footer .menu-footer a:active {
  color: #333 !important;
  -webkit-text-fill-color: #333 !important;
}

body.common-lp-template .go-to-top {
  right: 10px;
  bottom: 100px;
}

/* ---------- YouTubeファサード ---------- */
body.common-lp-template .youtube-facade-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

body.common-lp-template .youtube-facade {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  background-color: #000;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
}

body.common-lp-template .youtube-facade .play-button {
  position: absolute;
  width: 64px;
  height: 64px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('https://drone-fight.org/wp-content/uploads/2025/05/play-btn2.png') no-repeat center center;
  background-size: contain;
  transition: all .3s ease;
}

body.common-lp-template .youtube-facade .play-button:hover {
  filter: drop-shadow(0 0 6px rgba(255,255,255,.8));
  opacity: .95;
  transform: translate(-50%, -50%) scale(1.1);
}

body.common-lp-template .facade-small {
  width: 800px;
  height: 445px;
}

/* ---------- 最小レスポンシブ補助 ---------- */
body.common-lp-template .sp-on,
body.common-lp-template .sp-image {
  display: none;
}

body.common-lp-template .pc-on {
  display: block;
}

body.common-lp-template .pc-image {
  width: 100%;
  height: auto;
}

body.common-lp-template .content-top,
body.common-lp-template .content-bottom {
  margin: 0;
}

@media screen and (max-width: 768px) {
  body.common-lp-template .youtube-facade {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  body.common-lp-template .sp-on {
    display: block;
  }

  body.common-lp-template .pc-on {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  body.common-lp-template .sp-image {
    display: block;
    width: 100% !important;
    height: auto;
  }

  body.common-lp-template .pc-image {
    display: none !important;
  }
}
