/* ========================================
   諏訪興産 電気保安サービス スタイルシート
   ======================================== */

/* ===== リセット・基本設定 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
}

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

/* ===== ヘッダー ===== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== ヒーローセクション ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ボタンスタイル ===== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ===== 実績セクション ===== */
.stats {
    padding: 60px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-item {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== セクション共通 ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* ===== サービスセクション ===== */
.service {
    background: var(--bg-white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.service-card.highlight .service-title,
.service-card.highlight .service-description {
    color: white;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== 人材派遣事業セクション ===== */
.staffing {
    background: var(--bg-light);
}

.staffing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.staffing-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.staffing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.staffing-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.staffing-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.staffing-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== 導入メリットセクション ===== */
.merit {
    background: var(--bg-white);
}

.merit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.merit-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.merit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.merit-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.merit-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.merit-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== お見積りセクション ===== */
.estimate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.estimate-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.estimate-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
}

.estimate-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.estimate-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-estimate {
    background: #f59e0b;
    color: white;
    font-size: 18px;
    padding: 18px 40px;
    box-shadow: var(--shadow-xl);
}

.btn-estimate:hover {
    background: #d97706;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2);
}

.btn-contact {
    background: white;
    color: var(--primary-color);
    font-size: 18px;
    padding: 18px 40px;
    box-shadow: var(--shadow-xl);
}

.btn-contact:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

.estimate-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.estimate-info p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.estimate-info ul {
    list-style: none;
    padding-left: 0;
}

.estimate-info ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
}

.estimate-info ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* ===== 会社概要セクション ===== */
.company {
    background: var(--bg-light);
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.company-table th,
.company-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.company-table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
    width: 150px;
}

.company-table td {
    color: var(--text-gray);
}

.company-table td strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.company-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.company-table a:hover {
    text-decoration: underline;
}

.company-message {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.company-message h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.company-message p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 20px;
}

.company-message p:last-child {
    margin-bottom: 0;
}

/* ===== フッター ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-company h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-company p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 1024px) {
    .company-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .nav {
        display: none;
    }
    
    .header-content {
        justify-content: center;
    }
    
    .service-grid,
    .staffing-grid,
    .merit-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons,
    .estimate-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    section {
        padding: 50px 0;
    }
    
    .company-table th {
        width: 100px;
        font-size: 14px;
    }
    
    .company-table th,
    .company-table td {
        padding: 15px;
        font-size: 14px;
    }
}

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

.hero-content,
.stat-item,
.service-card,
.merit-item {
    animation: fadeInUp 0.6s ease-out;
}
