/* PC・デスクトップ用（1025px 以上） */
@media (min-width: 1025px) {

    .Osumai-form {
        display: flex;
        width: 70%;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #DEE6F3;
        padding: 1%; /* 左側の余白 */
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        margin-bottom: 2%; /* 余白 */
            
    }

    .mail-form {
        display: flex;
        width: 70%;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #DEE6F3;
        padding: 1%; /* 左側の余白 */
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        margin-bottom: 2%; /* 余白 */
    }

    .estimate-form {
        display: flex;
        width: 70%;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #DEE6F3;
        padding: 1%;
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        margin-bottom: 2%; /* 余白 */
            
    }

    .text-select-field {
        height: auto;
        width: 60%;
        font-size: 1em;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-left: 1%; /* 上部の余白を自動調整 */
        margin-top: auto; /* 上部の余白を自動調整 */
    }

    .title{
       font-size: 130%;
       padding-bottom: 1%; /* 下側の余白 */
    }

    .title22{
        font-size: 130%;
        padding-bottom: 1%; /* 下側の余白 */
     }

    .Firstwidth{
        display: flex;
        width: 100%;
        flex-direction: column; /* 縦並びにする */
    }

    .Naiyouwidth{
        display: flex;
        width: 100%;
    }

    
    .Adresswidth{
        display: flex;
        width: 100%;
        flex-direction: column; /* 縦並びにする */
    }


    .width{
    width: 100%;
    margin-left: 1%; /* 上部の余白を自動調整 */
    }

    .NaiyouTitle-group {
        width: 30%;
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        font-size: 1.8em;
        color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        background:rgb(43, 195, 195);
        display: flex; /* フレックスボックスで配置 */
        flex-direction: column; /* 縦並びにする */
        justify-content: center; /* 横方向に中央寄せ */
        align-items: center; /* 縦方向に中央寄せ */
        padding: 2%; /* 左側の余白 */
    }

    .OsumaiTitle-group {
        width: 30%;
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        font-size: 1.6em;
        color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        background:rgb(43, 195, 195);
        display: flex; /* フレックスボックスで配置 */
        justify-content: center; /* 横方向に中央寄せ */
        align-items: center;
        gap: 8px;
        padding: 2%; /* 左側の余白 */
    }

    .TelTitle-group {
        width: 30%;
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        font-size: 1.6em;
        color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        background:rgb(43, 195, 195);
        display: flex; /* フレックスボックスで配置 */
        justify-content: center; /* 横方向に中央寄せ */
        align-items: center;
        gap: 8px;
        padding: 2%; /* 左側の余白 */
    }

    .MailTitle-group {
        width: 30%;
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        font-size: 1.4em;
        color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        background:rgb(43, 195, 195);
        display: flex; /* フレックスボックスで配置 */
        justify-content: center; /* 横方向に中央寄せ */
        align-items: center;
        gap: 8px;
        padding: 2%; /* 左側の余白 */
    }

    .title-group {
        width: 30%;
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        font-size: 1.2vw;
        color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #2B59C3;
        display: flex; /* フレックスボックスで配置 */
        flex-direction: column; /* 縦並びにする */
        justify-content: center; /* 横方向に中央寄せ */
        align-items: center; /* 縦方向に中央寄せ */
        padding: 2%; /* 左側の余白 */
        gap: 10px; /* legend間の間隔を設定 */
    }

    .title-group legend {
        margin: 0; /* legendのデフォルトマージンをリセット */
    }

    .Osumai-select-field {
        display: flex; /* フレックスボックスで配置 */
        height: auto;
        width: 30%;    
        font-size: 1em;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-left: 1%; /* 上部の余白を自動調整 */
        margin-top: auto; /* 上部の余白を自動調整 */
        margin-bottom: auto; /* 上部の余白を自動調整 */
    }

    .text-field {
        display: flex; /* フレックスボックスで配置 */
        height: 100%;
        width: 100%;         /* フル幅 */
        resize: none; /* ← ここでリサイズ禁止 */
        font-size: 1em;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-left: 1%; /* 上部の余白を自動調整 */
        justify-content: center; /* 横方向に中央寄せ */
    }

    .warning-field {
        height: auto;
        width: 60%;
        font-size: 1em;
        margin-left: 1%; /* 上部の余白を自動調整 */
        margin-top: auto; /* 上部の余白を自動調整 */
        margin-bottom: auto; /* 上部の余白を自動調整 */
    }

    .OsumaiTitle-group legend {
        margin: 0; /* legendのデフォルトマージンをリセット */
    }

    .select-group {
       display: flex;
       gap: 1%; /* selectとinputの間の余白 */
    }
        
    .input-field {
       width: 12%;
       line-height: normal;  /* 数値入力の高さを統一 */
    }

    .input-field .select-field {
        height: auto;
        font-size: 0.8vw;
        padding: 5px;
        box-sizing: border-box;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
    
    .radio-touch{
        padding-bottom: 1%; /* 上部の余白を自動調整 */
        margin-bottom: 2%; /* 上部の余白を自動調整 */
        label {
            pointer-events: none; /* ラベルをクリックしても反応しない */
        }

        input[type="radio"] {
            pointer-events: auto; /* ラジオボタン自体はクリックできる */
        }

        display: none;

    }

    .radio-touch2{
        display: flex; /* フレックスボックスで配置 */
        height: auto;
        margin-left: 1%; /* 上部の余白を自動調整 */
        margin-top: auto; /* 上部の余白を自動調整 */
        margin-bottom: auto; /* 上部の余白を自動調整 */
        label {
            font-size: 1.5em;
            pointer-events: none; /* ラベルをクリックしても反応しない */
        }
    
        input[type="radio"] {
            pointer-events: auto; /* ラジオボタン自体はクリックできる */
        }
    
    
    }

    .add-btn {
        background-color:rgb(70, 187, 66);
        color: white;
        padding: 10px 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .add-btn:hover {
        background-color:rgb(94, 209, 90);
        color: white;
        border: 1px solid #ddd;
    }


    .remove-right {
      width: 100%;
      display: flex;
      justify-content: flex-end; /* 右寄せ */
      align-items: center; /* 水平方向、垂直方向両方中央揃え */
    }
    .remove-btn {
        background-color:rgb(136, 9, 9);
        color: white;
        padding: 10px 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .remove-btn:hover {
        background-color:rgb(71, 4, 4);
        color: white;
        border: 1px solid #ddd;
    }

    .sousin-btn {
        background-color:rgb(224, 23, 23);
        color: white;
        padding: 10px 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 2em;
        cursor: pointer;
        margin-top: 2%; /* 上部の余白を自動調整 */
        transition: background-color 0.3s ease;
    }
    .sousin-btn:hover {
        background-color:rgb(148, 10, 10);
        color: white;
        border: 1px solid #ddd;
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
    }

    .return-button {
        background-color: #f0f0f0;
        color: #333;
        padding: 10px 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 2em;
        cursor: pointer;
        margin-top: 1%; /* 上部の余白を自動調整 */
        transition: all 0.3s ease;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .return-button:hover {
        background-color: #e0e0e0;
        color: #000;
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
      }

    .site-footer {
    background: #2B59C3;
    color: white;
    text-align: center;
    padding: 50px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 9999; 
}

.moji-color {
    color: red;
    display: none; /* 初期状態では削除ボタンを隠す */
    
}

.add-right {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center; /* 水平方向、垂直方向両方中央揃え */
}
.add-btn, .moji-color {
  margin-left: 10px; /* ボタンとラベルの間に余白を設定 */
}

.con-width{
    display: flex;
    width: 100%;

}

.con-title{
    height: auto;
    width: 100%;
    font-size: 1.4em;
    display: flex;
    margin-top: auto; /* 上部の余白を自動調整 */
    margin-bottom: auto; /* 上部の余白を自動調整 */
    margin-left: 1%; /* 余白 */
}

.width222222{
    width: 100%;
    }


.title2{
    font-size: 130%;
    padding-bottom: 1%; /* 下側の余白 */
    }

.Tate-Yoko{
    display: flex;
    }
}

.Omitumori-title{
    height: 40%;
    width: 100%;
    font-size: 1.4vw;
    display: flex;
    justify-content: center; /* 横方向に中央寄せ */
    align-items: flex-end;   /* ★ 縦方向に下寄せ（追加） */
    padding-top: 3%; /* 上部の余白を自動調整 */
    padding-bottom: 3%; /* 上部の余白を自動調整 */
}
.Omitumori-title22 {
    font-size: 3vw;
    font-weight: bold;
    vertical-align: bottom;
}

.Omitumori-group {
    width: 100%;
    height: auto;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    color: #c70029;
    border: 1px solid #ddd;
    border-radius: 8px;
    background:#fed70d;
    display: flex; /* フレックスボックスで配置 */
    margin-bottom: 2%; /* 上部の余白を自動調整 */
}

.con-title-group {
    width: 30%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.2vw;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #1eb132;
    display: flex; /* フレックスボックスで配置 */
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
    padding: 2%; /* 左側の余白 */
    gap: 10px; /* legend間の間隔を設定 */
}

.con-title-group legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.con-title-group-tate {
    width: 30%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.2vw;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #1eb132;
    display: flex; /* フレックスボックスで配置 */
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
    padding: 2%; /* 左側の余白 */
    gap: 10px; /* legend間の間隔を設定 */
}

.con-title-group-tate legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.con-title-group-AAA {
    width: 30%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1vw;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #1eb132;
    display: flex; /* フレックスボックスで配置 */
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
    padding: 2%; /* 左側の余白 */
    gap: 10px; /* legend間の間隔を設定 */
}

.con-title-group-AAA legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.mail-con-title-group {
    width: 30%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 0.9vw;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #1eb132;
    display: flex; /* フレックスボックスで配置 */
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
    padding: 2%; /* 左側の余白 */
    gap: 10px; /* legend間の間隔を設定 */
}


.Kakunin-title {
    font-size: 2.4vw;          /* サイズ大きめに */
    font-weight: bold;        /* 太字で目立たせる */
    font-family: 'Arial';
    color: #df0a0a;           /* ダークグレーで上品に */
    text-align: center;       /* 中央寄せ（任意） */
    margin: 2rem 0 1rem 0;    /* 上下に余白 */
    padding-bottom: 1.6rem;   /* 下に少しスペース */
    border-bottom: 2px solid #e0e0e0; /* 下線を引く */
  }

  

/* タブレット・小型PC用（769px ～ 1024px） */
@media (min-width: 600px) and (max-width: 1024px) {

.Osumai-form {
    display: flex;
    width: 70%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #DEE6F3;
    padding: 1%; /* 左側の余白 */
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 2%; /* 余白 */
        
}

.mail-form {
    display: flex;
    width: 70%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #DEE6F3;
    padding: 1%; /* 左側の余白 */
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 2%; /* 余白 */
}

.estimate-form {
    display: flex;
    width: 70%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #DEE6F3;
    padding: 1%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 2%; /* 余白 */
        
}

.title{
   font-size: 130%;
   padding-bottom: 1%; /* 下側の余白 */
}

.Firstwidth{
    display: flex;
    width: 100%;
    flex-direction: column; /* 縦並びにする */
}

.Naiyouwidth{
    display: flex;
    width: 100%;
}


.Adresswidth{
    display: flex;
    width: 100%;
    flex-direction: column; /* 縦並びにする */
}

.width{
width: 100%;
margin-left: 1%; /* 上部の余白を自動調整 */
}

.NaiyouTitle-group {
    width: 30%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.8em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background:rgb(43, 195, 195);
    display: flex; /* フレックスボックスで配置 */
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
    padding: 2%; /* 左側の余白 */
}

.OsumaiTitle-group {
    width: 30%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.6em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background:rgb(43, 195, 195);
    display: flex; /* フレックスボックスで配置 */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center;
    gap: 8px;
    padding: 2%; /* 左側の余白 */
}

.TelTitle-group {
        width: 30%;
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        font-size: 1.6em;
        color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        background:rgb(43, 195, 195);
        display: flex; /* フレックスボックスで配置 */
        justify-content: center; /* 横方向に中央寄せ */
        align-items: center;
        gap: 8px;
        padding: 2%; /* 左側の余白 */
    }

.MailTitle-group {
    width: 30%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.4em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background:rgb(43, 195, 195);
    display: flex; /* フレックスボックスで配置 */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center;
    gap: 8px;
    padding: 2%; /* 左側の余白 */
}

.Osumai-select-field {
    display: flex; /* フレックスボックスで配置 */
    height: auto;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 1%; /* 上部の余白を自動調整 */
    margin-top: auto; /* 上部の余白を自動調整 */
    margin-bottom: auto; /* 上部の余白を自動調整 */
}
.text-field {
    display: flex; /* フレックスボックスで配置 */
    height: 100%;
    width: 100%;         /* フル幅 */
    resize: none; /* ← ここでリサイズ禁止 */
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 1%; /* 上部の余白を自動調整 */
    justify-content: center; /* 横方向に中央寄せ */
}

.text-select-field {
    height: auto;
    width: 60%;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 1%; /* 上部の余白を自動調整 */
    margin-top: auto; /* 上部の余白を自動調整 */
}

.warning-field {
    height: auto;
    width: 60%;
    font-size: 1em;
    margin-left: 1%; /* 上部の余白を自動調整 */
    margin-top: auto; /* 上部の余白を自動調整 */
    margin-bottom: auto; /* 上部の余白を自動調整 */
}

.OsumaiTitle-group legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.title-group {
    width: 30%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.5vw;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #2B59C3;
    display: flex; /* フレックスボックスで配置 */
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
    padding: 2%; /* 左側の余白 */
    gap: 10px; /* legend間の間隔を設定 */
}

.title-group legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.select-group {
   display: flex;
   gap: 1%; /* selectとinputの間の余白 */
}
    
.input-field {
   width: 12%;
   line-height: normal;  /* 数値入力の高さを統一 */
}

.input-field .select-field {
    height: auto;
    font-size: 0.8vw;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.radio-touch{
    label {
        pointer-events: none; /* ラベルをクリックしても反応しない */
    }

    input[type="radio"] {
        pointer-events: auto; /* ラジオボタン自体はクリックできる */
    }

    display: none;

}

.radio-touch2{
    display: flex; /* フレックスボックスで配置 */
    height: auto;
    margin-left: 1%; /* 上部の余白を自動調整 */
    margin-top: auto; /* 上部の余白を自動調整 */
    margin-bottom: auto; /* 上部の余白を自動調整 */
    label {
        font-size: 1.5em;
        pointer-events: none; /* ラベルをクリックしても反応しない */
    }

    input[type="radio"] {
        pointer-events: auto; /* ラジオボタン自体はクリックできる */
    }


}

.add-btn {
    background-color:rgb(70, 187, 66);
    color: white;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background-color:rgb(94, 209, 90);
    color: white;
    border: 1px solid #ddd;
}


.remove-right {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center; /* 水平方向、垂直方向両方中央揃え */
}
.remove-btn {
    background-color:rgb(136, 9, 9);
    color: white;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-btn:hover {
    background-color:rgb(71, 4, 4);
    color: white;
    border: 1px solid #ddd;
}

.sousin-btn {
    background-color:rgb(224, 23, 23);
    color: white;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.site-footer {
background: #2B59C3;
color: white;
text-align: center;
padding: 50px 0;
position: fixed;
width: 100%;
bottom: 0;
z-index: 9999; 
}

.moji-color {
color: red;
display: none; /* 初期状態では削除ボタンを隠す */

}

.add-right {
width: 100%;
display: flex;
justify-content: flex-end; /* 右寄せ */
align-items: center; /* 水平方向、垂直方向両方中央揃え */
}
.add-btn, .moji-color {
margin-left: 10px; /* ボタンとラベルの間に余白を設定 */
}
}

/* スマホ用（最大幅 768px） */
@media (max-width: 599px){ 

.Osumai-form {
    display: flex;
    width: 70%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #DEE6F3;
    flex-direction: column; /* 縦並びにする */
    text-align: left;
    padding: 1%; /* 左側の余白 */
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 2%; /* 余白 */
        
}

.mail-form {
    display: flex;
    width: 70%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #DEE6F3;
    flex-direction: column; /* 縦並びにする */
    padding: 1%; /* 左側の余白 */
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 2%; /* 余白 */
}

.estimate-form {
    display: flex;
    width: 70%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #DEE6F3;
    flex-direction: column; /* 縦並びにする */
    padding: 1%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 1%; /* 上部の余白を自動調整 */
        
}

.title{
   font-size: 130%;
   padding-bottom: 1%; /* 下側の余白 */
}

.Firstwidth{
    display: flex;
    width: 100%;
    flex-direction: column; /* 縦並びにする */
}

.Naiyouwidth{
    display: flex;
    width: 100%;
}


.Adresswidth{
    display: flex;
    width: 100%;
    margin-top: auto; /* 上部の余白を自動調整 */
}

.width{
width: 100%;
margin-left: 1%; /* 上部の余白を自動調整 */
}

.NaiyouTitle-group {
    width: 100%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 1%; /* 上部の余白を自動調整 */
    font-size: 1.0em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background:rgb(43, 195, 195);
    display: flex; /* フレックスボックスで配置 */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center;
    gap: 8px;
}

.OsumaiTitle-group {
    width: 100%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 1%; /* 上部の余白を自動調整 */
    font-size: 1.0em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background:rgb(43, 195, 195);
    display: flex; /* フレックスボックスで配置 */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center;
    gap: 8px;
}

.TelTitle-group {
        width: 100%;
        margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
        margin-bottom: 1%; /* 上部の余白を自動調整 */
        font-size: 1.0em;
        color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        background:rgb(43, 195, 195);
        display: flex; /* フレックスボックスで配置 */
        justify-content: center; /* 横方向に中央寄せ */
        align-items: center;
        gap: 8px;
    }

.MailTitle-group {
    width: 100%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    margin-bottom: 1%; /* 上部の余白を自動調整 */
    font-size: 1.0em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background:rgb(43, 195, 195);
    display: flex; /* フレックスボックスで配置 */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center;
    gap: 8px;
}

.Osumai-select-field {
    display: flex; /* フレックスボックスで配置 */
    height: auto;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 1%; /* 上部の余白を自動調整 */
    margin-top: auto; /* 上部の余白を自動調整 */
    margin-bottom: auto; /* 上部の余白を自動調整 */
}
.text-field {
    display: flex; /* フレックスボックスで配置 */
    height: 100%;
    width: 100%;         /* フル幅 */
    resize: none; /* ← ここでリサイズ禁止 */
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 1%; /* 上部の余白を自動調整 */
    justify-content: center; /* 横方向に中央寄せ */
}

.text-select-field {
    height: auto;
    width: 80%;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 1%; /* 上部の余白を自動調整 */
    margin-top: auto; /* 上部の余白を自動調整 */
}

.warning-field {
    height: auto;
    width: 60%;
    font-size: 1em;
    margin-left: 1%; /* 上部の余白を自動調整 */
    margin-top: auto; /* 上部の余白を自動調整 */
    margin-bottom: auto; /* 上部の余白を自動調整 */
}

.OsumaiTitle-group legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.title-group {
    width: 100%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #2B59C3;
    display: flex; /* フレックスボックスで配置 */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center;
    gap: 1%; /* legend間の間隔を設定 */
}

.title-group legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.select-group {
   display: flex;
   flex-direction: column; /* 縦並びにする */
   gap: 1%; /* selectとinputの間の余白 */
}
    
.input-field {
   width: 22%;
}

.select-field {
    width: 90%;
 }

.input-field .select-field {
    height: auto;
    line-height: normal;  /* 数値入力の高さを統一 */
    font-size: 0.8vw;
    padding: 1%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.radio-touch{
    label {
        pointer-events: none; /* ラベルをクリックしても反応しない */
    }

    input[type="radio"] {
        pointer-events: auto; /* ラジオボタン自体はクリックできる */
    }

    display: none;

}

.radio-touch2{
    display: flex; /* フレックスボックスで配置 */
    height: auto;
    margin-left: 1%; /* 上部の余白を自動調整 */
    margin-top: auto; /* 上部の余白を自動調整 */
    margin-bottom: auto; /* 上部の余白を自動調整 */
    label {
        font-size: 1em;
        pointer-events: none; /* ラベルをクリックしても反応しない */
    }

    input[type="radio"] {
        pointer-events: auto; /* ラジオボタン自体はクリックできる */
    }


}

.add-btn {
    background-color:rgb(70, 187, 66);
    color: white;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background-color:rgb(94, 209, 90);
    color: white;
    border: 1px solid #ddd;
}


.remove-right {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center; /* 水平方向、垂直方向両方中央揃え */
}
.remove-btn {
    background-color:rgb(136, 9, 9);
    color: white;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-btn:hover {
    background-color:rgb(71, 4, 4);
    color: white;
    border: 1px solid #ddd;
}

.sousin-btn {
    background-color:rgb(224, 23, 23);
    color: white;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 4%; /* 上部の余白を自動調整 */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.return-button {
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 2%; /* 上部の余白を自動調整 */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.return-button:hover {
    background-color: #e0e0e0;
    color: #000;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
  }

.site-footer {
background: #2B59C3;
color: white;
text-align: center;
padding: 50px 0;
position: fixed;
width: 100%;
bottom: 0;
z-index: 9999; 
}

.moji-color {
color: red;
display: none; /* 初期状態では削除ボタンを隠す */

}

.add-right {
width: 100%;
display: flex;
justify-content: flex-end; /* 右寄せ */
align-items: center; /* 水平方向、垂直方向両方中央揃え */
}
.add-btn, .moji-color {
margin-left: 10px; /* ボタンとラベルの間に余白を設定 */
}

.Tate{
    display: flex;
    width: 100%;

    font-size: 0.9em;
    flex-direction: column; /* 縦並びにする */
}


.con-title-group {
    width: 95%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.2em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #1eb132;
    display: flex; /* フレックスボックスで配置 */
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
}


.mail-con-title-group {
    width: 95%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.2em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #1eb132;
    display: flex; /* フレックスボックスで配置 */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
}

.con-title-group-tate {
    width: 95%;
    height: auto;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.2em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #1eb132;
}

.con-title-group-tate legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.con-title-group-AAA {
    width: 95%;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    font-size: 1.2em;
    color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #1eb132;
    display: flex; /* フレックスボックスで配置 */
    flex-direction: column; /* 縦並びにする */
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 縦方向に中央寄せ */
    padding: 2%; /* 左側の余白 */
    gap: 10px; /* legend間の間隔を設定 */
}

.con-title-group-AAA legend {
    margin: 0; /* legendのデフォルトマージンをリセット */
}

.Kakunin-title {
    font-size: 2.0em;          /* サイズ大きめに */
    font-weight: bold;        /* 太字で目立たせる */
    font-family: 'Arial';
    color: #df0a0a;           /* ダークグレーで上品に */
    text-align: center;       /* 中央寄せ（任意） */
    margin: 2rem 0 1rem 0;    /* 上下に余白 */
    padding-bottom: 1.6rem;   /* 下に少しスペース */
    border-bottom: 2px solid #e0e0e0; /* 下線を引く */
  }

  .Omitumori-group {
    width: 100%;
    height: auto;
    font-size: 1.5em;
    margin: 0 auto; /* 左右の余白を自動調整して中央寄せ */
    color: #c70029;
    border: 1px solid #ddd;
    border-radius: 8px;
    background:#fed70d;
    display: flex; /* フレックスボックスで配置 */
    margin-bottom: 2%; /* 上部の余白を自動調整 */
}


.Omitumori-title{
    height: 40%;
    width: 100%;
    font-size: 0.6em;
    display: flex;
    justify-content: center; /* 横方向に中央寄せ */
    align-items: flex-end;   /* ★ 縦方向に下寄せ（追加） */
    padding-top: 3%; /* 上部の余白を自動調整 */
    padding-bottom: 3%; /* 上部の余白を自動調整 */
}

.Omitumori-title22 {
    font-size: 2em;
    font-weight: bold;
    vertical-align: bottom;
}

.title22{
    font-size: 1em;
    padding-bottom: 1%; /* 下側の余白 */
 }

 .Tate-Yoko{
    display: flex;
    flex-direction: column; /* 縦並びにする */
}
}