@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
*/

/* =========================
   GA HOUSE Services Slider（共通CSS・最適化版）
   - PC=外側矢印 / SP=内側
   - 画像16:9固定・オーバーレイ付き
   ========================= */

/* スライダー枠 */
.ga-services-slider{
  position: relative;
  z-index: 3;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-inline: clamp(8px, 1.5vw, 16px); /* 端ガター */
  overflow: visible; /* 矢印を外側に出す */
}

/* スライドカード */
.ga-services-slider .ga-sv-card{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px; /* ←角ありデフォ（下の square で上書き） */
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  text-decoration: none;
}
.ga-services-slider .ga-sv-media{ margin: 0; aspect-ratio: 16/9; background: #fff; }
.ga-services-slider .ga-sv-media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.); transition: transform .5s ease;
}
.ga-services-slider .ga-sv-card:hover .ga-sv-media img{ transform: scale(1.03); }

/* タイトルオーバーレイ（操作通す） */
.ga-services-slider .ga-sv-overlay{
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.ga-services-slider .ga-sv-title{
  color: #fff; font-weight: 600; letter-spacing: .06em;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  font-size: clamp(16px, 2vw, 22px); text-align: center;
}

/* Swiper UI（共通土台） */
.ga-services-slider .swiper-button-prev,
.ga-services-slider .swiper-button-next{
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(0,0,0,.25); backdrop-filter: blur(4px);
  transition: opacity .2s ease, transform .2s ease; opacity: .75;
}
.ga-services-slider:hover .swiper-button-prev,
.ga-services-slider:hover .swiper-button-next,
.ga-services-slider .swiper-button-prev:focus-visible,
.ga-services-slider .swiper-button-next:focus-visible{
  opacity: 1; transform: translateY(-50%) scale(1.02);
}
.ga-services-slider .swiper-button-prev::after,
.ga-services-slider .swiper-button-next::after{
  font-size: 18px; color: #111; font-weight: 600;
}
.ga-services-slider .swiper-pagination-bullets{ bottom: 10px; }

/* レスポンシブ：PC=外側 / SP=内側 */
@media (min-width: 769px){
  .ga-services-slider .swiper-button-prev{ left: calc(-1 * clamp(24px, 3vw, 48px)); right: auto; }
  .ga-services-slider .swiper-button-next{ right: calc(-1 * clamp(24px, 3vw, 48px)); left: auto; }
}
@media (max-width: 768px){
  .ga-services-slider .swiper-button-prev{ left: 8px; right: auto; }
  .ga-services-slider .swiper-button-next{ right: 8px; left: auto; }
}

/* ▼ バリアント：半透明ダーク（glass） */
.ga-sv--glass .swiper-button-prev,
.ga-sv--glass .swiper-button-next{
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(17,17,17,.55);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: .95;
}
.ga-sv--glass .swiper-button-prev::after,
.ga-sv--glass .swiper-button-next::after{ color: #fff; font-size: 16px; }
.ga-sv--glass:hover .swiper-button-prev,
.ga-sv--glass:hover .swiper-button-next,
.ga-sv--glass .swiper-button-prev:focus-visible,
.ga-sv--glass .swiper-button-next:focus-visible{
  background: rgba(17,17,17,.68); border-color: rgba(255,255,255,.28);
}

/* ▼ バリアント：角丸なし（square） */
.ga-sv--square .ga-sv-card{ border-radius: 0; }
.ga-sv--square .ga-sv-media img{ border-radius: 0 !important; }
.ga-sv--square .ga-sv-overlay{ border-radius: 0; }

/* （矢印も角ありに揃えたい場合は任意）
.ga-sv--square.ga-sv--glass .swiper-button-prev,
.ga-sv--square.ga-sv--glass .swiper-button-next{ border-radius: 8px; }
*/

/* 動きを控えたいユーザー配慮 */
@media (prefers-reduced-motion: reduce){
  .ga-services-slider .ga-sv-media img{ transition: none !important; }
}

/* ===========================
   SWELL トップページ メインビジュアル縦書きテキスト
   （キャッチフレーズ欄を使わない＋フェードイン付き）
   =========================== */

/* メインビジュアル全体 */
.p-mainVisual {
  position: relative;
  isolation: isolate; /* z-indexの独立空間を確保 */
}

/* テキストレイヤー基準 */
.p-mainVisual__textLayer {
  position: relative;
}

/* ▼ 縦書きテキストをCSSだけで追加 */
.p-mainVisual__textLayer::after {
  content: "木と鉄・石・土が\A　　　　　つくる家"; /* 改行は \A */
  white-space: pre;
  position: absolute;
  right: 55px;
  bottom: 195px;
  writing-mode: vertical-rl;
  font-size: clamp(55px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 30;
  pointer-events: none;
  line-height: 1.4;
  transform: translateY(20px); /* 下から */
  opacity: 0;
  animation: mvFadeIn 1.6s ease-out 0.3s forwards; /* ふわっと表示 */

  /* 上品な明朝フォント */
  font-family: "Noto Serif JP", "游明朝体", "Yu Mincho",
               "Hiragino Mincho ProN", "HGS明朝E", serif;
}

/* ▼ アニメーション定義 */
@keyframes mvFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ▼ スマホ調整 */
@media (max-width: 767px) {
  .p-mainVisual__textLayer::after {
    right: 30px;
    bottom: 195px;
    font-size: clamp(40px, 4.5vw, 22px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    animation: mvFadeIn 1.8s ease-out 0.2s forwards; /* ややゆっくり */
  }
}

/* ================================
   GA HOUSE Concept Section（ぼかしVer）
   ================================ */

/* カバー全体設定 */
.ga-concept-cover {
  display: flex;
  justify-content: flex-start; /* 左寄せ配置 */
  align-items: center;
  min-height: 90vh; /* セクション高さ */
  background-size: cover;
  background-position: center;
  padding: 6vw;
}

/* カバーのオーバーレイ（暗幕） */
.ga-concept-cover .wp-block-cover__background,
.ga-concept-cover .wp-block-cover__gradient-background {
  opacity: 0 !important; /* 背景の暗さ：0〜1 */
}

/* 左側テキストボックス */
.wp-block-group.ga-concept-text {
  max-width: 640px;
  background: rgba(0, 0, 0, 0.4) !important; /* 半透明の黒 */
  color: #fff;
  padding: 3vw 3.5vw;
  border-radius: 0px;
  line-height: 1.8;
  backdrop-filter: blur(8px); /* 背景ぼかし */
  -webkit-backdrop-filter: blur(8px); /* Safari対応 */
  border: 1px solid rgba(255, 255, 255, 0.15); /* 薄い白枠でガラス感 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); /* 柔らかい影 */
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* hover時（軽く明るく） */
.wp-block-group.ga-concept-text:hover {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(10px);
}

/* 見出しデザイン */
.ga-concept-text h2,
.ga-concept-text h3 {
  color: #fff;
  margin-bottom: 1em;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .ga-concept-cover {
    justify-content: center; /* スマホでは中央寄せに */
    padding: 12vw 6vw;
  }

  .wp-block-group.ga-concept-text {
    max-width: 100%;
    background: rgba(0, 0, 0, 0.) !important;
    backdrop-filter: blur(10px);
    padding: 6vw;
    border-radius: 0px;
  }
}

/* =========================================================
   [GA HOUSE] Slider Title Font (H2と同じに揃える) — START
   使い方：
   1) 下の :root の3つの変数だけ、必要があれば値を調整
   2) .ga-sv-title に適用されます（スライダー内の見出し）
   ※ 他のCSSとかぶりにくいように "ga-" で名前空間化
   ========================================================= */

:root{
  /* ▼ H2と同じフォントスタック（順序はそのまま） */
  --ga-heading-font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
                     "Yu Gothic", Meiryo, "Noto Sans JP", "Segoe UI", "Helvetica Neue",
                     Arial, sans-serif;

  /* ▼ 太さと字間（今回の計測値） */
  --ga-heading-weight: 400;
  --ga-heading-tracking: 1.12px;

  /* ▼ 必要ならサイズまで完全一致（使わないなら残しておいてOK）
  --ga-heading-size: clamp(18px, 3vw, 28px);
  */
}

/* スライダー内タイトルに適用（他と衝突しにくいセレクタ） */
.ga-services-slider .ga-sv-title{
  font-family: var(--ga-heading-font);
  font-weight: var(--ga-heading-weight);
  letter-spacing: var(--ga-heading-tracking);
  /* サイズまで合わせたいときは下の1行をコメント解除
  font-size: var(--ga-heading-size);
  */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* （保険）テーマ側が強い指定を持っている場合の“強め版”セレクタ
.ga-services-slider .ga-sv-overlay .ga-sv-title{
  font-family: var(--ga-heading-font) !important;
  font-weight: var(--ga-heading-weight) !important;
  letter-spacing: var(--ga-heading-tracking) !important;
}
*/

/* =========================================================
   [GA HOUSE] Slider Title Font — END
   ========================================================= */

/* ===========================
   問い合わせフォームデザイン変更
   =========================== */

/* フォーム全体のスタイリング */
.custom-form {
    max-width: 600px; /* フォーム全体の最大幅を指定し、中央寄せでバランスを整える */
    margin: 0 auto; /* 中央に配置 */
    font-family: 'Arial', sans-serif; /* フォーム全体のフォントを指定 */
    color: #333; /* テキストの色を濃いグレーに設定 */
}

.custom-form label {
    display: inline-block; /* ラベルを独立したブロック要素として扱う */
    margin-bottom: 8px; /* ラベル下に余白を追加して間隔を調整 */
    font-weight: bold; /* ラベルの文字を強調 */
    font-size: 14px; /* ラベルの文字サイズを調整 */
}

/* 必須ラベルのスタイリング */
.custom-form .required {
    display: inline-block; /* 必須ラベルをインラインで表示 */
    margin-left: 5px; /* ラベルと必須マークの間隔を調整 */
    padding: 2px 6px; /* 内側の余白を設定して視認性を向上 */
    font-size: 12px; /* 必須ラベルの文字サイズを指定 */
    color: #fff; /* テキスト色を白に設定 */
    background-color: #8ccad7; /* 必須ラベルの背景色をメインカラーに設定 */
    border-radius: 3px; /* ラベルを角丸にして柔らかい印象に */
    font-weight: bold; /* ラベルの文字を太字に */
}

/* 入力フィールド */
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
    width: 100%; /* フィールド幅をフォームに合わせて最大化 */
    padding: 10px; /* 内側の余白を設定して入力しやすくする */
    margin-bottom: 30px; /* 各フィールドの下に余白を設定して間隔を広げる */
    border: 2px solid #8ccad7; /* メインカラーを枠線に適用 */
    border-radius: 5px; /* 入力フィールドを角丸に */
    background: #f8f9fa; /* フィールド背景を薄いグレーに設定 */
    font-size: 14px; /* フィールド内テキストのサイズを指定 */
    transition: border-color 0.3s ease, background-color 0.3s ease; /* フォーカス時のスムーズな変化を設定 */
}

.custom-form input[type="text"]:focus,
.custom-form input[type="email"]:focus,
.custom-form input[type="tel"]:focus,
.custom-form textarea:focus {
    border-color: #8ccad7; /* フォーカス時の枠線色を強調 */
    outline: none; /* ブラウザデフォルトのフォーカス枠を削除 */
    background: #e6f7fa; /* フォーカス時の背景色をメインカラーの薄いバリエーションに変更 */
}

/* 送信ボタンの調整 */
.custom-form input[type="submit"] {
    display: block; /* ブロック要素として中央揃えしやすく設定 */
    width: 80%; /* ボタン幅を適度に制限 */
    margin: 0 auto; /* ボタンを中央寄せ */
    padding: 12px 20px; /* ボタン内側の余白を調整 */
    border: none; /* 枠線を削除してシンプルなデザインに */
    border-radius: 25px; /* ボタンを丸みのある形状に設定 */
    background: #8ccad7; /* ボタン背景にメインカラーを適用 */
    color: #fff; /* ボタン文字を白に設定 */
    font-size: 16px; /* ボタン文字のサイズを指定 */
    cursor: pointer; /* ボタンにホバーポインタを表示 */
    transition: background-color 0.3s ease; /* ホバー時の背景色変更をスムーズに */
}

.custom-form input[type="submit"]:hover {
    background: #6faebd; /* ボタンホバー時にメインカラーの濃いバリエーションを表示 */
}


