/* ===== リセット・基本スタイル ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* カスタムプロパティ */
:root {
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    --secondary-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #fb923c 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(59, 130, 246, 0.1);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #1a202c;
    --hero-bg: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ナビゲーション ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(59, 130, 246, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.brand-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-left: -0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* ===== メインコンテンツ ===== */
.main-content {
    padding: 0;
    background: transparent;
}

.hero {
    text-align: center;
    padding: 4rem 0 6rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-yeg-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 8px 32px rgba(59, 130, 246, 0.2));
    animation: float 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.1);
}

.hero-text {
    color: var(--text-primary);
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 30%, #60a5fa 60%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
    text-shadow: none;
}

.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(8px);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

.hero-title {
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

.section {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header h2 i {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #3b82f6;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.count-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== フォーム ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== タグシステム ===== */
.tag-input-container {
    position: relative;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: 2rem;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
    background: #f9fafb;
}

.tag-input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
}

.tag-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    animation: tagSlideIn 0.2s ease-out;
}

.tag-item .remove-tag {
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tag-item .remove-tag:hover {
    opacity: 1;
}

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.suggestion-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.suggestion-tag:hover {
    background: #cbd5e1;
    color: #334155;
    transform: translateY(-1px);
}

.suggestion-tag.selected {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 検索用タグの色分け */
.tag-item.seeking {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tag-item.offering {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

/* datalist用のスタイル（検索フォーム用） */
.form-input[list] {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.form-input[list]::-webkit-calendar-picker-indicator {
    display: none;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.search-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: end;
}

.search-buttons {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .search-buttons {
        flex-direction: row;
    }
}

/* ===== ボタン ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 2px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== 企業グリッド ===== */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.company-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.05);
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.company-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.company-card:hover::before {
    transform: scaleX(1);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.company-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
}

.btn-edit {
    color: #3b82f6;
    background: #eff6ff;
}

.btn-edit:hover {
    background: #dbeafe;
    transform: scale(1.1);
}

.btn-delete {
    color: #ef4444;
    background: #fef2f2;
}

.btn-delete:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.company-industry {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.company-size {
    color: #6b7280;
    font-size: 0.875rem;
}

.company-info {
    margin-bottom: 1rem;
}

.company-info p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.company-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.company-tag.seeking {
    background: #fef3c7;
    color: #92400e;
}

.company-tag.offering {
    background: #d1fae5;
    color: #065f46;
}

/* ===== マッチング履歴 ===== */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.match-companies {
    font-weight: 600;
    color: #1f2937;
}

.match-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.match-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.match-status.active {
    background: #dbeafe;
    color: #1e40af;
}

.match-status.success {
    background: #d1fae5;
    color: #065f46;
}

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

.match-score {
    font-weight: 600;
    color: #667eea;
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 5% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* 企業選択モーダル */
.company-select-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.company-select-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.company-select-item:hover {
    background: #f0f9ff;
    border-color: #3b82f6;
}

.company-select-item.selected {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.company-select-item:last-child {
    border-bottom: none;
}

.company-select-name {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.company-select-info {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.company-select-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.company-select-tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.company-select-tag.seeking {
    background: #fef3c7;
    color: #92400e;
}

.company-select-tag.offering {
    background: #d1fae5;
    color: #065f46;
}

.company-select-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.company-select-header h4 {
    margin: 0;
    color: #1e40af;
    font-size: 1rem;
    font-weight: 600;
}

.company-select-industry {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.company-select-info {
    margin-bottom: 0.75rem;
}

.company-select-info p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.company-select-description {
    color: #4b5563;
    line-height: 1.4;
}

.company-select-tags {
    margin-bottom: 0.75rem;
}

.tag-select {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.tag-select.seeking {
    background: #fef3c7;
    color: #92400e;
}

.tag-select.offering {
    background: #d1fae5;
    color: #065f46;
}

.company-select-score {
    text-align: right;
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
}

.no-companies {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

/* 企業検索入力 */
.company-search-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.company-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.company-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.company-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h3 {
    color: #1f2937;
    font-size: 1.25rem;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: #6b7280;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

/* ===== ローディング ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #6b7280;
}

.loading i {
    margin-right: 0.5rem;
}

/* ===== フッター ===== */
.footer {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-yeg-logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.footer-brand {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .brand-subtitle {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-yeg-logo {
        width: 80px;
        height: 80px;
        padding: 0.75rem;
    }

    .hero-logo {
        gap: 1.5rem;
    }

    .section {
        padding: 2rem 1rem;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .search-form .form-row {
        grid-template-columns: 1fr;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .footer-content {
        padding: 0 1rem;
    }
}

/* ===== マッチング編集機能 ===== */
.match-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-edit-match {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    color: #0369a1;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-edit-match:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-edit-match:active {
    transform: translateY(0);
}

/* マッチング編集モーダル専用スタイル */
.match-score-preview {
    margin-top: 0.5rem;
}

.match-score-preview .match-score-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.match-score-preview .match-score-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 削除ボタン用のスタイル */
.btn-danger {
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #dc2626;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* フォームグループのマージン調整 */
#matchEditModal .form-group {
    margin-bottom: 1.5rem;
}

#matchEditModal .form-group:last-child {
    margin-bottom: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }
}

/* ===== ユーティリティ ===== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.match-score-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.match-score-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    transition: width 0.5s ease;
}