body {
    font-family: "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

form {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-top: 50px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #5cb85c;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #4cae4c;
}

label {
    display: block;
    margin-top: 20px;
}

.contact-title {
    background-color: white;
    padding: 20px 0; /* 上下の余白 */
    text-align: center; /* タイトルを中央揃え */
    margin-top: 60px;
}

.contact-title h1 {
    color: #333; /* タイトルのテキスト色 */
    font-size: 30px; /* タイトルのフォントサイズ */
    margin: 0; /* マージンを取り除く */
    padding: 0; /* パディングを取り除く */
    font-weight: bold;
}

@media (max-width: 768px) {
    .contact-title {
        background-color: white;
        padding: 20px 0; /* 上下の余白 */
        text-align: center; /* タイトルを中央揃え */
        margin-top: 60px;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 35px;
    width: auto;
    padding: 10px;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nav-list {
    display: flex;
    list-style-type: none;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: inherit;
    padding: 10px;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #3498db;
}

.nav-toggle {
    order: 2;
    flex-shrink: 0;
    display: none;  /* PCではメニューボタンを非表示にする */
    justify-content: flex-end;
}

.menu-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #000000;
    background-color: #ffffff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.menu-button:hover {
    background-color: #f5f5f5;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

footer {
    background-color: #f9f9f9;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #e4e4e4;
    font-size: 0.9rem;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;  /* モバイルではメニューボタンを表示 */
    }
    .nav-list {
        display: none;  /* モバイル画面でナビゲーションメニューを非表示にする */
        flex-direction: column;
        align-items: center;
        position: fixed;
        width: 100%;
        top: 60px;
        left: 0;
        background-color: #fff;
        padding-top: 10px;
        padding-bottom: 10px;
        z-index: 1001;  /* メニューを他の要素の上に表示 */
    }

    .nav-list.active {
        display: flex;  /* メニューボタンがクリックされたときにメニューを表示 */
    }

    .close-button {
        display: none;  /* モバイル画面でのみ表示 */
    }

    .nav-list.active .close-button {
        display: block;  /* ナビゲーションがアクティブのときに表示 */
        order: -1;  /* ×ボタンを一番上に */
    }

    .logo-container {
        order: -1;  /* ロゴをヘッダーの最上部に移動 */
    }
}

@media (min-width: 768px) {
    .close-button {
        display: none; /* PC表示時に×ボタンを非表示に */
    }
}
