/* ==========================================
   Modern Minimal Reset 2026 (Enhanced)
   ========================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

/* マージンの初期化（必要なものに絞る） */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    /* スムーズスクロールを有効化（アンカーリンク用） */
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* フォーム要素の継承 */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

/* 画像とメディアの扱い */
img, picture, svg, video, canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* クリック要素のカーソル */
button, select, label, [role="button"] {
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

/* テキストエリアの調整 */
textarea {
    resize: vertical;
}

/* 水平線のリセット */
hr {
    border: none;
    border-top: 1px solid currentColor;
    margin: 0;
}

/* アンカーの装飾リセット（任意） */
a {
    text-decoration-skip-ink: auto;
    color: inherit;
}



/*----------------------------------------
	Base
----------------------------------------*/
main {
    padding: 0;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    color: #112b43;
    line-height: 1.5;
    background-color: #f3f3f3;
    font-family: Hiragino Sans, hiragino-kaku-gothic-pron, sans-serif;
    font-weight: 300;
    font-style: normal;
}

.ttl {
    font-weight: 600;
}

h2 {
    font-weight: 200;
}

.en {
    font-family: din-2014, sans-serif;
}

.emp {
    color: #04859b;
}

a {
    color: #04859b;
    transition: 0.5s;
    cursor: pointer;
    font-weight: 600;
}



@media screen and (max-width: 768px) {
    .pcOnly {
        display: none;
    }
}


@media screen and (min-width: 768px) {
    .spOnly {
        display: none;
    }
}

/*----------------------------------------
	cookieアラート
----------------------------------------*/
#cookieStatus {
    height: 100vh;
    width: 100vw;
    background-color: #152a42;
    color: #f3f3f3;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    z-index: 99999;
    padding: 3rem;
    text-align: center;
    line-height: 1.5;
}




/*----------------------------------------
	キービジュアル
----------------------------------------*/
.kv-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 500px;
}

.inner {
    max-width: 1080px;
    padding: 40px 20px;
    box-sizing: border-box;
}

.top-icon {
    margin: 0 auto 48px;
    width: 28px;
}

.top-icon img {
    width: 100%;
    height: auto;
    display: block;
}



.main-copy {
    font-size: clamp(30px, 5vw, 35px);
    letter-spacing: 0.05em;
    margin-bottom: 64px;
    line-height: 1.4;
}

.inner p {
    font-size: 16px;
    margin: 15px auto;
}

.hashtag {
    font-size: 25px;
    color: #00859b;
    font-weight: 600;
}


@media (max-width: 767px) {
    .inner {
        padding: 10px 20px;
        width: 100%;
    }

    .main-copy {
        margin-bottom: 40px;
    }

    .top-icon {
        width: 20px;
        margin-bottom: 30px;
    }

    .hashtag {
        font-size: 18px;
    }


}








/* ==========================================
   Snow Monkey Formsの入力欄をカスタマイズ
   ========================================== */
.snow-monkey-form {
    padding: 40px 20px;
}

.wp-block-snow-monkey-forms-item.smf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px 0 150px 0;
}

/* 2. コントロール（入力欄）エリアの調整 */
.smf-item__col.smf-item__col--controls {
    width: 100%;
    max-width: 800px;
    flex: 0 0 auto;
}

/* 3. テキストエリア（textarea）自体の装飾 */
.smf-textarea-control__control {
    border: 1px solid #00859b;
    border-radius: 10px !important;
    padding: 40px 60px !important;
    font-size: 17px;
    line-height: 1.8;
    height: 350px;
    resize: vertical;
    background-color: #fff;
    box-shadow: none;
}

/* フォーカス時（クリックした時）の枠線を強調 */
.smf-textarea-control__control:focus,
.is-consultation-box .smf-text-control__control:focus,
.onamae:focus {
    outline: none;
    border-width: 2px;
    box-shadow: 0 0 5px rgba(0, 133, 155, 0.2);
}


.smf-textarea-control__control::placeholder {
    color: #a0a0a0;
}

/* --- エラーメッセージ本体 --- */
.smf-error-messages {
    color: #f3f3f3;
    background-color: #142a42;
    padding: 10px 20px;
    font-size: 20px;
    margin-top: 15px;
    display: block;
    text-align: center;
    width: 100%;
}


@media (max-width: 767px) {
    .snow-monkey-form {
        padding: 20px 10px;
    }

    .smf-item__label__text {
        color: #00859b;
        font-size: 20px;
    }


    .smf-item__col.smf-item__col--controls {
        max-width: 100%;
        /* スマホでは横幅いっぱい */
    }

    .smf-textarea-control__control {
        padding: 30px 20px !important;
        height: 300px;
    }

    .smf-error-messages {
        font-size: 18px;
    }
}

/* ==========================================
   ご相談内容
   ========================================== */
.smf-item.is-consultation-box {
    padding: 0 50px;
    margin: 0 auto 150px auto;
    max-width: 900px;
    position: relative;
}


.is-consultation-box .smf-item__controls>p {
    color: #00859b;
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

/* is-consultation-box内にある、2番目のpタグだけに余白を付ける */
.is-consultation-box .smf-item__controls>p:nth-of-type(2) {
    margin-top: 80px;
}

/* 5. URL入力欄 */
.is-consultation-box .smf-text-control__control {
    border: 1px solid #00859b !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    height: 60px;
    padding: 0 20px;
    text-align: center;
    font-size: 17px;
    width: 100%;
}

.is-consultation-box .smf-textarea-control__control {
    height: 250px;
}


/* チェックボックス */

.smf-checkboxes-control {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 20px;
}

.smf-checkboxes-control__control {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.smf-checkbox-control__control {
    transform: scale(1.5);
    transform-origin: center;
    cursor: pointer;
}

.smf-checkboxes-control__control .smf-checkbox-control__label {
    font-size: 18px;
    margin-left: 10px;
}





/* ボタン本体を直接指定 */

.smf-action {
    text-align: center;
    /* 中のボタン（inline-block）を中央に寄せる */
    width: 100%;
}

.smf-action .smf-button-control__control {
    /* --- ブラウザ・テーマの標準スタイルをリセット --- */
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    box-shadow: none;

    /* --- 基本スタイル --- */
    display: inline-block;
    width: 100%;
    padding: 25px 60px;
    font-size: 20px;
    letter-spacing: 0.1em;
    font-weight: bold;
    border-radius: 50px;
    margin: 100px auto;
    cursor: pointer;
    text-align: center;
    min-width: 320px;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;

    /* --- 初期状態 --- */
    background: #00859b !important;
    color: #f3f3f3 !important;
    border: #00859b 1px solid !important;

}

/* --- ななめスライドの背景部分 --- */
.smf-action .smf-button-control__control::before {
    content: "";
    position: absolute;
    top: 0;
    left: -15%;
    width: 0;
    height: 100%;
    background-color: #142a42;
    transform: skewX(-25deg);
    transform-origin: left;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

/* --- ホバー時の挙動 --- */
.smf-action .smf-button-control__control:hover {
    color: #fff;
}

.smf-action .smf-button-control__control:hover::before {
    width: 130%;
}

/* --- クリックした瞬間のリアクション --- */
.smf-action .smf-button-control__control:active {
    transform: scale(0.98);
}



@media (max-width: 767px) {

    /* 1. 外枠：パディングとマージンを凝縮 */
    .smf-item.is-consultation-box {
        padding: 40px 15px 30px;
        /* 上の余白を少し多めに確保 */
        margin: 60px auto 40px auto;
        border-radius: 8px;
    }

    /* 2. ラベル（ご相談内容1）：位置の微調整 */
    .is-consultation-box .smf-item__col--label {
        top: -30px;
        /* 枠の上に少し食い込む位置を維持 */

    }

    /* ラベルのテキストサイズ */
    .is-consultation-box .smf-item__label__text {
        font-size: 20px;
        background-color: #f3f3f3;
        /* 枠線を消すために背景色と同じ色を敷く（必要に応じて） */
        padding: 0 10px;
    }

    /* 3. 中の説明テキスト（pタグ） */
    .is-consultation-box .smf-item__controls>p {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    /* 4. URL入力欄 */
    .is-consultation-box .smf-text-control__control {
        height: 50px;
        font-size: 15px;
        border-radius: 8px !important;
    }

    .is-consultation-box .smf-item__controls>p:nth-of-type(2) {
        margin-top: 40px;
    }

    /* 5. テキストエリア（textarea）も含まれる場合 */
    .is-consultation-box .smf-textarea-control__control {
        height: 250px !important;
        padding: 20px !important;

    }

    .smf-action .smf-button-control__control {
        font-size: 18px;
        padding: 25px 40px;
    }
}







/* ==========================================
   サンクス
   ========================================== */

/* --- 追加：モーダル表示中は裏のページのスクロールをロックする --- */
body.is-modal-open {
    overflow: hidden !important;
}

/* --- モーダル全体のオーバーレイ（背景） --- */
.smf-thanks-modal {
    display: none;
    /* 本番用: none */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 42, 66, 1.0);
    z-index: 10000;
    align-items: center;
    /* 画面中央に固定 */
    justify-content: center;
    opacity: 0;
    /* 本番用: 0 */
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* 本番用: none */
}

/* 表示時のスタイル */
.smf-thanks-modal.is-show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* --- モーダルコンテンツ（外枠） --- */
.smf-thanks-modal-content {
    background-color: #142a42;
    color: #f3f3f3;
    border: 1px solid #f3f3f3;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: calc(100vh - 140px);
    /* 画面高さから余白を引いた最大値 */
    position: relative !important;
    /* ★ズレ防止: 強力に基準にする */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.smf-thanks-modal.is-show .smf-thanks-modal-content {
    transform: scale(1);
}

/* --- スクロールエリア（中身） --- */
.smf-thanks-modal-body {
    width: 100%;
    flex: 1;
    /* ★追加：外枠の高さに合わせて自動で縮む */
    min-height: 0;
    /* ★追加：Flexboxの仕様回避（これがないとスクロールバーが出ない） */
    overflow-y: auto;
    /* ★モーダル内でのみ縦スクロールを許可 */
    padding: 80px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
}

/* --- 画像エリア --- */
.smf-thanks-modal-image-area {
    margin-bottom: 40px;
    display: inline-block;
}

.smf-thanks-modal-image-area img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
}

/* --- メッセージテキスト --- */
.smf-thanks-modal-main-message {
    font-size: 25px;
    line-height: 1.5;
    margin: 0 0 50px;
}

.smf-thanks-modal-sub-message {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.smf-thanks-modal-sub-message span {
    color: rgba(255, 175, 38, 1);
    font-size: 16px;
}


@media screen and (max-width: 768px) {
    .smf-thanks-modal-content {
        width: 85%;
        max-height: calc(100vh - 120px);
    }

    .smf-thanks-modal-body {
        padding: 50px 20px;
    }

    .smf-thanks-modal-main-message {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .smf-thanks-modal-sub-message {
        font-size: 13px;
        text-align: left;
    }

    .smf-thanks-modal-image-area {
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 375px) {
    .smf-thanks-modal-main-message {
        font-size: 16px;
    }
}