/* Copyright (c) 2026 Kohei Torii. All rights reserved. */

/* ========================================
   ナビゲーションバー - モダンスタイル
   ======================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --navbar-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

.modern-navbar {
    background: var(--primary-gradient);
    backdrop-filter: blur(10px);
    box-shadow: var(--navbar-shadow);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.modern-navbar .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    color: white !important;
}

.modern-navbar .navbar-brand:hover {
    transform: translateY(-2px);
}

.modern-navbar .navbar-brand img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.modern-navbar .navbar-brand:hover img {
    transform: rotate(5deg) scale(1.1);
}

.modern-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--hover-shadow);
    transform: translateY(-1px);
    color: white !important;
}

.modern-navbar .nav-link i {
    font-size: 1.1rem;
}

.modern-navbar .btn-logout {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-navbar .btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.modern-navbar .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.modern-navbar .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.modern-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.user-badge {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 576px) {
    .modern-navbar .navbar-brand {
        font-size: 1rem;
    }

    .modern-navbar .nav-link,
    .modern-navbar .btn-logout {
        justify-content: center;
        margin: 0.25rem 0;
    }
}

/* ========================================
   ボタンスタイル
   ======================================== */
.modern-btn {
    position: relative;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    letter-spacing: 0.5px;
}

.modern-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.modern-btn:hover:not(:disabled):before {
    left: 100%;
}

.modern-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.modern-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modern-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-delete {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.btn-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5252 0%, #e63946 100%);
}

.btn-download {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-download:hover:not(:disabled) {
    background: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
}

.modern-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modern-btn {
        width: 100%;
    }
}

/* モダンなチェックボックススタイル */
.modern-checkbox {
    width: 32px;
    height: 32px;
    cursor: pointer;
    accent-color: #4facfe;
    transition: transform 0.2s ease;
}

.modern-checkbox:hover {
    transform: scale(1.15);
}

.modern-checkbox:checked {
    accent-color: #2196f3;
}

/* テーブルのモダン化 */
.table-responsive {
    max-height: 700px;
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch; /* スマホでのスムーズなスクロール */
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    padding: 16px 12px;
}

.table tbody td {
    vertical-align: middle;
    padding: 12px;
}

/* 画像のホバーエフェクト */
.table tbody td img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.table tbody td img:hover {
    transform: scale(1.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

/* テーブルスクロールバーのカスタマイズ */
.table-responsive::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #663a8e 100%);
}

/* ========================================
   ログインページ - モダンスタイル
   ======================================== */
.login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
    padding: 0.5rem;
}

.login-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

.login-notice {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-left: 4px solid #fc8181;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.6s ease-out 0.2s both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-notice i {
    color: #fc8181;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.login-notice p {
    margin: 0;
    color: #742a2a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-form {
    animation: slideIn 0.6s ease-out 0.3s both;
}

.form-errors {
    margin-bottom: 1.5rem;
}

.error-message {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    color: #c53030;
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
    border-left: 4px solid #e53e3e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message i {
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: #667eea;
    font-size: 1rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: #a0aec0;
}

.field-errors {
    margin-top: 0.5rem;
}

.error-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #e53e3e;
    font-size: 0.85rem;
    animation: slideIn 0.3s ease-out;
}

.error-text i {
    font-size: 0.875rem;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.btn-shine {
    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;
}

.login-btn:hover .btn-shine {
    left: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .login-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .login-icon img {
        width: 100%;
        height: 100%;
    }

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

/* ========================================
   牛子宮口判定ページ - モダンスタイル
   ======================================== */

/* メインコンテナ */
.cow-cervix-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* トップアクションバー */
.top-action-bar {
    text-align: center;
    margin: 2rem 0;
}

.btn-results {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-results:hover {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: white;
}

/* 説明セクション */
.instructions {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instructions p {
    margin: 0;
    color: #1565c0;
    line-height: 1.8;
}

/* フォームカード */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.form-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-card-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin: 0;
}

.form-card-header i {
    color: #667eea;
    font-size: 1.5rem;
}

/* フォームフィールド */
.form-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.form-field-label {
    text-align: right;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.form-field-input {
    display: flex;
    align-items: center;
}

.modern-input,
.modern-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d3748;
}

.modern-input:focus,
.modern-select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.modern-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.modern-checkbox-input {
    width: 28px;
    height: 28px;
    cursor: pointer;
    accent-color: #667eea;
    transition: transform 0.2s ease;
}

.modern-checkbox-input:hover {
    transform: scale(1.1);
}

/* アクションボタンセクション */
.action-section {
    margin: 3rem 0;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.button-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.action-button-wrapper {
    text-align: center;
}

.btn-camera,
.btn-judge {
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-camera {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-camera:hover:not(:disabled) {
    background: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(79, 172, 254, 0.4);
}

.btn-judge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-judge:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d7c6f 0%, #2dd162 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(56, 239, 125, 0.4);
}

.btn-camera:disabled,
.btn-judge:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 画像プレビューエリア */
.image-preview-area {
    margin: 2rem 0;
    text-align: center;
    min-height: 200px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.image-preview-area img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.image-preview-area img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* 参考画像セクション */
.reference-section {
    margin: 4rem 0 2rem;
}

.reference-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 3rem 0;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reference-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.reference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.reference-card-header {
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.reference-card-header.good {
    background: linear-gradient(135deg, #d4f4dd 0%, #a8e6cf 100%);
    color: #22543d;
}

.reference-card-header.bad {
    background: linear-gradient(135deg, #ffd4d4 0%, #ffb3b3 100%);
    color: #742a2a;
}

.reference-card-header i {
    font-size: 1.25rem;
}

.reference-card-image {
    padding: 1rem;
    background: #f7fafc;
}

.reference-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    /* .form-field-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .form-field-label {
        text-align: left;
    } */

    .button-flow {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 300px;
    }

    .btn-camera,
    .btn-judge {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .cow-cervix-container {
        padding: 0 0.75rem;
    }

    .form-card-header h5 {
        font-size: 1.1rem;
    }

    .instructions {
        padding: 1.25rem;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* ローディングアニメーション */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* ========================================
   フッター - モダンスタイル
   ======================================== */
.modern-footer {
    position: relative;
    margin-top: 5rem;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    /* animation: footerIconFloat 3s ease-in-out infinite; */
    padding: 0.5rem;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes footerIconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.footer-text {
    line-height: 1.6;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-org {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.footer-version {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.footer-version i {
    font-size: 0.9rem;
}

.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave svg path {
    fill: rgba(255, 255, 255, 0.1);
    animation: waveAnimation 10s ease-in-out infinite;
}

@keyframes waveAnimation {
    0%, 100% { d: path("M0,0 C150,100 350,0 600,50 C850,100 1050,0 1200,50 L1200,120 L0,120 Z"); }
    50% { d: path("M0,50 C150,0 350,100 600,0 C850,0 1050,100 1200,50 L1200,120 L0,120 Z"); }
}

/* フッターのレスポンシブ対応 */
@media (max-width: 576px) {
    .modern-footer {
        padding: 2.5rem 1rem 1.5rem;
        margin-top: 3rem;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
        padding: 0.35rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-org {
        font-size: 0.85rem;
    }

    .footer-version {
        justify-content: center;
        font-size: 0.8rem;
    }

    .footer-wave {
        height: 40px;
    }

    .footer-wave svg {
        height: 40px;
    }
}
