body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4faff;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background-color: #fff;
    position: relative;
}

.image-section {
    width: 100%;
    position: relative;
}

.image-section img {
    width: 100%;
    height: auto;
}

.cta-button {
    position: absolute;
    bottom: .5rem;
    left: 5%;
    transform: translateX(-50%);
    width: 90%;
    aspect-ratio: 5 / 1; /* Adjust height dynamically based on width */
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .cta-button {
    animation: pulse 1.5s infinite;
  }

.contact-form {
    padding: 20px;
    background-color: #f4faff;
}

.contact-form h2 {
    text-align: center;
    color: #4caf50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-form p {
    text-align: center;
    color: #555;
    font-weight: 700;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group textarea {
    height: 100px;
}

/* フォームヘッダーのデザイン */
.form-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* 吹き出しと見出しの間隔 */
    margin-bottom: 20px;
}

/* 吹き出し画像のスタイル */
.form-balloon {
    width: 80px;
    height: 80px;
    object-fit: contain; /* 画像が歪まないように調整 */
}


@media (min-width: 641px) {
    body {
        background-image: linear-gradient(to right, #f4faff, #fff 640px, #f4faff);
        background-repeat: no-repeat;
    }
}
.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PCでは2列表示 */
    gap: 10px;
    margin-top: 10px;
}

.option-button {
    padding: 20px;
    font-size: 15px;
    color: #666;
    background-color: #fff; /* 通常時の白色 */
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.option-button:hover {
    background-color: #f0f0f0; /* ホバー時の色 */
}

.option-button.selected {
    background-color: #e8f5e9; /* 選択時の薄緑色 */
    border-color: #4caf50;
    color: #4caf50;
}

@media (max-width: 640px) {
    .button-grid {
        grid-template-columns: 1fr; /* モバイルでは1列表示 */
    }
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%; /* 横幅を100%に設定 */
    height: 56px; /* 縦幅を2remに設定 */
    padding: 5px 10px; /* 内側の余白を調整 */
    font-size: 1rem; /* フォントサイズを設定 */
    border: 1px solid #ccc; /* ボーダーの色を設定 */
    border-radius: 5px; /* 角を丸める */
    box-sizing: border-box; /* パディングとボーダーを含めてサイズを計算 */
    transition: border-color 0.3s, box-shadow 0.3s; /* フォーカス時のアニメーション */
}

textarea {
    height: auto; /* テキストエリアの高さはコンテンツに応じて調整 */
    min-height: 4rem; /* 最小高さを設定 */
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
    border-color: #4caf50; /* フォーカス時のボーダー色 */
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); /* フォーカス時のシャドウ */
    outline: none; /* デフォルトのアウトラインを削除 */
}

/* 送信ボタン */
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 20px;
    width: 100%;
    height: 4rem;
    font-size: 20px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:disabled {
    background-color: #9e9e9e; /* ボタンを無効化した際の色 */
    cursor: not-allowed;
}

.spinner {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ヘッダー */
.header {
    height: 80px;
    background-color: #f4faff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ccc;
}

.header-container {
    max-width: 640px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
@media (max-width: 640px) {
    .header-container {
        justify-content: center;
    }
}

.logo {
    width: auto;
    height: 1.8rem;
}

.header-cta-button {
    padding: 10px 10px;
    font-size: 1rem;
    color: #fff;
    background-color: #FC552B;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}


.header-cta-button:hover {
    background-color: #e34d28;
}

/* フッター */
.footer {
    background-color: #f4faff;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    text-align: center;
}

.footer-container {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-link {
    color: #4caf50;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #2e7d32;
}

.footer p {
    font-size: 12px;
    color: #666;
}



/* プライバシーポリシーページのスタイル */
.policy-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

.policy-title {
    font-size: 28px;
    color: #4caf50;
    text-align: center;
    margin-bottom: 20px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.policy-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.policy-section ul {
    padding-left: 20px;
    list-style-type: disc;
}

.policy-section ul li {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* 戻るボタンのコンテナ */
.back-button-container {
    text-align: center;
    margin-top: 30px;
}

/* 戻るボタン */
.back-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #4caf50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.back-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* その他、既存のスタイルを再利用 */


/* 固定フッターCTA */
.fixed-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* 他の要素より上に表示 */
    background-color: #fff; /* 背景色を白に設定 */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 上方向に影を追加 */
}

/* CTA画像 */
.cta-image {
    width: 100%;
    height: auto;
    display: block;
}



/* スマホ画面（幅640px以下）限定 */
@media (max-width: 640px) {
    .fixed-footer-cta {
        display: block; /* スマホ画面で表示 */
    }
    .header-cta-button {
        display: none;
    }
}

/* PC画面（幅640px以上）では非表示 */
@media (min-width: 641px) {
    .fixed-footer-cta {
        display: none; /* PC画面では非表示 */
    }
    .form-header h2 span{
        display: none;
    }
}


/* Swiper部分 */
section.construction-examples{
    background-color: #E2EDDA;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

section.construction-examples h2{
    color: #333;
    font-size: 2rem;
    text-align: center;
}

.swiper-container {
    width: 100%;
    max-width: 640px; /* 最大幅640px */
    overflow: hidden;
}

/* Swiperのスライド */
.swiper-slide {
    display: flex !important;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* スライドの画像 */
.swiper-slide img {
    width: 80%; /* 画像の幅を90%に設定 */
    max-width: 640px; /* 画像の最大幅を640pxに制限 */
    height: auto;
    border-radius: 0px;
}


/* 640px以上ではスライダーの左右を非表示 */
@media (min-width: 640px) {
    .swiper-container {
        overflow: hidden; /* 640pxを超える部分をカット */
    }
}
p.notion-sm{
    font-size: 1rem;
text-align: center;
}

/* FAQ */
.faq-section {
    padding-top: 2rem;
    width: 90%;
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.faq-section h2 {
    color: #286EB8;
    font-size: 18px;
    text-transform: uppercase;
}

.faq-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.faq-container {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    padding: 15px;
    text-align: left;
    background: #286EB8;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #357ecb;
}

.faq-answer {
    max-height: 0; /* 初期状態は閉じる */
    overflow: hidden; /* はみ出しを隠す */
    padding: 0 15px; /* 初期状態では余白をゼロ */
    background: #DDEBF8;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: left;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* スムーズな開閉 */
}

/* 会社概要セクション */
.company-section {
    padding: 40px 20px;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}

.company-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.company-details {
    text-align: left;
    padding: 0px 20px;
    border-radius: 8px;
}

.company-details p {
    font-size: 16px;
    margin: 8px 0;
    color: #333;
}