/* NaviCard最適化CSS - PageSpeed Insights対応 */

/* NaviCard専用カラーシステム - Critical CSS */
.navicard-gradient-bg {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

.navicard-primary {
    background-color: #b45309;
}

.navicard-primary:hover {
    background-color: #d97706;
}

.text-navicard {
    color: #b45309;
}

.border-navicard {
    border-color: #b45309;
}

.bg-navicard {
    background-color: #b45309;
}

.navicard-accent {
    color: #b45309;
}

/* ヘッダーナビゲーション白色強制設定 - 統合最適化版 */
.navicard-gradient-bg .nav-white-link, 
.navicard-gradient-bg .nav-white-link:visited, 
.navicard-gradient-bg .nav-white-link:link, 
.navicard-gradient-bg .nav-white-link:hover, 
.navicard-gradient-bg .nav-white-link:active,
.nav-white-link, 
.nav-white-link:visited, 
.nav-white-link:link, 
.nav-white-link:hover, 
.nav-white-link:active,
header.navicard-gradient-bg nav a, 
header.navicard-gradient-bg nav a:visited, 
header.navicard-gradient-bg nav a:link, 
header.navicard-gradient-bg nav a:hover, 
header.navicard-gradient-bg nav a:active,
header nav a, 
header nav a:visited, 
header nav a:link, 
header nav a:hover, 
header nav a:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

/* フッターリンク白色強制設定 - 統合版 */
footer.bg-gray-800 a, 
footer.bg-gray-800 a:visited, 
footer.bg-gray-800 a:link, 
footer.bg-gray-800 a:active,
footer.bg-gray-800 .text-gray-400 a, 
footer.bg-gray-800 .text-gray-400 a:visited, 
footer.bg-gray-800 .text-gray-400 a:link, 
footer.bg-gray-800 .text-gray-400 a:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

footer.bg-gray-800 a:hover {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
}

/* 会社リンク */
.company-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.company-link:hover {
    text-decoration: underline;
}

.company-link:visited {
    color: inherit;
}

/* SNSアイコン - 最適化版 */
.sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sns-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sns-icon:visited {
    color: inherit;
}

/* フォーム要素 - 最適化版 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label.required::after {
    content: " *";
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

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

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

.form-input::placeholder {
    color: #9ca3af;
}

/* ボタンのホバー効果 - 統合版 */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-orange {
    background-color: #f97316 !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-orange:hover {
    background-color: #ea580c !important;
    color: white !important;
}

.btn-orange:visited {
    background-color: #f97316 !important;
    color: white !important;
}

/* カードのホバー効果 */
.card-hover {
    transition: all 0.3s ease;
}

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

/* アニメーション - パフォーマンス最適化 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* リンクのvisited状態管理 - 統合最適化版 */
a:visited {
    color: inherit;
}

nav a:visited {
    color: inherit;
}

/* 会社沿革リンクスタイル */
.history-link {
    position: relative;
    display: inline-block;
}

.history-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #b45309, #d97706);
    transition: width 0.3s ease;
}

.history-link:hover::before {
    width: 100%;
}

/* フォントサイズ最適化 - アクセシビリティ対応 */
h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    line-height: 1.4;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .sns-icon {
        width: 40px;
        height: 40px;
    }
    
    /* モバイルでのフォントサイズ最適化 */
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-6xl {
        font-size: 2.5rem !important;
    }
}