/*
================================================================================
  固定ページテンプレート用の上書きスタイル
================================================================================
*/

.page-template-request_inquiry .main-content {
    padding-top: 35px;
}

/*
================================================================================
  固定ページ共通スタイル (page.css)
================================================================================
*/
.hero-sub {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/common/hero-sub-bg.webp');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: #fff;
    text-align: center;
}
.hero-sub h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(to right, #2c6f72, #68b4a2);
    padding: 0.1em 0.8em;
}

.form-wrapper {
    background-color: #F8FBF8;
    padding: 4rem 0;
}

/*
================================================================================
  Contact Form 7 用のスタイル
================================================================================
*/

/* フォームテンプレート内の要素を直接スタイリング */
.wpcf7-form {
    background-color: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}
.wpcf7-form h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-dark-green);
}

.form-group {
    margin-bottom: 2rem;
}
.form-group label {
    display: block;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.form-group .required {
    background-color: var(--color-orange);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-dark-green);
    box-shadow: 0 0 0 2px rgba(43, 90, 92, 0.2);
}

.wpcf7-radio,
.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}
.wpcf7-list-item {
    margin: 0;
}
.wpcf7-list-item-label {
    font-weight: normal;
}

.privacy-policy .wpcf7-list-item {
    margin-bottom: 1rem;
}
.privacy-policy .privacy-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 1rem;
}
.privacy-policy a {
    color: var(--color-dark-green);
    text-decoration: underline;
}

.submit-button {
    text-align: center;
    margin-top: 2.5rem;
}
.submit-button .wpcf7-submit {
    display: inline-block;
    padding: 1rem 4rem;
    border-radius: 3rem;
    color: #fff;
    font-weight: bold;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, #F37F38, #E8632C);
    transition: opacity 0.3s;
}
.submit-button .wpcf7-submit:hover {
    opacity: 0.8;
}

/* ▼▼▼ バリデーションメッセージのスタイルを追加 ▼▼▼ */
.wpcf7-not-valid-tip {
    color: #dc3232; /* 赤色 */
    font-size: 0.875rem;
    font-weight: bold;
    margin-top: 0.5rem;
}
/* ▲▲▲ 追加ここまで ▲▲▲ */


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-sub {
        padding: 2.5rem 0;
    }
    .hero-sub h1 {
        font-size: 2rem;
    }

    .wpcf7-form {
        padding: 1.5rem;
    }
    
    .wpcf7-radio, .wpcf7-checkbox {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/*
================================================================================
  送信完了メッセージのスタイル
================================================================================
*/
.wpcf7-response-output {
    border-width: 2px;
    border-radius: 0.5rem;
    padding: 0; /* 内側の余白はカスタムHTML側で調整 */
    margin: 2rem auto 0;
}

.success-message {
    padding: 1.5rem 1rem;
    text-align: center;
}

.success-message .success-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-dark-green);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.success-message .success-sub {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .success-message .success-main {
        font-size: 1.25rem;
    }
    .success-message .success-sub {
        font-size: 0.875rem;
    }
}

/*
================================================================================
  プライバシーポリシーページ用の追加スタイル
================================================================================
*/

.privacy-content {
    padding: 4rem 0;
}
.privacy-content .container {
    max-width: 800px; /* テキストが読みやすいように幅を狭める */
}

.privacy-section {
    margin-top: 3rem;
}
.privacy-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-dark-green);
    border-bottom: 2px solid var(--color-dark-green);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.privacy-section p {
    line-height: 1.8;
}

.company-info-wrapper {
    margin-top: 2rem;
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 0.5rem;
}
.company-info-block h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.company-info-block p {
    font-size: 0.9rem;
    line-height: 1.7;
}
.company-info-block:not(:last-child) {
    margin-bottom: 1.5rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .privacy-content {
        padding: 2.5rem 0;
    }
}

/* 
================================================================================
  Swiper スライダー用スタイル（共通）
================================================================================
*/
/* 2つのクラス名をカンマ区切りで指定 */
.future-swiper,
.environment-swiper {
    width: 100%;
    margin-top: 50px; /* 上の余白 */
    padding-bottom: 2rem;
    overflow: hidden;
}

.future-swiper .swiper-wrapper,
.environment-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.future-swiper .swiper-slide,
.environment-swiper .swiper-slide {
    width: 30vw; /* PC: 画面幅の30% */
    height: 350px;
    margin-right: 20px;
}

.future-swiper .swiper-slide img,
.environment-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .future-swiper,
    .environment-swiper {
        margin-top: 30px;
        padding-top: 0;
    }
    
    .future-swiper .swiper-slide,
    .environment-swiper .swiper-slide {
        width: 70vw; /* スマホ: 画面幅の70% */
        height: 220px;
    }
}