/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 明るく洗練されたブランドカラー */
    --primary-blue: #2196F3;
    --secondary-blue: #1976D2;
    --accent-orange: #FF9800;
    --light-orange: #FFB74D;
    --sky-blue: #87CEEB;
    --text-dark: #2C3E50;
    --text-light: #5D6D7E;
    --background-light: #F8F9FA;
    --background-ultra-light: #FAFBFC;
    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --success-green: #4CAF50;
    --warning-red: #F44336;
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --border-radius-large: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-ultra-light) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

/* ヘッダー */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 24px 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo-section {
    text-align: center;
}

.site-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.025em;
}

/* 言語選択（スマホ対応で余白を狭くする） */
.language-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 0 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    min-width: 90px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* メインコンテンツ */
.main {
    padding: 32px 0 0 0;
}

/* カード */
.card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* セクションタイトル */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue); /* フォールバック色 */
    background: linear-gradient(135deg, var(--primary-blue) 0%, #87CEEB 100%);
    background-size: 100%;
    background-repeat: repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.025em;
    filter: drop-shadow(0 2px 4px rgba(33, 150, 243, 0.3));
}

.subsection-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 20px 0;
    padding-bottom: 12px;
    position: relative;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #60a5fa 100%);
    border-radius: 2px;
}

/* 画像コンテナ */
.image-container {
    margin-top: 16px;
    text-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-light);
    max-width: 100%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.instruction-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: block;
}

.instruction-image:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* レスポンシブ画像対応 */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .image-container {
        margin-top: 12px;
    }
    
    .instruction-item {
        flex-direction: column;
    }
    
    .image-container {
        margin-left: 0;
    }
}

/* 構内での注意事項 - 最高レベルモダンデザイン */
.safety-card-modern {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(240, 249, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.98) 100%
    );
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 12px 35px -10px rgba(59, 130, 246, 0.2),
        0 6px 20px -6px rgba(59, 130, 246, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.safety-card-modern:hover {
    box-shadow: 
        0 20px 50px -10px rgba(59, 130, 246, 0.3),
        0 10px 30px -6px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.safety-header-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem 2rem 1.5rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.06) 0%,
        rgba(6, 182, 212, 0.04) 100%
    );
    position: relative;
}

.safety-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    height: 3px;
    background: linear-gradient(
        90deg,
        #3b82f6 0%,
        #06b6d4 25%,
        #0ea5e9 50%,
        #06b6d4 75%,
        #3b82f6 100%
    );
    border-radius: 20px 20px 0 0;
}

.safety-main-icon {
    font-size: 2.75rem !important;
    color: #2563eb;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.3));
}

.safety-title-modern {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        #2563eb 0%,
        #0ea5e9 50%,
        #2563eb 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 3px rgba(37, 99, 235, 0.2));
    letter-spacing: -0.01em;
}

.safety-content-modern {
    padding: 0 2rem 2rem 2rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.safety-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.safety-rule-modern {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.safety-rule-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        180deg,
        #3b82f6 0%,
        #06b6d4 100%
    );
    transition: width 0.3s ease;
}

.safety-rule-modern:hover::before {
    width: 8px;
}

.safety-rule-modern:hover {
    background: rgba(239, 246, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px -8px rgba(59, 130, 246, 0.2),
        0 4px 12px -4px rgba(59, 130, 246, 0.15);
}

.rule-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.rule-icon-modern {
    font-size: 2.25rem !important;
    color: #2563eb !important;
    width: 60px;
    height: 60px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(6, 182, 212, 0.08) 100%
    ) !important;
    border-radius: 16px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    visibility: visible !important;
    opacity: 1 !important;
}

.safety-rule-modern:hover .rule-icon-modern {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(6, 182, 212, 0.12) 100%
    );
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
    color: #1d4ed8;
}

.rule-content {
    flex: 1;
    padding-top: 0.25rem;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.rule-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e40af !important;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.rule-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #374151 !important;
    line-height: 1.6;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* サブセクション */
.subsection {
    margin-bottom: 40px;
}

.subsection:last-child {
    margin-bottom: 0;
}

/* 指示項目 */
.instruction-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.instruction-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.instruction-item:hover {
    background: var(--gray-100);
}

.instruction-text p {
    margin: 0;
    font-weight: 500;
    line-height: 1.8;
    font-size: 1rem;
}

.instruction-text p + p {
    margin-top: 12px;
}

/* 警告アイテム */
.warning-item {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3C4 100%);
    border: 1px solid #FFCC02;
    border-left: 4px solid var(--warning-red);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.warning-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.warning-icon {
    font-size: 1.3rem;
    color: var(--warning-red);
}

.warning-item p {
    margin: 0;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

/* 警告項目内の画像 */
.warning-item .image-container {
    margin-top: 12px;
}

/* ステップバイステップ */
.step-by-step {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0 0 16px 0;
    font-weight: 500;
    line-height: 1.8;
    font-size: 1rem;
}

/* ステップ内の画像 */
.step-content .image-container,
.step-content .image-grid {
    margin-top: 16px;
}

.step-content .image-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .step-content .image-grid {
        grid-template-columns: 1fr;
    }
}



/* 持ち戻り商品セクション */
.return-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.return-info p {
    font-weight: 500;
    line-height: 1.8;
    font-size: 1rem;
}

.time-restrictions {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.time-restrictions h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cycle-badge {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 110px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.cycle-badge.cycle-2 {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--light-orange) 100%);
}

/* 時間テキストを強調（スカイブルー） */
.time-text {
    font-weight: 700;
    font-size: 1.8rem;
    color: #0ea5e9;
    text-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

/* 確認フォーム */
.confirmation-section .card {
    background: linear-gradient(135deg, var(--success-green) 0%, #66BB6A 100%);
    color: var(--white);
    border: none;
}

.confirmation-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 500;
}

.confirmation-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* チェックボックス */
.checkbox-group {
    display: flex;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

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

.checkmark {
    width: 28px;
    height: 28px;
    border: 2px solid var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--white);
    color: var(--success-green);
    box-shadow: var(--shadow-light);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    font-weight: 700;
    font-size: 1.3rem;
}

/* 入力フィールド */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    font-weight: 600;
    font-size: 1rem;
}

.input-group input[type="text"] {
    padding: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--white);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 送信ボタン */
.submit-btn {
    background: var(--white);
    color: var(--success-green);
    border: none;
    padding: 18px 40px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-light);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

/* 成功メッセージ */
.success-message {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.success-message p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* フッター */
.footer {
    background: transparent;
    padding: 20px 0 0 0;
    margin: 0;
}

.admin-access {
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 50%;
    margin: 0 auto;
    cursor: pointer;
    transition: var(--transition);
}

.admin-access:hover {
    background: rgba(33, 150, 243, 0.1);
}

/* 管理者画面 */
.admin-section {
    background: var(--background-light);
    padding: 40px 0;
    min-height: 100vh;
}

.admin-card {
    background: var(--white);
    border-left: 4px solid var(--primary-blue);
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.admin-toggle-btn {
    background: var(--warning-red);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-toggle-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* 統計カード */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.stat-card h3 {
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    opacity: 0.9;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

/* 管理者コントロール */
.admin-controls {
    margin-bottom: 32px;
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-btn {
    background: var(--gray-100);
    color: var(--text-dark);
    border: 2px solid var(--gray-300);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.admin-btn.primary {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.admin-btn.primary:hover {
    background: var(--secondary-blue);
}

.admin-btn.danger {
    background: var(--warning-red);
    color: var(--white);
    border-color: var(--warning-red);
}

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

/* 検索・フィルター */
.search-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-input, .filter-select, .date-filter {
    padding: 10px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.search-input:focus, .filter-select:focus, .date-filter:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(20, 110, 180, 0.1);
}

/* データテーブル */
.admin-data-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table-header {
    background: var(--gray-100);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.table-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.record-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.table-container {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--gray-200);
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--gray-300);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--gray-100);
}

.data-table tbody tr:nth-child(even) {
    background: var(--gray-50, #f9f9f9);
}

.data-table tbody tr:nth-child(even):hover {
    background: var(--gray-100);
}

/* 言語バッジ */
.language-badge {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ページネーションドット */
.pagination-dots {
    padding: 6px 8px;
    color: var(--text-light);
}

/* テーブル内のボタン */
.table-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--gray-300);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.table-btn:hover {
    background: var(--gray-100);
}

.table-btn.danger {
    color: var(--warning-red);
    border-color: var(--warning-red);
}

.table-btn.danger:hover {
    background: var(--warning-red);
    color: var(--white);
}

/* ページネーション */
.table-pagination {
    padding: 16px 20px;
    background: var(--gray-100);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--gray-200);
}

.pagination-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--gray-300);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pagination-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

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

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 16px 0;
    }

    .header-content {
        gap: 12px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    /* モバイルでの言語選択の余白を大幅に削減 */
    .language-selector {
        gap: 4px;
        padding: 0 4px;
        margin: 0 -4px;
    }

    .lang-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-width: 75px;
        flex: 1;
        max-width: 90px;
        word-break: break-all;
        line-height: 1.2;
    }

    .main {
        padding: 20px 0 0 0;
    }

    .card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .subsection-title {
        font-size: 1.3rem;
    }

    .rule-item {
        padding: 16px;
        gap: 12px;
    }

    .rule-icon {
        font-size: 1.3rem;
        min-width: 28px;
    }

    .rule-item p {
        font-size: 1.05rem;
    }

    .instruction-item {
        padding: 16px;
    }

    .step-item {
        gap: 16px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .time-restrictions {
        padding: 16px;
    }

    .time-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .cycle-badge {
        width: 100%;
        text-align: center;
    }

    .time-text {
        width: 100%;
        text-align: center;
        font-size: 1.3rem;
    }

    .confirmation-form {
        gap: 20px;
    }

    .checkbox-label {
        padding: 16px;
        font-size: 1rem;
    }

    .checkmark {
        width: 24px;
        height: 24px;
    }

    .input-group input[type="text"] {
        padding: 16px;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .control-group {
        justify-content: center;
    }

    .search-group {
        flex-direction: column;
    }

    .search-input {
        min-width: auto;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 12px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo-section {
        text-align: left;
    }

    .site-title {
        font-size: 2rem;
    }

    .language-selector {
        justify-content: flex-end;
        gap: 8px;
        padding: 0;
    }

    .lang-btn {
        min-width: 90px;
        padding: 12px 18px;
    }

    .main {
        padding: 32px 0 0 0;
    }

    .card {
        padding: 32px;
    }

    .section-title {
        font-size: 2rem;
    }

    .subsection-title {
        font-size: 1.6rem;
    }

    .instruction-image {
        max-width: 400px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        max-width: 900px;
        margin: 20px auto;
        justify-items: center;
        align-items: center;
    }

    .safety-rules {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .instruction-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .instruction-text {
        flex: 1;
    }

    .image-container {
        flex: 1;
        margin-top: 0;
        margin-left: 16px;
    }

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .step-by-step {
        gap: 24px;
    }

    .confirmation-form {
        max-width: 500px;
        margin: 0 auto;
    }

    .time-item {
        gap: 20px;
    }

    .time-text {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .main {
        padding: 40px 0 0 0;
    }

    .card {
        padding: 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .subsection-title {
        font-size: 1.7rem;
    }

    .instruction-image {
        max-width: 500px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        max-width: 1100px;
        margin: 24px auto;
        justify-items: center;
        align-items: center;
        gap: 28px;
    }

    .step-by-step {
        gap: 32px;
    }

    .step-item {
        gap: 24px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .lang-btn {
        min-width: 100px;
    }
}

@media print {
    .header,
    .footer,
    .admin-section {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
        break-inside: avoid;
    }

    .section-title {
        color: var(--text-dark);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
} 

/* 熱中症対策注意書き - PC対応モダンデザイン */
.heatstroke-notice {
    margin-bottom: 3rem;
    position: relative;
}

.notice-card-modern {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(240, 249, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.98) 100%
    );
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px -10px rgba(59, 130, 246, 0.15),
        0 4px 16px -4px rgba(59, 130, 246, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.notice-card-modern:hover {
    box-shadow: 
        0 15px 40px -10px rgba(59, 130, 246, 0.25),
        0 6px 20px -4px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.notice-header-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 2rem 1.5rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(251, 146, 60, 0.08) 0%,
        rgba(249, 115, 22, 0.05) 100%
    );
    position: relative;
}

.notice-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    height: 3px;
    background: linear-gradient(
        90deg,
        #f97316 0%,
        #fb923c 25%,
        #ea580c 50%,
        #fb923c 75%,
        #f97316 100%
    );
    border-radius: 20px 20px 0 0;
}

.error-icon {
    font-size: 2.5rem !important;
    color: #ea580c;
    filter: drop-shadow(0 2px 6px rgba(234, 88, 12, 0.4));
}

.notice-title-modern {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        #ea580c 0%,
        #f97316 50%,
        #ea580c 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 3px rgba(234, 88, 12, 0.2));
    letter-spacing: -0.01em;
}

.notice-content-modern {
    padding: 0 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.notice-image-section {
    position: relative;
    flex-shrink: 0;
}

.heatstroke-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 16px;
    box-shadow: 
        0 8px 25px -5px rgba(59, 130, 246, 0.2),
        0 4px 12px -4px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    object-fit: cover;
}

.heatstroke-image:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 30px -5px rgba(59, 130, 246, 0.25),
        0 6px 16px -4px rgba(59, 130, 246, 0.15);
}

.notice-text-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.primary-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1e40af;
    font-weight: 600;
    margin: 0;
    text-align: left;
    background: rgba(239, 246, 255, 0.8);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.primary-text:hover {
    background: rgba(219, 234, 254, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.15);
}

.action-section {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
}

.pdf-link-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(
        135deg,
        #38bdf8 0%,
        #60a5fa 50%,
        #22d3ee 100%
    );
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px -3px rgba(56, 189, 248, 0.4),
        0 2px 8px -2px rgba(96, 165, 250, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-link-modern:hover {
    background: linear-gradient(
        135deg,
        #0ea5e9 0%,
        #3b82f6 50%,
        #06b6d4 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px -3px rgba(56, 189, 248, 0.5),
        0 4px 12px -2px rgba(96, 165, 250, 0.35);
    color: white;
    text-decoration: none;
}

.limit-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #d97706;
    font-weight: 700;
    margin: 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(254, 240, 138, 0.4) 0%,
        rgba(253, 230, 138, 0.3) 100%
    );
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .notice-content-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .notice-title-modern {
        font-size: 1.875rem;
    }
    
    .heatstroke-image {
        max-width: 100%;
    }
    
    .primary-text {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .notice-card-modern {
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .notice-header-modern {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .error-icon {
        font-size: 2rem !important;
    }
    
    .notice-title-modern {
        font-size: 1.5rem;
    }
    
    .notice-content-modern {
        padding: 0 1.5rem 1.5rem 1.5rem;
        gap: 1.25rem;
    }
    
    .primary-text {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .pdf-link-modern {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* レスポンシブ対応 */
/* PC大画面対応 */
@media (min-width: 1200px) {
    .notice-content-modern {
        grid-template-columns: 380px 1fr;
        gap: 3rem;
        padding: 0 3rem 2.5rem 3rem;
    }
    
    .heatstroke-image {
        max-width: 380px;
    }
    
    .primary-text {
        font-size: 1.3rem;
        padding: 1.4rem;
    }
    
    .notice-title-modern {
        font-size: 2.5rem;
    }
    
    .error-icon {
        font-size: 2.75rem !important;
    }
}

/* 構内での注意事項のレスポンシブ対応 */
@media (max-width: 1024px) {
    .safety-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .safety-title-modern {
        font-size: 1.875rem;
    }
    
    .safety-main-icon {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .safety-card-modern {
        margin: 0 1rem 2.5rem 1rem;
        border-radius: 16px;
    }
    
    .safety-header-modern {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .safety-main-icon {
        font-size: 2.25rem !important;
    }
    
    .safety-title-modern {
        font-size: 1.5rem;
    }
    
    .safety-content-modern {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .safety-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .safety-rule-modern {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .rule-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 1.875rem !important;
    }
    
    .rule-title {
        font-size: 1rem;
    }
    
    .rule-content p {
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .safety-content-modern {
        padding: 0 3rem 2.5rem 3rem;
    }
    
    .safety-grid {
        gap: 2rem;
    }
    
    .safety-title-modern {
        font-size: 2.5rem;
    }
    
    .safety-main-icon {
        font-size: 3rem !important;
    }
    
    .rule-title {
        font-size: 1.25rem;
    }
    
    .rule-content p {
        font-size: 1.125rem;
    }
}

/* 既存のsafety-sectionとの間隔調整 */ 