/*
Theme Name: OLTANA-006 Child
Version: 1.0.0
Template: oltana-006
Author: CROOVER inc.
Author URI: https://croover.co.jp
*/

/* =============================
   CTA ボタンデザイン
============================= */
.imabase-cta-wrapper {
  margin-top: 24px;
  text-align: center;
  pointer-events: auto;       /* クリック許可 */
  position: relative;
  z-index: 9999;
}

.imabase-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #3ea76a;
  color: #fff;
  border-radius: 32px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: 0.25s;

  pointer-events: auto;       /* クリック許可 */
  position: relative;
  z-index: 9999;
}

.imabase-cta-btn:hover {
  background: #2e8b57;
  transform: translateY(-2px);
}

/* =============================
   Firstview の透明レイヤー対策
============================= */

/* 背景の巨大レイヤーにクリックを吸わせない */
.ol-firstview__inner {
  pointer-events: none;  
}

/* タイトル文字・サブコピーはクリック不要なので自動で pointer-events:none でOK */

/* ただし CTA だけクリックを取り戻す（上で auto にしている） */

.imabase-cta-btn,
.imabase-cta-btn:hover {
    color: #ffffff !important;
    text-shadow: none !important;
}
/* ヘッダー上部の文字色を白に */
.ol-header,
.ol-header * {
    color: #ffffff !important;
    fill: #ffffff !important;
}
@media (max-width: 768px) {
    .ol-firstview__image,
    .ol-firstview__image-inner,
    .ol-firstview__item,
    .ol-splide__custom-zoom {
        background-attachment: scroll !important;
        transform: none !important;
        will-change: auto !important;
        background-position: center center !important;
    }

    /* もし内部で fixed 系の処理が JS でかかっていた時用 */
    .ol-firstview__image-inner video,
    .ol-firstview__image-inner img {
        transform: none !important;
    }
}
/* iOS Chrome / Brave 用：FVの背景ズレ修正 */
@media (max-width: 768px) {
    .ol-firstview__image-inner::before,
    .ol-firstview__image-inner::after,
    .ol-firstview__image::before,
    .ol-firstview__image::after {
        transform: none !important;
        will-change: auto !important;
        background-attachment: scroll !important;
    }

    /* フィルターのズレ防止 */
    .ol-firstview__image-inner,
    .ol-firstview__item,
    .ol-splide__custom-zoom {
        transform: none !important;
        background-position: center !important;
        background-size: cover !important;
        will-change: auto !important;
    }
}
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .ol-firstview__image-inner,
    .ol-firstview__item,
    .ol-firstview__image-inner img {
      transform: none !important;
      animation: none !important;
    }
  }
}
