/* コンタクトページのスタイル */
@charset "UTF-8";

html {
  font-size: 100%;
}

body {
    background-color: #ffffff;
    background-image: 
        linear-gradient(rgba(240, 240, 240, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 240, 240, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 100vh;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    width: 100%;
    overflow-x: hidden;
    color: #333333;
}

/* グラデーションオーバーレイ */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(to top, rgba(248, 248, 248, 0.2), transparent);
    pointer-events: none;
    z-index: -1;
}

.contact {
    padding: 120px 40px 60px;
    min-height: 100vh;
    background-color: transparent;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.5s;
  }

  li {
    list-style: none;
  }

  .wrapper {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
  }

.contact-hero {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-hero h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.contact-hero .description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.contact-hero .note {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-form .required {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-group select option {
    padding: 12px;
}

.form-group textarea {
    height: 200px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
}

.form-group.checkbox a {
    text-decoration: underline;
    color: #333;
}

.form-group.checkbox a:hover {
    opacity: 0.7;
}

.file-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #444;
}

.checkbox-group.error {
    border: 1px solid #ff4d4d;
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(255, 77, 77, 0.05);
}

.checkbox-group.error label {
    color: #ff4d4d;
}

/* レスポンシブデザイン */
@media screen and (max-width: 900px) {
    .contact {
        padding: 100px 20px 40px;
    }

    .contact-hero,
    .contact-form {
        padding: 30px;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-hero .description {
        font-size: 1rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .scroll-text {
        margin-top: 10px;
    }

    body, html {
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
        position: static !important;
        touch-action: auto !important;
        font-family: 'Helvetica Neue', Arial, sans-serif !important;
    }
} 

/* フッター */
#footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-bottom: 50px;
  }
  
  #footer .menu {
    display: flex;
  }
  
  #footer .menu li {
    font-size: 0.75rem;
    margin-right: 30px;
  }
  
  #footer .copyright {
    font-size: 0.625rem;
  }