/* リセットとベース設定 */
* {
    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: #F2F7FC;        /* 薄いグレイッシュブルー */
    --background-ultra-light: #EAF2FB;  /* さらに明るいブルー */
    --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(180deg, var(--background-light) 0%, var(--background-ultra-light) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

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

/* ヘッダー */
.header {
    background: linear-gradient(
        135deg,
        rgba(33, 150, 243, 0.65) 0%,
        rgba(25, 118, 210, 0.55) 50%,
        rgba(33, 150, 243, 0.65) 100%
    );
    color: var(--white);
    padding: 24px 0;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.12),
        0 4px 16px rgba(31, 38, 135, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.site-title {
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-align: center;
    transition: opacity 0.2s ease-in;
    filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.2));
    /* フォントサイズはJavaScriptで自動調整 */
}

/* ヘッダーコントロール */
.header-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

/* 管理者アイコンボタン */
.admin-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(31, 38, 135, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* PCのみで表示する要素 */
.pc-only {
    display: flex !important;
}

.admin-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(31, 38, 135, 0.15),
        0 4px 16px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.admin-icon-btn .material-symbols-outlined {
    font-size: 24px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 90px;
    text-align: center;
    box-shadow: 
        0 4px 12px rgba(31, 38, 135, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(31, 38, 135, 0.15),
        0 4px 16px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border-color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(31, 38, 135, 0.15),
        0 4px 16px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

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

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

/* PEJ5確認事項内のすべてのカードに境界線を表示 */
#manualContainer .card {
    border: 2px solid var(--gray-200) !important;
    box-shadow: var(--shadow-light) !important;
}

/* 積み込みについてのカード */
.loading-section .card {
    border: 2px solid var(--primary-blue) !important;
    box-shadow: 
        var(--shadow-light),
        0 0 0 1px rgba(33, 150, 243, 0.1) !important;
}

/* 持ち戻り商品についてのカード */
.return-section .card {
    border: 2px solid var(--accent-orange) !important;
    box-shadow: 
        var(--shadow-light),
        0 0 0 1px rgba(255, 152, 0, 0.1) !important;
}

/* 稼働前チェックセクションのカードスタイルをリセット - 最高優先度 */
section.daily-check-section.card {
    border: 2px solid #87CEEB !important;
    background: transparent !important;
    box-shadow:
        0 25px 50px rgba(33, 150, 243, 0.06),
        0 12px 40px rgba(33, 150, 243, 0.04),
        0 4px 16px rgba(33, 150, 243, 0.03) !important;
}

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

/* 稼働前チェックセクションのホバー効果を無効化 */
.daily-check-section.card:hover {
    box-shadow:
        0 25px 50px rgba(33, 150, 243, 0.06),
        0 12px 40px rgba(33, 150, 243, 0.04),
        0 4px 16px rgba(33, 150, 243, 0.03) !important;
    transform: none;
}

/* セクションタイトル */
.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;
    }
    
    /* スマートフォンでは管理者アイコンボタンを非表示 */
    .pc-only {
        display: none !important;
    }
}

/* 構内での注意事項 - 最高レベルモダンデザイン */
.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;
}

.notice-content-modern {
    padding: 0 2rem 2rem 2rem;
    display: flex;
}

.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;
    }

    /* 構内での注意事項のモバイル対応 */
    .safety-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        margin-top: 1.25rem !important;
        padding: 0 0.5rem !important;
    }

    .safety-rule-modern {
        padding: 1.25rem 1rem !important;
        text-align: center !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 12px rgba(59, 130, 246, 0.12) !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        min-height: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .rule-content {
        text-align: center !important;
    }

    .rule-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
        color: #1e40af !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(30, 64, 175, 0.1) !important;
        letter-spacing: 0.02em !important;
    }

    .rule-content p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: #374151 !important;
        margin: 0 !important;
        font-weight: 500 !important;
    }

    .safety-title-modern {
        font-size: 1.8rem !important;
        text-align: center !important;
    }

    .notice-content-modern {
        padding: 0 1rem 1.5rem 1rem !important;
        gap: 1rem !important;
    }
}



/* 持ち戻り商品セクション */
.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: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
        var(--shadow-light),
        0 0 0 1px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.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;
}

/* 稼働前チェックセクション - 背景画像付き */
.daily-check-section {
    position: relative;
    background: transparent;
    border: 2px solid #87CEEB !important;
    border-radius: var(--border-radius-large) !important;
    box-shadow:
        0 25px 50px rgba(33, 150, 243, 0.06),
        0 12px 40px rgba(33, 150, 243, 0.04),
        0 4px 16px rgba(33, 150, 243, 0.03),
        inset 0 0 80px rgba(255, 255, 255, 0.6),
        inset 0 0 160px rgba(255, 255, 255, 0.4),
        inset 0 0 240px rgba(255, 255, 255, 0.3),
        inset 0 0 320px rgba(255, 255, 255, 0.2) !important;
    color: var(--text-dark);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 動的ランダムガラス反射レイヤー - JavaScriptで制御 */
.daily-check-section .glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 背景はJavaScriptで動的に設定 */
    mix-blend-mode: screen;
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
    border-radius: var(--border-radius-large);
}

/* ネイビー線パターンレイヤー - 独立した要素 */
.daily-check-section .navy-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* ネイビー斜めストライプパターン - 3px線、3px間隔 */
        repeating-linear-gradient(
            135deg,
            transparent 0px,
            transparent 1px,
            rgba(25, 25, 112, 0.15) 1px,
            rgba(25, 25, 112, 0.15) 4px,
            transparent 4px,
            transparent 7px
        );
    mix-blend-mode: multiply;
    z-index: 2;
    pointer-events: none;
    border-radius: var(--border-radius-large);
}

/* シンプルな内側光彩レイヤー - 1層のみ */
.daily-check-section .inner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* シンプルな内側光彩 */
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(255, 255, 255, 0.05) 60%,
            rgba(255, 255, 255, 0.02) 80%,
            transparent 100%
        );
    mix-blend-mode: screen;
    z-index: 4;
    pointer-events: none;
    border-radius: var(--border-radius-large);
}

/* エッジレイヤー削除 */

/* 削除 - 不要なアニメーション */

/* アニメーション削除 */

/* シンプルな境界線 */
.daily-check-section {
    border: 2px solid #87CEEB !important;
    position: relative;
}

/* ガラス境界線の光沢効果 */
.daily-check-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: 
        /* 上辺の光沢グラデーション */
        linear-gradient(
            to right,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 10%,
            rgba(255, 255, 255, 0.8) 30%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(255, 255, 255, 0.8) 70%,
            rgba(255, 255, 255, 0.4) 90%,
            transparent 100%
        ) 0 0 / 100% 2px no-repeat,
        /* 左辺の光沢グラデーション */
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 20%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.3) 80%,
            transparent 100%
        ) 0 0 / 2px 100% no-repeat,
        /* 右辺の光沢グラデーション */
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 30%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0.7) 85%,
            rgba(255, 255, 255, 0.9) 100%
        ) 100% 0 / 2px 100% no-repeat,
        /* 下辺の光沢グラデーション */
        linear-gradient(
            to right,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 30%,
            rgba(255, 255, 255, 0.6) 70%,
            rgba(255, 255, 255, 0.9) 100%
        ) 0 100% / 100% 2px no-repeat,
        /* 背景画像 */
        url('img/IMG_1040.JPG') center center / cover no-repeat;
    filter: blur(3px);
    opacity: 0.85;
    z-index: -2;
    border-radius: var(--border-radius-large);
}

/* 稼働前チェックセクションの背景画像 */
.daily-check-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('img/IMG_1040.JPG') center center / cover no-repeat;
    filter: blur(3px);
    opacity: 0.85;
    z-index: -2;
}

/* === Custom: cycle-colored ring ripple and additive blend for buttons (2025-08-29) === */
/* CYCLE-based halo colors */
.ring-ripple.cycle1 {
  /* More turquoise tint (slightly deeper) */
  border-color: rgba(90, 220, 210, 0.98) !important;
  box-shadow:
    0 0 26px rgba(90, 220, 210, 0.68),
    0 0 10px rgba(90, 220, 210, 0.44),
    inset 0 0 10px rgba(255,255,255,0.22) !important;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(90, 220, 210, 0.32) 0%, rgba(90, 220, 210, 0.16) 50%, rgba(90, 220, 210, 0) 100%) !important;
}

.ring-ripple.cycle2 {
  /* More red-ish pink tint (slightly deeper) */
  border-color: rgba(235, 100, 140, 0.98) !important;
  box-shadow:
    0 0 26px rgba(235, 100, 140, 0.68),
    0 0 10px rgba(235, 100, 140, 0.44),
    inset 0 0 10px rgba(255,255,255,0.22) !important;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(235, 100, 140, 0.32) 0%, rgba(235, 100, 140, 0.16) 50%, rgba(235, 100, 140, 0) 100%) !important;
}

/* Additive blend for the three buttons (containers only; text stays normal) */
.daily-check-section .modern-button.glass-toggle.glass-pro,
.daily-check-section .modern-button.glass-toggle.glass-pro.checked,
.daily-check-section .submit-btn {
  mix-blend-mode: screen;
  mix-blend-mode: plus-lighter !important; /* additive where supported */
}

/* エッジライン削除 - 不要 */

/* 削除 - 不要なアニメーション */

/* アニメーション削除 */

/* 削除された古いオーバーレイ */

/* グラデーション境界線削除 - シンプルな水色境界線のみ */





@keyframes gradientShift {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.daily-check-section .section-title {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    background-clip: unset;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    justify-content: center;
    font-size: 3.0rem;
    position: relative;
    z-index: 10;
}

.daily-check-description {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 10;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 2px 8px rgba(33, 150, 243, 0.3)); }
    50% { filter: drop-shadow(0 4px 16px rgba(33, 150, 243, 0.5)); }
}

.daily-check-section .input-group {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    z-index: 10;
}

.daily-check-section .input-group label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 1px 3px rgba(33, 150, 243, 0.2);
    text-align: center;
}

/* CYCLEインジケーター */
.cycle-indicator {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.cycle-indicator #currentDateText {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  opacity: 0.95;
}
.cycle-indicator #currentDateText .date-year { font-size: 1.1rem; }
.cycle-indicator #currentDateText .date-md { font-size: 1.2rem; }
.cycle-indicator .cycle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.75);
  color: #003f7f;
  backdrop-filter: blur(6px);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Mobile layout: two columns (date | cycle) each takes ~50% */
@media (max-width: 768px) {
  .cycle-indicator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .cycle-indicator #currentDateText {
    grid-column: 1 / 2;
    justify-self: start;
    width: 100%;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
  }
  .cycle-indicator #currentDateText .date-year {
    font-size: 1.05rem;
    line-height: 1.05;
  }
  .cycle-indicator #currentDateText .date-md {
    font-size: 1.25rem;
    line-height: 1.05;
  }
  .cycle-indicator .cycle-badge {
    grid-column: 2 / 3;
    justify-self: end;
    width: 100%;
    min-height: 44px;
    background: rgba(255,255,255,0.4);
    font-weight: 800;
    letter-spacing: 0.02em;
  }
}

.daily-check-section .input-group input[type="text"] {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-dark);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(33, 150, 243, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-align: center;
}

.daily-check-section .input-group input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 4px rgba(33, 150, 243, 0.2),
        0 8px 24px rgba(33, 150, 243, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    outline: none;
}

/* モダンチェックボックスボタン - 最高級グラスモーフィズム */
.daily-check-section .modern-button {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(33, 150, 243, 0.12) 0%,
        rgba(33, 150, 243, 0.08) 50%,
        rgba(33, 150, 243, 0.06) 100%
    );
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 24px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: background 1.5s cubic-bezier(0.23, 1, 0.32, 1), 
                border-color 1.5s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 1.5s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 8px 25px rgba(33, 150, 243, 0.04),
        0 4px 12px rgba(135, 206, 235, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.25);
    width: 100%;
    max-width: 480px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.daily-check-section .modern-button:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

.daily-check-section .modern-button.checked {
    background: linear-gradient(
        135deg,
        rgba(34, 211, 238, 0.5) 0%,
        rgba(34, 211, 238, 0.35) 50%,
        rgba(34, 211, 238, 0.25) 100%
    ) !important;
    border: 2px solid rgba(34, 211, 238, 0.6) !important;
    color: var(--primary-blue);
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 15px 40px rgba(34, 211, 238, 0.15),
        0 8px 25px rgba(34, 211, 238, 0.12),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 1px 6px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.6) !important;
    mix-blend-mode: normal;
}

@keyframes gentleBlueGlow {
    0%, 100% {
        box-shadow:
            0 25px 70px rgba(33, 150, 243, 0.15),
            0 12px 40px rgba(135, 206, 235, 0.12),
            0 6px 20px rgba(33, 150, 243, 0.08),
            inset 0 2px 0 rgba(255, 255, 255, 0.6),
            inset 0 1px 6px rgba(255, 255, 255, 0.3),
            inset 0 0 30px rgba(33, 150, 243, 0.15),
            inset 0 0 60px rgba(135, 206, 235, 0.1);
        border-color: rgba(33, 150, 243, 0.5);
    }
    50% {
        box-shadow:
            0 30px 80px rgba(33, 150, 243, 0.18),
            0 15px 45px rgba(135, 206, 235, 0.15),
            0 8px 25px rgba(33, 150, 243, 0.1),
            inset 0 2px 0 rgba(255, 255, 255, 0.7),
            inset 0 1px 8px rgba(255, 255, 255, 0.4),
            inset 0 0 40px rgba(33, 150, 243, 0.2),
            inset 0 0 80px rgba(135, 206, 235, 0.15);
        border-color: rgba(33, 150, 243, 0.6);
    }
}

.daily-check-section .button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
    padding: 0 2rem;
    width: 100%;
    text-align: center;
}

.daily-check-section .button-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: black !important;
    text-shadow: none !important;
    transition: all 0.4s ease;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 1000;
    width: 100%;
    display: block;
    mix-blend-mode: normal !important;
}

.daily-check-section .button-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    z-index: 500;
    pointer-events: none;
}

.daily-check-section .button-icon .material-symbols-outlined {
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: scale(2.2) rotate(-15deg);
    transition: none;
    display: block;
    line-height: 1;
    mix-blend-mode: normal;
}

.daily-check-section .modern-button.checked .button-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.daily-check-section .modern-button.checked .button-icon .material-symbols-outlined {
    opacity: 0.6;
    transform: scale(1.4) rotate(0deg);
    color: rgba(255, 255, 255, 0.8);
    font-size: 6rem;
    font-weight: 700;
    mix-blend-mode: normal;
}

.daily-check-section .modern-button.checked .button-text {
    color: black !important;
    font-weight: 700;
    text-shadow: none !important;
    mix-blend-mode: normal !important;
}

/* チェックマークのシンプルなアニメーション */
@keyframes checkmarkAppear {
    0% { 
        transform: scale(2.2) rotate(-15deg); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1.4) rotate(0deg); 
        opacity: 0.6; 
    }
}



/* 不要なアニメーションを削除 */

/* 共通トークン（統一されたアクセント） */
.glass-toggle { 
    --accent: #22d3ee; 
    --accent2: #67e8f9; 
    --ring: rgba(34,211,238,.25); 
}

.glass-toggle--alcohol { 
    --accent: #22d3ee; 
    --accent2: #67e8f9; 
    --ring: rgba(34,211,238,.25); 
}

.glass-toggle--license { 
    --accent: #22d3ee; 
    --accent2: #67e8f9; 
    --ring: rgba(34,211,238,.25); 
}

/* === Glass Pro (最先端グラスモーフィズム仕上げ) ===================== */
.daily-check-section .modern-button.glass-toggle.glass-pro {
    /* 統一された美しい青グラデーション */
    --gp-a1: 59,130,246;   /* blue-500 */
    --gp-a2: 99,102,241;   /* indigo-500 */
    
    position: relative;
    isolation: isolate;
    background:
        /* 柔らかい"光だまり" */
        radial-gradient(120% 140% at 10% 10%, rgba(var(--gp-a1), .08) 0%, transparent 45%),
        radial-gradient(120% 140% at 90% 10%, rgba(var(--gp-a2), .06) 0%, transparent 45%),
        /* ベースのフロスト */
        linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.12));
    backdrop-filter: blur(35px) saturate(1.1);
    -webkit-backdrop-filter: blur(35px) saturate(1.1);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 24px;
    box-shadow:
        0 8px 25px rgba(59,130,246,.04),
        0 4px 12px rgba(0,0,0,.02),
        inset 0 1px 0 rgba(255,255,255,.6);
    will-change: transform, box-shadow, opacity, background, border-color;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* シマー効果を削除 - よりクリーンなデザインのため */

/* ホバー浮遊と影のモーフィング */
.daily-check-section .modern-button.glass-toggle.glass-pro:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 12px 30px rgba(59,130,246,.06),
        0 6px 15px rgba(0,0,0,.03),
        inset 0 1px 0 rgba(255,255,255,.7);
    background:
        radial-gradient(120% 140% at 10% 10%, rgba(var(--gp-a1), .10) 0%, transparent 45%),
        radial-gradient(120% 140% at 90% 10%, rgba(var(--gp-a2), .08) 0%, transparent 45%),
        linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.14));
}

/* 押下時の滑らかなアニメーション */
.daily-check-section .modern-button.glass-toggle.glass-pro:active {
    transform: translateY(-2px) scale(0.99);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.6, 1);
}

/* チェック時：滑らかな色変化 */
.daily-check-section .modern-button.glass-toggle.glass-pro.checked {
    border-color: rgba(34,211,238,.35);
    background:
        radial-gradient(140% 160% at 50% 0%, rgba(34,211,238, .18) 0%, transparent 60%),
        radial-gradient(120% 140% at 100% 20%, rgba(34,211,238, .15) 0%, transparent 55%),
        linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.25));
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 10px 25px rgba(34,211,238,.08),
        0 6px 15px rgba(34,211,238,.06),
        inset 0 1px 0 rgba(255,255,255,.85);
    mix-blend-mode: normal;
}

/* 青いブラー効果を削除してクリーンなデザインに */

/* テキストは常に黒・通常ブレンド */
.daily-check-section .modern-button.glass-toggle.glass-pro .button-text {
    color: black !important;
    text-shadow: none !important;
    mix-blend-mode: normal !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.daily-check-section .modern-button.glass-toggle.glass-pro.checked .button-text {
    color: black !important;
    text-shadow: none !important;
    mix-blend-mode: normal !important;
}

/* 全てのボタンテキストを強制的に黒に - 最高優先度 */
.daily-check-section .button-text,
.daily-check-section .modern-button .button-text,
.daily-check-section .modern-button.checked .button-text,
.daily-check-section .modern-button.glass-toggle .button-text,
.daily-check-section .modern-button.glass-toggle.glass-pro .button-text,
.daily-check-section .modern-button.glass-toggle.glass-pro.checked .button-text,
.daily-check-section .modern-button:hover .button-text,
.daily-check-section .modern-button:active .button-text,
.daily-check-section .modern-button:focus .button-text {
    color: black !important;
    text-shadow: none !important;
    mix-blend-mode: normal !important;
    z-index: 1000 !important;
    position: relative !important;
}

/* 全てのボタン要素のmix-blend-modeを強制的にnormalに */
.daily-check-section .modern-button,
.daily-check-section .modern-button.checked,
.daily-check-section .modern-button.glass-toggle,
.daily-check-section .modern-button.glass-toggle.glass-pro,
.daily-check-section .modern-button.glass-toggle.glass-pro.checked,
.daily-check-section .submit-btn {
    mix-blend-mode: normal !important;
}

/* 統一された美しいグラデーション（両方同じ色に） */
.daily-check-section .modern-button.glass-toggle.glass-pro.glass-pro--alcohol {
    --gp-a1: 59,130,246;   /* blue-500 */
    --gp-a2: 99,102,241;   /* indigo-500 */
}

.daily-check-section .modern-button.glass-toggle.glass-pro.glass-pro--license {
    --gp-a1: 59,130,246;   /* blue-500 */
    --gp-a2: 99,102,241;   /* indigo-500 */
}

/* 既存のリップルとチェック時アイコンはそのまま活かす（微強化済） */
.daily-check-section .modern-button .ripple {
    position:absolute; 
    border-radius:50%;
    pointer-events:none; 
    transform: scale(0);
    background: radial-gradient(circle, rgba(255,255,255,.35) 0%, rgba(255,255,255,.15) 45%, transparent 60%);
    animation: rippleOut .8s ease-out forwards;
}

@keyframes rippleOut { 
    to{ transform: scale(6); opacity:0; } 
}

/* 古いチェックアイコン演出を削除 - クリーンなデザインのため */

/* モバイルでの最小サイズ担保 */
@media (max-width: 768px) {
    .daily-check-section .modern-button.glass-toggle.glass-pro { 
        min-height: 84px; 
    }
}

/* チェックボックス背景は削除 - よりクリーンなデザイン */

/* 送信ボタン - グラスモーフィズムスタイル */
.daily-check-section .submit-btn {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(135, 206, 235, 0.65) 0%,
        rgba(135, 206, 235, 0.55) 50%,
        rgba(135, 206, 235, 0.45) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    color: black;
    border: 2px solid rgba(135, 206, 235, 0.8);
    border-radius: 20px;
    padding: 1.25rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(135, 206, 235, 0.25),
        0 4px 12px rgba(135, 206, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    text-align: center;
    text-shadow: none;
    mix-blend-mode: normal;
    z-index: 10;
}

.daily-check-section .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.daily-check-section .submit-btn:hover::before {
    left: 100%;
}

.daily-check-section .submit-btn:hover:not(:disabled) {
    background: linear-gradient(
        135deg,
        rgba(135, 206, 235, 0.75) 0%,
        rgba(135, 206, 235, 0.65) 50%,
        rgba(135, 206, 235, 0.55) 100%
    );
    border-color: rgba(135, 206, 235, 0.9);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(135, 206, 235, 0.3),
        0 8px 25px rgba(135, 206, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.4);
    color: black;
    text-shadow: none;
}

.daily-check-section .submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* 送信ボタンのテキストを通常ブレンドに */
.daily-check-section .submit-btn .button-content {
    mix-blend-mode: normal !important;
    color: black !important;
    z-index: 1000 !important;
    position: relative !important;
}

.daily-check-section .submit-btn,
.daily-check-section .submit-btn *,
.daily-check-section .submit-btn .button-content,
.daily-check-section .submit-btn:hover,
.daily-check-section .submit-btn:active {
    color: black !important;
    mix-blend-mode: normal !important;
    z-index: 1000 !important;
}

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

.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;
}

/* 成功メッセージ - グラスモーフィズム */
.daily-check-section .success-message {
    text-align: center;
    padding: 2.5rem;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.22) 100%),
      linear-gradient(135deg, rgba(135,206,235,0.10) 0%, rgba(135,206,235,0.08) 100%);
    backdrop-filter: blur(28px) saturate(1.06);
    -webkit-backdrop-filter: blur(28px) saturate(1.06);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 20px;
    box-shadow:
        0 15px 35px rgba(135, 206, 235, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: white;
    position: relative;
    overflow: hidden;
    opacity: 0; /* fade-in later */
}

@keyframes successAppear {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes successFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.daily-check-section .success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.10) 100%
    );
    /* 無限アニメーション削除 */
    z-index: -1;
}

@keyframes successShimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.daily-check-section .success-icon {
    margin-bottom: 1.25rem;
}
.daily-check-section .success-icon .material-symbols-outlined {
    font-size: 5rem;
    color: white;
    opacity: 0; /* will fade/scale in via JS */
    transform: scale(2.2);
    text-shadow: 0 3px 12px rgba(0,0,0,0.45);
}

.daily-check-section .success-message h3 {
    font-size: 2.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white; /* 白に戻す */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
    opacity: 0;
}

@keyframes successTextSlide {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.daily-check-section .success-message p {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 500;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    opacity: 0;
}

/* Cycle tint for success card */
.daily-check-section.cycle2 .success-message {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.22) 100%),
    linear-gradient(135deg, rgba(255,190,210,0.10) 0%, rgba(255,190,210,0.08) 100%);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 15px 35px rgba(255, 190, 210, 0.18), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Simple scale+fade-in for card and texts */
@keyframes softScaleIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.success-message.soft-fade-in { animation: softScaleIn 300ms ease forwards; }
.success-message.soft-fade-in .success-title { animation: softScaleIn 300ms ease 120ms forwards; }
.success-message.soft-fade-in .success-sub { animation: softScaleIn 300ms ease 220ms forwards; }

/* 成功メッセージ（その他のセクション用） */
.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);
}

/* 熱中症対策注意書き - シンプルデザイン */
.heatstroke-notice {
    margin-bottom: 2rem;
}

.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: 0.6rem 1.75rem;
    background:
        linear-gradient(135deg,
            rgba(0, 60, 160, 0.95) 0%,
            rgba(0, 160, 170, 0.95) 100%
        ),
        rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow:
        0 7px 18px rgba(31, 38, 135, 0.18),
        0 2px 6px rgba(31, 38, 135, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    position: relative;
    isolation: isolate;
    min-width: 220px;
}

.pdf-link-modern:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(31, 38, 135, 0.22),
        0 4px 12px rgba(31, 38, 135, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.pdf-link-modern::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; height: 50%;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background: linear-gradient(to bottom, rgba(120, 190, 255, 0.18) 0%, rgba(120, 190, 255, 0.18) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}

.pdf-link-modern::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    box-shadow:
        inset 0 0 18px rgba(120, 255, 240, 0.24),
        inset 0 0 10px rgba(120, 255, 240, 0.14),
        inset 0 0 2px rgba(255, 255, 255, 0.10);
}

.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);
}

.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: 8px 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);
}

/* 使用方法案内 */
.usage-notice {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 152, 0, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    animation: pulse 2s infinite;
}

.usage-notice .notice-content h4 {
    color: #ff9800;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.usage-notice .notice-content p {
    color: var(--text-primary);
    margin: 10px 0;
    font-size: 0.9rem;
}

.usage-notice .notice-content ol {
    text-align: left;
    display: inline-block;
    margin: 10px 0;
    color: var(--text-primary);
}

.usage-notice .notice-content code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* 管理者画面 */
.admin-section {
    background: var(--background-light);
    padding: 40px 0;
    min-height: 100vh;
    position: relative;
    z-index: 100;
    width: 100%;
    overflow: visible;
}

.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;
}

/* 成功系（緑）ボタン */
.admin-btn.success {
    background: var(--success-green);
    color: var(--white);
    border-color: var(--success-green);
}
.admin-btn.success:hover {
    background: #3d8b40;
}

/* 管理画面のテーブル上コントロール配置 */
.table-controls {
    /* width auto to avoid overflow with side margins */
}
.table-controls .right-controls {
    margin-left: auto;
}

/* 検索・フィルター */
.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;
}

/* マニュアルコンテンツの初期状態（フェードアニメーション用） */
#manualContainer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* マニュアル表示ボタン - グラスモーフィズム */
.manual-toggle-container {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 248, 240, 0.6) 30%,
        rgba(255, 245, 235, 0.7) 70%,
        rgba(255, 255, 255, 0.8) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid #ff9800 !important;
    border-radius: 20px;
    box-shadow: 
        0 4px 12px rgba(255, 152, 0, 0.08),
        0 2px 8px rgba(255, 152, 0, 0.06),
        0 0 0 1px rgba(255, 152, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    position: relative;
    overflow: hidden;
    /* 無限アニメーション削除 */
}

@keyframes containerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

.manual-toggle-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 152, 0, 0.1) 0%,
        rgba(255, 193, 7, 0.08) 50%,
        rgba(255, 111, 0, 0.06) 100%
    );
    border-radius: 20px;
    z-index: -1;
}

@keyframes containerShimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.manual-toggle-description {
    font-size: 1.2rem;
    color: #e65100;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* 無限アニメーション削除 */
}

@keyframes descriptionPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.manual-toggle-btn {
    background: linear-gradient(
        135deg,
        rgba(33, 150, 243, 0.9) 0%,
        rgba(135, 206, 235, 0.8) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 10px 30px rgba(33, 150, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    min-width: 280px;
    position: relative;
    overflow: hidden;
    /* 無限アニメーション削除 */
}

@keyframes buttonGlow {
    0%, 100% { 
        box-shadow: 
            0 10px 30px rgba(33, 150, 243, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 
            0 15px 40px rgba(33, 150, 243, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.manual-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.8s ease;
}

.manual-toggle-btn:hover::before {
    left: 100%;
}

.manual-toggle-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(33, 150, 243, 1) 0%,
        rgba(135, 206, 235, 0.9) 100%
    );
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(33, 150, 243, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.manual-toggle-btn.active {
    background: linear-gradient(
        135deg,
        rgba(255, 152, 0, 0.9) 0%,
        rgba(255, 183, 77, 0.8) 100%
    );
    border-color: rgba(255, 152, 0, 0.5);
    /* 無限アニメーション削除 */
}

@keyframes activeButtonPulse {
    0%, 100% { 
        box-shadow: 
            0 12px 35px rgba(255, 152, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 
            0 18px 45px rgba(255, 152, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.manual-toggle-btn.active:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 152, 0, 1) 0%,
        rgba(255, 183, 77, 0.9) 100%
    );
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 25px 60px rgba(255, 152, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* レスポンシブ対応 */
@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;
    }
}

@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: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 16px 0;
    }

    .header-content {
        gap: 12px;
    }

    /* .site-title のフォントサイズはJavaScriptで自動調整 */

    .header-controls {
        flex-direction: column;
        gap: 12px;
    }

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

    .admin-icon-btn {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .admin-icon-btn .material-symbols-outlined {
        font-size: 22px;
    }

    .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: 10px 0 0 0;
    }

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

    /* 稼働前チェックセクション - モバイル対応 */
    .daily-check-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }

    .daily-check-section .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .daily-check-section .input-group {
        margin-bottom: 1.25rem;
    }

    .daily-check-section .input-group label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .daily-check-section .input-group input[type="text"] {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .daily-check-section .modern-button {
        padding: 1.25rem 1.5rem;
        border-radius: 18px;
        margin-bottom: 1.25rem;
        min-height: 75px;
    }

    .daily-check-section .modern-button::before {
        width: 60px;
        height: 60px;
    }

    .daily-check-section .button-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* 古いbutton-icon設定を削除 - クリーンなデザインのため */

    .daily-check-section .button-content {
        justify-content: center;
        padding: 0 1.5rem;
    }

    .daily-check-section .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .daily-check-section .success-message {
        padding: 2rem;
        border-radius: 16px;
    }

    .daily-check-section .success-icon {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }

    .daily-check-section .success-message h3 {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .daily-check-section .success-message p {
        font-size: 1.1rem;
    }

    /* マニュアルボタン - モバイル対応 */
    .manual-toggle-container {
        margin: 1.5rem 0;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .manual-toggle-description {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .manual-toggle-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 12px;
        min-width: 240px;
        letter-spacing: 1px;
    }

    .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 のフォントサイズはJavaScriptで自動調整 */

    .header-controls {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

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

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

    .main {
        padding: 10px 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);
    }

    .daily-check-section .button-content {
        justify-content: flex-start;
        padding-left: 1.5rem;
    }
}

/* 重複定義削除 - 上の定義を使用 */

.daily-check-button-wrapper {
    width: 100%;
    max-width: 400px;
}
/* マニュアル表
示ボタン */
/* manual-toggle-containerの重複定義を削除 - 上の定義を使用 */

.manual-toggle-description {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.manual-toggle-btn {
    background: linear-gradient(135deg, 
        rgba(255, 152, 0, 0.95) 0%, 
        rgba(255, 183, 77, 0.9) 100%);
    color: var(--white);
    border: 2px solid rgba(255, 152, 0, 0.6);
    padding: 1.5rem 3rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 
        var(--shadow-medium),
        0 0 20px rgba(255, 152, 0, 0.3);
    min-width: 280px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.manual-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        var(--shadow-hover),
        0 0 30px rgba(255, 152, 0, 0.4);
    border-color: rgba(255, 152, 0, 0.8);
    background: linear-gradient(135deg, 
        rgba(255, 152, 0, 1) 0%, 
        rgba(255, 183, 77, 0.95) 100%);
}

.manual-toggle-btn.active {
    background: linear-gradient(135deg, 
        rgba(255, 152, 0, 1) 0%, 
        rgba(255, 183, 77, 1) 100%);
    border-color: rgba(255, 152, 0, 1);
    box-shadow: 
        var(--shadow-hover),
        0 0 25px rgba(255, 152, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* 熱中症対策注意書き - シンプルデザイン */
.heatstroke-notice {
    margin-bottom: 2rem;
}

.heatstroke-card {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3C4 100%);
    border: 1px solid #FFCC02;
    border-left: 4px solid var(--warning-red);
}

.heatstroke-title {
    color: var(--warning-red);
    margin-bottom: 1.5rem;
}

.heatstroke-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.heatstroke-image-container {
    flex-shrink: 0;
}

.heatstroke-image {
    width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.heatstroke-text {
    flex: 1;
}

.heatstroke-text p {
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.7;
}

.pdf-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    margin: 1rem 0;
}

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

.water-limit {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

/* 確認フォーム */
.confirmation-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--white);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.input-group input[type="text"] {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transition: var(--transition);
}

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

.submit-btn {
    background: linear-gradient(135deg, var(--white) 0%, #f0f9ff 100%);
    color: var(--success-green);
    border: none;
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

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

.success-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    color: var(--success-green);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--success-green);
}

/* 管理者画面 */
.admin-section {
    margin-top: 2rem;
}

.admin-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
}

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

.admin-toggle-btn {
    background: var(--warning-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.admin-tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.admin-tab-btn:hover {
    color: var(--primary-blue);
}

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

.stat-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-light);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.admin-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.control-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-200);
    color: var(--text-dark);
}

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

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

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

.search-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input,
.filter-select,
.date-filter {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
}

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

.admin-data-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

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

.table-header h3 {
    margin: 0;
    color: var(--text-dark);
}

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

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--text-dark);
}

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

/* フッター */
.footer {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    text-align: center;
}

.admin-access {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    cursor: pointer;
    opacity: 0.1;
    transition: var(--transition);
}

.admin-access:hover {
    opacity: 0.3;
}

/* 波紋エフェクトは削除しました */

/* 従来のリップルエフェクト */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.9s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

    .header {
        padding: 16px 0;
    }

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

    .language-selector {
        gap: 4px;
    }

    .lang-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 70px;
    }

    .manual-toggle-container {
        margin: 1rem 0 2rem 0;
        padding: 1.5rem;
    }

    .manual-toggle-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 240px;
    }

    .notice-content-modern {
        flex-direction: column;
        gap: 1.5rem;
    }

    .heatstroke-image {
        width: 100%;
        max-width: 300px;
    }

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

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

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

    .instruction-item {
        padding: 16px;
    }

    .step-item {
        flex-direction: column;
        gap: 12px;
    }

    .step-number {
        align-self: flex-start;
    }

    .time-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .cycle-badge {
        min-width: auto;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .admin-tabs {
        flex-direction: column;
    }

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

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

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

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

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

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }

    /* 熱中症注意のモバイル対応 */
    .heatstroke-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .heatstroke-image {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
    }

    .lang-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
        min-width: 60px;
    }

    .manual-toggle-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 200px;
    }

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

    .card {
        padding: 16px;
    }

    .time-text {
        font-size: 1.5rem;
    }
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* プリント対応 */
@media print {
    .header,
    .footer,
    .admin-section,
    .manual-toggle-container,
    .confirmation-section,
    .daily-check-section {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    body {
        background: white;
    }
}

/* Admin Table Styles */
.admin-data-table .table-container {
    max-height: 60vh;
    overflow-y: auto;
}

#dailyChecksTable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--background-light);
}

#dailyChecksTable td:nth-child(2),
#dailyChecksTable td:nth-child(3) {
    text-align: center;
}
/* === Override: Daily-check inner glow and shadows (2025-08-28) === */
.daily-check-section {
  /* Remove inset inner white glows; keep only outer drop shadows */
  box-shadow:
    0 25px 50px rgba(33, 150, 243, 0.06),
    0 12px 40px rgba(33, 150, 243, 0.04),
    0 4px 16px rgba(33, 150, 243, 0.03) !important;
  /* Create stacking context so negative z-index children stay within */
  z-index: 0;
}

.daily-check-section .inner-glow {
  /* Above background (::before is -2), below content */
  z-index: -1 !important;
}
/* === End Override === */
/* === Override: Daily-check inner glow, pattern, border (2025-08-28) === */
/* Remove blue border on the card */
section.daily-check-section.card,
.daily-check-section {
  border: none !important;
}

/* Stronger and wider inner glow with additive-like blend */
.daily-check-section .inner-glow {
  /* Keep layering: above background (::before -2), below content */
  z-index: -1 !important;
  /* Fallback then additive blend for supported browsers */
  mix-blend-mode: screen;
  mix-blend-mode: plus-lighter;
  /* Wider, stronger multi-layer radial glow */
  background:
    radial-gradient(ellipse at center,
      rgba(255,255,255,0.65) 0%,
      rgba(255,255,255,0.55) 22%,
      rgba(255,255,255,0.40) 45%,
      rgba(255,255,255,0.22) 70%,
      rgba(255,255,255,0.12) 85%,
      transparent 100%
    ),
    radial-gradient(120% 120% at 50% 50%,
      rgba(135,206,235,0.20) 0%,
      rgba(135,206,235,0.10) 60%,
      transparent 100%
    );
  filter: saturate(1.1) brightness(1.05);
}

/* Navy pattern: 2px lines, 2px gaps */
.daily-check-section .navy-pattern {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 2px,
      rgba(25,25,112,0.15) 2px,
      rgba(25,25,112,0.15) 4px
    ) !important;
}
/* === End Override === */
/* === Override: Edge-strong inner glow + overlay, stripes spacing 3px (2025-08-28) === */
/* Inner glow: stronger near edges, fades to center; use overlay blend */
.daily-check-section .inner-glow {
  /* Layering stays: above background (::before -2), below content */
  z-index: -1 !important;
  mix-blend-mode: overlay !important;
  /* Edge-weighted radial gradients (wide coverage) */
  background:
    radial-gradient(140% 140% at 50% 50%,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.02) 45%,
      rgba(255,255,255,0.06) 60%,
      rgba(255,255,255,0.12) 75%,
      rgba(255,255,255,0.20) 88%,
      rgba(255,255,255,0.28) 95%,
      rgba(255,255,255,0.34) 100%
    ) !important;
  /* Subtle additional inner softness */
  box-shadow:
    inset 0 0 80px rgba(255,255,255,0.18),
    inset 0 0 160px rgba(255,255,255,0.12);
}

/* Navy pattern: keep 2px line, set 3px gap, slightly weaker opacity */
.daily-check-section .navy-pattern {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 3px,
      rgba(25,25,112,0.10) 3px,
      rgba(25,25,112,0.10) 5px
    ) !important;
}
/* === End Override === */
/* === Override: inner glow (white + screen, stronger & wider) and bg blur 5px (2025-08-28) === */
.daily-check-section .inner-glow {
  z-index: -1 !important; /* keep under content */
  mix-blend-mode: screen !important;
  /* Wider coverage and stronger edge weight */
  background:
    radial-gradient(170% 170% at 50% 50%,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.06) 40%,
      rgba(255,255,255,0.14) 60%,
      rgba(255,255,255,0.28) 78%,
      rgba(255,255,255,0.40) 90%,
      rgba(255,255,255,0.52) 100%
    ) !important;
  /* Subtle extra inner softness to amplify glow */
  box-shadow:
    inset 0 0 120px rgba(255,255,255,0.22),
    inset 0 0 220px rgba(255,255,255,0.16) !important;
}

/* Increase background image blur under the card */
.daily-check-section::before {
  filter: blur(5px) !important;
}
/* === End Override === */
/* === Override: stronger inner glow, weaker stripes, additive ring ripple (2025-08-28) === */
/* Stronger, wider white inner glow using screen blend */
.daily-check-section .inner-glow {
  mix-blend-mode: screen !important;
  background:
    radial-gradient(200% 200% at 50% 50%,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.12) 35%,
      rgba(255,255,255,0.28) 60%,
      rgba(255,255,255,0.50) 80%,
      rgba(255,255,255,0.70) 100%
    ) !important;
  box-shadow:
    inset 0 0 180px rgba(255,255,255,0.28),
    inset 0 0 320px rgba(255,255,255,0.22) !important;
}

/* Final override: drive ::before background via CSS var, and set opacity */
.daily-check-section::before {
  background: var(--daily-bg, url('img/IMG_1040.JPG')) center center / cover no-repeat !important;
  opacity: 0.85 !important;
}

/* Final override: inner-glow blend to overlay */
.daily-check-section .inner-glow { mix-blend-mode: overlay !important; }

/* Cycle-specific inner glow tints */
.daily-check-section.cycle1 .inner-glow {
  background:
    radial-gradient(200% 200% at 50% 50%,
      rgba(135,206,235,0.00) 0%,
      rgba(135,206,235,0.10) 35%,
      rgba(135,206,235,0.22) 60%,
      rgba(135,206,235,0.36) 80%,
      rgba(135,206,235,0.46) 100%
    ) !important;
}
.daily-check-section.cycle2 .inner-glow {
  background:
    radial-gradient(200% 200% at 50% 50%,
      rgba(255,128,170,0.00) 0%,
      rgba(255,128,170,0.12) 35%,
      rgba(255,128,170,0.26) 60%,
      rgba(255,128,170,0.40) 80%,
      rgba(255,128,170,0.52) 100%
    ) !important;
}

/* Cycle2: Pink theme for toggle buttons and submit button */
.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro {
  background:
    linear-gradient(135deg,
      rgba(236, 178, 236, 0.58) 0%,  /* purple-pink */
      rgba(224, 138, 217, 0.48) 100%
    ) !important;
  border: 1px solid rgba(224, 138, 217, 0.60) !important;
  box-shadow:
    0 8px 25px rgba(224, 138, 217, 0.14),
    0 4px 12px rgba(236, 178, 236, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 14px rgba(255, 255, 255, 0.22) !important;
}
.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro:hover {
  background:
    linear-gradient(135deg,
      rgba(240, 188, 240, 0.66) 0%,
      rgba(229, 148, 222, 0.54) 100%
    ) !important;
  border-color: rgba(229, 148, 222, 0.68) !important;
  box-shadow:
    0 10px 28px rgba(229, 148, 222, 0.18),
    0 6px 16px rgba(236, 178, 236, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 18px rgba(255, 255, 255, 0.28) !important;
}
.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro.checked {
  background: linear-gradient(135deg,
      rgba(229,148,222,0.72) 0%,
      rgba(224,138,217,0.58) 100%) !important;
  border: 2px solid rgba(224,138,217,0.78) !important;
  box-shadow:
    0 15px 40px rgba(224,138,217,0.24),
    0 8px 25px rgba(236,178,236,0.20),
    inset 0 2px 0 rgba(255, 255, 255, 0.78),
    inset 0 1px 6px rgba(255, 255, 255, 0.52),
    inset 0 0 30px rgba(255, 255, 255, 0.55) !important;
}

.daily-check-section.cycle2 .submit-btn {
  background: linear-gradient(
      135deg,
      rgba(248, 208, 248, 0.94) 0%,
      rgba(238, 178, 235, 0.86) 100%
    ) !important;
  border: 2px solid rgba(235,168,230,0.98) !important;
}
.daily-check-section.cycle2 .submit-btn:hover:not(:disabled) {
  background: linear-gradient(
      135deg,
      rgba(251, 218, 251, 0.98) 0%,
      rgba(241, 188, 238, 0.90) 100%
    ) !important;
  border-color: rgba(238,178,235,0.98) !important;
  box-shadow:
    0 15px 40px rgba(238,178,235,0.34),
    0 8px 25px rgba(248,208,248,0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 0 30px rgba(255, 255, 255, 0.45) !important;
}
.daily-check-section.cycle2 .submit-btn:active {
  transform: translateY(-2px) scale(0.98);
}

/* Pressed state: lighten color a bit (both cycles) */
.daily-check-section.cycle1 .modern-button.glass-toggle.glass-pro:active {
  background:
    linear-gradient(135deg,
      rgba(135, 206, 235, 0.42) 0%,
      rgba(135, 206, 235, 0.30) 100%
    ) !important;
}

.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro:active {
  background:
    linear-gradient(135deg,
      rgba(255, 210, 225, 0.68) 0%,
      rgba(255, 170, 210, 0.58) 100%
    ) !important;
}

.daily-check-section.cycle1 .submit-btn:active {
  background: linear-gradient(
      135deg,
      rgba(135, 206, 235, 0.85) 0%,
      rgba(135, 206, 235, 0.75) 100%
    ) !important;
}
.daily-check-section.cycle2 .submit-btn:active {
  background: linear-gradient(
      135deg,
      rgba(251, 218, 251, 0.99) 0%,
      rgba(241, 188, 238, 0.92) 100%
    ) !important;
}

/* Cycle2: Use Cycle1-like (default) color for alcohol/license in normal state */
.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro.glass-pro--alcohol:not(.checked),
.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro.glass-pro--license:not(.checked) {
  /* revert to default glass-pro (blue-ish frosted) */
  background:
    radial-gradient(120% 140% at 10% 10%, rgba(59,130,246, .08) 0%, transparent 45%),
    radial-gradient(120% 140% at 90% 10%, rgba(99,102,241, .06) 0%, transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.12)) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  box-shadow:
    0 8px 25px rgba(59,130,246,.04),
    0 4px 12px rgba(0,0,0,.02),
    inset 0 1px 0 rgba(255,255,255,.6) !important;
}

.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro.glass-pro--alcohol:not(.checked):hover,
.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro.glass-pro--license:not(.checked):hover {
  background:
    radial-gradient(120% 140% at 10% 10%, rgba(59,130,246, .10) 0%, transparent 45%),
    radial-gradient(120% 140% at 90% 10%, rgba(99,102,241, .08) 0%, transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.14)) !important;
  border-color: rgba(255,255,255,.32) !important;
}

/* Weaker multiply navy stripes with 2px line / 3px gap */
.daily-check-section .navy-pattern {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 3px,
      rgba(25,25,112,0.08) 3px,
      rgba(25,25,112,0.08) 5px
    ) !important;
}

/* Additive ring ripple (same shape as button) */
.daily-check-section .modern-button .ring-ripple,
.daily-check-section .submit-btn .ring-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow:
    0 0 22px rgba(255,255,255,0.35),
    inset 0 0 14px rgba(255,255,255,0.25);
  transform: scale(0.75);
  opacity: 0.9;
  animation: ringWave 700ms ease-out forwards;
  z-index: 2001 !important;
  mix-blend-mode: plus-lighter !important; /* additive-like blend */
}

@keyframes ringWave {
  0% { transform: scale(0.75); opacity: 0.9; }
  70% { transform: scale(1.08); opacity: 0.5; }
  100% { transform: scale(1.18); opacity: 0; }
}
/* === End Override === */
/* === Override: ring outside button, stronger inner glow, weaker stripes (2025-08-28) === */
/* Allow ripple to extend outside button bounds */
.daily-check-section .modern-button,
.daily-check-section .submit-btn { 
  overflow: visible !important; 
}

/* Stronger and wider white inner glow (screen) */
.daily-check-section .inner-glow {
  mix-blend-mode: screen !important;
  background:
    radial-gradient(220% 220% at 50% 50%,
      rgba(255,255,255,0.00) 0%,
      rgba(255,255,255,0.16) 40%,
      rgba(255,255,255,0.38) 62%,
      rgba(255,255,255,0.62) 82%,
      rgba(255,255,255,0.80) 100%
    ) !important;
  box-shadow:
    inset 0 0 220px rgba(255,255,255,0.32),
    inset 0 0 420px rgba(255,255,255,0.24) !important;
}

/* Weaker multiply stripes (2px line / 3px gap) */
.daily-check-section .navy-pattern {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 3px,
      rgba(25,25,112,0.04) 3px,
      rgba(25,25,112,0.04) 5px
    ) !important;
}

/* Additive ring ripple expands outside the button */
.daily-check-section .modern-button .ring-ripple,
.daily-check-section .submit-btn .ring-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 3px solid rgba(255,255,255,0.95);
  box-shadow:
    0 0 28px rgba(255,255,255,0.40),
    inset 0 0 18px rgba(255,255,255,0.28);
  transform: scale(0.95);
  opacity: 0.92;
  animation: ringWaveOuter 900ms cubic-bezier(0.16,1,0.3,1) forwards;
  z-index: 2001 !important;
  mix-blend-mode: plus-lighter !important; /* additive-like */
}

@keyframes ringWaveOuter {
  0%   { transform: scale(0.95); opacity: 0.92; }
  25%  { transform: scale(1.20); opacity: 0.70; }
  70%  { transform: scale(1.45); opacity: 0.35; }
  100% { transform: scale(1.60); opacity: 0.00; }
}
/* === End Override === */
/* === Override: fix ring visibility + clip content strictly (2025-08-28) === */
/* Strict clipping for buttons so checkmark/hover never overflow */
.daily-check-section .modern-button {
  overflow: hidden !important;
  clip-path: inset(0 round 24px) !important;
  contain: paint;
}
.daily-check-section .submit-btn {
  overflow: hidden !important;
  clip-path: inset(0 round 20px) !important;
  contain: paint;
}

/* Ensure ring ripple is clearly visible even on bright backgrounds */
.daily-check-section .ring-ripple {
  border: 2px solid rgba(255,255,255,0.75) !important;
  box-shadow:
    0 0 16px rgba(255,255,255,0.45) !important,
    0 0 6px rgba(135,206,235,0.20) !important,
    inset 0 0 10px rgba(255,255,255,0.22) !important;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
  /* animation handled by WAAPI (JS) */
  z-index: 9999 !important;
}
/* === End Override === */
/* === Override: global ring ripple for fixed layer (2025-08-28) === */
.ring-ripple {
  pointer-events: none;
  box-sizing: border-box;
  border: 2px solid rgba(255,255,255,0.75);
  box-shadow:
    0 0 16px rgba(255,255,255,0.45),
    0 0 6px rgba(135,206,235,0.20),
    inset 0 0 10px rgba(255,255,255,0.22);
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
  mix-blend-mode: plus-lighter;
  /* animation handled by WAAPI (JS) */
  will-change: transform, opacity;
  contain: paint;
}

/* === New: global additive flash layer with clipping wrapper (2025-08-29) === */
.ring-flash-wrap {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  pointer-events: none;
  box-sizing: border-box;
  overflow: hidden;              /* clip to rounded rect */
  border-radius: 20px;           /* set via JS to match button */
  z-index: 2147483647;           /* top layer */
}

.ring-flash {
  position: fixed;                 /* standalone top-layer element */
  left: 0; top: 0;
  width: 0; height: 0;            /* sized via JS to match button */
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0.0;
  z-index: 2147483647;            /* ensure topmost */
  mix-blend-mode: screen;         /* fallback */
  mix-blend-mode: plus-lighter !important;  /* additive when supported */
  will-change: opacity;           /* hint compositor */
  contain: paint;
  /* Softer, lighter-tint base (overridden by cycle classes) */
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(190,235,255,0.40) 0%,
    rgba(190,235,255,0.18) 54%,
    rgba(190,235,255,0.00) 98%
  );
  will-change: opacity;
}

/* Hint compositor for sparkles (created via JS) */
.sparkle {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.ring-flash.cycle1 {
  /* Turquoise-like additive flash (slightly deeper) */
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(90, 220, 210, 0.58) 0%,
    rgba(90, 220, 210, 0.28) 54%,
    rgba(90, 220, 210, 0.00) 98%
  );
}
.ring-flash.cycle2 {
  /* Redder pink additive flash (slightly deeper) */
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(235, 100, 140, 0.58) 0%,
    rgba(235, 100, 140, 0.28) 54%,
    rgba(235, 100, 140, 0.00) 98%
  );
}
/* === Override: white screen-like text shadow on buttons (2025-08-28) === */
.daily-check-section .modern-button .button-text,
.daily-check-section .submit-btn .button-content {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.70),
    0 0 10px rgba(255,255,255,0.25) !important;
}
/* Make ring thinner and ensure border-box sizing (already set); keep for safety */
.ring-ripple {
  border-width: 2px !important;
}

/* === Override: enforce white screen-like shadow on button texts (2025-08-28) === */
.daily-check-section .modern-button .button-text,
.daily-check-section .modern-button.checked .button-text,
.daily-check-section .modern-button:hover .button-text,
.daily-check-section .submit-btn .button-content {
  text-shadow: 0 1px 0 rgba(255,255,255,0.70), 0 0 10px rgba(255,255,255,0.18) !important;
}
/* === Override: enforce visible white highlight on button texts (2025-08-28b) === */
/* Use both text-shadow and filter drop-shadow to survive prior overrides */
.daily-check-section .modern-button .button-content .button-text,
.daily-check-section .modern-button.checked .button-content .button-text,
.daily-check-section .submit-btn .button-content {
  text-shadow: 0 1px 0 rgba(255,255,255,0.70), 0 0 10px rgba(255,255,255,0.20) !important;
  -webkit-text-stroke: 0 transparent; /* prevent stroke from masking shadow */
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.70)) drop-shadow(0 0 6px rgba(255,255,255,0.18)) !important;
}
/* === Final Override: inner glow blend back to screen (2025-08-28) === */
.daily-check-section .inner-glow {
  mix-blend-mode: screen !important;
}
/* === Final Override: stronger inner glow per cycle (2025-08-28) === */
.daily-check-section.cycle1 .inner-glow {
  /* Boosted sky-blue glow with supporting white softness */
  background:
    radial-gradient(200% 200% at 50% 50%,
      rgba(135,206,235,0.00) 0%,
      rgba(135,206,235,0.18) 30%,
      rgba(135,206,235,0.34) 55%,
      rgba(135,206,235,0.52) 78%,
      rgba(135,206,235,0.68) 100%
    ),
    radial-gradient(180% 180% at 50% 50%,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.20) 50%,
      rgba(255,255,255,0.00) 100%
    ) !important;
  box-shadow:
    inset 0 0 200px rgba(135,206,235,0.35),
    inset 0 0 320px rgba(255,255,255,0.25) !important;
}

.daily-check-section.cycle2 .inner-glow {
  /* Boosted pink glow with supporting white softness */
  background:
    radial-gradient(200% 200% at 50% 50%,
      rgba(255,128,170,0.00) 0%,
      rgba(255,128,170,0.20) 30%,
      rgba(255,128,170,0.38) 55%,
      rgba(255,128,170,0.56) 78%,
      rgba(255,128,170,0.72) 100%
    ),
    radial-gradient(180% 180% at 50% 50%,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.20) 50%,
      rgba(255,255,255,0.00) 100%
    ) !important;
  box-shadow:
    inset 0 0 200px rgba(255,128,170,0.35),
    inset 0 0 320px rgba(255,255,255,0.25) !important;
}

/* === Add: Additive radial flash on press (cycle-colored) =================== */
/* Base pseudo-element for both glass toggles and submit button */
.daily-check-section .modern-button.glass-toggle.glass-pro,
.daily-check-section .submit-btn { position: relative; }

.daily-check-section .modern-button.glass-toggle.glass-pro::after,
.daily-check-section .submit-btn::after {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  will-change: opacity, transform;
  z-index: 0; /* below text/icon layer */
  mix-blend-mode: plus-lighter; /* additive-like */
  background: radial-gradient(circle at 50% 50%, rgba(200,240,255,0.75) 0%, rgba(200,240,255,0.38) 42%, rgba(200,240,255,0.00) 72%);
}

/* Cycle-specific color tints for the flash */
.daily-check-section.cycle1 .modern-button.glass-toggle.glass-pro::after,
.daily-check-section.cycle1 .submit-btn::after {
  background: radial-gradient(circle at 50% 50%, rgba(200,240,255,0.85) 0%, rgba(200,240,255,0.45) 42%, rgba(200,240,255,0.00) 72%);
}
.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro::after,
.daily-check-section.cycle2 .submit-btn::after {
  background: radial-gradient(circle at 50% 50%, rgba(255,196,214,0.85) 0%, rgba(255,196,214,0.45) 42%, rgba(255,196,214,0.00) 72%);
}

/* Triggered state: gently flash in/out */
.daily-check-section .modern-button.glass-toggle.glass-pro.flash-glow::after,
.daily-check-section .submit-btn.flash-glow::after {
  animation: additiveFlash 1100ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes additiveFlash {
  0%   { opacity: 0.70; transform: scale(0.96); }
  60%  { opacity: 0.40; transform: scale(1.18); }
  100% { opacity: 0.00; transform: scale(1.25); }
}

/* === Final Override: ensure button containers are normal blend (2025-08-29) === */
.daily-check-section .modern-button.glass-toggle.glass-pro,
.daily-check-section .modern-button.glass-toggle.glass-pro.checked,
.daily-check-section .submit-btn {
  mix-blend-mode: normal !important;
}

/* Always-on additive soft glow for checked glass toggles */
.daily-check-section .modern-button.glass-toggle.glass-pro.checked {
  overflow: visible !important; /* allow glow to extend */
}
.daily-check-section .modern-button.glass-toggle.glass-pro.checked::before {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: plus-lighter;
  filter: blur(10px);
  opacity: 0.55;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.12) 42%, rgba(255,255,255,0) 70%);
  animation: softGlow 2600ms ease-in-out infinite alternate;
}
.daily-check-section.cycle1 .modern-button.glass-toggle.glass-pro.checked::before {
  background: radial-gradient(circle at 50% 50%, rgba(110,240,225,0.35) 0%, rgba(110,240,225,0.16) 42%, rgba(110,240,225,0) 70%);
}
.daily-check-section.cycle2 .modern-button.glass-toggle.glass-pro.checked::before {
  background: radial-gradient(circle at 50% 50%, rgba(248,208,248,0.35) 0%, rgba(248,208,248,0.16) 42%, rgba(248,208,248,0) 70%);
}
@keyframes softGlow {
  from { opacity: 0.42; transform: scale(0.98); }
  to   { opacity: 0.62; transform: scale(1.02); }
}

/* Remove visible borders while pressing buttons (no layout shift) */
.daily-check-section .modern-button:active,
.daily-check-section .modern-button.glass-toggle.glass-pro:active,
.daily-check-section .submit-btn:active {
  border-color: transparent !important;
  outline: none !important;
}
.ring-flash.ring-flash--circle {
  background: radial-gradient(circle closest-side at 50% 50%, rgba(190,235,255,0.55) 0%, rgba(190,235,255,0.26) 52%, rgba(190,235,255,0.00) 98%);
}
.ring-flash.ring-flash--circle.cycle1 {
  background: radial-gradient(circle closest-side at 50% 50%, rgba(185,235,255,0.60) 0%, rgba(185,235,255,0.28) 54%, rgba(185,235,255,0.00) 98%);
}

.soft-fade-in {
  animation: softFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

@keyframes softFadeIn {
  from { opacity: 0; transform: translateY(12px) translateZ(0); }
  to   { opacity: 1; transform: translateY(0) translateZ(0); }
}
.ring-flash.ring-flash--circle.cycle2 {
  background: radial-gradient(circle closest-side at 50% 50%, rgba(255,195,210,0.60) 0%, rgba(255,195,210,0.28) 54%, rgba(255,195,210,0.00) 98%);
}
/* Hide sticky header entirely in admin mode */
body.admin-mode .header { display: none !important; }
/* === Overrides: Daily check success layering and visuals (2025-08-30) === */
.daily-check-section .success-message {
  position: relative;
  z-index: 6 !important; /* above inner-glow(4) and navy-pattern(2) */
}
.daily-check-section .success-icon {
  position: relative;
  z-index: 7;
}
.daily-check-section .success-icon .material-symbols-outlined {
  /* Rotate gradient by 90deg from stripes (225deg) and widen pink share */
  background: linear-gradient(
    225deg,
    #00FFFF 0%,
    #9EFFFF 40%,
    #FFD8F4 60%,
    #FF93EC 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  /* Dark drop-shadow only (weaker than before) */
  text-shadow: none !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.22)) drop-shadow(0 2px 4px rgba(0,0,0,0.14));
}

/* Slightly stronger navy diagonal stripe pattern on the daily-check section */
.daily-check-section .navy-pattern {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 1px,
      rgba(25, 25, 112, 0.09) 1px,
      rgba(25, 25, 112, 0.09) 4px,
      transparent 4px,
      transparent 6px
    ) !important;
}

/* CYCLE badge text color by cycle */
.daily-check-section.cycle1 .cycle-indicator .cycle-badge { color: #00BFFF !important; }
.daily-check-section.cycle2 .cycle-indicator .cycle-badge { color: #FF66C6 !important; }
/* Manual content (e.g., return-section) cycle badges are unified to white */
#manualContainer .cycle-badge,
.return-section .cycle-badge { color: #ffffff !important; }

/* Layer cycle badge and date text above stripes */
.cycle-indicator,
.cycle-indicator #currentDateText,
.cycle-indicator .cycle-badge {
  position: relative;
  z-index: 6 !important; /* above .navy-pattern (2) and .inner-glow (4) */
}

/* Make ring/flash colors a bit more vivid */
.ring-ripple.cycle1 {
  border-color: rgba(110,240,225,1) !important;
  box-shadow:
    0 0 38px rgba(110,240,225,0.95),
    0 0 18px rgba(70,210,200,0.70),
    inset 0 0 12px rgba(255,255,255,0.24) !important;
}
.ring-ripple.cycle2 {
  border-color: rgba(255,130,160,1) !important;
  box-shadow:
    0 0 38px rgba(255,130,160,0.95),
    0 0 18px rgba(255,85,135,0.70),
    inset 0 0 12px rgba(255,255,255,0.24) !important;
}
.ring-flash.ring-flash--circle.cycle1 {
  background: radial-gradient(circle closest-side at 50% 50%, rgba(120,200,255,0.90) 0%, rgba(120,200,255,0.48) 52%, rgba(120,200,255,0.00) 98%) !important;
}
.ring-flash.ring-flash--circle.cycle2 {
  background: radial-gradient(circle closest-side at 50% 50%, rgba(255,135,195,0.90) 0%, rgba(255,135,195,0.48) 52%, rgba(255,135,195,0.00) 98%) !important;
}
.daily-check-section .success-message h3 {
  /* Slightly narrower than before */
  text-shadow:
    0 4px 14px rgba(0,0,0,0.55),
    0 2px 6px rgba(0,0,0,0.45) !important;
}
.daily-check-section .success-message p {
  /* Narrower and darker a bit */
  text-shadow:
    0 2px 8px rgba(0,0,0,0.50),
    0 1px 3px rgba(0,0,0,0.42) !important;
}

/* Compact bottom spacing near page end */
.daily-check-section .success-message { margin-bottom: 0.25rem !important; }
.daily-check-section { margin-bottom: 0.25rem !important; }
.main { padding-bottom: max(4px, env(safe-area-inset-bottom)) !important; }
/* Stronger visuals for button-press boosted effects */
.ring-ripple.boost {
  border: 0 !important; /* no crisp border; soft glow instead */
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 55%, rgba(255,255,255,0) 100%) !important;
  /* soft, bilateral-looking glow by combining outer and inset shadows */
  box-shadow:
    0 0 40px rgba(255,255,255,0.35),
    inset 0 0 18px rgba(255,255,255,0.20) !important;
}
.ring-ripple.boost.cycle1 {
  box-shadow:
    0 0 60px rgba(90,220,210,0.78),
    0 0 28px rgba(90,220,210,0.60),
    inset 0 0 18px rgba(255,255,255,0.26) !important;
}
.ring-ripple.boost.cycle2 {
  /* Slightly stronger than cycle1 to compensate perceptual luminance */
  box-shadow:
    0 0 66px rgba(235,100,140,0.88),
    0 0 32px rgba(235,100,140,0.68),
    0 0 12px rgba(255,255,255,0.20),
    inset 0 0 18px rgba(255,255,255,0.26) !important;
}

/* Tinted boost for button flash (additive) */
.ring-flash.boost.cycle1 {
  box-shadow:
    0 0 48px rgba(90,220,210,0.75),
    0 0 22px rgba(90,220,210,0.55),
    inset 0 0 10px rgba(255,255,255,0.22) !important;
}
.ring-flash.boost.cycle2 {
  /* Slightly stronger to match perceived brightness */
  box-shadow:
    0 0 54px rgba(235,100,140,0.82),
    0 0 26px rgba(235,100,140,0.62),
    inset 0 0 10px rgba(255,255,255,0.24) !important;
}
.ring-flash.boost {
  /* amplify inner brightness slightly */
  background: radial-gradient(
    ellipse closest-side at 50% 50%,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.12) 45%,
    rgba(255,255,255,0.00) 98%
  );
  mix-blend-mode: plus-lighter !important;
}
/* Fade-out for daily-check form when submitting */
#dailyCheckForm.fade-out {
  animation: fadeOutDown 420ms cubic-bezier(0.22, 0.8, 0.28, 1) forwards;
  will-change: opacity, transform;
  backface-visibility: hidden;
}
@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0) translateZ(0); }
  to   { opacity: 0; transform: translateY(8px) translateZ(0); }
}
.daily-check-section .modern-button.glass-toggle.glass-pro.checked {
  clip-path: none !important; /* allow glow to extend outside */
}
