@charset "UTF-8";

/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

#gnav {
  height: 120px;
  line-height: 90px;
  /* テキスト中央揃えのために */
}

@media (min-width: 960px) {
  #gnav {
    height: 60px;
    line-height: 60px;
  }
}

/* 2. MVラッパーを本当の全幅に */
.mv-wrap {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding: 0;
  position: relative;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: auto;
  background: #fff;
  /* Mac Safari/Chrome対応 - 最小限の修正 */
  will-change: transform;
}

/* 3. 画像も全幅・中央・切れ防止 */
.mv-img {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  /* coverでOK。containだと余白が出る */
  display: block;
  margin: 0 auto;
  position: relative;
  left: 0;
  right: 0;
  background: #fff;
  border: none;
  /* Mac Safari/Chrome対応 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@media (max-width: 768px) {
  .mv-img {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .mv-wrap {
    display: block !important;
    height: auto;
    min-height: 200px;
  }
  
  .mv-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
  }
}

/* fullmvテンプレートのページだけタイトル非表示 */
.page-template-page-fullmv .c-pageTitle,
.page-template-page-fullmv .p-pageHead__title {
  display: none !important;
}

/* fullmvテンプレートのスマホ版でアイキャッチ画像非表示 */
@media (max-width: 767px) {
  .page-template-page-fullmv .mv-wrap {
    display: none !important;
  }
  
  .page-template-page-fullmv .mv-img {
    display: none !important;
  }
}

.l-sidebar {
  margin-top: 40px;
  /* 必要に応じて調整 */
}

/* 必要に応じて、.l-contentや.page-headerなども調整 */
.l-content,
.page-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 固定ページのタイトル背景とコンテンツ見出しの間にスペースを空ける */
.l-mainContent__inner> :first-child:not(.fixed-cta-inner),
.l-parent> :first-child:not(.fixed-cta-inner),
.post_content> :first-child:not(.fixed-cta-inner) {
  margin-top: 4em !important;
  /* お好みの値に調整 */
}

/* 4列サブメニューの設定 */
.c-gnav .sub-menu {
  display: -ms-grid !important;
  display: grid !important;
  -ms-grid-columns: 1fr 1fr 1fr 1fr !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 800px !important;
  /* 4列分の幅を確保 */
  max-width: 90vw !important;
  padding: 20px !important;
  /* Mac Safari/Chrome対応 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.c-gnav .sub-menu li {
  width: 100% !important;
  min-width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.c-gnav .sub-menu a {
  display: flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  transition: background-color 0.3s ease !important;
}

.c-gnav .sub-menu a:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .c-gnav .sub-menu {
    grid-template-columns: repeat(2, 1fr) !important;
    /* スマホでは2列 */
    width: 300px !important;
    max-width: 90vw !important;
  }
}

@media (max-width: 480px) {
  .c-gnav .sub-menu {
    grid-template-columns: 1fr !important;
    /* 小さいスマホでは1列 */
    width: 250px !important;
  }
}

/* 固定CTA */
.fixed-cta-pc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(100, 100, 100, 0.7);
  /* お好みで色・透過度調整 */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 8px 0;
  box-sizing: border-box;
  /* Mac Safari/Chrome対応 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* 直下の子要素に幅制限 */
.fixed-cta-inner {
  width: 90%;
  /* 画面幅の90%で可変 */
  max-width: 1200px;
  /* 最大1200pxまで */

  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
}

.fixed-cta-sp {
  display: none;
}

@media (max-width: 767px) {
  .fixed-cta-pc {
    display: none;
  }

  .fixed-cta-sp {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999 !important;
    width: 100vw;
    background: #fff;
    display: block;
  }
}

.l-footer {
  padding-bottom: 200px !important;
}

@media (max-width: 767px) {
  .l-footer {
    padding-bottom: 120px !important;
  }
}

/* スマホでの固定CTAのZ-indexの設定 */
@media (max-width: 767px) {
  .fixed-cta-sp {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    background: #fff;
    display: block;
    /* Mac Safari/Chrome対応 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

@media (max-width: 767px) {
  .fixed-cta-sp .swell-block-box-menu_inner {
    margin-bottom: 0 !important;
  }
}

/* PC用（例：固定CTAの高さが60px＋余白20px = 80px） */
@media (min-width: 768px) {
  #pagetop.c-fixBtn {
    position: fixed !important;
    bottom: 120px !important;
  }
}

/* スマホ用（例：固定CTAの高さが50px＋余白10px = 60px） */
@media (max-width: 767px) {
  #pagetop.c-fixBtn {
    position: fixed !important;
    bottom: 100px !important;
  }
}

.c-gnav>.menu-item>a .ttl {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1.3px;
}

.p-pageHead__image {
  height: 600px;
  object-fit: cover;
}

@media (min-width: 960px) {
  .header-buttons {
    display: flex;
    gap: 8px;
    /* ボタン間の余白。必要に応じて調整 */
    align-items: center;
  }

  .header-buttons a {
    display: inline-block;
  }
}

/* サイドバーをスマホでは非表示 */
@media screen and (max-width: 768px) {
  #sidebar,
  .l-sidebar {
    display: none !important;
  }
}

/* PC用：ロゴとボタンを両端に */
/* ヘッダー設定：ロゴと電話LINEを並列に */
.-parallel .l-header__logo {
  width: 40%;
  padding-left: 32px;
  box-sizing: border-box;
}

.-parallel .l-header__logo img {
  margin-left: 0;
  /* 必要なら調整 */
}

@media (min-width: 960px) {
  .l-header__inner.l-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
  }

  .header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .header-buttons a {
    display: inline-block;
  }
}

/* スマホ用：ボタン非表示、ロゴ中央寄せ */
@media (max-width: 959px) {
  .header-buttons {
    display: none;
  }

  .l-header__logo,
  h1.c-headLogo {
    margin: 0 auto !important;
    float: none !important;
    text-align: center !important;
  }
}

/* ヘッダー1段目を横並びに */
.header-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  /* ロゴとボタンの間隔。必要に応じて調整 */
  width: 100%;
  min-height: 120px;
}

/* ロゴ部分 */
.header-logo {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  /* Mac Safari/Chrome対応 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ボタン部分（ブログパーツ全体） */
.header-buttons {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  height: 100%;
  /* 必要に応じて幅や余白を調整 */
  /* Mac Safari/Chrome対応 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

@media (max-width: 768px) {
  .header-buttons {
    display: none !important;
  }
}

.header-buttons .wp-block-columns,
.header-buttons .wp-block-columns.u-mb-ctrl.u-mb-0,
.header-buttons>* {
  margin-top: 0 !important;
}

/* ヘッダー全体をコンテンツ幅で中央寄せ */

/* 1段目：ロゴとボタンを両端に */
.header-row1 {
  max-width: 1200px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  /* 両端に配置 */
  width: 100%;
  min-height: 80px;
  /* 必要に応じて調整 */
  margin: 0 auto;
  /* Mac Safari/Chrome対応 */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ヘッダー全体の高さも調整 */
.custom-header {
  padding: 0;
  margin: 0;
}

/* PC用ナビゲーションを表示 */
#gnav,
.c-gnavWrap,
.header-row2 {
  display: block !important;
}

/* スマホでPC用ナビゲーションを非表示 */
@media (max-width: 767px) {
  #gnav,
  .c-gnavWrap,
  .header-row2 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ロゴ画像の左余白を追加したい場合 */
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}

/* ボタン部分 */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .header-row1 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
  }

  .header-logo {
    flex: 1;
  }

  .header-buttons {
    display: none !important;
  }
}

/* スマホのメニュー開閉時 */
.p-spMenu__body {
  padding-bottom: 200px;
}

/*メニューの内容を消す*/
.p-spMenu__nav {
  display: none;
}

/*メニューのタイトルを消す*/
.c-widget__title.-spmenu {
  display: none;
}