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

/* =========================================
   フッター直前エリア＆フッターをざらざらの紫＋凹むカーブにする
   ========================================= */

/* ① 背景をざらざらの濃い紫で統一する */
#before_footer_widget,
#footer {
    background-color: #002A54 !important;
    background-image: url('https://xw576845.xwp.jp/wp-content/uploads/2026/09/shiro-1.png') !important;
    background-repeat: repeat !important;
    border-top: none !important;
}

/*電話番号ブロックの幅と位置*/
.contact-01{
	margin: 10px auto;
	padding-left:5px;
	padding-right:5px;
	max-width: 900px; /* 最大幅はお好みで調整してください */
}

/* ② フッター直前エリアとフッターの間の隙間（マージン）を消す */
#before_footer_widget {
	margin-top: -70px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important; 
    position: relative; /* ③の基準点にするため追加 */
    overflow: hidden; /* はみ出した図形を隠すため追加 */
    padding-top: 2vw !important; /* 凹みの下から文字が始まるように余白を確保 */
    z-index: 10;
}
#footer {
    margin-top: 0 !important;
}

/* ③ 上部を凹ませる（白いU字型の図形を上に被せる） */
@media screen and (max-width: 768px) {
   #before_footer_widget::before {
    content: '';
    position: absolute;
    top: -1px; /* 隙間ができないように1px上にずらす */
    left: -10vw; /* 画面端まできれいに覆うために少し左右にはみ出させる */
    width: 120vw;
    height: 5.5vw; /* カーブの深さ（ここの数値で凹み具合を調整できます） */
    background-color: #fbf8f3; /* 上のコンテンツエリアの背景色（白） */
    border-radius: 0 0 50% 50% / 0 0 100% 100%; /* 下側が丸いU字型にする */
    pointer-events: none;
    z-index: 1;
}
}


/* =========================================
   スマホ表示の調整
   ========================================= */
@media screen and (max-width: 768px) {
   #before_footer_widget::before {
	  
    height: 19vw; /* カーブの深さ（ここの数値で凹み具合を調整できます） */
}
}


/* ウィジェットの中身が白い図形の下に隠れないように手前に出す */
#before_footer_widget .w-beforeFooter {
    position: relative;
    z-index: 2;
}

/* ④ エリア内の文字色・リンク色をすべて白にする */
#before_footer_widget,
#before_footer_widget p,
#before_footer_widget h1,
#before_footer_widget h2,
#before_footer_widget h3,
#before_footer_widget h4,
#before_footer_widget span,
#before_footer_widget a,
#before_footer_widget div,
#footer,
#footer p,
#footer h2,
#footer h3,
#footer span,
#footer a,
#footer .menu-item a {
    color: #ffffff !important;
}

/* ⑤ お知らせの日付や見出しの下線など細かい調整 */
#before_footer_widget .c-postList__meta,
#before_footer_widget .c-postList__date,
#before_footer_widget .c-postList__cat {
    color: rgba(255, 255, 255, 0.7) !important; 
}
#before_footer_widget .wp-block-heading {
    border-color: rgba(255, 255, 255, 0.3) !important;
}


/* =========================================
   コンタクトフォーム7のデザイン（背景色 #fbf8f3 版）
   ========================================= */

/* フォーム全体をカード状にする */
.custom-contact-form {
    max-width: 900px;
    margin: 60px auto 0; /* 電話番号エリアからの距離 */
    width: 100%;
    background-color: #fff !important;
    padding: 40px; /* 内側に余白をとってカード風に */
    border-radius: 8px; /* 少し角を丸める */
    box-sizing: border-box;
}

.custom-contact-form .form-row {
    margin-bottom: 30px;
}

/* ラベル（項目名）のスタイル */
.custom-contact-form label {
    display: block;
    color: #002A54 !important; /* 文字を濃い紫にして見やすく */
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

/* 必須バッジのスタイル */
.custom-contact-form .req {
    background-color: #e90000 !important; /* 明るい紫をアクセントに */
    color: #ffffff !important;
    font-size: 11px;
    padding: 3px 8px;
    margin-left: 10px;
    border-radius: 2px;
    vertical-align: text-top;
}

/* 任意バッジのスタイル（フッターの白文字指定より優先度を上げる） */
#before_footer_widget .custom-contact-form .any {
    background-color: transparent !important;
    border: 1px solid #999 !important;
    color: #666 !important; /* 文字色をグレーに */
    font-size: 11px;
    padding: 2px 7px;
    margin-left: 10px;
    border-radius: 2px;
    vertical-align: text-top;
}

/* 入力欄（テキスト・テキストエリア）のスタイル */
.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form textarea {
    width: 100%;
    background-color: #ffffff !important; /* 入力エリアは真っ白に */
    border: 1px solid #ccc !important; /* 薄いグレーの枠線 */
    color: #333 !important; /* 入力する文字は黒系に */
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 入力例（プレースホルダー）の色 */
.custom-contact-form ::placeholder {
    color: #aaa !important;
}

/* 入力中（フォーカス時）は枠線をメインカラーに */
.custom-contact-form input[type="text"]:focus,
.custom-contact-form input[type="email"]:focus,
.custom-contact-form textarea:focus {
    border-color: #002A54 !important;
    outline: none;
    box-shadow: 0 0 5px rgba(45, 1, 38, 0.2);
}

.custom-contact-form textarea {
    height: 180px;
    resize: vertical;
}

/* 送信ボタン全体の行（中央揃えを確実にする） */
.custom-contact-form .form-submit-row {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 送信ボタンのスタイル（幅を大きく＆中央配置） */
.custom-contact-form input[type="submit"] {
    background-color: #002A54 !important; /* ボタンの背景色 */
    color: #ffffff !important; /* 文字色 */
    border: none !important;
    padding: 18px 0 !important; /* 上下パディング */
    width: 100% !important; /* 横幅をいっぱいに広げる */
    max-width: 480px !important; /* PC・スマホで最適に見える最大幅 */
    font-size: 20px !important; /* 文字サイズを少し大きく */
    font-weight: bold !important;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px; /* 丸みボタン */
    display: block !important;
    margin: 0 auto !important; /* 中央寄せ */
    box-shadow: 0 4px 12px rgba(0, 42, 84, 0.25); /* 押しやすい立体感 */
}

/* マウスオーバー時の動作（少し明るく＆浮き上がる） */
.custom-contact-form input[type="submit"]:hover {
    background-color: #004080 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Turnstile（スパム対策枠）も中央に揃える */
.custom-contact-form .cf-turnstile,
.wpcf7-form .cf-turnstile {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 20px auto !important;
}

/* スマホ表示の調整（余白を少し狭くする） */
@media screen and (max-width: 768px) {
    .custom-contact-form {
        padding: 20px;
    }
}


/* =========================================
   プライバシーポリシー同意チェックボックスのスタイル
   ========================================= */

#before_footer_widget .custom-contact-form .consent-row {
    text-align: center;
    margin-top: 40px;
    margin-bottom: -10px; /* 送信ボタンとの間隔調整 */
}

/* チェックボックスの横のテキスト */
#before_footer_widget .custom-contact-form .consent-row .wpcf7-list-item-label {
    color: #333 !important; /* 黒系の文字にして見やすく */
    font-size: 15px;
    cursor: pointer;
}

/* プライバシーポリシーへのリンク文字 */
#before_footer_widget .custom-contact-form .consent-row a {
    color: #002A54 !important; /* リンクを濃い紫に */
    text-decoration: underline !important; /* リンクだと分かるように下線を引く */
    font-weight: bold;
    transition: opacity 0.3s ease;
}

#before_footer_widget .custom-contact-form .consent-row a:hover {
    opacity: 0.7;
}

/* チェックボックス自体の大きさを少し調整（スマホでタップしやすく） */
#before_footer_widget .custom-contact-form .consent-row input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
    cursor: pointer;
}



/* =========================================
  追従バナー（右下固定・長方形）
   ========================================= */
.floating-contact-btn {
    position: fixed !important;
    bottom: 0 !important; /* 隙間を強制的にゼロにする */
    right: 0 !important;
    margin: 0 !important; /* 余計な余白を完全に消去 */
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    
    background-color: rgba(0, 42, 84, 0.95);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    
    color: #fbf8f3 !important;
    text-decoration: none;
    z-index: 9999;
    
    border-radius: 10px 0 0 0; 
    
    /* ▼これを追加！ ざらざら画像を枠内に綺麗に収める必須コード ▼ */
    overflow: hidden !important; 
    
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.15em; 
    
    box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.1);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* スクロールして表示された時 */
.floating-contact-btn.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   背景にざらざらのノイズ画像を重ねる
   ========================================= */
.floating-contact-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* ▼ URLが正しく入っているか再度ご確認ください ▼ */
    background-image: url('https://xw576845.xwp.jp/wp-content/uploads/2026/09/shiro-1.png');
    
    background-size: cover;
    
    /* 濃い紫の背景でもざらざらが確実に見えるようにブレンドモードを解除し、透明度だけで調整します */
    opacity: 0.8; /* ざらざらが弱い場合は 1.0 に近づけてください */
    
    pointer-events: none; 
    z-index: 1;
}

/* テキストと矢印がノイズ画像に埋もれないよう手前に出す */
.floating-contact-btn .btn-text,
.floating-contact-btn .btn-arrow {
    position: relative;
    z-index: 2;
}

/* =========================================
   スタイリッシュな矢印のデザイン（線＋三角）
   ========================================= */
.floating-contact-btn .btn-arrow {
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: #fbf8f3;
    margin-left: 20px;
    transition: width 0.4s ease; 
}
.floating-contact-btn .btn-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #fbf8f3;
    border-right: 1px solid #fbf8f3;
    transform: rotate(45deg);
}

/* =========================================
   ホバー時（マウスを乗せた時）のアニメーション
   ========================================= */
.floating-contact-btn.is-show:hover {
    background-color: #002A54;
    padding-left: 55px; 
    padding-right: 35px;
}
.floating-contact-btn.is-show:hover .btn-arrow {
    width: 45px; 
}

/* =========================================
   スマホ表示時の最適化
   ========================================= */
@media screen and (max-width: 768px) {
    .floating-contact-btn {
        width: 100%;
        padding: 16px 20px;
        border-radius: 0; 
        font-size: 14px;
        justify-content: center;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
        /* スマホ用：画面外（下）からスッと上がってくるようにする */
        transform: translateY(100%); 
    }
    .floating-contact-btn::before {
        border-radius: 0;
    }
}