/* ============================
   下層ページ共通スタイル
   (voyage_tcd121_child)
   ver 1.22
============================ */


/* -----------------------------------------------
   ページヘッダー：縦書き → 横書き 上書き
----------------------------------------------- */

body.page_header_catch_vertical #page_header .content,
body.page_header_catch_vertical #page_header .content .title {
    writing-mode: horizontal-tb !important;
    letter-spacing: 0.12em;
}

/* ヘッダー全体の高さをコンパクトに */
body.page #page_header {
    height: auto !important;
    min-height: 180px;
    padding: 48px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page #page_header .content {
    height: auto !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page #page_header .content .title {
    height: auto !important;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
    position: relative;
    padding-bottom: 0.6em;
}

/* タイトル下のアンダーライン */
body.page #page_header .content .title::after {
    content: '';
    display: block;
    width: 2.5em;
    height: 2px;
    background: rgba(255,255,255,0.6);
    margin: 0.4em auto 0;
    border-radius: 2px;
}


/* -----------------------------------------------
   ページヘッダー：背景グラデーション + 装飾
----------------------------------------------- */

body.page #page_header {
    background:
        linear-gradient(150deg, #1b3f5c 0%, #255d82 45%, #317fa8 100%);
    position: relative;
    overflow: hidden;
    /* 親テーマが width:calc(100%-200px) を固定指定しているため width で上書き
       100px(左margin) + header幅 + 160px(サイドボタン領域) = 1710px
       → header幅 = calc(100% - 260px) で右端がボタンより手前に収まる */
    width: calc(100% - 260px) !important;
    margin-right: 0;
}

/* 斜め格子パターン（透過） */
body.page #page_header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.035) 0px,
            rgba(255,255,255,0.035) 1px,
            transparent 1px,
            transparent 28px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,0.035) 0px,
            rgba(255,255,255,0.035) 1px,
            transparent 1px,
            transparent 28px
        );
    pointer-events: none;
}

/* 右下：大きい装飾サークル */
body.page #page_header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

/* 左上：小さい装飾サークル（疑似要素を追加できないため .content::before を流用） */
body.page #page_header .content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 28px solid rgba(255,255,255,0.05);
    pointer-events: none;
}


/* -----------------------------------------------
   ページヘッダーを過ぎたらサイドボタンをフェード
   （JS が body.past_page_header を付与する）
----------------------------------------------- */

/* transition はここで定義（JS の setProperty で opacity を直接制御するため） */
#side_button,
#side_copy {
    transition: opacity 0.35s ease !important;
}

body.past_page_header #side_button,
body.past_page_header #side_copy {
    opacity: 0 !important;
    pointer-events: none !important;
}


/* -----------------------------------------------
   スマホ対応
----------------------------------------------- */

@media (max-width: 767px) {
    body.page #page_header {
        min-height: 120px;
        padding: 36px 16px;
    }
}


/* -----------------------------------------------
   一般固定ページ本文の読みやすさ向上
   （privacy-policy 等、専用テンプレートを持たないページ）
----------------------------------------------- */

/* 親テーマのデフォルト line-height 2.4 → 1.9 に適正化 */
body.page article.post_content .tcdce-body p,
body.page article.post_content .tcdce-body li {
    line-height: 1.9;
    font-size: 1rem; /* 16px を明示 */
}

/* 見出しの上余白を確保して可読性向上（一般テキスト内のみ） */
body.page article.post_content .tcdce-body h2,
body.page article.post_content .tcdce-body h3,
body.page article.post_content .tcdce-body h4 {
    margin-top: 2em;
    margin-bottom: 0.6em;
}
/* コンポーネント内の見出しは上余白をリセット
   （service-item / highlight-card / staff-box / recommend-box の h3/h4 が対象） */
body.page article.post_content .service-item__body h4,
body.page article.post_content .service-highlight-card h3,
body.page article.post_content .service-staff-box h3 {
    margin-top: 0;
    margin-bottom: 6px;
}
/* recommend-box のタイトルは下余白を 16px に保つ */
body.page article.post_content h3.service-recommend-box__title {
    margin-top: 0;
    margin-bottom: 16px;
}

/* 本文エリア最大幅と余白（専用テンプレートを持たない一般ページのみ） */
body.page article.post_content {
    max-width: 860px;
    margin: 48px auto 80px;
    padding: 0 24px;
}
/* service(120) / contact(131) / recruit(139) / disclosure(138) は
   独自ラッパーで幅制御するため article の制約を解除 */
body.page-id-120 article.post_content,
body.page-id-131 article.post_content,
body.page-id-139 article.post_content,
body.page-id-138 article.post_content {
    max-width: none;
    margin: 0;
    padding: 0;
}


/* ===============================================
   お手伝いの内容ページ（/service/）固有スタイル
=============================================== */

/* ─── ラッパー ─── */
.service-page-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 60px;
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
}

/* ─── イントロ ─── */
.service-intro {
    padding: 40px 32px 36px;
    background: #f7f9fc;
    border-left: 4px solid #255d82;
    border-radius: 0 8px 8px 0;
    margin-bottom: 60px;
}
.service-intro p {
    margin: 0 0 0.6em;
}
.service-intro p:last-child { margin-bottom: 0; }

/* ─── セクション共通 ─── */
.service-section {
    margin-bottom: 72px;
}

.service-section__header {
    position: relative;
    padding: 32px 32px 28px;
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
}
.service-section__header.gh {
    background: linear-gradient(135deg, #1b3f5c 0%, #317fa8 100%);
}
.service-section__header.jk {
    background: linear-gradient(135deg, #1a4d3e 0%, #2d7a5e 100%);
}
.service-section__header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 30px solid rgba(255,255,255,0.07);
    pointer-events: none;
}

.service-section__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.65);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.service-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 4px !important;
    line-height: 1.2 !important;
}
.service-section__subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
/* wpautop が生成する空 <p> を非表示 */
.service-section__header p:empty {
    display: none;
}

/* ─── リードテキスト ─── */
.service-section__lead {
    padding: 0 4px;
    margin-bottom: 36px;
}
.service-section__lead p {
    margin: 0 0 0.7em;
}
.service-section__lead p:last-child { margin-bottom: 0; }

/* ─── 強みカード（3列） ─── */
.service-highlight-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}
.service-highlight-card {
    background: #fff;
    border: 1px solid #e0eaf2;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(37,93,130,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(37,93,130,0.12);
}
.service-highlight-card__icon {
    font-size: 2rem;
    color: #317fa8;
    display: block;
    margin-bottom: 10px;
}
.service-highlight-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1b3f5c;
    margin: 0 0 8px;
    line-height: 1.4;
}
.service-highlight-card p {
    font-size: 0.9375rem;
    color: #555;
    margin: 0;
    line-height: 1.75;
}

/* ─── サポート内容（アイコン付きリスト） ─── */
.service-items__heading {
    font-size: 1rem;
    font-weight: 700;
    color: #255d82;
    border-bottom: 2px solid #e0eaf2;
    padding-bottom: 8px;
    margin: 0 0 20px;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.service-item {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.service-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #edf4f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-item__icon i {
    font-size: 1.3rem;
    color: #255d82;
}
.service-item__body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1b3f5c;
    margin: 0 0 6px;
}
.service-item__body p {
    font-size: 0.9375rem;
    color: #555;
    margin: 0;
    line-height: 1.75;
}

/* ─── 施設一覧CTAボックス ─── */
.service-cta-box {
    background: linear-gradient(135deg, #edf4f9 0%, #ddeaf5 100%);
    border: 1px solid #c2d9eb;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}
.service-cta-box p {
    margin: 0 0 20px;
    font-size: 1rem;
    color: #333;
    line-height: 1.85;
}
.service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #255d82;
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 3px 12px rgba(37,93,130,0.3);
}
.service-cta-btn:hover {
    background: #1b3f5c;
    transform: translateY(-2px);
}
.service-cta-btn i {
    font-size: 1rem;
    vertical-align: middle;
    line-height: 1;
}
.service-cta-btn br,
.service-contact-btn br {
    display: none;
}

/* ─── プログラムリスト（自立訓練） ─── */
.service-program-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-program-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #d5e8de;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    color: #2a4a3a;
    font-weight: 500;
}
.service-program-list li i {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #2d7a5e;
    width: 20px;
    text-align: center;
}
/* WordPress エディタが挿入する <br> を flex レイアウト内で非表示 */
.service-program-list li br {
    display: none;
}

/* ─── おすすめ対象ボックス ─── */
.service-recommend-box {
    background: #f0faf5;
    border: 1px solid #b8ddc9;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 28px;
}
.service-recommend-box__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a4d3e;
    margin: 0 0 16px;
}
.service-recommend-box__title i {
    font-size: 1.1rem;
    color: #2d7a5e;
    vertical-align: middle;
    line-height: 1;
}
.service-recommend-box__title br {
    display: none;
}
.service-recommend-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* divベース実装 */
.service-recommend-item {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-size: 1rem;
    color: #333;
    padding: 2px 0;
}

/* FA check アイコン */
.service-recommend-check {
    color: #2d7a5e;
    margin-right: 10px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* 親テーマの ul li スタイルに対抗 */
body.page .service-recommend-list {
    list-style: none !important;
    padding-left: 0 !important;
}

/* ─── スタッフ情報ボックス ─── */
.service-staff-box {
    background: #fff;
    border: 1px solid #e0eaf2;
    border-radius: 10px;
    padding: 24px 28px;
}
.service-staff-box h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a4d3e;
    margin: 0 0 8px;
}
.service-staff-box p {
    font-size: 0.9375rem;
    color: #555;
    margin: 0 0 14px;
    line-height: 1.75;
}
.service-staff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.service-staff-tags span {
    background: #e8f4ee;
    color: #1a4d3e;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid #b8ddc9;
}

/* ─── お問い合わせ誘導バー ─── */
.service-contact-bar {
    background: linear-gradient(135deg, #1b3f5c 0%, #255d82 100%);
    border-radius: 12px;
    padding: 36px 32px;
    text-align: center;
    margin-top: 60px;
}
.service-contact-bar p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0 0 20px;
}
.service-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #255d82 !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.service-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.service-contact-btn i {
    font-size: 1rem;
    vertical-align: middle;
    line-height: 1;
}

/* ─── レスポンシブ ─── */
@media (max-width: 767px) {
    .service-intro {
        padding: 24px 20px;
        margin-bottom: 40px;
    }
    .service-highlight-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .service-items {
        grid-template-columns: 1fr;
    }
    .service-section__header {
        padding: 24px 20px;
    }
    .service-cta-box,
    .service-contact-bar {
        padding: 24px 20px;
    }
    .service-recommend-box {
        padding: 20px;
    }
}


/* ============================================================
   お問い合わせページ（/contact/）
   ============================================================ */

.contact-page-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 80px;
}

/* ─── イントロ ─── */
.contact-intro {
    margin-bottom: 48px;
}
.contact-intro > p {
    font-size: 1rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 28px;
}
.contact-tel-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #f0f6fb;
    border: 1px solid #c8dfee;
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
}
.contact-tel-label {
    font-size: 0.9375rem;
    color: #255d82;
    font-weight: 600;
    margin: 0;
}
.contact-tel-label i { margin-right: 6px; }
.contact-tel-number {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #1b3f5c;
    letter-spacing: 0.06em;
    margin: 0;
}
.contact-tel-hours {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* ─── 注意事項 ─── */
.contact-notes {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 56px;
}
.contact-notes__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 16px !important;
    padding-left: 0 !important;
}
.contact-notes__title::before { display: none !important; }
.contact-notes__list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}
.contact-notes__list li {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 6px;
}
.contact-notes__list li::before { display: none !important; }

/* ─── フォームセクション見出し ─── */
.contact-form-section__title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1b3f5c !important;
    border-left: 4px solid #255d82;
    padding-left: 14px !important;
    margin: 0 0 32px !important;
}
.contact-form-section__title::before { display: none !important; }

/* ─── CF7フォーム本体 ─── */
.cf7-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* WP Armour 管理者通知を非表示 */
.wpa-test-msg { display: none !important; }

.cf7-form-wrap label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.cf7-required {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: #c0392b;
    border-radius: 3px;
    padding: 2px 6px;
    letter-spacing: 0.03em;
}
.cf7-optional {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: #888;
    border-radius: 3px;
    padding: 2px 6px;
    letter-spacing: 0.03em;
}

/* CF7の入力欄 */
.cf7-form-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.cf7-form-wrap input[type="text"],
.cf7-form-wrap input[type="email"],
.cf7-form-wrap input[type="tel"],
.cf7-form-wrap select,
.cf7-form-wrap textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.cf7-form-wrap input:focus,
.cf7-form-wrap select:focus,
.cf7-form-wrap textarea:focus {
    outline: none;
    border-color: #255d82;
    box-shadow: 0 0 0 3px rgba(37,93,130,0.12);
}
.cf7-form-wrap textarea {
    min-height: 160px;
    resize: vertical;
}
/* utility.css の .wpcf7 input/.wpcf7 textarea { padding:8px } を上書き
   （.wpcf7 が外側、.cf7-form-wrap が内側） */
.wpcf7 .cf7-form-wrap input[type="text"],
.wpcf7 .cf7-form-wrap input[type="email"],
.wpcf7 .cf7-form-wrap input[type="tel"],
.wpcf7 .cf7-form-wrap textarea {
    padding: 12px 14px !important;
    font-size: 1rem !important;
}
.cf7-form-wrap select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
/* utility.css の .wpcf7 select { width:auto; font-size:14px; padding:8px } を上書き
   （.wpcf7 が外側、.cf7-form-wrap が内側） */
.wpcf7 .cf7-form-wrap select {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 12px 36px 12px 14px !important;
}

/* 同意チェックボックス */
.cf7-consent {
    text-align: center;
}
.cf7-consent p {
    margin: 0;
}
.cf7-consent label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    cursor: pointer;
    /* チェックボックス幅(18px)+gap(8px)の半分を補正してテキストを視覚的中央に */
    transform: translateX(-13px);
}
/* acceptance内のwrapperをinlineに戻す */
.cf7-consent .wpcf7-form-control-wrap {
    display: inline-block !important;
    width: auto !important;
}
.cf7-consent .wpcf7-acceptance {
    display: inline-block;
}
.cf7-consent .wpcf7-list-item {
    display: inline-block;
    margin: 0;
}
.cf7-form-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #255d82;
    cursor: pointer;
    flex-shrink: 0;
}

/* reCAPTCHA注記 */
.cf7-recaptcha-note {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
    line-height: 1.7;
}
.cf7-recaptcha-note a { color: #255d82; }

/* 送信ボタン */
.cf7-submit-wrap {
    text-align: center;
    padding: 8px 0;
    margin-top: 0;
}
.cf7-submit-wrap p {
    margin: 0;
}
.cf7-form-wrap input[type="submit"],
.cf7-form-wrap .wpcf7-submit {
    display: inline-block;
    background: #255d82;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 56px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(37,93,130,0.35);
}
.cf7-form-wrap input[type="submit"]:hover,
.cf7-form-wrap .wpcf7-submit:hover {
    background: #1b3f5c;
    transform: translateY(-2px);
}

/* バリデーションエラー */
.cf7-form-wrap .wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 4px;
}
.cf7-form-wrap .wpcf7-not-valid {
    border-color: #c0392b !important;
}
.cf7-form-wrap .wpcf7-response-output {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-top: 16px;
}

/* ─── レスポンシブ ─── */
@media (max-width: 640px) {
    .contact-tel-box { padding: 20px; }
    .contact-notes { padding: 20px; }
}
