/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f8f8f8;
}

header {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 32px;
}

/* メインコンテンツの幅を1200pxに設定 */
main {
    max-width: 1200px;
    margin: 0 auto; /* 中央揃え */
    padding: 40px 20px;
}

.departments {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.department-card {
    width: 45%;
    background-color: #ffffff;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.department-card:hover {
    transform: scale(1.05);
}

.department-card a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: #fff;
    margin-top: 40px;
}

footer a {
    color: #ddd;
    text-decoration: none;
}

@media (max-width: 768px) {
    .department-card {
        width: 100%;
    }
}


/* メールフォームセクション */
#contact {
    padding: 40px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

#contact h2 {
    margin-bottom: 20px;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#contact label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

#contact input, #contact select, #contact textarea, #contact button {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#contact button {
    background-color: #ff5722;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

#contact button:hover {
    background-color: #e64a19;
}


/* サンクスページ専用スタイル */
.thank-you-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4a90e2, #50e3c2);
}

.thank-you-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.thank-you-image {
    max-width: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.thank-you-container h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.thank-you-container p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.thank-you-container .btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4a90e2;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.thank-you-container .btn:hover {
    background-color: #357ABD;
}
