body {
	font-family: 'Zen Kaku Gothic New', sans-serif;
	background-color: #f7f7f7;
	margin: 0;
	padding: 0;
}

/* ===== CHAT SYSTEM STYLES ===== */
.chat-container {
    display: flex;
    height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.chat-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chat-sidebar.hidden {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border-right: none;
}

.chat-sidebar-header {
    padding: 20px;
    background: #007bff;
    color: white;
    font-weight: bold;
}

.chat-rooms-list {
    flex: 1;
    overflow-y: auto;
}

.chat-room-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-room-item:hover {
    background-color: #e9ecef;
}

.chat-room-item.active {
    background-color: #007bff;
    color: white;
}

.room-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.room-last-message {
    font-size: 0.9em;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-room-item.active .room-last-message {
    color: rgba(255,255,255,0.8);
}

.unread-badge {
    background: #dc3545;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8em;
    float: right;
    margin-top: 2px;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: #e9ecef;
    color: #007bff;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message.own {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.own .message-content {
    background: #007bff;
    color: white;
}

.message:not(.own) .message-content {
    background: white;
    border: 1px solid #e9ecef;
}

.message-info {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.message.own .message-info {
    color: rgba(255,255,255,0.8);
    text-align: right;
}

.message-meta {
    flex: 1;
}

/* ===== READ STATUS STYLES ===== */
.read-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75em;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
}

.read-status:hover {
    background: rgba(0,0,0,0.1);
}

.message.own .read-status:hover {
    background: rgba(255,255,255,0.2);
}

.read-status i {
    font-size: 0.9em;
}

.read-status.unread {
    color: #ffc107;
}

.read-status.unread i {
    color: #ffc107;
}

.message.own .read-status.unread {
    color: rgba(255,193,7,0.9);
}

.read-status .read-count {
    font-weight: 500;
}

/* ===== READ DETAILS MODAL STYLES ===== */
.read-details-modal {
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.read-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.summary-label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 500;
}

.summary-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
}

.read-section, .unread-section {
    margin-bottom: 20px;
}

.read-section h4, .unread-section h4 {
    margin: 0 0 12px 0;
    padding: 8px 0;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-section h4 i {
    color: #28a745;
}

.unread-section h4 i {
    color: #ffc107;
}

.read-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.read-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.read-detail-item:hover {
    background: #e9ecef;
}

.read-detail-item.read i {
    color: #28a745;
}

.read-detail-item.unread i {
    color: #6c757d;
}

.read-detail-item .user-name {
    flex: 1;
    font-weight: 500;
    color: #495057;
}

.read-detail-item .read-time {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 400;
}

.chat-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #dee2e6;
    position: relative;
    z-index: 1;
}

.chat-input-form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    min-width: 200px;
    max-width: none;
    height: 44px;
    box-sizing: border-box;
    background: white;
    line-height: 1.2;
}

.chat-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.chat-send-btn {
    padding: 0 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 14px;
    height: 44px;
    width: 80px;
    max-width: 80px;
    min-width: 80px;
    box-sizing: border-box;
}

.chat-send-btn:hover {
    background: #0056b3;
}

.chat-send-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.chat-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 1.1em;
}

.new-chat-btn {
    margin: 20px;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: calc(100% - 40px);
}

.new-chat-btn:hover {
    background: #1e7e34;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* User Selection Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 1.3em;
    font-weight: bold;
}

.modal-close {
    font-size: 1.5em;
    cursor: pointer;
    color: #6c757d;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.user-select-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-select-item {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-select-item:hover {
    background-color: #f8f9fa;
}

.user-select-item.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.user-checkbox {
    width: 20px;
    height: 20px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.user-email {
    font-size: 0.85em;
    opacity: 0.8;
}

.user-badge {
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.user-badge.fukuoka {
    background: #28a745;
}

.user-badge.osaka {
    background: #fd7e14;
}

.user-badge.other {
    background: #6c757d;
}

.user-select-item.selected .user-badge {
    background: white !important;
    color: #007bff;
}

.room-name-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
}

.room-name-input.show {
    display: block;
}

.selected-count {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* タブ機能のスタイル */
.selection-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.tab-btn:hover {
    background: #f8f9fa;
}

.tab-content {
    display: block;
}

/* スクール選択のスタイル */
.school-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    background: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 80px);
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 300px;
    }
    
    .chat-main {
        height: calc(100vh - 380px);
    }
}

.container {
	max-width: 600px;
	margin: 50px auto;
	padding: 20px;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
	text-align: center;
	margin-bottom: 20px;
}

.logo-container img {
	max-width: 100%;
	height: auto;
	max-height: 100px;
}

.form-group {
	margin-bottom: 15px;
}

label {
	display: block;
	margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="time"],
input[type="url"],

/* URLフィールドも同様にスタイルを適用 */

select,
textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-sizing: border-box;
	font-size: 16px;
}

button[type='submit']:not(.chat-send-btn) {
	width: 100%;
	padding: 10px;
	border: none;
	border-radius: 5px;
	background-color: #007bff;
	color: white;
	font-size: 16px;
	cursor: pointer;
	/* margin-bottom: 20px; */
}

button[type='submit']:not(.chat-send-btn):hover {
	background-color: #0056b3;
}

.alert-message {
	color: red;
	margin-top: 10px;
	text-align: center;
}

a {
	color: #007bff;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* ダッシュボードのリンクアイコン */
.container p a i {
	margin-right: 8px;
	width: 20px;
	display: inline-block;
	text-align: center;
}

h1 {
	font-size: larger;
}

@media (max-width: 600px) {
	.container {
		margin: 20px;
		padding: 15px;
	}
	.logo-container img {
		max-height: 80px;
	}
	button {
		font-size: 14px;
		padding: 10px;
	}
}

select[multiple] {
	height: auto;
}

.selected-items {
	margin-top: 10px;
	font-size: 14px;
	color: #555;
}

.hidden-select {
	display: none;
}

.child-list {
	list-style-type: none;
	padding: 0;
}

.child-item {
	position: relative;
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
	overflow: hidden;
}

.child-item h3 {
	margin: 0;
	font-size: 1.2em;
}

.child-item p {
	margin: 5px 0;
}

.child-item form {
	display: flex;
	justify-content: space-between;
}

.button-group {
	display: flex;
	gap: 10px;
}

.button-group button {
	flex: 1;
}

.hamburger-menu {
	position: fixed;
	top: 15px;
	right: 15px;
	z-index: 1;
}

.menu__btn {
	display: block;
	width: 40px;
	height: 40px;
	background-color: white;
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	position: relative;
	cursor: pointer;
}

.menu__btn span,
.menu__btn span::before,
.menu__btn span::after {
	display: block;
	position: absolute;
	width: 20px;
	height: 2px;
	background-color: #333;
	transition-duration: 0.25s;
}

.menu__btn span {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.menu__btn span::before {
	content: '';
	top: -8px;
	left: 0;
	transform: translateY(-50%);
}

.menu__btn span::after {
	content: '';
	top: 8px;
	left: 0;
	transform: translateY(-50%);
}

#menu__toggle {
	display: none;
}

#menu__toggle:checked + .menu__btn span {
	background-color: transparent;
}

#menu__toggle:checked + .menu__btn span::before {
	transform: translateY(0) rotate(45deg);
}

#menu__toggle:checked + .menu__btn span::after {
	transform: translateY(0) rotate(-45deg);
}

.menu__box {
	display: none;
	position: absolute;
	top: 60px;
	right: 0;
	width: 270px;
	/* width: 200px; */
	padding: 10px 0;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	z-index: 2;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#menu__toggle:checked ~ .menu__box {
	display: block;
}

.menu__item {
	display: block;
	padding: 10px 20px;
	color: #333;
	text-decoration: none;
	transition-duration: 0.25s;
	display: flex;
	align-items: center;
	gap: 10px;
}

.menu__item i {
	font-size: 18px;
	width: 24px;
	text-align: center;
}

.menu__item:hover {
	background-color: #f7f7f7;
}

.news-list {
	list-style-type: none;
	padding: 0;
}

.news-item {
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
}

.news-item h3 {
	margin: 0;
	font-size: 1.2em;
}

.news-item p {
	margin: 5px 0;
}

.absence-list {
	list-style-type: none;
	padding: 0;
}

.absence-item {
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
}

.absence-item p {
	margin: 5px 0;
}

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

.calendar th,
.calendar td {
	border: 1px solid #ccc;
	text-align: center;
	padding: 10px;
}

.calendar .date {
	font-size: 0.9em;
	margin-bottom: 5px;
}

.calendar .weekend {
	background-color: #e6f7ff;
}

.calendar .holiday {
	background-color: #ffcccc;
}

.calendar a {
	display: block;
	margin-top: 5px;
	font-size: 0.8em;
	color: #007bff;
	text-decoration: none;
}

.calendar a:hover {
	text-decoration: underline;
}

.online-list {
	list-style-type: none;
	padding: 0;
}

.online-item {
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
}

.online-item h3 {
	margin: 0;
	font-size: 1.2em;
}

.online-item p {
	margin: 5px 0;
}

.admin-badge {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: #ffcc00;
	color: #000;
	padding: 10px;
	border-radius: 5px;
	font-weight: bold;
	z-index: 1000;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.school-list {
	list-style-type: none;
	padding: 0;
}

.school-list li {
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
}

.school-list li form {
	display: flex;
	flex-direction: column;
}

.school-list li label {
	margin-bottom: 5px;
}

.school-list li input,
.school-list li select {
	margin-bottom: 10px;
}

.school-list li button {
	margin-top: 5px;
	padding: 10px;
	border: none;
	border-radius: 5px;
	background-color: #007bff;
	color: white;
	font-size: 16px;
	cursor: pointer;
}

.school-list li button:hover {
	background-color: #0056b3;
}

.notification-badge {
	background-color: red;
	color: white;
	border-radius: 50%;
	padding: 3px 7px;
	font-size: 12px;
	vertical-align: super;
	margin-left: 5px;
}

.password-container {
	position: relative;
	display: flex;
	align-items: center;
}

#password {
	flex-grow: 1;
}

.toggle-password {
	position: absolute;
	right: 10px;
	cursor: pointer;
}

.form-group-inline {
	display: flex;
	align-items: center;
}

.form-group-inline input[type='radio'] {
	margin-right: 10px;
}

.form-group-inline label {
	margin-right: 20px;
}

.child-list li {
	position: relative;
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
	overflow: hidden;
}

.not-approved {
	background-color: #fff3cd;
}

.approval-status {
	color: #856404;
	font-weight: bold;
}

.bar {
	position: absolute;
	top: 0;
	right: 0;
	width: 20px;
	height: 100%;
	color: white;
	font-size: 12px;
	writing-mode: vertical-rl;
	text-align: center;
	padding: 5px 0;
}

.bar-yellow {
	background-color: yellow;
	color: black;
}

.bar-red {
	background-color: red;
}

.bar-blue {
	background-color: blue;
}

.bar-navy {
	background-color: navy;
}

.not-approved {
	background-color: #ffe6e6; /* 承認待ちの背景色 */
}

.withdrawn {
	background-color: #f0f0f0; /* 退会済みの背景色 */
	color: #888888; /* テキストの色を薄くする */
}

.withdrawn-status {
	color: #888888; /* 退会済みステータスのテキスト色 */
	font-weight: bold;
}

.inline-group {
	display: inline-flex;
	align-items: center;
	gap: 5px; /* チェックボックスとラベルの間のスペースを調整 */
}

.success {
	color: #a72828;
}

/* 既存の label { display: block; } は残すが、Bootstrap のクラス .form-check-label に対して上書き */
.form-check-label {
	display: inline-block; /* これを付ける */
	margin-bottom: 0; /* ラベル間の余白を抑える */
}

.hidden {
	display: none;
}
.form-check-inline input[type='radio'] + label {
	display: inline-block;
	margin-bottom: 0;
	margin-left: 5px;
}
/* input type datetime-local */
input[type='datetime-local'] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-sizing: border-box;
	font-size: 16px;
}

.table {
	width: 100%;
	border-collapse: collapse;
	/* 上下に余白をつけたい場合 */
	margin-top: 20px;
	margin-bottom: 20px;
}

.table th,
.table td {
	border: 1px solid #ccc;
	/* セルの上下に余裕を持たせる */
	padding: 12px; /* 10px → 12px など好みで調整 */
}

.btn {
	display: inline-block;
	margin-bottom: 4px;
	padding: 6px 12px;
	border-radius: 5px;
	text-decoration: none; /* <a>の下線を消す */
	font-size: 14px; /* 統一した文字サイズ */
	line-height: 1.5; /* 行の高さを指定 */
	color: #fff;
	background-color: #007bff;
	cursor: pointer;
	border: none; /* <button>でも枠線を消す */
}

.btn:hover {
	background-color: #0056b3;
}

.btn-success {
	background-color: #28a745;
}
.btn-success:hover {
	background-color: #218838;
}

.btn-secondary {
	background-color: #6c757d;
}
.btn-secondary:hover {
	background-color: #5a6268;
}

.btn-warning {
	background-color: #ffc107;
	color: #333;
}
.btn-warning:hover {
	background-color: #e0a800;
}

/* 幅100%を上書きする例 */
.button-inline {
	width: auto !important;
	/* !important で強制上書き */
	display: inline-block;
	/* その他必要なら書く */
}

.table-responsive {
	width: 100%;
	overflow-x: auto;
	margin-bottom: 20px; /* 好みで余白 */
}

/* テーブルが極端に狭くならないようにするには、最低幅を設定 */
.table-responsive .table {
	min-width: 700px; /* or 800pxなど、必要に応じて */
}

/* YouTube動画リスト用のスタイル - 改良版 */
.youtube-list {
	list-style-type: none;
	padding: 0;
	margin: 0 0 30px;
}

.youtube-item {
	border: 1px solid #e0e0e0;
	padding: 20px;
	margin-bottom: 25px;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youtube-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.youtube-item h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.3em;
	color: #222;
	line-height: 1.4;
	font-weight: 600;
}

.youtube-item .video-container {
	margin-bottom: 18px;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.youtube-item p {
	margin: 12px 0;
	color: #444;
	line-height: 1.6;
}

.youtube-item small {
	color: #777;
	display: block;
	margin-top: 8px;
	font-size: 0.9em;
}

/* タブレットとデスクトップ向けの調整 */
@media (min-width: 768px) {
	.youtube-item {
		padding: 25px;
	}

	.youtube-item h3 {
		font-size: 1.5em;
	}
}

/* ビデオコンテナの見た目改善 */
.video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 のアスペクト比 */
	height: 0;
	overflow: hidden;
	width: 100%;
	margin-bottom: 20px;
	background-color: #000;
	border-radius: 6px;
}

.video-container iframe,
.video-container object,
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ===== RESPONSIVE DESIGN FOR READ STATUS ===== */

/* タブレット対応 */
@media (max-width: 1024px) {
    .chat-container {
        height: calc(100vh - 100px);
    }
    
    .chat-sidebar {
        width: 280px;
    }
    
    .read-details-modal {
        max-width: 450px;
        width: 85%;
    }
    
    .read-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 80px);
        border-radius: 0;
        box-shadow: none;
    }
    
    .chat-sidebar {
        width: 100%;
        position: absolute;
        z-index: 1000;
        height: 100%;
    }
    
    .chat-sidebar.hidden {
        transform: translateX(-100%);
        width: 100%;
    }
    
    .chat-main {
        width: 100%;
    }
    
    /* メッセージ表示の最適化 */
    .message-content {
        max-width: 85%;
    }
    
    .message-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .message.own .message-info {
        align-items: flex-end;
    }
    
    /* 既読表示のモバイル最適化 */
    .read-status {
        font-size: 0.7em;
        padding: 1px 4px;
        gap: 3px;
    }
    
    .read-status .read-count {
        font-size: 0.9em;
    }
    
    /* 既読詳細モーダルのモバイル最適化 */
    .read-details-modal {
        max-width: 95%;
        width: 95%;
        max-height: 85vh;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .read-summary {
        padding: 12px;
        gap: 15px;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .summary-value {
        font-size: 1.1em;
    }
    
    .read-detail-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .read-detail-item .user-name {
        font-size: 0.9em;
    }
    
    .read-detail-item .read-time {
        font-size: 0.8em;
    }
    
    /* チャット入力エリアのモバイル最適化 */
    .chat-input-area {
        padding: 10px 15px;
    }
    
    .chat-input {
        min-width: 150px;
        font-size: 16px; /* iOSでのズームを防ぐ */
    }
    
    .chat-send-btn {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* 小さなスマートフォン対応 */
@media (max-width: 480px) {
    .chat-header {
        padding: 15px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .message-content {
        max-width: 90%;
        padding: 10px 14px;
    }
    
    .read-status {
        font-size: 0.65em;
        padding: 1px 3px;
    }
    
    .read-details-modal {
        max-width: 98%;
        width: 98%;
        margin: 10px auto;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 12px 15px;
    }
    
    .modal-title {
        font-size: 1.1em;
    }
    
    .read-summary {
        padding: 10px;
        gap: 10px;
    }
    
    .summary-value {
        font-size: 1em;
    }
    
    .read-section h4, .unread-section h4 {
        font-size: 0.95em;
        padding: 6px 0;
    }
    
    .read-detail-item {
        padding: 6px 8px;
        gap: 8px;
    }
    
    .read-detail-item .user-name {
        font-size: 0.85em;
    }
    
    .read-detail-item .read-time {
        font-size: 0.75em;
    }
}

/* ダークモード対応（必要に応じて） */
@media (prefers-color-scheme: dark) {
    .read-status:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .message.own .read-status:hover {
        background: rgba(255,255,255,0.2);
    }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .read-status i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* タッチデバイス用の最適化 */
@media (hover: none) and (pointer: coarse) {
    .read-status {
        padding: 4px 8px;
        min-height: 24px;
        display: inline-flex;
        align-items: center;
    }
    
    .read-detail-item {
        min-height: 44px; /* タッチターゲットサイズの確保 */
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}
