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

html,
body {
    width: 100%;
    overflow-x: hidden;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
        sans-serif;
}

body {
    position: relative;
    background: #fff;
}


/* ========================================
   Contact Page
======================================== */

.page-template-page-contact .wpcf7-form fieldset {
  border: none;
}

/* ヘッダー */
.contact-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.73vw 2.42vw;
    z-index: 100;
    background: transparent;
}

.company-logo a {
    display: inline-block;
}

.company-logo img {
    width: 16.48vw;
    height: auto;
}

/* Contact Form Section */
.contact-form-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15.63vw 2.42vw 7.81vw;
}

.contact-form-container {
    width: 100%;
    max-width: 63.125vw;
}

/* タイトル */
.contact-form-title {
    color: #333;
    font-size: 6.25vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    margin: 0 0 6.25vw -16.02vw;
    text-align: left;
}

/* フォーム */
.contact-form {
    width: 100%;
    padding-top: 3.13vw;
}

.form-group {
    margin-bottom: 3.91vw;
}

.form-group:last-of-type {
    margin-bottom: 4.69vw;
}

/* ラベル */
.form-label {
    display: block;
    color: #333;
    font-size: 0.94vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    margin-bottom: 1.17vw;
}

/* 入力フィールド */
.form-input {
    width: 100%;
    padding: 1.17vw 1.56vw;
    border: 1px solid #999999;
    border-radius: 0.39vw;
    font-size: 1.17vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: #333;
    background: #fff;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #333;
}

/* テキストエリア */
.form-textarea {
    width: 100%;
    height: 25.547vw;
    padding: 1.17vw 1.56vw;
    border: 1px solid #999999;
    border-radius: 0.39vw;
    font-size: 1.17vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: #333;
    background: #fff;
    resize: vertical;
    min-height: 11.72vw;
    transition: border-color 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: #333;
}

/* 送信ボタン */
.form-submit {
    display: block;
    width: 31.016vw;
    margin: 0 auto;
    padding: 1.17vw 0;
    background: #3C3C3C;
    color: #fff;
    font-size: 1.17vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    border: none;
    border-radius: 0.39vw;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit:hover {
    background: #2C2C2C;
}

/* ========================================
   レスポンシブ対応（767px以下） - Contact Page
======================================== */
@media (max-width: 767px) {

    /* ヘッダー */
    .contact-header {
        padding: 4.27vw;
    }

    .company-logo img {
        width: 29.33vw;
    }

    /* Contact Form Section */
    .contact-form-section {
        min-height: 100vh;
        padding: 32vw 4.27vw 16vw;
    }

    .contact-form-container {
        max-width: 100%;
    }

    /* タイトル */
    .contact-form-title {
        font-size: 10.67vw;
        margin: 0 0 10.67vw 0;
    }

    /* フォーム */
    .contact-form {
        padding-top: 0;
    }

    .form-group {
        margin-bottom: 8vw;
    }

    .form-group:last-of-type {
        margin-bottom: 10.67vw;
    }

    /* ラベル */
    .form-label {
        font-size: 3.2vw;
        margin-bottom: 2.67vw;
    }

    /* 入力フィールド */
    .form-input {
        padding: 3.2vw 4.27vw;
        border-radius: 1.07vw;
        font-size: 4vw;
    }

    /* テキストエリア */
    .form-textarea {
        height: 53.33vw;
        padding: 3.2vw 4.27vw;
        border-radius: 1.07vw;
        font-size: 4vw;
        min-height: 53.33vw;
    }

    /* 送信ボタン */
    .form-submit {
        width: 100%;
        padding: 4vw 0;
        font-size: 4.27vw;
        border-radius: 1.07vw;
    }
}

/* ========================================
   Contact Section
======================================== */
.contact-section {
    position: relative;
    width: 100%;
    margin-top: 13.906vw;
    min-height: 42.1vw;
    overflow: hidden;
}

/* 背景画像 */
.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-background img {
    width: 100vw;
    object-fit: cover;
    display: block;
	margin-left: -0.156vw;
}

/* コンテンツ */
.contact-content {
    position: relative;
    z-index: 10;
    display: flex;
}

/* タイトル */
.contact-title {
    position: absolute;
    left: 50.6vw;
    top: 12.5vw;
    color: #fff;
    font-size: 4.7vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    margin: 0;
}

/* 説明文 */
.contact-description {
    position: absolute;
    left: 50.6vw;
    top: 19.69vw;
    color: #fff;
    font-size: 1.2vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    margin: 0;
}

/* リンク */
.contact-link {
    position: absolute;
    left: 50.6vw;
    top: 27.89vw;
    color: #fff;
    font-size: 1.4vw;
    font-family: 'Yu Gothic', YuGothic, sans-serif;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.39vw;
    transition: opacity 0.3s;
}

.contact-link-text {
    text-decoration: none;
    border-bottom: 0.08vw solid #fff;
}

.contact-link-arrow {
    width: 0.78vw;
    height: auto;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-link:hover .contact-link-text {
    text-decoration: none;
}

/* ========================================
   レスポンシブ対応（767px以下） - Contact Section
======================================== */
@media (max-width: 767px) {
    .contact-section {
        margin-top: 24.267vw;
        min-height: 133.33vw;
    }

    .contact-background img {
        width: 100%;
        height: 133.33vw;
        object-fit: cover;
    }

    .contact-content {
        height: 133.33vw;
        padding: 16vw 4.27vw;
        display: block;
    }

    .contact-title {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        font-size: 16vw;
        margin-bottom: 7.6vw;
        line-height: 1;
    }

    .contact-description {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        font-size: 4vw;
        margin-bottom: 8vw;
    }

    .contact-description br {
        display: none;
    }

    .contact-link {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        font-size: 4vw;
        display: flex;
        gap: 1.07vw;
    }

    .contact-link-arrow {
        width: 2.67vw;
    }
}

/* ========================================
   Footer
======================================== */
.footer {
    width: 100%;
    height: 30vw;
    background: #3C3C3C;
    display: flex;
    align-items: center;
}

.footer-container {
    width: 100%;
    height: 100%;
    padding: 4.69vw 2.42vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 上段 */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo img {
    height: 2.34vw;
    width: auto;
}

/* ナビゲーション */
.footer-nav {
    display: flex;
    gap: 3.13vw;
}

.footer-nav-link {
    color: #fff;
    font-size: 0.94vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-nav-link:hover {
    opacity: 0.7;
}

/* 下段 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-copyright {
    color: #fff;
    font-size: 0.78vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    margin: 0;
}

.footer-privacy {
    color: #fff;
    font-size: 0.78vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-privacy:hover {
    opacity: 0.7;
}

/* ========================================
   レスポンシブ対応（767px以下） - Footer
======================================== */
@media (max-width: 767px) {
    .footer {
        height: auto;
        min-height: auto;
    }

    .footer-container {
        padding: 10.67vw 4.27vw 8vw;
        gap: 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10.67vw;
        margin-bottom: 10.67vw;
    }

    .footer-logo img {
        height: 6.4vw;
        width: auto;
    }

    .footer-nav {
        flex-direction: column;
        gap: 5.33vw;
    }

    .footer-nav-link {
        font-size: 4.27vw;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8vw;
    }

    .footer-privacy {
        font-size: 3.73vw;
        order: 1;
    }

    .footer-copyright {
        font-size: 3.2vw;
        order: 2;
    }
}
