.main {
    padding: 0px;
}

/* ヒーローセクション */
.hero-section {
    background: url('../images/hero-background.png') center center / cover no-repeat;
    padding: 80px 0;
    position: relative;
    min-height: 600px;
}

/* PC版ヒーローセクション */
.hero-content--pc {
    display: flex;
    gap: 20px;
    align-items: center;
    min-height: 500px;
}

.hero-content--sp {
    display: none;
}

.hero-text {
    flex: 1;
    padding-right: 20px;
}

.hero-badge {
    background-color: var(--text-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo-img {
    width: 400px;
    height: auto;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 40px;
}

.hero-subtitle .underline {
    text-decoration: underline;
    font-weight: 600;
}

.hero-cta {
    margin-top: 30px;
}

.hero-visual {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-illustration {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-badge-img {
    height: 80px;
    width: auto;
}

.hero-form {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #002c6a;
}

/* ロゴスライダーセクション */
.logo-slider-section {
    background-color: var(--white);
    padding: 40px 0;
    overflow: hidden;
}

.logo-slider {
    display: flex;
    animation: slide 40s linear infinite;
    white-space: nowrap;
}

.logo-slide {
    display: inline-flex;
    gap: 80px;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    flex-shrink: 0;
}

.logo-slide img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.section-title-label{
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 20px;
}

/* お悩み解決セクション */
.problems-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

.problems-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.problem-item {
    flex: 1;
    max-width: 300px;
    min-width: 250px;
}

.problem-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background-color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.problem-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.problem-stats {
    background-color: var(--white);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stats-unit {
    font-size: 16px;
}

.problem-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.problems-cta {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 選ばれる理由セクション */
.reasons-section {
    background-color: var(--white);
    padding: 80px 0;
}

.reasons-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.reason-item {
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.reason-item:hover {
    transform: translateY(-5px);
}

.reason-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reason-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.reason-label {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.reason-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.reasons-cta {
    text-align: center;
    margin-top: 40px;
}

/* 導入実績セクション */
.achievements-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

.achievements-logos {
    max-width: 1000px;
    margin: 0 auto;
}

.achievements-logos--sp {
    display: none;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.logo-row:last-child {
    margin-bottom: 0;
}

.logo-item {
    flex: 1;
    max-width: 200px;
    min-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 導入事例セクション */
.case-studies-section {
    background-color: var(--white);
    padding: 80px 0;
}

.testimonials-content {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-item {
    flex: 1;
    background-color: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* クリッカブルなカードのスタイル */
.testimonial-link,
.seminar-link,
.column-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.testimonial-link:hover,
.seminar-link:hover,
.column-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
}

.testimonial-content {
    padding: 20px;
}

.testimonial-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonial-detail {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.case-cta {
    text-align: center;
    margin-top: 40px;
}

/* サービス説明資料セクション */
.materials-section {
    background-image: url(../images/hero-background.png);
    padding: 40px 0;
    text-align: center;
}

.materials-banner {
    width: 100%;
    max-width: 1200px;
    height: auto;
    cursor: pointer;
    margin-top: 20px;
}

/* セミナーセクション */
.seminars-section {
    background-color: var(--white);
    padding: 80px 0;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.seminars-content {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.seminar-item {
    flex: 1;
    background-color: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.seminar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.seminar-image {
    height: 200px;
    overflow: hidden;
}

.seminar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seminar-info {
    padding: 25px;
}

.seminar-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.seminar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.seminar-organizer {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.seminar-details {
    margin-bottom: 15px;
}

.seminar-details p {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.seminar-benefits {
    margin-bottom: 20px;
}

.seminar-benefits p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.seminar-benefits ul {
    list-style: none;
    padding: 0;
}

.seminar-benefits li {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.btn-seminar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-seminar:hover {
    background-color: #002c6a;
}

.seminars-cta {
    text-align: center;
    margin-top: 40px;
}

/* コラムセクション */
.columns-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.columns-content {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.column-item {
    flex: 1;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.column-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.column-image {
    height: 200px;
    overflow: hidden;
}

.column-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.column-info {
    padding: 20px;
}

.column-category {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.column-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.columns-cta {
    text-align: center;
    margin-top: 40px;
}

/* お知らせセクション */
.news-section {
    background-color: var(--white);
    padding: 80px 0;
}

.news-list {
    max-width: 800px;
    margin: 0 auto 50px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 14px;
    color: var(--light-text);
    white-space: nowrap;
    min-width: 120px;
}

.news-category {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.news-title {
    font-size: 16px;
    color: var(--text-color);
    flex: 1;
}

.news-cta {
    text-align: center;
    margin-top: 40px;
}

/* 動画セクション */
.video-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 59, 131, 0.2);
}

.video-wrapper iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px;
}

/* サイドバー（PC用） */
.sidebar {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 320px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: block;
    transition: transform 0.3s ease;
}

/* サイドバー再表示ボタン */
.sidebar-reopen-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 10px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    z-index: 1001;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    visibility: hidden;
}

.sidebar-reopen-btn:hover {
    background-color: #002c6a;
    transform: translateY(-50%) translateX(-5px);
}

.sidebar-reopen-btn i {
    margin-right: 5px;
}

.sidebar-reopen-btn.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.reopen-text {
    display: inline-block;
    margin-left: 5px;
}

/* サイドバーが非表示の時の状態 */
.sidebar.hidden {
    transform: translateY(-50%) translateX(100%);
}

.sidebar-content {
    padding: 30px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* サイドバーフォーム（Contact Form 7対応） */
.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-form .wpcf7 {
    margin: 0;
}

.sidebar-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.sidebar-form .wpcf7-form p {
    margin: 0;
}

.sidebar-form-field {
    margin-bottom: 15px;
}

.sidebar-form .wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--white);
    box-sizing: border-box;
}

.sidebar-form .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 59, 131, 0.1);
}

.sidebar-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

.sidebar-form .checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.sidebar-form .checkbox-label a:hover {
    color: #002c6a;
}

.sidebar-form .wpcf7-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.sidebar-form .sidebar-submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.sidebar-form .sidebar-submit-btn:hover {
    background-color: #002c6a;
}

/* Contact Form 7フォームスタイル（サイドバー・モバイル共通） */
.sidebar-form .form-group,
.modal-form .form-group {
    margin-bottom: 15px;
}

.sidebar-form .form-label,
.modal-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.sidebar-form .required,
.modal-form .required {
    color: #ff3860;
    font-size: 12px;
    margin-left: 4px;
}

.sidebar-form .form-input,
.modal-form .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--white);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.sidebar-form .form-input:focus,
.modal-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 59, 131, 0.1);
}

.sidebar-form .form-submit,
.modal-form .form-submit {
    margin-top: 20px;
}

.sidebar-form .submit-button,
.modal-form .submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-form .submit-button:hover,
.modal-form .submit-button:hover {
    background-color: #002c6a;
}

.sidebar-form .privacy-notice,
.modal-form .privacy-notice {
    margin-top: 15px;
    text-align: center;
}

.sidebar-form .privacy-notice p,
.modal-form .privacy-notice p {
    font-size: 12px;
    color: var(--light-text);
    line-height: 1.4;
    margin: 0;
}

.sidebar-form .privacy-notice a,
.modal-form .privacy-notice a {
    color: var(--primary-color);
    text-decoration: underline;
}

.sidebar-form .privacy-notice a:hover,
.modal-form .privacy-notice a:hover {
    color: #002c6a;
}

/* サイドバーフォーム - エラー・成功メッセージ */
.sidebar-form .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.sidebar-form .wpcf7-mail-sent-ng,
.sidebar-form .wpcf7-aborted {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.sidebar-form .wpcf7-validation-errors {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.sidebar-form .wpcf7-not-valid-tip {
    color: #ff3860;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.sidebar-form .wpcf7-form-control.wpcf7-not-valid {
    border-color: #ff3860;
    box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.1);
}

/* Contact Form 7バリデーションエラー対応 */
.sidebar-form .wpcf7-not-valid,
.modal-form .wpcf7-not-valid {
    border-color: #ff3860 !important;
    box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.1) !important;
}

.sidebar-form .wpcf7-not-valid-tip,
.modal-form .wpcf7-not-valid-tip {
    color: #ff3860;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* 旧HTMLフォーム用（Contact Form 7に置き換わったので残しておく） */
.sidebar-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.sidebar-submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-submit-btn:hover {
    background-color: #002c6a;
}

/* モバイル固定CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 15px 20px;
    z-index: 1000;
    display: none;
}

.mobile-cta-btn {
    width: 100%;
    background: linear-gradient(to right, #F25500, #FFA600);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
}

/* モバイルフォームモーダル */
.mobile-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--light-text);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* モバイルモーダルフォーム（Contact Form 7対応） */
.modal-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form .wpcf7 {
    margin: 0;
}

.modal-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.modal-form .wpcf7-form p {
    margin: 0;
}

.modal-form .sidebar-form-field {
    margin-bottom: 15px;
}

.modal-form .wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px; /* iOS Safariでのズーム防止 */
    font-family: inherit;
    box-sizing: border-box;
}

.modal-form .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 59, 131, 0.1);
}

.modal-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.4;
}

.modal-form .checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.modal-form .wpcf7-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.modal-form .sidebar-submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.modal-form .sidebar-submit-btn:hover {
    background-color: #002c6a;
}

/* モバイル用調整 */
.modal-form .form-input {
    font-size: 16px; /* iOS Safariでのズーム防止 */
}

/* モバイルでのエラー・成功メッセージ */
.modal-form .wpcf7-mail-sent-ok,
.modal-form .wpcf7-mail-sent-ng,
.modal-form .wpcf7-aborted,
.modal-form .wpcf7-validation-errors {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.modal-form .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal-form .wpcf7-mail-sent-ng,
.modal-form .wpcf7-aborted {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal-form .wpcf7-validation-errors {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.modal-form .wpcf7-not-valid-tip {
    color: #ff3860;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.modal-form .wpcf7-form-control.wpcf7-not-valid {
    border-color: #ff3860;
    box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.1);
}

/* 旧HTMLフォーム用（モバイル） */
.modal-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.modal-submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-submit-btn:hover {
    background-color: #002c6a;
}

/* Contact Form 7 共通スタイル */
.sidebar-form .wpcf7 .screen-reader-response,
.modal-form .wpcf7 .screen-reader-response {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sidebar-form .wpcf7-spinner,
.modal-form .wpcf7-spinner {
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 1400px) {
    .sidebar {
        right: 20px;
        width: 300px;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }
    
    .sidebar-reopen-btn {
        display: none !important;
    }
    
    .hero-content--pc {
        gap: 40px;
    }
    
    .logo-row {
        gap: 30px;
    }
    
    .logo-item {
        min-width: 120px;
        max-width: 150px;
    }
}

@media (max-width: 992px) {
    .mobile-cta {
        display: block;
    }
    
    /* ヒーローセクション - SP表示に切り替え */
    .hero-content--pc {
        display: none;
    }
    
    .hero-content--sp {
        display: block;
        text-align: center;
    }
    
    .hero-content--sp .hero-text {
        padding-right: 0;
    }
    
    .hero-content--sp .hero-visual {
        margin: 30px 0;
    }
    
    .hero-content--sp .hero-cta {
        margin-top: 30px;
        text-align: center;
    }
    
    .hero-content--sp .cta-button {
        margin: 0 auto;
    }
    
    /* お悩みセクション - 縦に3つ並ぶように */
    .problems-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-bottom: 50px;
        align-items: center;
    }
    
    .problem-item {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    
    /* 選ばれる理由 - 縦に並ぶように */
    .reasons-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    /* 導入実績 - SP版に切り替え */
    .achievements-logos--pc {
        display: none;
    }
    
    .achievements-logos--sp {
        display: block;
    }
    
    .achievements-logos--sp .logo-row {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .achievements-logos--sp .logo-item {
        min-width: 40%;
        max-width: 45%;
        height: 60px;
        padding: 10px;
    }
    
    .achievements-logos--sp .logo-item img {
        max-height: 40px;
    }
    
    /* 導入事例 - 縦に3つ並ぶように */
    .testimonials-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    /* セミナー - 縦に3つ並ぶように表示 */
    .seminars-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    /* コラム - 縦に並ぶように */
    .columns-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-logo-img {
        width: 220px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-illustration {
        max-width: 350px;
    }
    
    .hero-badges {
        gap: 15px;
    }
    
    .hero-badge-img {
        height: 60px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 350px;
        height: 70px;
        font-size: 18px;
    }
    
    .button-paper {
        left: -15px;
        width: 55px;
    }
    
    .button-text {
        font-size: 18px;
    }
    
    .logo-slide {
        gap: 40px;
    }
    
    .logo-slide img {
        height: 40px;
        max-width: 120px;
    }
    
    .problems-section,
    .reasons-section,
    .achievements-section,
    .case-studies-section,
    .materials-section,
    .seminars-section,
    .columns-section,
    .news-section,
    .video-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .section-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .video-wrapper iframe {
        height: 300px;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }
    
    .news-date {
        min-width: auto;
    }
    
    .achievements-logos--sp .logo-item {
        height: 50px;
        padding: 8px;
    }
    
    .achievements-logos--sp .logo-item img {
        max-height: 35px;
    }

    /* モバイルフォームの調整 */
    .modal-form .wpcf7-form-control {
        font-size: 16px; /* iOS Safariでのズーム防止 */
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 30px;
        line-height: 1.3;
    }
    
    .hero-logo-img {
        width: 320px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .hero-illustration {
        max-width: 320px;
    }
    
    .hero-badges {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    
    .hero-badge-img {
        height: 80px;
    }
    
    .cta-button {
        height: 65px;
        font-size: 16px;
    }
    
    .button-paper {
        left: -12px;
        width: 70px;
    }
    
    .button-text {
        font-size: 16px;
    }
    
    .logo-slide {
        gap: 30px;
    }
    
    .logo-slide img {
        height: 30px;
        max-width: 100px;
    }
    
    .problems-section,
    .reasons-section,
    .achievements-section,
    .case-studies-section,
    .materials-section,
    .seminars-section,
    .columns-section,
    .news-section,
    .video-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .video-wrapper {
        padding: 20px;
    }
    
    .video-wrapper iframe {
        height: 200px;
    }
    
    .mobile-cta {
        padding: 12px 15px;
    }
    
    .mobile-cta-btn {
        font-size: 16px;
        padding: 12px;
    }
    
    .achievements-logos--sp .logo-row {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .achievements-logos--sp .logo-item {
        height: 45px;
        padding: 5px;
    }
    
    .achievements-logos--sp .logo-item img {
        max-height: 30px;
    }
}