/*
Theme Name: Mawaru Theme
Theme URI: https://ggg2m.github.io/mawaru-homon-kango/
Author: Top Web Designer
Description: Luxury & Editorial design for Mawaru Nursing Care Station. (Recruit Focused)
Version: 1.1
*/


/* スムーススクロールと、ヘッダー被り防止の余白設定 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px; 
}


body {
    background-color: #fcfcfc;
    color: #1a1a1a;
    overflow-x: hidden;
    font-feature-settings: "palt"; /* 美しいタイポグラフィのための文字詰め */
}

/* Fade-in-Up アニメーション */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ブロークングリッド用の重なり要素に適用する影 */
.editorial-shadow {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.05);
}

/* 画像のエディトリアルフィルターとホバー演出 */
.img-luxury {
    filter: contrast(1.1) saturate(0.85);
    transition: filter 0.8s ease, transform 1.5s ease;
}

.img-wrap:hover .img-luxury {
    filter: contrast(1) saturate(1.1);
    transform: scale(1.03);
}

/* テキストの選択色 */
::selection {
    background-color: #9b59b6;
    color: white;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}




/* ==================================================
   Contact Form 7 Custom Styles - Editorial & Luxury
================================================== */

.cf7-custom-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
    text-align: left;
}

/* 各入力項目の余白 */
.cf7-row {
    margin-bottom: 2.5rem;
}

/* ラベル（項目名）のデザイン */
.cf7-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

/* 「必須」バッジのデザイン（メインカラー） */
.cf7-row label .required {
    display: inline-block;
    background-color: #9b59b6;
    color: #fff;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    margin-left: 0.75rem;
    vertical-align: middle;
    font-weight: normal;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

/* 入力フィールド（テキスト、メール、電話、テキストエリア）のデザイン */
.wpcf7-form-control.cf7-input,
.wpcf7-form-control.cf7-textarea {
    width: 100%;
    background-color: #f9fafb; /* 真っ白なカード背景に対して、ごくわずかに色をつけて入力欄を認識させる */
    border: 1px solid #e5e7eb;
    color: #1a1a1a;
    padding: 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0; /* 角をなくして雑誌風のシャープさを出す */
}

/* テキストエリアの高さ設定 */
.wpcf7-form-control.cf7-textarea {
    min-height: 200px;
    resize: vertical;
}

/* 入力中のフォーカス状態（メインカラーで縁取り＋背景を真っ白に） */
.wpcf7-form-control.cf7-input:focus,
.wpcf7-form-control.cf7-textarea:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 1px #9b59b6;
    background-color: #ffffff;
}

/* プレースホルダー（入力例）の文字色 */
.wpcf7-form-control::placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ラジオボタン（選択肢）のレイアウト */
.wpcf7-list-item {
    margin-right: 2rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.wpcf7-list-item-label {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
    cursor: pointer;
}

/* 送信ボタンエリアの余白 */
.cf7-submit-wrap {
    margin-top: 4rem;
    text-align: center;
}

/* 送信ボタンのデザイン */
.wpcf7-form-control.cf7-submit {
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 1.25rem 3rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 0;
    width: 100%;
    max-width: 400px;
}

/* 送信ボタンのホバー状態（メインカラーに変化して少し浮く） */
.wpcf7-form-control.cf7-submit:hover {
    background-color: #9b59b6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(155, 89, 182, 0.5);
}

/* 送信完了・エラーメッセージ枠のデザイン */
div.wpcf7-response-output {
    border-radius: 0 !important;
    margin-top: 2rem !important;
    padding: 1rem !important;
    font-size: 0.9rem !important;
    border: 1px solid #1a1a1a !important;
}

/* 入力エラー時のテキスト（落ち着いた赤） */
span.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #e11d48;
}


/* ゆっくり回転するラウンドテキスト用アニメーション */
@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-slow-spin {
    animation: slowSpin 25s linear infinite;
}