/* 問い合わせページのレイアウト */
.contact-page-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* PC: 5.5 : 4.5 に変更（gap:40px を考慮） */
.contact-content {
  flex: 1 1 calc(55% - 20px);
  width: calc(55% - 20px);
}

.contact-form-area {
  flex: 1 1 calc(45% - 20px);
  width: calc(45% - 20px);
  background-color: #FAFBFC;
  border-radius: 8px;
}

/* HubSpotフォームのスタイリング */
.hbspt-form,
.hs-form-frame {
    width: 100% !important;
    max-width: 100% !important;
}

.l-content {
    margin: 0 auto !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-page-layout {
        flex-direction: column;
        gap: 0; /* ギャップを0に */
        padding: 0; /* パディングを0に */
        align-items: flex-start; /* 左寄せに変更 */
        text-align: left; /* テキスト左寄せに変更 */
        width: 100%; /* 画面幅の100%を使用 */
        margin: 0; /* マージンを0に */
    }
    
    .contact-content,
    .contact-form-area {
        width: 100%;
        min-width: auto;
        max-width: none; /* 最大幅の制限を解除 */
        margin: 0; /* 中央配置を解除 */
    }
    
    /* 左側コンテンツの左寄せ */
    .contact-content h1 {
        text-align: left;
        margin-bottom: 15px; /* マージンを縮小 */
        padding: 0; /* 左右パディングを明示的に0に */
    }
    
    .contact-content h2 {
        text-align: left;
        margin-bottom: 15px; /* マージンを縮小 */
        padding: 0px !important; /* 左右パディングを明示的に0に */
    }
    
    .contact-content .entry-content {
        text-align: left;
        padding: 0 15px; /* 左右に少しパディング */
    }
    
    .contact-content .entry-content p {
        text-align: left;
        margin-bottom: 15px; /* マージンを縮小 */
    }
    
    /* 他のお問い合わせ先の左寄せ */
    .other-contacts {
        text-align: left;
        margin: 20px 15px; /* 左右にマージン */
        padding: 15px; /* パディングを縮小 */
    }
    
    .other-contacts ul {
        display: block; /* インライン解除 */
        text-align: left;
    }
    
    /* 過去の実績例の左寄せ */
    .past-examples h2 {
        text-align: left;
        margin-bottom: 15px; /* マージンを縮小 */
        padding: 0 15px; /* 左右に少しパディング */
    }
    
    .company-logos {
        justify-content: flex-start; /* 左寄せに変更 */
        gap: 10px; /* ギャップを縮小 */
        padding: 0 15px; /* 左右に少しパディング */
    }
    
    /* フォームエリアの左寄せ */
    .contact-form-area {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* 左寄せに変更 */
        padding: 15px; /* パディングを縮小 */
        margin-top: 20px; /* 上部に少しマージン */
    }
    
    .hbspt-form,
    .hs-form-frame {
        width: 100% !important;
        max-width: 100% !important; /* フォームの最大幅を100%に */
    }
}

/* フォームの見た目を調整 */
.hbspt-form .hs-form-field {
    margin-bottom: 20px;
}

.hbspt-form .hs-button {
    width: 100%;
    padding: 12px 24px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 22.4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hbspt-form .hs-button:hover {
    background-color: #005a87;
}

/* コンテンツエリアのスタイリング */
.contact-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.contact-content h2 {
    font-size: 22.4px;
    margin-bottom: 15px;
    color: #555;
}

.contact-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #555;
}

.contact-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

/* 他のお問い合わせ先のスタイル */
.other-contacts {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.other-contacts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-contacts li {
    margin-bottom: 12px;
}

.other-contacts a {
    color: #007cba;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.other-contacts a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* 過去の実績例のスタイル */
.past-examples {
    margin-top: 40px;
}

.past-examples h2 {
    font-size: 22.4px;
    margin-bottom: 20px;
    color: #333;
}

.past-examples h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

/* 企業ロゴのスタイル - アスペクト比16:9、PCで最大4つ横並び */
.company-logo {
    background: #ffffff;
    padding: 15px;
    width: calc(25% - 15px); /* 4つ横並び（ギャップ考慮） */
    aspect-ratio: 16/9; /* アスペクト比16:9 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px; /* 最小幅を設定 */
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* レスポンシブ時の企業ロゴ */
@media (max-width: 768px) {
    .company-logos {
        justify-content: flex-start; /* 左寄せに変更 */
        gap: 10px; /* ギャップを縮小 */
    }
    
    .company-logo {
        width: calc(50% - 5px); /* 2つ横並び、ギャップ調整 */
        min-width: 100px;
        padding: 10px; /* パディングを縮小 */
    }
}

/* タブレットサイズでの調整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .company-logo {
        width: calc(33.333% - 13.33px); /* 3つ横並び */
    }
}