body {
    font-family: "Helvetica Neue",
      Arial,
      "Hiragino Kaku Gothic ProN",
      "Hiragino Sans",
      Meiryo,
      sans-serif;
  }
.form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.form h1 {
    color: red;
    font-size: 36px;
}
.form .hr1 {
    border: 3px solid red;
}
.form .hr2 {
    border: 1px solid red;
}
.form .hr3 {
    width: 70px;
    border: 1px solid red;
}
.left-content {
    width: 40vw;
    margin: 1rem;
    padding: 1rem;
}
.right-content {
    width: 40vw;
    margin: 1rem;
    background: #FFF0EF;
    padding: 1rem;
}

@media only screen and (max-width: 768px) {
    .left-content {
        width: 100%;
        padding: unset;
        margin: unset;
    }
    .right-content {
        width: 100%;
        padding: unset;
        margin: unset;
    }
}
.contact-form {
    padding: 1rem;
}
.title {
    text-align: center;
}
@media only screen and (max-width: 768px) {
    .title h2 {
        font-size: 18px;
    }
}
.title h2 span {
    color: red;
}
.main p {
    text-align: center;
    margin: 0.5rem;
}
@media only screen and (max-width: 768px) {
    .main p {
        margin: 0.5rem 0;
    }
}
.text-red {
    color: red;
}
.shashoku-img img {
    width: 100%;
}
.question-form {
    font-weight: bold;
}
.question-form li{
    padding: 6px;
}
.back-pink {
    background: #FFF0EF;
}
.back-pink h2{
    padding-top: 0;
}
.question-form li::marker {
    color: red;
}
.center {
    text-align: center;
}
.question-container ol {
    padding: 0 3rem 1rem;
    margin: 0 4rem 1rem;
}
@media only screen and (max-width: 768px) {
    .question-container ol {
        padding: 0 1rem 0.5rem;
        margin: 0 1rem 0.5rem;
    }
}
.sub-container {
    margin:0 1rem;
}
@media only screen and (max-width: 768px) {
    .sub-container {
        margin:unset;
    }
}
.text-gray {
    color: #707070;
}
@media only screen and (max-width: 768px) {
    .text-gray {
        font-size: 12px;
        margin: 1rem 0 !important;
        text-align: unset !important;
    }
}
.display-mobile {
    display: none;
}
@media only screen and (max-width: 768px) {
   .display-pc {
       display: none;
   }
   .display-mobile {
    display: unset;
}
}
.q-title span {
    background-color: red;
    border-radius: 20px;
    padding: 0 16px;
    color: #fff;
    font-weight: bold;
}
.q-title {
    display: flex;
    align-items: center;
}
.q-title p{
    margin: 1rem;
    color: red;
    font-weight: bold;
}
.submit_txt {
    text-align: center;
}

input[type=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    margin-top: 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color:#707070;;
    background: #fff;
}

input[type=submit] {
    max-width: 300px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 1rem auto;
    padding: 1rem 2rem;
    font-size: 18px;
    font-weight: 700;
    background-color: #E83428;
    box-shadow: 0 5px 0 #b22a20;
    transition: 0.3s;
    text-decoration: none;
}

input[type=submit]:hover {
    transform: translateY(3px);
    text-decoration: none;
    box-shadow: 0 2px 0 #b22a20;
}

select {
    -webkit-appearance: none;
    appearance: none; /* デフォルトのスタイルを無効 */
  }
  select::-ms-expand {
    display: none; /* デフォルトのスタイルを無効(IE用) */
  }
.select-container {
    position: relative;
}
.select-container::before {
    border-bottom: transparent;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    content: "";
    position: absolute;
    right: 9px;
    top: 10px;
    width: 0;
}
.select-container::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4.5px solid red;
    content: "";
    position: absolute;
    right: 9px;
    top: 21px;
    width: 0;
}
.g-recaptcha {
    display: flex;
    justify-content: center;
}
/* 20241106変更 */
.back-pink {
    padding: 20px;
}

.back-pink h2{
    font-size: 1.3rem;
    margin: 1rem 0;
}

.text-red {
    color: red;
}

.center {
    text-align: center;
}

/* 質問コンテナのスタイル */
.question-container {
    display: flex;
    flex-direction: column; /* 項目を縦に並べる */
    gap: 20px; /* 項目間のスペースを追加 */
    justify-content: space-around;
}

/* 質問項目のスタイル */
.question-item {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* サムネイル画像のスタイル */
.question-thumbnail {
    width: 130px;
    height: auto;
    object-fit: cover;
    margin-right: 15px;
}

/* 質問コンテンツのスタイル */
.question-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 質問タイトルのスタイル */
.question-title {
    font-size: 1em;
    margin: 0 0 10px;
}

/* 質問説明文のスタイル */
.question-description {
    font-size: 0.8em;
    color: #666;
    text-align: left !important; /* 左詰めに設定 */
    margin: 0 !important;
}

/* スマホ用レイアウト */
@media (max-width: 768px) {
    .question-container {
        align-items: center;
    }

    .question-item {
        flex-direction: column; /* 項目を縦に並べる */
        width: 90%;
        margin-bottom: 20px;
        align-items: center; /* 要素を中央に揃える */
    }

    .question-thumbnail {
        width: 100px; /* 少し大きくしてサムネイルを強調 */
        height: 100px;
        margin: 0 0 10px 0; /* 下に余白を追加 */
    }

    .question-title {
        font-size: 1em;
        text-align: center; /* 見出しを中央揃えに変更 */
        margin: 0 0 10px 0; /* 下に余白を追加 */
    }

    .question-description {
        font-size: 0.85em;
    }
}

/* reCAPTCHA要素のリセットスタイル */
.g-recaptcha {
    display: inline-block !important; /* 縦に伸びないように、適切なサイズに修正 */
    width: auto !important;
    height: auto !important;
    flex: none !important; /* flexの影響を受けないように設定 */
}
