/* 全体のスタイル */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    width: 100%;
}

/* ロゴ */
.logo{
    margin: 10px;
}

.logo-img{
    width: 30px;
    height: 30px;
}

/* お問い合わせボタン */
.contact-button a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #E86A6A;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 10px;
    width: 120px;
}

.contact-button .arrow {
    margin-left: 5px;
    font-weight: bold;
}

/* ヘッダーメニュー */
.menu-bar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-icon span {
    width: 30px;
    height: 3px;
    background: #238681;
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
}

.menu-icon.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-icon.open span:nth-child(2) {
    opacity: 0;
}

.menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: -10px;
}

/* アコーディオンメニュー */
.menu {
    display: none;
    flex-direction: column;
    background-color: #0d2726e6;
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 300px;
    height: calc(100vh - 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease-out;
    overflow: hidden;
    max-height: 0;
    z-index: 1000;
}

.menu.open {
    display: flex;
    max-height: 100vh;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.menu li a{
    color: #fff;
    text-decoration: none;
}

.menu li:last-child {
    border-bottom: none;
}

/* ヘッダー */
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* PC画面用のスタイル */
@media screen and (min-width: 1024px) {
    /* class="menu"のli属性を横並びにする */
    .menu {
        display: flex; /* 横並びにする */
        flex-direction: row; /* 水平方向に配置 */
        justify-content: center; /* 中央揃え */
        align-items: center; /* 垂直方向に揃える */
        position: static; /* デフォルトの位置に戻す */
        background-color: transparent; /* 背景色を削除 */
        height: auto; /* 高さを自動調整 */
        max-height: none; /* 高さ制限を解除 */
        box-shadow: none; /* 影を削除 */
        overflow: visible; /* オーバーフローを解除 */
    }

    .menu ul {
        display: flex; /* リストを横並びにする */
        list-style: none; /* リストマーカーを非表示 */
        padding: 0;
        margin: 0;
    }

    .menu li {
        padding: 0 5px; /* 項目間のスペースを調整 */
        margin: 0 5px;
        border-bottom: none;
    }

    .menu li a {
        color: #2b2b2b; /* テキスト色を調整 */
        text-decoration: none; /* 下線を削除 */
        font-weight: bold; /* 太字にする */
    }

    /* class="menu-icon"を非表示にする */
    .menu-icon {
        display: none;
    }

    /* class="header"の並び順を調整 */
    .header {
        display: flex; /* 横並びにする */
        justify-content: space-between; /* 左右に要素を配置 */
        align-items: center; /* 垂直方向に揃える */
    }

    .logo {
        order: 1; /* 左側に配置 */
    }

    .menu-bar {
        order: 2; /* 中央に配置 */
    }

    .contact-button {
        order: 3; /* 右側に配置 */
    }
}

@media screen and (max-width: 1024px) {
    .header {
        position: relative; 
    }

    .contact-button {
        position: absolute;
        right: 50px; 
        z-index: 999; 
    }
}

.contact{
    max-width: 70%;
    margin: 0 auto;
}

.contact img{
    width: 100%;
    height: auto;
}

.name, .mailAddress, .title, .mainText{
    margin: 2% 0;
}

#name-input, #mailAddress-input, #title-input, #mainText-input{
    width: 20%;
    height: 20%;
    padding: 0.5rem;
    border: 2px solid #ccc;
    border-radius: 4px;
}

#mainText-input{
    width: 60%;
    height: 5rem;
}

.contact span{
    font-size: 1.2rem;
}

.reply_message{
    padding-bottom: 2rem;
}

@media screen and (max-width: 1024px) {
    .contact {
        padding: 0 1rem;
        max-width: 100%;
    }

    #name-input, #mailAddress-input, #title-input{
        width: 50%;
    }

    #mainText-input{
        width: 90%;
    }

    .send_button{
        height: auto;
    }

    .send_button button{
        width: 25%;
        font-size: 1.25rem;
    }
}