@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




/* =====  ===== =====ヘッダーメニュー===== =====　===== */

/* メニューが多いのでPCでもハンバーがメニューにする */
/* PC用グローバルナビゲーションを非表示にする .l-header__gnav { display: none; }　　*/ 

/* 960px以上の画面幅でハンバーガーメニューを表示する 
@media screen and (min-width: 960px) { /* ハンバーガーメニューボタンを表示 .l-header__menuBtn { display: block !important; right: 10px; /* 必要に応じて位置を調整  } /* ハンバーガーメニューを開いたときの中身を表示  .p-spMenu { display: block !important; } .p-spMenu__inner { max-width: 50%; /* ハンバーガーメニューの中身の幅を調整 } }*/ 


/* =====  ===== =====Solo のカルーセル===== =====　===== */

/* コンテナ：左右チラ見せのために溢れを可視化 */
.wpg-carousel {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;          /* ← ここを hidden に */
  padding: 8px 0;            /* 余白は任意 */
  box-sizing: border-box;
}

/* スライド（カード） */
.wpg-card {
  position: relative;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.wpg-card__media { aspect-ratio: 12/10; background:#f4f4f4; }
.wpg-card__media img { width:100%; height:100%; object-fit:cover; display:block; }

/* タイトルのオーバーレイ（添付イメージ風） */
.wpg-card__overlay {
  position:absolute; left:0; right:0; bottom:0;
  padding: 16px 14px;
  background: rgba(0,0,0,0.55);
  color:#333;
}
.wpg-card__title {
  margin: 0;
  font-size: clamp(8px, 1.2vw, 14px);
  line-height: 1.35;
  font-weight: 400;
  color: #fff;                   /* ← 白字を強制 */
  text-shadow: 0 1px 3px rgba(0,0,0,0.6); /* さらに読みやすくする */
	
display: -webkit-box;          /* 2行制御用 */
  -webkit-line-clamp: 2;         /* ← 2行に制御 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 矢印 */
.wpg-carousel .swiper-button-prev,
.wpg-carousel .swiper-button-next {
  width:40px; height:40px; border-radius:999px;
  background:#fff; box-shadow: 0 2px 10px rgba(0,0,0,.15);
  color:#8d6e2d;
}
.wpg-carousel .swiper-button-prev::after,
.wpg-carousel .swiper-button-next::after { font-size:16px; }
.wpg-carousel .swiper-button-prev,
.wpg-carousel .swiper-button-next { top: 50%; transform: translateY(-50%); }
.wpg-carousel .swiper-button-prev { left: 8px; }
.wpg-carousel .swiper-button-next { right: 8px; }

/* ページネーション */
.wpg-carousel .swiper-pagination-bullet { opacity:.5; }
.wpg-carousel .swiper-pagination-bullet-active { opacity:1; }

/* ※ 矢印が切れる場合は、内側に寄せる */
.wpg-carousel .swiper-button-prev { left: 8px; }
.wpg-carousel .swiper-button-next { right: 8px; }

/* 余白調整 */
@media (min-width:768px){ .wpg-card__overlay { padding: 18px 16px; } }
@media (min-width:960px){ .wpg-carousel { padding: 12px 0 24px; } }

.wpg-carousel { visibility: hidden; }
.wpg-carousel.is-ready { visibility: visible; }


/* =====  ===== =====　LearnMore等のテキストリンク　===== =====　===== */

/* シンプルテキストリンク */
.text-link {
  display: block;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color_main, #8c6b32); /* メインカラー */
  text-decoration: underline;
  text-underline-offset: 3px; /* 下線を少し離す */
  transition: color .25s;
}

.text-link::after {
  content: " >";
  margin-left: 4px;
}

.text-link:hover {
  color: #5c4521; /* メインカラーを濃くした色 */
}

/* =====  ===== =====　フッター調整　===== =====　===== */

/* 全体を縦並び・中央寄せ */
.footer-logo-nav {
  display: flex;
  flex-direction: column; /* 縦方向に積む */
  align-items: center;    /* 中央揃え */
  gap: 2rem;              /* ロゴとテキスト群の間隔 */
}

/* ロゴを小さく */
.footer-logo {
  max-height: 180px; /* 二周り小さいサイズに */
  height: auto;
  width: auto;
}

/* 横並びのテキストリンク */
.footer-nav {
  display: flex;
  gap: 1.5rem; /* リンクの間隔 */
}

.footer-nav a {
  color: inherit; /* フッターの文字色に合わせる */
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  text-decoration: underline;
}



/* ブランドカラー（メインカラーをここで変更） */
:root { --tw-main: #8c6a3b; } /* 任意の色に変更OK */

/* ベース：左右ライン＋中央ラベル */
.tw-or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 28px 0; /* 上下余白 */
}
.tw-or-divider::before,
.tw-or-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--tw-main);
  opacity: .7;
}

/* ラベル（枠なし・背景なし） */
.tw-or-divider__label {
  color: var(--tw-main);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 1.4rem;
  line-height: 1;
}



/* ===== 基本カラー設定 ===== */
:root {
  --tw-main: #8c6a3b;    /* ブランドカラー（ボタン/アクセント） */
  --tw-text: #222;       /* 本文テキスト */
  --tw-gray: #ccc;       /* 枠線グレー */
  --tw-error: #d33;      /* エラー赤 */
}

/* ===== フォーム全体 ===== */
.wpforms-container {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  padding: 24px 20px 32px;
}
.wpforms-form {
  font-family: inherit;
  color: var(--tw-text);
}

/* ===== セクション見出し ===== */
.wpforms-field-section-title {
  font-weight: 700;
  font-size: 16px;
  background: #f7f5ed;
  padding: 6px 10px;
  margin: 24px 0 16px;
  border-left: 4px solid var(--tw-main);
}

/* ===== ラベル ===== */
.wpforms-form .wpforms-field-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tw-text);
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px; /* ← テキストと黒ポチが重ならないように広げる */
  line-height: 1.6;
}

.wpforms-required-label {
  display: inline; /* ← 強制表示 */
  color: var(--tw-error);
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}

/* ===== 入力欄 ===== */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="url"],
.wpforms-form input[type="tel"],
.wpforms-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tw-gray);
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.wpforms-form textarea {
  min-height: 140px;
}
.wpforms-form input:focus,
.wpforms-form textarea:focus {
  border-color: var(--tw-main);
  box-shadow: 0 0 0 2px rgba(140,106,59,0.2);
  outline: none;
}

/* ===== チェックボックス / 同意エリア ===== */
.wpforms-form .wpforms-field-checkbox ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wpforms-form .wpforms-field-checkbox li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wpforms-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid var(--tw-gray);
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
}
.wpforms-form input[type="checkbox"]:checked {
  background: var(--tw-main);
  border-color: var(--tw-main);
  position: relative;
}
.wpforms-form input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 8l2.5 2.5L12 3' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ===== プライバシーポリシーリンク ===== */
.wpforms-form a {
  color: var(--tw-main);
  text-decoration: none;
}
.wpforms-form a:hover {
  text-decoration: underline;
}

/* ===== 送信ボタン ===== */
.wpforms-submit-container {
  text-align: center;
  margin-top: 24px;
}
.wpforms-submit {
  background: var(--tw-main)!important;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 16px 48px;
  border: none;
  border-radius: 36px;  /* 丸み強め */
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.wpforms-submit:hover {
  background: #6f512d;
}
.wpforms-submit:active {
  transform: translateY(1px);
}

/* ===== エラーメッセージ ===== */
.wpforms-error {
  border-color: var(--tw-error) !important;
}
.wpforms-error-container,
.wpforms-error-inline {
  color: var(--tw-error);
  font-size: 13px;
  margin-top: 4px;
}

/* ===== レスポンシブ調整 ===== */
@media (max-width: 480px) {
  .wpforms-container {
    padding: 16px;
  }
  .wpforms-submit {
    width: 100%;
  }
}

/* ページ見出しと説明文の余白・整列 */
.wpforms-container .wpforms-title {
  text-align:center; font-size:22px; letter-spacing:.03em; margin-bottom:10px;
}
.wpforms-container .wpforms-description {
  text-align:center; color:#666; line-height:1.9; margin-bottom:18px;
}

/* 説明文直下の細いライン（必要な場合） */
.wpforms-container .tw-divider {
  height: 2px;
  width: 120px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, var(--tw-main) 0 80%, transparent 80%);
  border-radius: 2px;
}

/* 既存の * を隠して、代わりに “ Required” を出す */
.wpforms-container .wpforms-form .wpforms-required-label{
  font-size: 0 !important;          /* 中の * を視覚的に消す */
}
.wpforms-container .wpforms-form .wpforms-required-label::after{
  content: " Required";
  font-size: 12px;
  color: var(--tw-main);
  font-weight: 400;
  margin-left: 4px;
}



/* WPformsのチェックボックス共通 */
:root { --tw-main:#8c6a3b; --tw-text:#3a3a3a; --tw-muted:#666; --tw-br:#e2e2e2; }

.wpforms-form .tw-cb ul{ margin:0; padding:0; list-style:none; }
.wpforms-form .tw-cb li{
  display:flex; align-items:flex-start; gap:10px; margin:14px 0;
}

/* チェックボックス/ラジオの見た目統一 */
.wpforms-form .tw-cb input[type="checkbox"],
.wpforms-form .tw-cb input[type="radio"]{
  width:18px; height:18px; margin-top:3px; cursor:pointer;
  appearance:none; background:#fff; border:1px solid #c9b28f; border-radius:3px;
}
.wpforms-form .tw-cb input[type="radio"]{ border-radius:50%; }
.wpforms-form .tw-cb input[type="checkbox"]:checked,
.wpforms-form .tw-cb input[type="radio"]:checked{
  background:var(--tw-main); border-color:var(--tw-main); position:relative;
}
.wpforms-form .tw-cb input[type="checkbox"]:checked::after{
  content:""; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 8l2.5 2.5L12 3' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}
.wpforms-form .tw-cb input[type="radio"]:checked::after{
  content:""; position:absolute; inset:3px; border-radius:50%; background:#fff4;
}

/* ラベル本文（共通） */
.wpforms-form .tw-cb label{ display:block; line-height:1.55; color:var(--tw-text); }
.wpforms-form .tw-cb .cb-title{ display:block; font-weight:700; font-size:16px; }
.wpforms-form .tw-cb .cb-desc{ display:block; font-size:14px; color:var(--tw-muted); margin-top:2px; }

/* モバイル微調整 */
@media (max-width:480px){
  .wpforms-form .tw-cb li{ margin:12px 0; gap:12px; }
  .wpforms-form .tw-cb .cb-title{ font-size:15px; }
  .wpforms-form .tw-cb .cb-desc{ font-size:13px; }
}


/* SWELLの標準ページタイトルはヒーローで代替 */
.page-template-page-hero-no-sidebar .c-pageTitle { display: none; }

/* 横スクロール防止（100vwハック用） */
.page-template-page-hero-no-sidebar { overflow-x: hidden; }

/* ヒーロー：ヘッダー直下・全幅・自然な高さ */
/* ヒーロー */
.tw-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 60vh;           /* 高さはお好みで調整（50〜70vh） */
  display: flex;              /* Flexでセンター制御 */
  align-items: center;        /* 縦中央 */
  justify-content: center;    /* 横中央 */
  text-align: center;
  overflow: hidden;
}

/* ヒーロー画像（背景用 <img>） */
.tw-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* オーバーレイ */
.tw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
  z-index: 0;
}

/* 内側ラッパー */
.tw-hero__inner {
  position: relative;
  z-index: 1;                 /* オーバーレイより上に */
  padding: 0 1rem;
  max-width: var(--swl-main_w, 960px);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;         /* 中央寄せ（子要素に適用） */
  justify-content: center;
}

/* タイトル */
.tw-hero__title {
  color: #fff;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  margin: 0;
}

/* パンくずはヒーロー直下で上マージン0、下だけ余白 */
.page-template-page-hero-no-sidebar .tw-breadcrumb { 
  margin: 0 auto 3rem;  /* ← 数値で調整 */
}

/* ヒーロー用テンプレートの本文開始位置調整 */
/* デフォルトの .l-content にある余白を消す */
.page-template-page-hero-no-sidebar .l-content {
  padding-top: 0em !important;
}


/* サイドバーは無効の保険 */
.page-template-page-hero-no-sidebar .l-sidebar{ display:none !important; }
.page-template-page-hero-no-sidebar .l-primary{ 
	width:100% !important; 
	padding-top: 6em !important;}


/* 本文はSWELL既定幅を維持（alignwide/fullの暴走を抑制） */
.page-template-page-hero-no-sidebar .post_content .alignfull,
.page-template-page-hero-no-sidebar .post_content .alignwide{
  max-width: var(--article_size);
  margin-left: auto; margin-right: auto;
}




/* =====  ===== =====　各投稿ページの実装ー調整　===== =====　===== */


/* ===== ヒーロー：全幅・自然な高さ・ど真ん中 ===== */
* ヒーロー：全幅化＋中身で高さを確保（まずは画像を背景化しない） */
.single .tw-hero{
  position: relative;
  width: 100vw;
　min-height: 60vh; 
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;     
  text-align: center;
　display: flex;
　align-items: center;
　justify-content: center;
　margin-bottom:6em;
}
.single .tw-hero__inner{
  position: relative; z-index: 1;
  padding: 60px 16px;       /* 余白で高さを作る（後で調整可） */
  max-width: var(--swl-main_w, 960px);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.single .tw-hero__title{
 color:#fff; text-shadow: 0 2px 8px rgba(0,0,0,.35);
  font-weight: 700; line-height: 1.2;
  font-size: clamp(26px, 5.5vw, 44px);
}
/* 画像は“普通のimg”として表示（まずは背景化しない） */
.single .tw-hero__bg{ 
position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.single .tw-hero::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
  pointer-events: none;
}


/* パンくずと本文余白（テンプレで.l-content padding-topを外した前提） */
.single .tw-breadcrumb{ margin: 0 auto 0rem; }

/* 本文幅はSWELL標準に揃える（保険） */
.single .l-article{
  max-width: var(--article_size);
  margin-left:auto; margin-right:auto;
  padding-left:0; padding-right:0;
}

/* デフォルトの .l-content にある余白を消す */
.single .l-content {
  padding-top: 0em !important;
	
}

/* ===== タイプ別調整 ===== */

/*ブログ（投稿）：調整用*/

.single-post .tw-hero{
  margin-bottom:6em;
}


/* solo（旅行）：調整用 */

.single-solo .tw-hero{
  margin-bottom:6em;
}

/* experts（人物）：調整用 */

.single-experts .tw-hero{
  margin-bottom:4em;
}


/* post, experts は本文冒頭にタイトル */
.single-post .c-postTitle,
.single-experts .c-postTitle {
display: block !important;          /* SWELLのflexを無効化 */
  margin: 0rem 0 2rem !important;     /* 上下余白 */
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  text-align: left;
}

/* Experts: ヒーロー下のタイトルブロック */
.single-experts .tw-expertHeader{
  text-align: center;
  margin: 1.6rem auto 2rem;
}

.single-experts .tw-expertHeader__job,
.single-experts .tw-expertHeader__area{
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.6;
  color: var(--color_text_weak, #666);
  letter-spacing: .02em;
}

.single-experts .tw-expertHeader__title{
  /* SWELLの c-postTitle ベースを活かしつつ余白を調整 */
  display: block !important;              /* SWELLのflex化を上書き */
  margin: .25rem 0 .35rem !important;     /* jobとareaの間隔を詰める */
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  text-align: center;
}



/* =====  ===== =====　コンタクト等の固定ページ用　===== =====　===== */


/* このテンプレート適用時は SWELL のページタイトル部品を非表示 */
.page-template-page-no-title .c-pageTitle { display: none !important; }

/* もし上部ヘッダーでタイトルを出す他の部品があれば保険で消す */
.page-template-page-no-title .p-pageHeader,
.page-template-page-no-title .p-entryTitle { display: none !important; }

/* アクセシビリティ用の視覚非表示（必要なら上の PHP で h1 に適用） */
.u-visuallyHidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* expertのみ前後ナビ領域に余白が出ないように */
.single-expert .p-entryNav{ display:none; }


/* =====  ===== =====　ブログとエキスパートのページネーション修正　===== =====　===== */
/* 数字ボタン同士の段差をゼロに統一（上下の余白を消す） */
.c-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  line-height: 1;
  margin: 0 6px !important;   /* ← 上下0 / 左右6px を強制 */
}

/* ブロック全体の下余白は親に付ける（最後の子の 0 !important を上書き） */
.post_content .c-pagination{
  margin-bottom: 36px !important; /* 好きな量に調整 */
}

/* Experts カードの job / area */
.p-postList.-experts .c-postCard__sub{
  margin-top:-2rem; 
	margin-bottom:1em; 
	margin-left:.5em; 
	font-size:1rem; line-height:1.5; color:var(--color_text_weak,#666);
}
.p-postList.-experts .c-postCard__sub .sep{ opacity:.6; margin:0 .35em; }
.p-postList.-experts .c-postCard__sub .job,
.p-postList.-experts .c-postCard__sub .area{ white-space:nowrap; }

/* =====  ===== =====　Experts Carousel　===== =====　===== */
/* カード本体の雰囲気はそのまま */
.wpg-expertCard{
  background:#fff; border-radius:16px; border:1px solid rgba(0,0,0,.06);
  box-shadow:0 8px 22px rgba(0,0,0,.06); height:100%; overflow:hidden;
}
.wpg-expert__link{ display:block; color:inherit; text-decoration:none; height:100%; }

/* 1行目= texts / photo, 2行目= excerpt をグリッドで表現 */
.wpg-expert__inner{
  display:grid;
  grid-template-columns: 1fr 112px;
  grid-template-areas:
    "texts   photo"
    "excerpt excerpt";
  gap: 16px 16px;
  align-items: center;
  padding: 18px;
}
@media(min-width:960px){
  .wpg-expert__inner{
    grid-template-columns: 1fr 132px;
    gap: 20px; padding: 22px;
  }
}

.wpg-expert__texts  { grid-area: texts;  min-width: 0; }
.wpg-expert__photo  { grid-area: photo;  width:112px; height:112px; border-radius:50%; overflow:hidden; justify-self:end; background:#f7f7f7; display:flex; align-items:center; justify-content:center; }
.wpg-expert__photoImg{ width:100%; height:100%; object-fit:cover; }
.wpg-expert__excerpt{ grid-area: excerpt; color:#333; line-height:1.6; font-size:.98rem;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* SPでも横並びを維持（写真だけ少し小さく） */
@media(max-width:599.98px){
  .wpg-expert__inner{
    grid-template-columns: 1fr 96px;
    gap: 14px 14px; padding: 16px;
  }
  .wpg-expert__photo{ width:96px; height:96px; justify-self:end; }
}

/* タイポ＆装飾（下線等は消す） */
.wpg-expert__job{ font-size:.95rem; color:var(--color_text_weak,#666); margin-bottom:.2rem; margin-left:.5rem;font-weight:600; letter-spacing:.01em; }
.wpg-expert__title{
  margin:.2rem 0 .2rem !important; font-size:clamp(18px,2.3vw,22px); font-weight:700; line-height:1.3;
  border:none !important; box-shadow:none !important;
}
.wpg-expert__title::before,
.wpg-expert__title::after{ content:none !important; }
.wpg-expert__area{ font-size:.95rem; color:var(--color_text_weak,#666); margin-bottom:.2rem;  margin-left:.5rem;}

/* ドットのみ使用（位置は下揃え） */
.wpg-expertsCarousel .swiper-pagination{ position:static; margin:12px 0 0; text-align:center; }
.wpg-expertsCarousel .swiper-pagination-bullet{ width:8px; height:8px; opacity:.5; }
.wpg-expertsCarousel .swiper-pagination-bullet-active{ background:var(--color_main,#8c6b32); opacity:1; }

/*（保険）ナビ矢印が出ても非表示化しておく */
.wpg-expertsCarousel .swiper-button-prev,
.wpg-expertsCarousel .swiper-button-next{ display:none !important; }



/* =====  ===== =====　ページテンプレートのメインビジュアルをswellに準拠　===== =====　===== */
/* 親の高さは auto、オーバーフローは通常表示 */
.p-mainVisual.-height-img,
.p-mainVisual.-height-img .p-mainVisual__inner,
.p-mainVisual.-height-img .p-mainVisual__slide {
  height: auto !important;
  overflow: visible !important;
  position: relative; /* テキスト重ね用に relative は保持 */
}

/* ★ ここがポイント：画像レイヤーを absolute から通常フローへ戻す */
.p-mainVisual.-height-img .c-filterLayer__img,
.p-mainVisual.-height-img .p-mainVisual__imgLayer {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* 画像は比率維持で横100% */
.p-mainVisual.-height-img .p-mainVisual__imgLayer img,
.p-mainVisual.-height-img .p-mainVisual__img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important; /* cover の指定を打ち消す */
}

/* もし c-filterLayer の before/after が覆い被さる場合は消す */
.p-mainVisual.-height-img .c-filterLayer::before,
.p-mainVisual.-height-img .c-filterLayer::after {
  content: none !important;
}

/* ヒーロー直後の食い込み防止の下マージン */
.p-mainVisual.-height-img {
  margin-bottom: clamp(12px, 2vw, 36px);
}

/* ===== Full-bleed（左右の余白をなくす） ===== */
.p-mainVisual,
.p-mainVisual__inner,
.p-mainVisual__slide{
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* ===== -height-img：画像の高さに追従（親は相対、子は通常フロー） ===== */
.p-mainVisual.-height-img,
.p-mainVisual.-height-img .p-mainVisual__inner,
.p-mainVisual.-height-img .p-mainVisual__slide{
  position: relative !important;
  height: auto !important;
  overflow: visible !important;
}

/* 画像レイヤーを通常フローに戻す（高さ0対策） */
.p-mainVisual.-height-img .p-mainVisual__imgLayer,
.p-mainVisual.-height-img .c-filterLayer__img{
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* 画像は元比率のまま全幅 */
.p-mainVisual.-height-img .p-mainVisual__imgLayer img,
.p-mainVisual.-height-img .p-mainVisual__img{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain !important;   /* cover指定の打消し */
}

/* ===== タイトルを画像の上に重ねる（中央配置） ===== */
.p-mainVisual.-height-img .p-mainVisual__textLayer{
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  pointer-events: none;
  z-index: 3;                       /* 画像より前面に */
}

/* タイトルの見た目はお好みで */
.p-mainVisual__title{
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  font-size: clamp(26px,5vw,44px);
}

/* ヒーロー直後の余白（食い込み防止） */
.p-mainVisual.-height-img{ margin-bottom: clamp(12px, 2vw, 36px); }

/* もし SWELL のフィルタレイヤーの before/after が被る場合は消す */
.p-mainVisual.-height-img .c-filterLayer::before,
.p-mainVisual.-height-img .c-filterLayer::after{ content: none !important; }









/* 文字ブロックが別ラッパーの場合の保険（中央寄せ） */
.p-mainVisual__textLayer > *{
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: center;
}

/* ===== Top hero: text layer を本当にど真ん中に ===== */
/* --- Top hero text: ど真ん中配置（insetを使わない） --- */
#main_visual .p-mainVisual__textLayer{
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;

  /* コンテナの影響を受けないように */
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;

  pointer-events: none;
  z-index: 3;
}

/* 子要素の余白もゼロにしてズレ防止 */
#main_visual .p-mainVisual__textLayer > *{
  margin: 0 !important;
  padding: 0 !important;
  text-align: inherit !important;
}

/* =====  ===== =====　WPform用　===== =====　===== */


/* 補足テキスト（小さめ・淡い墨色） */
.tw-note {
  font-size: 0.88rem !important;        /* 強制的に小さく */
  line-height: 1.6 !important;
  color: rgba(0, 0, 0, 0.65) !important;
  margin: -0.5em 0 !important;           /* 上下に軽く余白 */
  font-feature-settings: "palt" !important;
  display: block;                       /* 念のためブロック化 */
}


/* WPForms 送信ボタン（全フォーム共通） */
.wpforms-form button.wpforms-submit {
  display: inline-block;
  width: 100%;                /* 横幅いっぱい（任意で80%などでもOK） */
  max-width: 320px;           /* 大きすぎ防止 */
  margin: 1.5rem auto 0;
  padding: 1rem 2rem;         /* ボタン内の余白 */
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;         /* 丸み */
  background-color: var(--color_main); /* SWELLの基本カラー */
  color: #fff;                /* テキスト白 */
  text-align: center;
  cursor: pointer;
  transition: background-color .25s ease, transform .2s ease;
}

/* hover時（PCのみ） */
.wpforms-form button.wpforms-submit:hover {
  background-color: var(--color_main_dark, #333); /* 少し濃い色 */
  transform: translateY(-2px);
}

/* スマホ時も押しやすく */
@media (max-width: 767px) {
  .wpforms-form button.wpforms-submit {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }
}

/* =====  ===== =====　追従ボタン　===== =====　===== */
.floating-contact {
  position: fixed;
  inset: auto auto 46px 20px;
  z-index: 2147483647;
  pointer-events: auto;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color_main);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .25s ease, opacity .25s ease;
  transform: translateZ(0);
}

/* 子要素のテキストがイベントを奪わないように */
.floating-contact * {
  pointer-events: none;
}

@media (max-width: 767px) {
  .floating-contact {
    left: 16px;
    bottom: 22px;
    padding: .6rem 1rem;
    font-size: .85rem;
    max-width: 180px;
  }
}

/* =====  ===== =====　固定ページのタイトル表示用に追加　===== =====　===== */
.c-pageTitle--center {
  text-align: center;
  margin: 2rem auto 2.5rem;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.3;
}