@charset "utf-8";
/* CSS Document */

.wrap {
  overflow: hidden;
}

.txt_center {
  text-align: center;
}
table {
  width: 100%;
}
img {
  max-width: 100%;
  height: auto;
     display: block;
  margin: 0 auto;
  transition: 1.0s;
}

.container {
  padding-right: 0px;
  padding-left: 0px;
  margin-right: auto;
  margin-left: auto;
  max-width: 640px;

}

.cv{
    position: relative;
}

.cvbtn{
    position: absolute;
    bottom:3%;
}

@media (min-width: 771px) { 
    .visible-xs{
        display: none;
     }
}

@media (max-width: 770px) {
    .hidden-xs{
        display: none;
     }
    
}

/*2024.01.18追加分*/
.footer{
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}
.footer li{
    display: inline-block;
  margin-right: 10px;
    margin-left: 10px;
    
}

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

/* お問い合わせフォーム */
.contact-form-section {
    max-width: 640px;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: #f8f8f8;
    text-align: left;
}

.contact-form-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.5;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group textarea {
    resize: vertical;
}

.required {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit button {
    background-color: #c41e3a;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 60px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit button:hover {
    background-color: #a01830;
}

@media (max-width: 770px) {
    .contact-form-section {
        padding: 20px 15px;
    }

    .contact-form-section h2 {
        font-size: 20px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }

    .form-submit button {
        font-size: 16px;
        padding: 12px 40px;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* スクロール時のオフセット調整 */
#contact-form {
    scroll-margin-top: 50px;
}

/* エラーメッセージ */
.error-message {
    background-color: #fee;
    color: #c00;
    padding: 15px 20px;
    margin: 20px auto;
    border: 1px solid #fcc;
    border-radius: 5px;
    max-width: 600px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-message strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.error-close {
    cursor: pointer;
    float: right;
    font-size: 20px;
    line-height: 20px;
    font-weight: bold;
    color: #999;
}

.error-close:hover {
    color: #333;
}
