/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2563eb;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --bg-secondary: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

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

/* ヘッダー・ナビゲーション */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ヒーロースライダー */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* スライダードット */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: rgba(255, 255, 255, 1);
    width: 32px;
    border-radius: 6px;
}

/* お知らせセクション */
.news {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.news h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    background-color: var(--bg-color);
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    color: var(--text-color);
    font-weight: 500;
}

/* メインコンテンツ */
.main-contents {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    border-color: var(--secondary-color);
}

.content-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.content-card p {
    margin-bottom: 1.8rem;
    color: var(--text-light);
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* フッター */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ページコンテンツ */
.page-content {
    padding: 4rem 0;
}

.content-box {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.content-box h2 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.content-box h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.content-box p, .content-box ul {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.9;
}

.content-box ul {
    padding-left: 1.5rem;
}

.content-box li {
    margin-bottom: 0.8rem;
}

/* 会社情報テーブル */
.company-info {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.company-info th {
    background-color: var(--bg-color);
    font-weight: bold;
    width: 30%;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-slider {
        height: 350px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 24px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

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

    .company-info th,
    .company-info td {
        display: block;
        width: 100%;
    }

    .company-info th {
        background-color: var(--secondary-color);
        color: white;
        border-bottom: none;
    }
}
