/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

h1, h2 {
    text-align: center;
}

p, ul li {
    line-height: 1.6;
}

/* Hero Section with Logo */
.hero-section {
    background-color: #FFD700;
    color: #333;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero-section .logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.hero-section .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #FFD700;
    text-decoration: none;
    border-radius: 5px;
}

/* Mission Section */
.mission-section {
    padding: 40px 20px;
    background-color: #fff;
}

.mission-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.mission-card {
    background-color: #FFD700;
    color: #333;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    text-align: center;
    flex: 1 1 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Departments Section */
.departments-section {
    padding: 40px 20px;
    background-color: #e6e6e6;
    text-align: center;
}

.department-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* カード間の間隔を均等に */
    gap: 30px; /* カード間の隙間 */
    max-width: 1200px; /* 全体の最大幅を制限 */
    margin: 0 auto; /* セクションを中央に配置 */
}

.department-card {
    background-color: #fff;
    color: #333;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 40px); /* カードの幅を3等分し、gapと余白を考慮 */
    max-width: 300px; /* 最大幅を指定 */
    min-width: 250px; /* 最小幅を指定 */
    margin: 10px; /* カード間にさらに余白を追加 */
}

.department-card:hover {
    transform: scale(1.05); /* ホバー時の拡大効果 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* ホバー時の影を強調 */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .department-card {
        width: calc(50% - 40px); /* タブレットサイズで2列表示 */
    }
}

@media (max-width: 768px) {
    .department-card {
        width: calc(50% - 30px); /* スマホ横向きでも2列表示 */
    }
}

@media (max-width: 480px) {
    .department-card {
        width: calc(100% - 20px); /* スマホ縦向きでは1列表示 */
        max-width: none; /* 幅制限を解除 */
        margin: 15px 0; /* 縦方向に間隔を広げる */
    }
}

/* Timeline Section */
.timeline-section {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center; /* セクション全体を中央に配置 */
}

.timeline-section h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px; /* セクションの幅を中央に固定 */
    text-align: left; /* 文章は左詰め */
}

.timeline li {
    margin: 10px 0;
    font-size: 1em;
    line-height: 1.8; /* 行間を広くして読みやすく */
    border-bottom: 1px solid #ddd; /* 項目間の区切り線 */
    padding-bottom: 5px;
}

/* Contact Section */
.contact-section {
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    margin-top: 20px;
    padding: 10px;
    background-color: #333;
    color: #FFD700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .logo {
        width: 80px;
        height: 80px;
    }

    .hero-section .btn {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    .mission-cards,
    .department-cards {
        flex-direction: column;
        align-items: center;
    }

    .mission-card,
    .department-card {
        flex: 1 1 90%;
        max-width: 90%;
        margin: 10px 0;
    }
}


.department-card {
    text-decoration: none; /* リンクの下線を削除 */
    color: inherit; /* テキストの色を継承 */
}

/* Business Overview Section */
.business-overview {
    padding: 40px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.business-overview h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.business-overview table {
    margin: 0 auto;
    width: 80%;
    max-width: 600px;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.business-overview th, .business-overview td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.business-overview th {
    background-color: #FFD700;
    color: #333;
    font-weight: bold;
    width: 30%;
}

.business-overview td {
    background-color: #fff;
}
