@charset "utf-8";
/* ====================
Article header
==================== */
.mainVisual_contents {
 margin-top: 16px;
}

/* Article header PC */
@media screen and (min-width:769px) {
    .mainVisual {
        max-width: 1360px;
        margin: 0 auto;
        width: 94.4%;
        min-height: 300px;
        background: url(../images/top_contact.jpg);
        background-size: cover;
        background-position: center;
        border-radius: 25px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .mainTxt {
        color: var(--primary-white);
        padding: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        font-size: 4.8rem;
        font-weight: 700;
    }

    .mainTxt-sub {
        color: var(--primary-white);
        font-size: 2rem;
        font-weight: 400;
        letter-spacing: 0.1em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Article header SP */
@media screen and (max-width:768px) {
    .mainVisual {
        max-width: 375px;
        margin: 0 auto;
        width: 94.4%;
        min-height: 200px;
        border-radius: 25px;
        background: url(../images/top_service.jpg);
        background-size: cover;
        background-position: center;
        border-radius: 16px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .mainTxt {
        color: var(--primary-white);
        padding: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        font-size: 2.8rem;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .mainTxt-sub {
        color: var(--primary-white);
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: 0.1em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* ====================
お問い合わせ
==================== */
section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

h1 {
  color: #1976d2;
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.description {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

label {
  width: 180px;
  text-align: right;
  padding-right: 20px;
  font-size: 14px;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
}

/* スクロールボックス */
/* プライバシーポリシー枠 */
.privacy-box {
  margin: 40px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fafafa;
}

.privacy-box h2 {
  font-size: 1.6rem;
  color: var(--primary-deepblue);
  margin-bottom: 10px;
  text-align: center;
}

.privacy-box h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary-black);
  margin-bottom: 10px;
  text-align: start;
}

/* スクロールできるテキスト部分 */
.privacy-text {
  max-height: 180px; /* ← 高さを固定してスクロール */
  overflow-y: auto;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

        
/* ✅ チェックボックスの修正版 */
.checkbox-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  appearance: auto; /* ← これが重要！ */
  -webkit-appearance: checkbox; /* Safari対策 */
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  width: auto;
}

.checkbox-group a {
  font-size: 14px;
  color: #1976d2;
  text-decoration: underline;
}

.privacy-label {
  display: inline-block;
  font-size: 14px;
  color: #333;
  margin-left: 8px;
}

.submit-button {
    display: block;
    width: 250px;
    margin: 0 auto;
    padding: 15px;
    color: white;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #AADCED 0%, #3697D4 100%);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.submit-button:hover {
  background-color: #3498db;
}

.submit-button:hover {
  background-color: #3498db;
}

/* Contact SP */
@media screen and (max-width:768px) {
  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    align-items: stretch;
}

label {
    text-align: left;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: auto;
    flex: 1;
}
}