/*
 Theme Name: Xeory Extension Child
 Template: xeory_extension
 Version: 1.0.0
*/
/* 親テーマのヒーロー背景を無効化（クラス名は広めに潰す） */
#main_visual,
.main-visual,
.p-mainVisual,
.l-hero,
.c-hero {
  background: none !important;
  background-image: none !important;
}

/* スライダー領域 */
.xeory-hero-slider {
  position: relative;
  margin: 0;
  padding: 0;
}
.xeory-hero-slider__inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* CLS対策：読み込み直後の最低高さ（サイトに合わせて調整） */
.xeory-hero-slider .n2-ss-slider,
.xeory-hero-slider .n2-ss-loading {
  min-height: 420px;
}

/* 既存テキストのオーバーレイ（必要な場合のみ） */
.xeory-hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  pointer-events: none;
}
.xeory-hero-overlay h2 {
    color: #0062cb;
    margin: 0 0 .5rem;
    font-size: clamp(22px, 4vw, 38px);
    line-height: 1.3;
    text-shadow: 0 2px 3px rgb(245 245 245);
    font-weight: bold;
}
.xeory-hero-overlay p {
    color: #ffffff;
    margin: 0;
    font-size: clamp(14px, 2.6vw, 18px);
    text-shadow: 0 1px 2px rgb(0 0 0);
    font-weight: bold;
}

/* #header {
    background-color: #ffffff;
} */

/* ハンバーガーメニューボタンの基本スタイル */
#header-nav-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  #header-nav-btn a {
    display: block;
    text-align: center;
    font-size: 24px;
    padding: 10px 12px;
    line-height: 1;
    background: #3b4552;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  
  #header-nav-btn a:hover {
    background: #2a3138;
  }
  
  /* デスクトップ用 - 必要に応じて表示 */
  @media screen and (min-width: 768px) {
    #header-nav-btn {
      /* display: block;*/ /* デスクトップでも表示したい場合 */
      display: none;  /* デスクトップでは非表示にしたい場合はこちらを使用 */
    }
  }
  
  /* モバイル用 */
  @media screen and (max-width: 767px) {
    #header-nav-btn {
      display: block;
      /* position: fixed; */
      top: 20px;
      right: 3px;
      width: auto;
      margin: 0;
      z-index: 1001;
    }
    
    #header-nav-btn a {
      display: block;
      text-align: center;
      font-size: 20px;
      padding: 8px 10px;
      line-height: 1.2;
      background: #3b4552;
      color: #ffffff;
      width: auto;
      min-width: 40px;
      border-radius: 4px;
    }
  }
  
  /* ヘッダーのwrapクラスに相対位置を設定 */
  #header .wrap {
    position: relative;
  }
  
  .clearfix:after {
    content: "";
    display: block;
    clear: both;
  }

  @media screen and (max-width: 767px) {
        #gnav-sp {
            top: unset!important;
        }
    }

    #content {
        padding: 0;
    }

  /* フローティングボタンのスタイル */
  .floating-contact {
      position: fixed;
      z-index: 9999;
  }

  /* 初期状態は非表示 */
  .floating-contact {
      display: none;
      opacity: 0;
      transition: opacity 0.3s ease;
  }

  /* 表示状態 */
  .floating-contact.show {
      display: flex;
      opacity: 1;
  }

  /* PC版のスタイル */
  @media screen and (min-width: 768px) {
      .floating-contact {
          bottom: 30px;
          right: 30px;
          flex-direction: column;
          gap: 15px;
      }

      .floating-contact .floating-btn {
          display: flex;
          align-items: center;
          padding: 12px 20px;
          border-radius: 50px;
          text-decoration: none;
          font-weight: bold;
          font-size: 14px;
          box-shadow: 0 4px 20px rgba(0,0,0,0.15);
          transition: all 0.3s ease;
          white-space: nowrap;
      }

      .floating-contact .floating-btn:hover {
          transform: translateY(-2px);
          box-shadow: 0 6px 25px rgba(0,0,0,0.2);
      }

      .floating-contact .floating-btn i {
          margin-right: 8px;
          font-size: 16px;
      }

      .floating-contact .floating-btn.phone {
          background: linear-gradient(135deg, #ff9800, #f57c00);
          color: white;
      }

      .floating-contact .floating-btn.contact {
          background: linear-gradient(135deg, #2196f3, #1976d2);
          color: white;
      }

      .floating-contact .floating-btn.phone:hover {
          background: linear-gradient(135deg, #f57c00, #e65100);
      }

      .floating-contact .floating-btn.contact:hover {
          background: linear-gradient(135deg, #1976d2, #1565c0);
      }
  }

  /* スマホ版のスタイル */
  @media screen and (max-width: 767px) {
      .floating-contact {
          bottom: 0;
          left: 0;
          width: 100%;
          display: flex;
          background: white;
          box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
      }

      .floating-contact .floating-btn {
          flex: 1;
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 16px 10px;
          text-decoration: none;
          font-weight: bold;
          font-size: 14px;
          color: white;
          transition: all 0.3s ease;
          position: relative;
      }

      .floating-contact .floating-btn::after {
          content: '';
          position: absolute;
          top: 0;
          bottom: 0;
          right: 0;
          width: 1px;
          background: rgba(255,255,255,0.2);
      }

      .floating-contact .floating-btn:last-child::after {
          display: none;
      }

      .floating-contact .floating-btn i {
          margin-right: 6px;
          font-size: 16px;
      }

      .floating-contact .floating-btn.phone {
          background: linear-gradient(135deg, #ff9800, #f57c00);
      }

      .floating-contact .floating-btn.contact {
          background: linear-gradient(135deg, #2196f3, #1976d2);
      }

      .floating-contact .floating-btn:active {
          transform: scale(0.98);
      }

      /* スマホ版でのコンテンツ下部余白調整 */
      body {
          padding-bottom: 70px;
      }

      .home #front-contents .c_number {
            padding: 10px 12px 8px!important;
        }
    .home #front-contents .c_box_inner {
        padding-bottom: 3px!important;
    }
    .home #front-contents .c_text p {
        margin-bottom: 25px!important;
    }
  }

  /* アニメーション */
  @keyframes slideInUp {
      from {
          transform: translateY(100%);
          opacity: 0;
      }
      to {
          transform: translateY(0);
          opacity: 1;
      }
  }

  @keyframes slideInRight {
      from {
          transform: translateX(100%);
          opacity: 0;
      }
      to {
          transform: translateX(0);
          opacity: 1;
      }
  }

  @media screen and (min-width: 768px) {
      .floating-contact {
          animation: slideInRight 0.5s ease-out;
      }
  }

  @media screen and (max-width: 767px) {
      .floating-contact {
          animation: slideInUp 0.5s ease-out;
      }
  }

  /* ページトップ */
  @media screen and (max-width: 768px) {
    .pagetop {
        bottom: 65px;
        right: 8px;
    }
    .fa-angle-up:before {
      top: -13px;
      right: -9px;
  }
}

@media screen and (min-width: 768px) {
  .floating-contact {
      bottom: 50px!important;
      right: 120px!important;
  }

  .fa-angle-up:before {
    top: -13px!important;
    right: -9px!important;
  }

  .floating-contact .floating-btn.phone {
    display: none!important;
  }
}