/* ==========================================================================
   共通スタイル
   ========================================================================== */

body {

    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ナビゲーション */
.nav {
    background-color: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: var(--light-gray);
}

/* メインコンテンツ */
.main {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
    padding: 2rem;
}

/* 求人一覧 */
.recruitment-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.recruitment-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.recruitment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.recruitment-title {
    font-size: var(--medium-font-size);
    color: var(--primary-color);
    margin: 0 0 1rem;
}

.recruitment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.recruitment-meta {
    color: #666;
    font-size: var(--small-font-size);
}

.schedule-list {
    margin-top: 8px;
}

.schedule-list .schedule-label {
    font-weight: bold;
    margin-bottom: 4px;
}

.schedule-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    padding: 2px 0;
    color: #333;
    font-size: var(--small-font-size);
}

.schedule-list li:last-child {
    color: #666;
    font-style: italic;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #c0392b;
}

/* フォーム */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

/* テーブル */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.table th {
    background-color: var(--light-gray);
    font-weight: bold;
    color: var(--primary-color);
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-link:hover {
    background-color: var(--light-gray);
}

.pagination-link.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* アラート */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .recruitment-info {
        grid-template-columns: 1fr;
    }

    .table {
        display: block;
        overflow-x: auto;
    }
}

/* ベース設定 */
html {
	height: 100%;
}

body {
	width: 100%;
	font-size: 14px;
	font-weight: 500;
	margin: 0;
	padding: 0;
	text-align: center;
	background: #F6F6F6;
	height: 100%;
	word-break: break-all;
}

/* 共通スタイル */
a {
	color: var(--systemrule-color);
	text-decoration: none;
}

button.decide_btn {
    text-align: center;
    font-size: var(--medium-font-size);
    color: #FFF;
    background: var(--systemrule-color);
    padding: 10px 30px;
    border-radius: 30px;
    border: 2px solid var(--systemrule-color);
    -webkit-appearance: none;
    box-shadow: 2px 2px 4px #CCC;
    position: relative;
    text-decoration: none;
}

select {
	padding: 10px;
	color: #333;
	border: 1px solid #C9C9C9;
	border-radius: 5px;
	margin: 0 0 5px;
	line-height: 1;
	-webkit-appearance: none;
	box-sizing: border-box;
}

/* ページャー */
#pager {
	width: 100%;
	margin-top: 30px;
	float: left;
}

#pager ul {
	display: flex;
	justify-content: center;
	gap: 5px;
	padding: 0;
	margin: 0;
}

#pager ul li {
	display: inline-block;
	padding: 8px 12px;
	margin: 0;
	border: none;
	border-radius: 4px;
	background: #f5f5f5;
	color: #666;
	transition: all 0.3s;
}

#pager ul li.act {
	background: var(--gray-color);
	color: #fff;
}

#pager ul li.act:before {
	display: none;
}

#pager ul li:hover {
	background: #e8e8e8;
}

#pager ul li.act:hover {
	background: var(--gray-color);
}

/* メインコンテンツ */
#main_contetns {
	width: calc(100% - 350px);
	min-width: 920px;
	text-align: left;
	margin: 70px 0 80px 290px;
	float: left;
}
#main_contetns h1{
	width: 100%;
	font-size: var(--medium-font-size);
	text-align: left;
	font-weight: 500;
}
.admin_contetns {
	width: 100%;
	
	margin: 20px 0 40px 0;
	padding: 40px;
	background: #FFFFFF;
	box-sizing: border-box;
}

.admin_contetns h1 {
	width: 100%;
	font-size: var(--medium-font-size);
	text-align: left;
}

.admin_contetns h2 {
	width: 100%;
	margin: 0 0 30px;
	padding: 10px 20px;
	line-height: 180%;
	text-align: left;
	font-size: var(--medium-font-size);
	color: #000;
	background: #F7FBFE;
	box-sizing: border-box;
}

/* フォームレイアウトの改善 */
.form_regist_box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
    min-height: auto;
}

.form_regist_box h2 {
    color: var(--primary-color);
    font-size: var(--medium-font-size);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form_regist_box .title {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form_regist_box .title .edit-btn {
    margin-left: auto;
}

.form_regist_box .column {
    margin-bottom: 20px;
}

/* 入力フィールドの基本スタイル */
.form_regist_box input[type="text"],
.form_regist_box input[type="email"],
.form_regist_box input[type="password"],
.form_regist_box input[type="number"],
.form_regist_box textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
}

/* selectボックスのスタイル改善 */
.form_regist_box select {
    width: auto;
    min-width: 200px;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form_regist_box select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form_regist_box select:hover {
    border-color: var(--secondary-color);
}

/* 希望勤務地のselectボックス */
.workplace-item select {
    min-width: 250px;
}

/* 性別選択のselectボックス */
select[name="dr_sex"] {
    min-width: 150px;
}

/* フォーカス時のスタイル */
.form_regist_box input[type="text"]:focus,
.form_regist_box input[type="email"]:focus,
.form_regist_box input[type="password"]:focus,
.form_regist_box input[type="number"]:focus,
.form_regist_box textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* ボタンスタイルの改善 */
.form_regist_box input[type="submit"].save_btn {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.form_regist_box input[type="submit"].save_btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.form_regist_box input[type="submit"].save_btn:active {
    transform: translateY(0);
}

/* 希望勤務地のスタイル改善 */
.workplace-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.workplace-item select {
    flex: 1;
}

.remove-workplace {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-workplace:hover {
    background: #c82333;
}

#add-workplace {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#add-workplace:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* エラーメッセージのスタイル改善 */
.error_message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
}

/* レスポンシブ対応の改善 */
@media screen and (max-width: 768px) {
    .form_regist_box {
        padding: 20px;
    }

    .form_regist_box h2 {
        font-size: 1.3em;
    }

    .workplace-item {
        flex-direction: column;
        align-items: stretch;
    }

    .remove-workplace {
        width: 100%;
    }
}

/* 検索ボックス */
.search_box {
    width: 100%;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form_search {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
}

.form_search th {
    font-weight: 600;
    color: #555;
    text-align: left;
    padding: 8px 0;
}

.form_search input[type="text"],
.form_search input[type="date"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form_search input[type="text"]:focus,
.form_search input[type="date"]:focus {
    border-color: var(--systemrule-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 74, 185, 0.1);
}

.btn_search {
    background: var(--gray-color);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn_search i {
    font-size: 20px;
}

.btn_search:hover {
    background: #1e3798;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* アクションリスト */
.action_list {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.btn_reset {
    background-color: #f5f5f5;
    color: #666;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid #e0e0e0;
}

.btn_reset:hover {
    background-color: #e8e8e8;
}

/* スケジュール関連 */
.schedule-container {
    margin: 20px 0;
}

.schedule-container h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--systemrule-color);
}

.schedule-row {
    width: 100%;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-checkbox {
    flex-shrink: 0;
}

.schedule-date {
    flex-shrink: 0;
    white-space: nowrap;
}

.schedule-note {
    width: calc(100% - 150px);
}

.schedule-submit {
    width: 100%;
    max-width: 280px;
    padding: 12px;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--systemrule-color);
    border-radius: 30px;
    border: none;
    box-shadow: 2px 2px 4px #CCC;
    cursor: pointer;
    transition: opacity 0.3s;
    margin: 20px auto;
    display: block;
    text-align: center;
}

.schedule-submit:hover {
    opacity: 0.8;
}

/* Copyright */
.copyright {
	width: 100%;
	text-align: center;
	padding: 20px 0;
	color: #666;
	font-size: 12px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
	#main_contetns {
		width: 100%;
		margin: 70px 0 80px 0;
		padding: 10px;
		min-width: 100%;
		box-sizing: border-box;
		min-height: 100%;
		text-align: left;
	}

	.form_regist_box,
	.search_box {
		padding: 15px;
	}
	
	.form_regist_box input[type="submit"],
	.schedule-submit {
		width: 100%;
		max-width: 100%;
		margin: 15px auto;
		font-size: 14px;
	}

	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="tel"],
	select,
	textarea {
		width: 100% !important;
		box-sizing: border-box;
		font-size: 16px;
	}

	.calendar-column td {
		height: 60px;
		padding: 5px;
	}

	.calendar-column .event {
		font-size: 10px;
		padding: 1px 2px;
	}

	.calendar-column .date-number {
		font-size: 14px;
	}

	.search_box {
		padding: 15px;
	}

	.form_search {
		border-spacing: 5px;
	}

	.form_search th,
	.form_search td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.form_search th {
		padding: 5px 0;
	}

	.form_list_tate {
		box-shadow: none;
		border: 1px solid #e0e0e0;
	}

	.form_list_tate th,
	.form_list_tate td {
		padding: 8px;
		font-size: 13px;
	}

	.btn_search {
		width: 100%;
		height: 40px;
		border-radius: 6px;
	}
	
	.btn_search i {
		font-size: 18px;
		margin-right: 8px;
	}
	
	.btn_search:after {
		content: "検索";
		font-size: 14px;
		font-weight: 600;
	}
}

/* タブレット対応 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
	#side_menu {
		width: 200px;
	}

	#main_contetns {
		width: calc(100% - 200px);
		margin-left: 200px;
	}
}

/* 検索ボタンのアコーディオン */
.search_toggle_sp {
    display: none;
    margin-bottom: 15px;
}

.search_toggle_btn {
    width: 100%;
    padding: 12px;
    background: var(--systemrule-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle_text {
    font-size: 16px;
    font-weight: bold;
}

.toggle_icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.search_toggle_btn.active .toggle_icon {
    transform: rotate(-135deg);
}

@media screen and (max-width: 768px) {
    .search_toggle_sp {
        display: block;
    }

    .search_box {
        display: none;
    }

    .search_box.active {
        display: block;
    }
}

/* カレンダー関連 */
.calendar-column {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: #FFF;
    box-sizing: border-box;
}

.calendar-column table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.calendar-column th {
    padding: 10px;
    background: #F7FBFE;
    border: 1px solid #DDD;
    font-weight: normal;
    text-align: center;
}

.calendar-column td {
    padding: 10px;
    border: 1px solid #DDD;
    text-align: center;
    vertical-align: top;
    height: 100px;
}

.calendar-column td.today {
    background: #FFF3E0;
}

.calendar-column td.other-month {
    background: #F5F5F5;
    color: #999;
}

.calendar-column .event {
    margin: 2px 0;
    padding: 2px 4px;
    background: var(--systemrule-color);
    color: #FFF;
    font-size: 12px;
    border-radius: 3px;
    text-align: left;
}

.calendar-column .date-number {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
    text-align: right;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav .month-selector {
    font-size: 18px;
    font-weight: bold;
}

.calendar-nav .nav-buttons {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    padding: 5px 15px;
    background: var(--systemrule-color);
    color: #FFF;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.calendar-nav button:hover {
    opacity: 0.8;
}

/* テーブルスタイル */
.form_list_tate {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    border: 1px solid #ddd;
}

.form_list_tate th,
.form_list_tate td {
    padding: 15px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.form_list_tate tr:last-child th,
.form_list_tate tr:last-child td {
    border-bottom: 1px solid #ddd;
}

.form_list_tate th {
    background-color: #f8f9fa;
    text-align: left;
    font-weight: normal;
    width: 25%;
    color: #333;
    font-size: 14px;
}

.form_list_tate td {
    color: #333;
    text-align: center;
    font-size: 13px;
}

/* form_list_tate のレスポンシブ対応 */
@media (max-width: 768px) {
    .form_list_tate th {
        width: 35%;
    }
}

@media (max-width: 480px) {
    .form_list_tate th,
    .form_list_tate td {
        padding: 10px;
    }
    
    .form_list_tate th {
        font-size: 13px;
    }
    
    .form_list_tate td {
        font-size: 12px;
    }
}

.form_list_tate tr:last-child td {
    border-bottom: none;
}

.form_list_tate tr:hover td {
    background-color: #f8f9fa;
}

.form_list_tate td a {
    color: var(--systemrule-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.form_list_tate td a:hover {
    color: #1e3798;
    text-decoration: underline;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.date-range-inputs input[type="date"] {
    flex: 1;
    min-width: 140px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.date-range-inputs input[type="date"]:focus {
    border-color: var(--systemrule-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 74, 185, 0.1);
}

.date-range-separator {
    color: #666;
    font-weight: 500;
    padding: 0 4px;
}

/* ログイン連携ボタンスタイル */
.login_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    background: #06C755;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(6, 199, 85, 0.2);
    text-align: center;
    margin: 20px auto;
    width: 100%;
    max-width: 280px;
    position: relative;
}

.login_btn:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2C6.477 2 2 5.977 2 10.804c0 4.217 3.418 7.787 8.204 8.514.32.063.755.195.868.448.1.229.065.586.032.821l-.126.749c-.037.221-.194.862.812.47.989-.378 5.337-3.13 7.289-5.361C20.965 13.697 22 11.815 22 10.804 22 5.977 17.523 2 12 2z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

.login_btn:hover {
    background: #05B54C;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(6, 199, 85, 0.3);
}

.login_btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(6, 199, 85, 0.2);
}

@media screen and (max-width: 768px) {
    .login_btn {
        font-size: 15px;
        padding: 10px 20px;
    }
    
    .login_btn:before {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
}

/* 画像アップロード関連のスタイル */
.drop-zone {
    width: 300px;
    height: 300px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.drop-zone.dragover {
    background-color: #e1e1e1;
    border-color: #999;
}

.drop-zone-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.upload-notice {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.file-select-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.file-select-button input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-select-button:hover {
    background-color: #0056b3;
}

.preview-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.current-image img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}

#remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
}

.image-upload-container {
    margin: 20px 0;
}

.current-image {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.current-image img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.upload-area {
    margin-bottom: 15px;
}

#preview-area {
    margin-top: 15px;
}

/* 医療情報関連のスタイル */
.specialist-container {
    margin: 15px 0;
}

.specialist-checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.specialist-checkbox input[type="checkbox"] {
    margin-right: 5px;
}

.specialist-checkbox label {
    display: inline-block;
    margin-right: 15px;
}

.medical-info {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 10px;
}

.subject-item,
.field-item,
.specialist-item {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #e9ecef;
    border-radius: 3px;
    font-size: 14px;
}

.no-data {
    color: #6c757d;
    font-style: italic;
    padding: 10px;
}

.edit-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-btn i {
    font-size: 0.9em;
}

.edit-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.edit-btn:active {
    transform: translateY(0);
}

/* 診療科目選択ページのスタイル */
.medical-subjects-container {
    display: flex;
    flex-direction: column;

}

.specialist-section, 
.field-section {
    margin-bottom: 20px;
}

.specialist-section:last-child, 
.field-section:last-child {
    margin-bottom: 0;
}

.specialist-section h4, 
.field-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-wrapper:hover {
    background: #e9ecef;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #3498db;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: #3498db;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 14px;
    color: #2c3e50;
}

@media screen and (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .subject-content {
        padding: 15px;
    }
}

/* タグ関連のスタイル */
.tag-badge {
    display: inline-block;
    color: #2868a5;
    padding: 4px 8px 4px 0;
    margin: 0 8px 8px 0;
    font-size: var(--medium-font-size);
    font-weight: 700;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    color: #1d4f8f;
}

.emphasized-text {
    font-size: var(--medium-font-size);
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
}

.tags-row .title {
    color: #2c3e50;
    font-size: var(--medium-font-size);
    margin-bottom: 10px;
}

.tags-row {
    margin: 10px 0 20px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* スケジュールモーダル */
.schedule-options {
    margin: 20px 0;
}

.schedule-options label {
    display: block;
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.schedule-options label.recommended-option {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
    font-weight: bold;
}

.schedule-options label:hover {
    background-color: #f5f5f5;
}

.schedule-options label.recommended-option:hover {
    background-color: #bbdefb;
}

/* 警告メッセージ */
.warning-text {
    color: #d32f2f;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.btn-danger {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

/* ステータス関連 */
.status-wrapper {
    margin-bottom: var(--medium-font-size);
}

.status-update-form {
    margin-top: var(--small-font-size);
}

/* タグ関連 */
.tag-wrapper {
    margin-top: var(--small-font-size);
}

.tag-item {
    color: #2868a5;
    font-weight: 700;
    margin-right: var(--small-font-size);
}

/* PRタグ表示部分 */
.pr-tags {
    margin-top: var(--small-font-size);
}

.pr-tag {
    color: #2868a5;
    font-weight: 700;
    margin-right: var(--small-font-size);
}

/* クリニックURLリンクのスタイル */
.clinic-url {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    color: var(--secondary-color);
    font-size: var(--small-font-size);
    transition: color 0.3s ease;
}

.clinic-url:hover {
    color: #1565c0;
}

.clinic-url i {
    font-size: 12px;
}

/* 勤務可能日一覧のスタイル */
.availability-summary {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.availability-summary h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}
.no-dates {
    color: #666;
    font-style: italic;
    padding: 10px 0;
}
.summary-container {
    display: flex;
    gap: 2rem;
}

.summary-column {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.summary-column h3 {
    color: #2196F3;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.available-dates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.available-dates li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.available-dates li:last-child {
    border-bottom: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .summary-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .summary-column {
        margin-bottom: 10px;
    }

    .availability-summary {
        padding: 15px;
    }
}

/* 必須マークのスタイル */
.required::after {
    content: "*";
    color: #ff4444;
    margin-left: 3px;
    font-size: 14px;
    line-height: 1;
}

/* エラーアラートのスタイル */
.error_alert {
    background-color: #fff5f5;
    border-left: 4px solid #ff4444;
    color: #dc3545;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error_alert i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* チャット関連のスタイル修正 */
.entry-link {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
    position: relative;
}
.entry-link .unread-badge {
    position: absolute;
    top: -10px;
    right: -10px;
}
.btn-detail, 
.btn-chat {.entry-link a
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-detail {
    background-color: #f0f0f0;
    color: #333;
}

.btn-detail:hover {
    background-color: #e0e0e0;
}

.btn-chat {
    background-color: #FF9800!important;
    color: white;
    position: relative;
}

.btn-chat:hover {
    background-color: #F57C00;
    transform: translateY(-1px);
}

.btn-chat .unread-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
}

.btn-chat i {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .entry-link {
        flex-direction: column;
    }

    .btn-detail, 
    .btn-chat {
        width: 100%;
        justify-content: center;
    }
}

/* ステータスバッジの基本スタイル */
.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* PC表示・SP表示の切り替え用クラス */
.sp-only {
    display: none;
}

.pc-only {
    display: inline-block;
}

/* エントリータイトル行のスタイル */
.entry-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* ステータスの色分け */
.status-badge.status-new { background-color: #ff9800; color: white; }
.status-badge.status-read { background-color: #2196F3; color: white; }
.status-badge.status-decline { background-color: #F44336; color: white; }
.status-badge.status-accept { background-color: #4CAF50; color: white; }
.status-badge.status-paid { background-color: #9C27B0; color: white; }
.status-badge.status-cancel { background-color: #9E9E9E; color: white; }

/* スマートフォン表示用のメディアクエリ */
@media screen and (max-width: 768px) {
    .sp-only {
        display: inline-block;
    }
    
    .pc-only {
        display: none;
    }

    .entry-title-row {
        flex-direction: column;
        gap: 5px;
    }

    .entry-title-row .status-badge {
        align-self: flex-start;
    }

    /* ステータスバッジのスマホ表示調整 */
    .status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* チャットスレッド関連のスタイル */
.thread-meta {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.thread-info {
    flex: 1;
}

.entry-title-row {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.entry-clinic {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #333;
}

.clinic-staff {
    color: #666;
    font-size: 13px;
}

.entry-created {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 13px;
}

.thread-meta .entry-link {
    margin-left: auto;
    margin-top: 0;
}

@media screen and (max-width: 768px) {
    .thread-meta {
        flex-direction: column;
        gap: 15px;
    }

    .thread-info {
        width: 100%;
    }

    .thread-meta .entry-link {
        width: 100%;
    }

    .entry-clinic {
        flex-wrap: wrap;
    }
}

/* チャットリストのスタイル */
.chat-list-container {
    margin-top: 20px;
}

.chat-thread-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.chat-thread-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thread-content {
    margin-bottom: 15px;
}

.thread-header {
    margin-bottom: 12px;
}

.thread-header h3.entry-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.clinic-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.clinic-name {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 14px;
}

.clinic-name i {
    color: #666;
}

.staff-name {
    color: #666;
    font-size: 13px;
}

.message-preview {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

.thread-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.entry-created {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-created i {
    font-size: 14px;
}

.entry-link {
    margin: 0;
}

/* スマートフォン表示用のメディアクエリ */
@media screen and (max-width: 768px) {
    .chat-thread-item {
        padding: 15px;
    }

    .thread-actions {
        flex-direction: column;
        gap: 12px;
    }

    .entry-created {
        order: 2;
    }

    .entry-link {
        order: 1;
        width: 100%;
    }
} 