body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* ホームページの背景画像 */
.page-contact {
    background-image: url('../image/index/background2.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.0); /* 透過した白色 */
    padding: 10px 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.0);
    z-index: 5;
}

.logo img {
    width: 300px;
    height: 80px;
    max-width: 100%; /* 枠からはみ出さないようにする */
}



/************************************
ハンバーガーメニュー
************************************/

/* ハンバーガーメニュー */
.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: #fa7aa5;
    color: #fff;
    transition: right 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    z-index: 8; /* menu の z-index を8に変更 */
}

/* メニューが開いたとき */
.menu.open {
    right: 0;
}

/* メニューが開いたときの背景を半透明の黒に */
.menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 6;
    pointer-events: none;
}

.menu-bg.active {
    opacity: 1;
    pointer-events: auto;
}

/* ハンバーガーボタン */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fa7aa5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 9; /* z-indexを変更 */
    transition: background-color 0.3s;
}

/* ホバー時の変更（ボタンの背景を白に、三本線をピンクに） */
.hamburger:hover {
    background-color: #fff;
}

.hamburger:hover span {
    background-color: #fa7aa5;
}

/* 三本線 */
.hamburger span {
    display: block;
    height: 3px;
    width: 30px;
    background-color: #fff;
    transition: 0.4s;
}

/* メニューが開いたらハンバーガーを非表示 */
.hamburger.hidden {
    display: none;
}
/* バツボタン（メニューが開いたときのみ表示） */
.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #fa7aa5;
    font-size: 40px;  /* フォントサイズを大きく */
    font-weight: bold;
    border-radius: 20%;  /* 丸くする */
    cursor: pointer;
    display: none; /* 初期状態では非表示 */
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
}


.close-btn:hover {
    background-color: #ff9ac2;
}

/* メニューが開いたらバツボタンを表示 */
.menu.open ~ .close-btn {
    display: flex;
}

/* メニューリストのスタイル */
.menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 80px;
}

.menu li {
    padding: 20px 0;
    border-bottom: 1px solid #fff;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/* メニューリストのボタン */
.menu .close-btn {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #fa7aa5;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

.menu.open .close-btn {
    display: flex;
}

.close-btn:hover {
    background-color: #ff9ac2;
}

/* メインコンテンツ */
main {
    display: flex;
    justify-content: center; /* 横方向で中央に配置 */
    align-items: center; /* 縦方向で中央に配置 */
    min-height: 100vh; /* 画面全体の高さを確保 */
    padding-top: 100px; /* ヘッダーが固定されている場合、少し下に余白を追加 */
}

/* フォームコンテナ */
.info-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%; /* 幅を広く */
    max-width: 800px; /* 最大幅を800px */
    text-align: left; /* テキストを左揃えに変更 */
    margin-bottom: 5%;
}

/* フォームタイトル */
.info-box h2 {
    text-align: center;
    font-size: 2.5em; /* タイトルのフォントサイズ */
    background-color: #fa7aa5;
    padding: 20px;
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 説明文 */
.info-box p {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

/* フォームラベル */
form label {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #333;
    display: block; /* ラベルをブロック表示にして左端に配置 */
}

/* 入力フィールド */
form input, form textarea {
    width: 95%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #fa7aa5;
    border-radius: 12px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: #f47a7a;
    outline: none;
}

/* ボタン */
form button {
    padding: 20px 80px; /* ボタンを少し大きくする */
    background-color: #fa7aa5;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.5em; /* フォントサイズを少し大きく */
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block; /* ブロック要素にして幅を指定 */
    margin: 20px auto; /* 左右を自動でマージンを設定し中央に配置 */
}

form button:hover {
    background-color: #d14875;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .menu ul {
        margin-top: 120px;
    }

    .info-box {
        width: 90%;
        margin: 20px;
    }

    .logo img {
        width: auto;
        height: 40px;
    }
}
