/* --- 変数設定 --- */
:root {
    --main-color: #50c878;       /* エメラルドグリーン */
    --light-color: #e0f2f1;      /* 淡いエメラルド */
    --accent-color: #ff9800;     /* ボタン用オレンジ */
    --text-color: #333;
}

/* --- 基本設定 --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'BIZ UDPGothic', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

h2, p { margin: 0 0 15px; }

/* --- ヘッダー --- */
header {
    background-color: #fff;
    border-bottom: 2px solid var(--main-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    color: var(--main-color);
    font-weight: bold;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li { margin-left: 20px; }

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.nav-recruit a {
    background-color: var(--main-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
}

/* --- メインビジュアル --- */
.hero {
    background-color: var(--light-color);
    padding: 100px 20px;
    text-align: center;
}

.hero-sub {
    color: var(--main-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 20px;
}

/* --- セクション共通 --- */
.section-title {
    text-align: center;
    color: var(--main-color);
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--main-color);
    margin: 10px auto;
}

/* --- ボタン --- */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 0 #e68a00;
    transition: 0.2s;
}

.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #e68a00; }

/* --- 募集要約 --- */
.recruit-summary { background: #fdfdfd; text-align: center; }
.recruit-box {
    background: white;
    border: 2px dashed var(--main-color);
    padding: 30px;
    border-radius: 15px;
}
.recruit-point { color: #d32f2f; font-weight: bold; margin: 20px 0; }

/* --- アクセス・診療時間 --- */
.map-placeholder {
    background: #eee;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
}

table th { background: var(--light-color); }

.recruit-table {
    text-align: left;
    margin-bottom: 30px;
}
.recruit-table th { width: 30%; text-align: left; }

/* --- レスポンシブ (600px以下) --- */
.menu-toggle, .menu-icon { display: none; }

@media (max-width: 600px) {
    .menu-icon {
        display: block;
        width: 30px; height: 25px;
        position: relative; z-index: 1001;
    }
    .menu-icon span {
        display: block; height: 3px; width: 100%;
        background-color: var(--main-color);
        position: absolute; transition: 0.3s;
    }
    .menu-icon span:nth-child(1) { top: 0; }
    .menu-icon span:nth-child(2) { top: 11px; }
    .menu-icon span:nth-child(3) { top: 22px; }

    .nav-menu {
        position: fixed; top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: white; padding-top: 80px;
        transition: 0.4s; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-menu ul { flex-direction: column; align-items: center; }
    .nav-menu li { margin: 15px 0; }
    
    .menu-toggle:checked ~ .nav-menu { right: 0; }
    .menu-toggle:checked + .menu-icon span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle:checked + .menu-icon span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked + .menu-icon span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    .hero h2 { font-size: 1.8rem; }
    .recruit-table th { width: 100%; display: block; }
    .recruit-table td { width: 100%; display: block; }
}

/* フォームのスタイル */
.apply-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group label span {
    background: #ff4d4d;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* 幅を100%に収める */
    font-family: inherit;
}

.privacy-check {
    background: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    text-align: center;
}

.submit-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
}

.text-center { text-align: center; }

/* フォームのスタイル */
.apply-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group label span {
    background: #ff4d4d;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* 幅を100%に収める */
    font-family: inherit;
}

.privacy-check {
    background: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    text-align: center;
}

.submit-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
}

.text-center { text-align: center; }

:root {
    --main-color: #50c878;
    --light-color: #e0f2f1;
    --accent-color: #ff9800;
    --text-color: #333;
}

body {
    margin: 0; padding: 0;
    font-family: 'BIZ UDPGothic', sans-serif;
    color: var(--text-color); line-height: 1.8;
}

.container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.bg-light { background-color: var(--light-color); }
.text-center { text-align: center; }
.p-40 { padding: 40px 0; }

/* ヘッダー・ナビ（前回の内容を維持） */
header { background: #fff; border-bottom: 3px solid var(--main-color); position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; color: var(--main-color); margin: 0; }
.nav-menu ul { list-style: none; display: flex; margin: 0; }
.nav-menu li { margin-left: 20px; }
.nav-menu a { text-decoration: none; color: var(--text-color); font-weight: bold; }
.nav-recruit a { background: var(--main-color); color: #fff; padding: 8px 15px; border-radius: 20px; }

/* ボタン */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 30px;
    text-decoration: none; font-weight: bold; transition: 0.3s;
    background: var(--main-color); color: #fff; border: none;
}
.btn-orange { background: var(--accent-color); box-shadow: 0 4px 0 #e68a00; }
.btn-outline { background: transparent; border: 2px solid var(--main-color); color: var(--main-color); }
.btn:hover { opacity: 0.8; transform: translateY(-2px); }

/* メインビジュアル */
.hero { background: var(--light-color); padding: 80px 20px; text-align: center; }
.hero h2 { font-size: 2.5rem; color: #2e7d32; margin-top: 10px; }

/* セクションタイトル */
.section-title { text-align: center; color: var(--main-color); margin-bottom: 40px; }
.sub-title { border-left: 5px solid var(--main-color); padding-left: 15px; margin-bottom: 20px; color: #2e7d32; }

/* 表 */
table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; }
th, td { border: 1px solid #ccc; padding: 12px; text-align: center; }
th { background: var(--light-color); }
.recruit-table th { width: 30%; text-align: left; background: var(--light-color); }
.recruit-table td { text-align: left; }

/* 特徴グリッド */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-item { background: #fff; padding: 20px; border-radius: 10px; border: 1px solid var(--light-color); }

/* スマホ対応（600px以下） */
.menu-toggle, .menu-icon { display: none; }
@media (max-width: 600px) {
    .header-container { padding: 15px; }
    .menu-icon { display: block; width: 30px; height: 25px; position: relative; z-index: 1001; }
    .menu-icon span { display: block; height: 3px; width: 100%; background: var(--main-color); position: absolute; transition: 0.3s; }
    .menu-icon span:nth-child(1) { top: 0; }
    .menu-icon span:nth-child(2) { top: 11px; }
    .menu-icon span:nth-child(3) { top: 22px; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: #fff; padding-top: 80px; transition: 0.4s; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .nav-menu ul { flex-direction: column; align-items: center; }
    .nav-menu li { margin: 15px 0; }
    .menu-toggle:checked ~ .nav-menu { right: 0; }
    .menu-toggle:checked + .menu-icon span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle:checked + .menu-icon span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked + .menu-icon span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
    .feature-grid { grid-template-columns: 1fr; }
    .recruit-table th, .recruit-table td { display: block; width: 100%; }
}