@charset "utf-8";

/* --- 1. 全体共通・リセット --- */
html, body { overflow-x: hidden; width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Catmaran', 'Not Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #2c2c2c;
    background-color: #f8b62c;
    margin: 0;
}

ul { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
a:hover { opacity: 0.7; }

/* --- 2. ヘッダー --- */
.header_inner { text-align: center; padding: 20px 0; }
.header_inner img { height: 220px; width: 180px; }
.header_inner h1 { font-size: 60px; margin: 10px 0; font-weight: bold; }

header nav ul {
    display: flex;
    justify-content: space-around;
    width: 93%;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    font-weight: bold;
}
header nav ul li { padding: 15px 10px; font-size: 28px; }

/* --- 3. ニュース欄 --- */
.new-area {
    width: 93%;
    margin: 20px auto;
    background: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    height: 150px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.new-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.new-item:hover { background-color: #fffaf0; }
.new-cat { background: #f8b62c; color: #fff; font-size: 11px; font-weight: bold; padding: 3px 15px; border-radius: 5px; margin: 0 15px; min-width: 80px; text-align: center; }
.new-date { font-size: 14px; color: #888; flex-shrink: 0; }
.new-ttl { flex-grow: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- 4. メイン（白背景部分） --- */
.subPage main {
    background: #fff;
    margin: 20px 60px 50px;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}
.subPage h2 { font-size: 34px; text-align: center; margin-bottom: 40px; font-weight: bold; }
.subPage h3 { background: #fff9ef; border-left: 8px solid #f8b62c; padding: 15px 20px; font-size: 24px; margin: 60px 0 30px; text-align: left; }
.subPage .lead { font-size: 20px; text-align: center; margin-bottom: 30px; }

/* トップページサービス画像並び */
.ServiceSec ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.ServiceSec li { width: 300px; text-align: center; margin-bottom: 30px; }
.ServiceSec p img { width: 300px; height: 300px; object-fit: cover; }

/* 共通画像サイズ調整 */
.subPage .phot2 img { max-width: 400px; margin: 20px auto; display: block; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.subPage .phot5 img { max-width: 250px; margin: 10px auto; display: block; }
.subPage .phot4 img { width: 80px; display: block; }

/* --- 5. 表・フォーム・アコーディオン --- */
.table-wrapper { overflow-x: auto; margin-top: 30px; border-radius: 10px; border: 1px solid #eee; }
.tbl-r02 { width: 100%; border-collapse: collapse; }
.tbl-r02 th { background: #f8b62c; color: #fff; padding: 15px; width: 30%; }
.tbl-r02 td { padding: 15px; border-bottom: 1px solid #eee; font-size: 14px; text-align: left; }

/* 求人表リニューアル */
.recruit-table-wrapper { margin: 40px auto; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #f8b62c; }
.recruit-table { width: 100%; border-collapse: collapse; background: #fff; }
.recruit-table th { width: 30%; background-color: #f8b62c; color: #fff; padding: 20px; text-align: left; font-size: 16px; }
.recruit-table td { padding: 20px; font-size: 15px; color: #444; border-bottom: 1px solid #eee; line-height: 1.8; }

/* お問い合わせフォーム */
.toiawaseSec { max-width: 800px; margin: 0 auto; }
.wpcf7-form-control { width: 100% !important; padding: 12px !important; border: 1px solid #ccc !important; border-radius: 5px !important; margin-bottom: 15px !important; }
.wpcf7-submit { background-color: #f8b62c !important; color: #fff !important; padding: 15px 60px !important; border-radius: 30px !important; cursor: pointer; font-weight: bold; display: block; margin: 20px auto; }

/* --- 6. 看護師空き状況 (TablePress) --- */
.kyujin-flex { display: flex; gap: 30px; justify-content: space-between; margin-top: 20px; }
.kyujin-box { flex: 1; min-width: 0; }
.cat-male, .cat-female { padding: 10px; font-size: 18px; border-left: 6px solid; margin-bottom: 10px; }
.cat-male { background: #e3f2fd; color: #1976d2; border-color: #1976d2; }
.cat-female { background: #fff0f3; color: #d81b60; border-color: #d81b60; }

.tablepress thead th { background-color: #f8b62c !important; color: #fff !important; text-align: center !important; }
.tablepress td { text-align: center !important; font-size: 14px; padding: 10px 5px !important; color: #333 !important; }
.tablepress .column-1 { background-color: #fff9ef !important; font-weight: bold !important; width: 110px; color: #333 !important; }

/* --- 7. フッター --- */
.footer { padding: 2rem; background: #fff; margin-top: 60px; }
.footer img { margin-top: -70px; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.footer-nav-group { display: flex; gap: 80px; text-align: left; }
.footer__navi-heading { font-weight: bold; margin-bottom: 15px; }
.footer__address { line-height: 1.8; margin-top: 15px; font-style: normal; }

/* --- 8. スマホ版調整（640px以下） --- */
@media screen and (max-width: 640px) {
    header nav ul, .new-area, .subPage main, .footer-nav-group, .seiSec { width: calc(100% - 40px) !important; margin-left: auto !important; margin-right: auto !important; }
    .header_inner h1 { font-size: 24px; }
    header nav ul li { font-size: 14px; }
    
    .subPage main { margin-top: 15px !important; padding: 20px; }
    .new-area { margin-top: 15px !important; height: auto; max-height: 200px; }
    
    .subPage h2, .subPage h3 { font-size: 20px; }
    .ServiceSec li { width: 100%; }
    .ServiceSec p img { height: auto; width: 100%; }
    
    /* 画像はみ出し防止 */
    .subPage .phot2 img, .subPage .phot5 img, .subPage .phot4 img { width: 100% !important; max-width: 280px !important; }

    /* 空き状況・求人表スマホ対応 */
    .kyujin-flex { flex-direction: column; }
    .kyujin-box { overflow-x: auto; margin-bottom: 20px; }
    .recruit-table th, .recruit-table td { display: block; width: 100%; }
    .recruit-table th { background-color: #fff9ef; color: #f8b62c; padding: 10px 20px; }

    .footer-container { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav-group { justify-content: space-around; gap: 20px; margin-top: 30px; }
}
/* --- PC版ヘッダー電話番号 --- */
.header-contact {
    margin: 10px 0;
    text-align: center;
}
.tel-label {
    font-size: 14px;
    margin: 0;
    color: #666;
}
.tel-number {
    font-size: 24px;
    font-weight: bold;
    color: #f8b62c !important;
    text-decoration: none;
}

/* --- スマホ固定電話ボタン --- */
@media screen and (max-width: 640px) {
    .header-contact { display: none; } /* スマホではヘッダー内は隠す（邪魔なため） */

    .sp-tel-fix {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #f8b62c; /* テーマカラーのオレンジ */
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    .sp-tel-fix a {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        text-decoration: none;
        font-weight: bold;
        padding: 15px 0;
        font-size: 18px;
    }
    /* 下に固定ボタンが出る分、フッターに余白を作る */
    body { padding-bottom: 60px; }
}

/* PCではスマホ用ボタンを隠す */
@media screen and (min-width: 641px) {
    .sp-tel-fix { display: none; }
}

/* 900px以下での空き状況縦並び */
@media screen and (max-width: 900px) {
    .kyujin-flex { flex-direction: column; }
}
/* --- ヘッダー上部を左右に分ける --- */
.header-flex-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* ロゴ側の調整 */
.header-logo-link {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}
.header_inner img {
    height: 100px !important; /* PCでは少し小さくして横に並べやすく */
    width: auto !important;
}
.header_inner h1 {
    font-size: 28px !
}
    /* スマホ版（640px以下）では電話番号ボックスを隠す */
@media screen and (max-width: 640px) {
    .header-flex-top {
        flex-direction: column;
        text-align: center;
    }
    .header-contact-box {
        display: none; /* スマホは固定ボタンがあるのでヘッダー内は消す */
    }
    .header-logo-link {
        flex-direction: column;
        gap: 5px;
    }
}
/* --- ヘッダー上部のレイアウト調整 --- */
.header-flex-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* 下揃えにして落ち着かせる */
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* ロゴ・タイトル周り */
.header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header_inner img {
    height: 80px !important; /* さらにおさまりの良いサイズに */
    width: auto !important;
}
.header-site-title {
    font-size: 24px !important; /* ほどよい主張 */
    margin: 0 !important;
    color: #2c2c2c !important;
}

/* 右側の電話番号エリア（枠なし） */
.header-tel-area {
    text-align: right;
    padding-bottom: 5px;
}
.tel-label {
    font-size: 12px;
    margin: 0;
    color: #888;
}
.tel-link {
    text-decoration: none;
}
.tel-number {
    font-size: 22px; /* 大きすぎず、でも読みやすいサイズ */
    font-weight: bold;
    color: #f8b62c !important; /* テーマカラーで視認性確保 */
}

/* スマホ版（640px以下）の微調整 */
@media screen and (max-width: 640px) {
    .header-flex-top {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .header-tel-area {
        display: none; /* スマホは固定ボタンがあるので非表示 */
    }
    .header_inner img {
        height: 70px !important;
    }
    .header-site-title {
        font-size: 20px !important;
    }
}
/* --- ヘッダー：バナー風ボタンの調整 --- */
.header-flex-top {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 中央で揃える */
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* ロゴのサイズ調整 */
.header_inner img {
    height: 60px !important; /* バナーに合わせたスリムな高さ */
    width: auto !important;
}

.header-site-title {
    font-size: 20px !important;
    margin: 0 !important;
    color: #2c2c2c !important;
}

/* 電話バナーボタンの設定 */
.tel-banner-btn {
    background-color: #fff; /* テーマカラー */
    color: #f8b62c !important;
    padding: 8px 20px;
    border-radius: 50px; /* 丸みのあるバナー風 */
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tel-banner-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* スマホ版（640px以下） */
@media screen and (max-width: 640px) {
    .header-btn-area {
        display: none; /* スマホは固定ボタンがあるため非表示 */
    }
    .header-flex-top {
        padding: 10px;
    }
}
/* --- ヘッダー：一番最初のデザインを復元しつつボタンを追加 --- */
.header-top-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 中央寄せを維持するためのダミーと配置設定 */
.header-empty { width: 150px; } /* 右のボタン幅と同じくらいに設定 */
.header-logo-center { flex-grow: 1; text-align: center; }
.header-btn-right { width: 150px; text-align: right; }

/* --- 【復元】一番最初のロゴデザイン --- */
.header-logo-center img {
    height: 220px !important;
    width: 180px !important;
    margin: 0 auto;
}

.header-logo-center h1 {
    font-size: 60px !important;
    margin: 10px 0 !important;
    color: #2c2c2c !important;
    font-weight: bold !important;
    margin-top: -10px !important;
}

/* --- 【追加】控えめなバナーボタン --- */
.tel-banner-btn {
    background-color: #fff;
    color: #333 !important;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* スマホ版（640px以下） */
@media screen and (max-width: 640px) {
    .header-btn-right, .header-empty { display: none; }
    .header-logo-center h1 { font-size: 24px !important; }
    .header-logo-center img { height: 120px !important; width: 100px !important; }
}
/* --- FAQ全体のコンテナ調整 --- */
.ewd-ufaq-faq-list {
    max-width: 850px;
    margin: 40px auto !important;
    padding: 0 15px;
}

/* --- 英語のメタデータ(Posted by等)を完全に抹殺 --- */
.ewd-ufaq-metadata, .ewd-ufaq-author, .ewd-ufaq-date, 
.ewd-ufaq-post-margin-advance, .ewd-ufaq-categories {
    display: none !important;
}

/* --- 質問(Q)のデザイン --- */
.ewd-ufaq-faq-div {
    border: 2px solid #fff9ef !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.ewd-ufaq-faq-title {
    background: #fff !important;
    padding: 15px 20px !important;
    transition: 0.3s;
}

.ewd-ufaq-faq-title a {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center;
}

/* 質問の頭に「Q」を付ける */
.ewd-ufaq-faq-title a::before {
    content: "Q";
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #f8b62c; /* ステップ様のオレンジ */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 15px;
    font-size: 16px;
    flex-shrink: 0;
}

/* --- 回答(A)のデザイン --- */
.ewd-ufaq-faq-body {
    background: #fffaf0 !important; /* ほんのりオレンジの薄い背景 */
    padding: 20px 25px !important;
    border-top: 1px solid #fff9ef;
    line-height: 1.8 !important;
    font-size: 16px;
    color: #444;
}

/* 回答の頭に「A」を付ける */
.ewd-ufaq-faq-body::before {
    content: "A";
    display: inline-block;
    font-weight: bold;
    color: #f8b62c;
    margin-right: 10px;
    font-size: 20px;
}

/* --- スマホ対応 (640px以下) --- */
@media screen and (max-width: 640px) {
    .ewd-ufaq-faq-title a {
        font-size: 16px !important;
    }
    .ewd-ufaq-faq-title a::before {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 14px;
    }
    .ewd-ufaq-faq-body {
        font-size: 15px;
    }
}
@media screen and (max-width: 640px) {
    /* 1. 求人表全体の箱を画面幅に合わせる */
    .recruit-table-wrapper, 
    .recruit-table-wrapper .tablepress {
        width: 100% !important;
        margin: 10px auto !important;

        box-sizing: border-box !important;
    }

    /* 2. 横並びを解除して縦に並べる（重要） */
    .recruit-table-wrapper tr,
    .recruit-table-wrapper th,
    .recruit-table-wrapper td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important; /* スマホでは左寄せが見やすい */
    }

    /* 3. 項目（募集職種など）のデザイン */
    .recruit-table-wrapper th,
    .recruit-table-wrapper .column-1 {
        background-color: #fff9ef !important; /* 薄いオレンジ背景 */
        color: #f8b62c !important;           /* オレンジ文字 */
        padding: 10px 15px !important;
        border-bottom: none !important;
        font-size: 14px !important;
    }

    /* 4. 内容（詳細テキスト）のデザイン */
    .recruit-table-wrapper td,
    .recruit-table-wrapper .column-2 {
        padding: 10px 15px 20px !important; /* 下に余白を作って区切りを明確に */
        background-color: #ffffff !important;
        border-bottom: 1px solid #eee !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* 最後の行の線は消す */
    .recruit-table-wrapper tr:last-child td {
        border-bottom: none !important;
    }
}
