/*
Theme Name: 細川辰夫 税理士事務所テーマ
Author: Your Name
Version: 1.0
*/

/* 共通のサブヒーロースタイル（ABOUTと共通） */
.sub-hero {
    height: 300px;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-bottom: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

    @media screen and (max-width: 768px) {
        .sub-hero {
            height: 180px;
        }
}

/* タイトルを包むコンテナ（1020px幅の中に入れる） */
.sub-hero-container {
    width: 100%;
    max-width: 1020px;
    margin: 0 0;
    padding: 0;
}

.sub-hero-titles {
    display: flex;
    align-items: baseline; /* 文字の底辺（ベースライン）を合わせる */
    gap: 20px;             /* タイトル間の余白 */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%), 
            url('img/about-hero.jpg') no-repeat center/cover;
    padding: 20px 50px;
    left:0;
    bottom:0;
}

@media screen and (max-width: 768px) {
.sub-hero-titles {
    display: flex;
    align-items: baseline; /* 文字の底辺（ベースライン）を合わせる */
    gap: 10px;             /* タイトル間の余白 */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%), 
            url('img/about-hero.jpg') no-repeat center/cover;
    padding: 20px;
    left:0;
    bottom:0;}
}

/* タイトル設定（ABOUTと共通） */
.sub-hero .main-title {
    font-family: 'Futura', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 0;

    /* グラデーション */
    background: linear-gradient(90deg, #56C238 0%, #659C56 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}


@media screen and (max-width: 768px) {
    .sub-hero .main-title {
        font-size: 2.5rem;
    }
}

.sub-hero .sub-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1;
}

.sub-hero-titles {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

/* contact.css に追加 */
.contact-hero {
    background: url('../img/contact-mailimg.jpg') no-repeat center/cover; /* フォーム用の背景画像 */
}

.wpcf7{
    margin-bottom: 10%;
}

.contact-intro {
    text-align: left;
    padding: 60px 0 40px;
    font-size: 1.05rem;
}

.tel-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #6ba363;
    color: #fff;
    font-size: 24px;
    max-width: 100%;
    margin: 30px auto 0;
    padding: 15px;
    text-decoration: none;
    border-radius: 5px;
    gap: 20px;
}

.tel-banner strong {
    font-family: Futura;
    font-size: 39px;
    letter-spacing: 0.3rem;}

/* フォーム全体の枠組み */
.custom-form {
    max-width: 1020px;
    margin: 0;
    color: #333;
}

.form-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-item.align-top {
    align-items: flex-start;
}

/* ラベル部分（左側） */
.form-label {
    width: 40%;
    font-weight: bold;
    font-size: 19px;
}

.required {
    color: #e63946;
    font-size: 11px;
    margin-left: 8px;
}

/* 入力欄部分（右側） */
.form-input {
    flex: 1;
}

/* --- 修正箇所：一律 100% をやめる --- */
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form select {
    /* width: 100%; ← これを削除またはコメントアウト */
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-size: 15px;
    background: transparent;
    outline: none;
    box-sizing: border-box;
}

/* メールアドレス確認欄 */
.email-confirm-wrap {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
.email-confirm-wrap span {
    font-size: 12px;
    margin-right: 10px;
}

/* --- 電話・郵便番号専用の横並び設定 --- */
.tel-inputs, .zip-inputs {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%; /* 親の幅は100% */
}

.tel-inputs p, .zip-inputs p {
    display: flex !important;
}
/* 各入力欄を包むスパンを均等に広げる */
.tel-inputs .wpcf7-form-control-wrap,
.zip-inputs .wpcf7-form-control-wrap {
    flex: 1; 
    display: block;
}

/* 電話・郵便番号の中のinputだけを100%にする */
.tel-inputs input, 
.zip-inputs input {
    width: 100% !important; 
    text-align: center;
}
/* ハイフンの調整 */
.hyphen {
    flex-grow: 0;
    padding: 0 5px;
    color: #333;
}

/* --- その他の通常の入力欄は 100% に戻す --- */
/* 電話番号や郵便番号「以外」の直下にある入力欄を100%にする */
.form-input > .wpcf7-form-control-wrap > input:not([name^="tel"]):not([name^="zip"]) {
    width: 100%;
}
/* あるいはシンプルに、個別に指定するならこちら */
[name="your-name"], [name="your-kana"], [name="your-email"], [name="your-email-confirm"], [name="address"], [name="company"], [name="company-kana"], [name="department"] {
    width: 100%;
}

/* ラジオボタンの縦並び */
.wpcf7-list-item {
    display: block;
    margin: 0 0 10px 0;
}

/* お問い合わせ詳細の枠線 */
textarea {
    width: 100%;
    height: 200px;
    border: 1px solid #ccc;
    padding: 10px;
}

/* プライバシーポリシー */
.policy-section {
    margin-top: 50px;
    text-align: center;
}
.policy-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
}
.policy-box {
    height: 150px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: left;
    font-size: 13px;
    line-height: 1.8;
    background: #fdfdfd;
}
.policy-check {
    margin: 20px 0 40px;
}

/* 送信ボタン（画像のようなグリーンの角丸） */
.form-submit {
    text-align: center;
}
.form-submit p {
    width: 50%;
    margin: auto;
}

.wpcf7-submit {
    background: #56C238 !important; /* あなたのサイトのテーマカラー */
    color: #fff !important;
    padding: 15px 80px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer;
    width: 100%;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
    .form-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-label {
        width: 100%;
        margin-bottom: 0;
    }
    
    
.form-input {
    flex: 1;
    width: 100%;
}
    
 .form-input p{  
     margin: 0;
    }
    
    .sub-hero-titles {
    padding: 20px;
}
    
    .sub-hero-titles {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-direction: column;
}
}

/* --- Responsive (Contact) --- */
@media screen and (max-width: 768px) {
    .tel-banner {
        flex-direction: column;
        gap: 0;
        width: 90%;
        line-height: normal;
    }

    .tel-banner strong {
        font-size: 2rem;
    }

    /* フォームのラベルと入力を縦並びに */
    .form-group {
        flex-direction: column;
        padding: 20px 0;
    }

    .form-group label {
        width: 100%;
        margin-bottom: 10px;
    }


    .tel-inputs, .zip-inputs {
        display: flex !important;
        flex-wrap: nowrap; /* 折り返さない */
    }

    .btn-submit {
        width: 100%;
        padding: 15px 0;
    }
    
    .wpcf7-submit {
    padding: 15px 0 !important;
}
}