@charset "utf-8";

/* Contact Form Styles */
.contact_form_wrapper {
    max-width: 100%;
    margin: 0 auto;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 16px;
}

.contact_form_list {
    border-top: 0.5px solid #000;
    margin-bottom: 40px;
}

.contact_form_row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 0.5px solid #000;
    margin: 0;
    padding: 30px 0;
    align-items: flex-start;
}

.contact_form_label {
    width: 30%;
    font-weight: 400;
    padding-right: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.contact_form_input {
    width: 70%;
    margin: 0;
    box-sizing: border-box;
}

/* Input Styles */
.contact_form_wrapper input[type="text"],
.contact_form_wrapper input[type="email"],
.contact_form_wrapper textarea {
    width: 100%;
    padding: 10px 15px;
    border: 0.5px solid #000;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    height: 44px;
    border-radius: 0;
    -webkit-appearance: none;
}

.contact_form_wrapper textarea {
    height: 300px;
    resize: vertical;
}

/* Half width inputs container */
.input_group_half {
    display: flex;
    gap: 20px;
}

.input_group_half input {
    width: calc(50% - 10px);
}

/* Radio buttons */
.radio_group label {
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.radio_group label:last-child {
    margin-bottom: 0;
}

.radio_group input[type="radio"] {
    margin-right: 15px;
    width: auto;
    height: auto;
    transform: scale(1.2);
}

/* Submit Button */
.submit_button_wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.submit_button_wrapper input[type="submit"] {
    background-color: #dcdcdc;
    color: #000;
    border: none;
    padding: 15px 60px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 200px;
    -webkit-appearance: none;
    border-radius: 0;
}

.submit_button_wrapper input[type="submit"]:hover {
    background-color: #c0c0c0;
}

/* Layout Adjustments for Contact Page */
body.page-template-page-contact #bread_crumb {
    margin-top: 15px;
}

body.page-template-page-contact #main_contents {
    margin-top: 15px;
}

body.page-template-page-contact #main_col {
    width: 100%;
    float: none;
}

/* PC only: Remove padding from main_contents */
@media (min-width: 651px) {
    body.page-template-page-contact #main_contents {
        padding: 0;
    }
}

/* ========================================
   Blog Archive Header
======================================== */
#blog_archive_header {
    height: 550px;
    position: relative;
    overflow: hidden;
    background: #fff;
    margin: 0 0 15px 0;
    width: 100%;
}

#blog_archive_header .header_image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#blog_archive_header .header_content {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 50px;
    box-sizing: border-box;
}

#blog_archive_header .headline {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 32px;
    line-height: 1.4;
    color: #fff;
    background: none !important;
    padding: 0;
    margin: 0 0 20px 0;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#blog_archive_header .desc {
    color: #fff;
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#blog_archive_header .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

/* ========================================
   Responsive Styles
======================================== */

/* Tablet */
@media screen and (max-width: 950px) {
    #blog_archive_header {
        height: 450px;
        margin: 0 0 15px 0;
    }

    #blog_archive_header .headline {
        font-size: 28px;
        padding: 0;
    }

    #blog_archive_header .desc {
        font-size: 16px;
    }
}

/* Mobile */
@media screen and (max-width: 650px) {

    /* Blog Archive Header Mobile */
    #blog_archive_header {
        height: 360px;
        margin: 0 0 10px 0;
        width: 100%;
    }

    #blog_archive_header .header_content {
        padding: 0 20px;
    }

    /* モバイルではブログアーカイブのヘッダー内の見出しを非表示 */
    body:not(.page-template-page-contact) #blog_archive_header .headline {
        display: none !important;
    }

    /* コンタクトページのヘッダーはモバイルでも表示 */
    body.page-template-page-contact #blog_archive_header {
        height: 280px;
    }

    body.page-template-page-contact #blog_archive_header .headline {
        display: block !important;
        font-size: 28px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }

    body.page-template-page-contact #blog_archive_header .desc {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Contact Page Mobile Layout */
    body.page-template-page-contact #main_col {
        padding: 0 !important;
    }

    body.page-template-page-contact .design_headline.blog_header {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        margin-bottom: 50px !important;
    }

    body.page-template-page-contact .post_content {
        padding-left: 38px !important;
        padding-right: 38px !important;
    }

    /* Contact Form Mobile Styles */
    .contact_form_list {
        border-top: none;
    }

    .contact_form_row {
        display: block;
        padding: 0 0 30px 0;
        border-bottom: none;
    }

    .contact_form_label {
        width: 100%;
        margin-bottom: 10px;
        min-height: auto;
        font-size: 16px;
    }

    .contact_form_input {
        width: 100%;
    }

    .input_group_half {
        flex-direction: column;
        gap: 15px;
    }

    .input_group_half input {
        width: 100%;
    }

    .contact_form_wrapper input[type="text"],
    .contact_form_wrapper input[type="email"],
    .contact_form_wrapper textarea {
        font-size: 16px;
    }
}