/* assets/css/style.css - PWA対応最新版 */
body {
    font-family: 'Noto Sans JP', Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background: linear-gradient(135deg, #FFE4E6 0%, #FFF0F5 50%, #E6F3FF 100%);
    font-size: 16px;
    min-height: 100vh;
    line-height: 1.5;
    padding-bottom: 60px;
    /* PWA用のプルトゥリフレッシュ対応 */
    overscroll-behavior-y: contain;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(255, 105, 180, 0.15);
    margin-bottom: 40px;
}

.header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px dotted #FFB6C1;
}

.header h1 {
    font-size: 24px;
    color: #FF69B4;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.step-section {
    background: #F0F8FF;
    border: 2px solid #87CEEB;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.step-section h3 {
    color: #4682B4;
    margin: 0 0 15px 0;
    font-size: 18px;
}

/* ダッシュボードセクション */
.section {
    background: linear-gradient(135deg, #FAFAFA, #F8F8FF);
    border: 1px solid rgba(255, 182, 193, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.08);
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.15);
}

.section h2 {
    color: #FF69B4;
    font-size: 20px;
    margin: 0 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid #FF69B4;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 準備中表示 */
.coming-soon {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    margin: 15px 0;
}

.coming-soon-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.coming-soon-text {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 18px;
}

.coming-soon-sub {
    font-size: 14px;
    color: #adb5bd;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #FFB6C1;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #FF69B4;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.3);
}

/* ボタン統一スタイル */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.4;
}

.btn:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-logout {
    background: #dc3545;
    color: white;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ナビゲーションリンク */
.nav-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nav-links .btn {
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    padding: 10px 15px;
}

/* システム情報 */
.system-info {
    background: linear-gradient(135deg, #f0f0f0, #f8f8f8);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.system-info p {
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.5;
}

.system-info strong {
    color: #333;
}

.required {
    color: #FF1493;
    font-size: 16px;
}

.user-info {
    background: #E8F5E8;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.username-requirements,
.password-requirements {
    background: #FFF8F0;
    border: 2px solid #FFA726;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    font-size: 13px;
}

.username-requirements ul,
.password-requirements ul {
    margin: 8px 0;
    padding-left: 18px;
}

.username-requirements li,
.password-requirements li {
    margin-bottom: 4px;
}

.error-message {
    background: #FFE6E6;
    border: 2px solid #FF6B6B;
    color: #D63031;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    border: 2px solid #c3e6cb;
    text-align: center;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.char-counter.warning {
    color: #FF8C00;
}

.char-counter.danger {
    color: #FF1493;
}

.info-box {
    background: #FFF8F8;
    border: 2px solid #FFB6C1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #FF1493;
}

.info-box p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.setup-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dotted #FFB6C1;
}

.setup-link a {
    color: #FF69B4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.setup-link a:hover {
    text-decoration: underline;
}

.setup-link p {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

/* 成功画面用 */
.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    color: #FF69B4;
    margin-bottom: 20px;
    font-weight: 700;
}

.login-info {
    background: #E8F5E8;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
    font-size: 14px;
}

.maintenance-notice {
    background: #FFF8F0;
    border: 2px solid #FFA726;
    border-radius: 8px;
    padding: 15px;
    margin: 25px 0;
}

.maintenance-notice h3 {
    color: #F57C00;
    font-size: 16px;
    margin-bottom: 12px;
}

.maintenance-notice p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.login-btn {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 15px auto;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.important-note {
    background: #FFE6E6;
    border: 2px solid #FF6B6B;
    border-radius: 8px;
    padding: 12px;
    margin: 20px 0;
    font-size: 13px;
    color: #D63031;
}

/* ダッシュボード用 */
.welcome-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
}

.construction-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

/* プロフィールセクション用スタイル */
.profile-container {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.profile-photo-section {
    flex: 0 0 200px;
    min-width: 200px;
}

.profile-info-section {
    flex: 1;
    min-width: 300px;
}

.profile-photo-section h3,
.profile-info-section h3 {
    color: #FF69B4;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFB6C1;
    padding-bottom: 8px;
}

.profile-photo-display {
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #FFB6C1;
    border-radius: 10px;
    padding: 15px;
}

.profile-photo {
    max-width: 120px;
    max-height: 160px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    object-fit: cover;
}

.no-photo-placeholder {
    width: 120px;
    height: 160px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #f9f9f9;
}

.no-photo-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.no-photo-text {
    color: #666;
    font-size: 12px;
}

/* 基本情報テーブル */
.profile-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-info-table th,
.profile-info-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.profile-info-table th {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    font-weight: 600;
    font-size: 14px;
    width: 120px;
}

.profile-info-table td {
    background: #f8f9fa;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.profile-info-table tr:last-child th,
.profile-info-table tr:last-child td {
    border-bottom: none;
}

.profile-info-table tr:hover td {
    background: #e8f4fd;
}

/* 経歴セクション */
.profile-experience {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-experience h4 {
    color: #FF69B4;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFB6C1;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-content {
    min-height: 60px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.experience-text {
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.no-experience {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.no-data-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.no-data-text {
    font-size: 14px;
}

.profile-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 2px dotted #FFB6C1;
}

.profile-error {
    text-align: center;
    padding: 40px;
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 10px;
    color: #721c24;
}

.error-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.error-text {
    font-size: 16px;
    margin-bottom: 15px;
}

/* ステータス表示 */
.status-waiting {
    color: #FF8C00;
    font-weight: bold;
    font-size: 16px;
}

.status-confirmed {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

.status-rejected {
    color: #f44336;
    font-weight: bold;
    font-size: 16px;
}

/* 空表示・ローディング */
.empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-style: italic;
    font-size: 18px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    margin: 15px 0;
}

.loading {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 18px;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 2px solid #bbdefb;
    border-radius: 10px;
    margin: 15px 0;
}

.error {
    background: #FFE6E6;
    color: #CC0000;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 16px;
    border: 2px solid #FF9999;
    text-align: center;
}

/* モーダル内の部屋情報表示 */
.room-info-modal {
    background: #f0f8ff;
    border: 2px solid #E6F3FF;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.salary-info-section {
    background: #fff8f0;
    border: 2px solid #FFE4B5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.salary-info-section h4 {
    color: #FF8C00;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.salary-content {
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

/* PWAインストールセクション */
.pwa-install-section {
    margin-bottom: 2rem;
}

.install-prompt {
    margin-bottom: 1rem;
}

.install-card {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    animation: slideIn 0.5s ease-out;
}

.install-card.ios-card {
    background: linear-gradient(135deg, #007AFF, #0051D5);
}

.install-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.install-content {
    flex: 1;
}

.install-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.install-content p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.btn-install, .btn-install-ios {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-install:hover, .btn-install-ios:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* PWAコントロール */
.pwa-controls {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: none;
}


/* PWAモードでのみ表示 */
@media (display-mode: standalone) {
    .pwa-controls {
        display: block;
    }
}

/* iOS PWAモード対応 */
@media (display-mode: standalone), 
       (-webkit-touch-callout: none) {
    .pwa-controls {
        display: block;
    }
}

/* モーダル */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #007AFF, #0051D5);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-number {
    background: #007AFF;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-icon {
    font-size: 1.5rem;
}

/* アニメーション */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* より大きな画面用の調整 */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 30px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .step-section h3 {
        font-size: 20px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .coming-soon {
        padding: 50px 30px;
        font-size: 18px;
    }
    
    .coming-soon-icon {
        font-size: 60px;
    }
    
    .coming-soon-text {
        font-size: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="password"] {
        padding: 15px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 18px 30px;
        font-size: 18px;
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .nav-links .btn {
        min-width: 150px;
    }
    
    .system-info p {
        font-size: 16px;
    }
    
    .install-card {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 90%;
    }
    
    .step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .step-content {
        flex-direction: row;
        gap: 1rem;
    }
}

/* 大きな画面用 */
@media (min-width: 1024px) {
    .container {
        max-width: 800px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links .btn {
        flex: none;
        min-width: 180px;
    }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-photo-section,
    .profile-info-section {
        flex: none;
        min-width: auto;
    }
    
    .profile-photo-section {
        flex: 0 0 auto;
    }
    
    .profile-info-table th {
        width: 100px;
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .profile-info-table td {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .profile-photo {
        max-width: 100px;
        max-height: 130px;
    }
    
    .no-photo-placeholder {
        width: 100px;
        height: 130px;
    }
    
    .no-photo-icon {
        font-size: 24px;
    }
    
    .no-photo-text {
        font-size: 11px;
    }
    
    .install-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .step-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
@media (max-width: 480px) {
    .profile-info-table {
        font-size: 12px;
    }
        .profile-info-table th {
        width: 80px;
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .profile-info-table td {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .install-card {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .install-content h4 {
        font-size: 1rem;
    }
    
    .install-content p {
        font-size: 0.8rem;
    }
    
    .btn-install, .btn-install-ios {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-header h4 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .step {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .step-icon {
        font-size: 1.2rem;
    }
}

/* 部屋カード関連のスタイル（既存のものがあれば統合） */
.room-card {
    background: white;
    border: 2px solid #FFB6C1;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(255, 105, 180, 0.15);
    display: flex;
    gap: 25px;
    align-items: center;
    transition: all 0.3s ease;
}

.room-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.25);
}

.room-info {
    flex: 1;
    margin-right: 20px;
}

.room-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.room-name {
    font-size: 20px;
    font-weight: 700;
    color: #FF69B4;
    margin-bottom: 15px;
}

.room-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.btn-apply,
.btn-applied,
.btn-cancel,
.btn-view {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-apply {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-applied {
    background: #6c757d;
    color: white;
    cursor: default;
}

.btn-cancel {
    background: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn-refresh {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

/* レスポンシブ対応 - 部屋カード */
@media (max-width: 768px) {
    .room-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .room-info {
        margin-right: 0;
    }
    
    .room-actions {
        width: 100%;
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .room-name {
        font-size: 18px;
    }
    
    .room-details {
        font-size: 13px;
    }
    
    .btn-refresh {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .room-card {
        padding: 15px;
    }
    
    .room-name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .room-details {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .room-actions {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .btn-apply,
    .btn-applied,
    .btn-cancel,
    .btn-view {
        padding: 10px 15px;
        font-size: 13px;
        flex: 1;
        min-width: 100px;
    }
}

/* PWA専用の追加スタイル */
@media (display-mode: standalone) {
    /* PWAモードでのステータスバー対応 */
    body {
        padding-top: 20px; /* iOSのステータスバー分 */
    }
    
    /* PWAモードでのナビゲーション強化 */
    .container {
        position: relative;
    }
    
    /* PWAモードでのスクロール改善 */
    .container {
        scroll-behavior: smooth;
    }
}

/* iOS PWA専用スタイル */
@supports (-webkit-touch-callout: none) {
    @media (display-mode: standalone) {
        /* iOSのセーフエリア対応 */
        body {
            padding-top: env(safe-area-inset-top, 20px);
            padding-bottom: env(safe-area-inset-bottom, 60px);
        }
        
        .pwa-controls {
            top: env(safe-area-inset-top, 10px);
            right: env(safe-area-inset-right, 10px);
        }
    }
}

/* プリント用スタイル */
@media print {
    .pwa-controls,
    .pwa-install-section,
    .btn-refresh,
    .nav-links {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .btn-primary,
    .submit-btn,
    .btn-refresh {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .install-card {
        background: #000;
        border: 2px solid #fff;
    }
}

/* アニメーション無効化対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .pwa-refresh-btn:hover,
    .btn:hover,
    .submit-btn:hover {
        transform: none;
    }
}

/* フォーカス可視性の向上 */
.pwa-refresh-btn:focus,
.btn-install:focus,
.btn-install-ios:focus {
    outline: 3px solid #FF69B4;
    outline-offset: 2px;
}

/* タッチデバイス用の改善 */
@media (hover: none) and (pointer: coarse) {
    .btn-install,
    .btn-install-ios {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    
    .install-card {
        padding: 2rem 1.5rem;
    }
}
/* 講習セクション専用スタイル */
.lecture-actions {
    text-align: center;
    margin: 20px 0;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lecture-info {
    margin-top: 20px;
    text-align: center;
}

.lecture-note {
    color: #666;
    font-style: italic;
}

.lecturer-intro {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.lecturer-profile {
    margin-bottom: 10px;
}

.lecturer-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.lecturer-link a:hover {
    text-decoration: underline;
}