/* カスタムフォント設定 */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* カスタムカラーパレット */
:root {
    --primary-navy: #1e293b;
    --secondary-orange: #ea580c;
    --light-orange: #fb923c;
    --dark-navy: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-600: #475569;
    --gray-800: #1e293b;
}

/* ヘッダーの背景グラデーション */
header {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
    backdrop-filter: blur(10px);
}

/* ヒーローセクションのアニメーション */
#home {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

#home::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 1000 1000"><defs><radialGradient id="a"><stop offset="0" stop-color="rgba(234,88,12,0.1)"/><stop offset="1" stop-color="rgba(234,88,12,0)"/></radialGradient></defs><circle cx="50%" cy="50%" r="40%" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;

    /* ▼ 追記：オーバーレイが操作を奪わないようにする */
    pointer-events: none;
}

/* ボタンのカスタムスタイル */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary-orange), var(--light-orange));
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4);
}

/* カードのカスタムスタイル */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-orange);
}

/* アイコンの回転アニメーション */
.icon-rotate {
    transition: transform 0.3s ease;
}

.service-card:hover .icon-rotate {
    transform: rotateY(180deg);
}

/* フォームのカスタムスタイル */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
    transform: translateY(-2px);
}

/* レスポンシブ対応のナビゲーション */
@media (max-width: 768px) {
    #mobile-menu {
        background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
        border-radius: 8px;
        margin-top: 8px;
        padding: 16px;
    }
}

/* 実績セクションのアニメーション */
.achievement-number {
    background: linear-gradient(135deg, var(--secondary-orange), var(--light-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

/* セクション間の区切り線 */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-orange), transparent);
    margin: 2rem 0;
}

/* スクロール時のフェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 会社情報テーブルのスタイル */
.company-table {
    background: var(--gray-50);
    border-radius: 8px;
    overflow: hidden;
}

.company-table td {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.company-table tr:last-child td {
    border-bottom: none;
}

/* お問い合わせセクションの背景 */
#contact {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
    position: relative;
}

#contact::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 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(234,88,12,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;

    /* ▼ 追記：ここが入力をブロックしていたので無効化 */
    pointer-events: none;
}

/* ▼ 追記：フォームを前面に（念のため） */
#contact .container,
#contact form {
    position: relative;
    z-index: 1;
}

/* フッターのスタイル */
footer {
    background: var(--dark-navy);
    border-top: 1px solid rgba(234, 88, 12, 0.2);
}

/* ロゴのスタイル調整 */
.logo-header {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    max-width: 200px; /* ロゴの最大幅を制限 */
}

.logo-header:hover {
    transform: scale(1.05);
}

.logo-hero {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: fade-in-up 1s ease-out;
    max-width: 300px; /* ヒーローロゴの最大幅 */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

/* ロゴ読み込み中の表示 */
.logo-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--secondary-orange); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--light-orange); }

/* 印刷スタイル */
@media print {
    header, #mobile-menu, #contact form {
        display: none;
    }
    body { font-size: 12pt; color: #000; }
    .bg-slate-900, .bg-slate-800 { background: #fff !important; color: #000 !important; }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .text-gray-600 { color: #000; }
    .bg-gray-50 { background: #fff; }
}

/* 動きを減らす設定に対応 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
```