/* Company Detail Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* カバー画像 */
#cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 業界バッジ */
.industry-it {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.industry-medical {
    background-color: #FEE2E2;
    color: #991B1B;
}

.industry-driver {
    background-color: #FEF3C7;
    color: #92400E;
}

.industry-other {
    background-color: #E0E7FF;
    color: #3730A3;
}

/* 企業ロゴ */
#company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

/* プローススタイル */
.prose {
    line-height: 1.8;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul,
.prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* 関連企業カード */
.related-company-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* モーダルアニメーション */
#success-modal {
    transition: opacity 0.3s ease-in-out;
}

#success-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ローディングスピナー */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* フォーカススタイル */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4F46E5;
    ring: 2px;
    ring-color: #4F46E5;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    #cover-image {
        height: 200px;
    }
    
    .max-w-4xl,
    .max-w-3xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #company-logo {
        width: 100px;
        height: 100px;
    }
}

/* スクロールバーカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* ボタンホバー効果 */
button,
a[class*="bg-"] {
    transition: all 0.2s ease;
}

button:hover,
a[class*="bg-"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
