/*
Theme Name: Taian Kensetsu Custom Theme
Theme URI: https://hannantest06.com/taian-kensetsu.co.jp/
Description: カスタムテーマ for 大安建設
Author: Custom Theme Developer
Version: 1.0
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* English Text */
body[lang="en"],
.en {
    font-family: "Barlow", sans-serif;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
}

/* Container - Bootstrap Style */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    font-size: 14px;
    color: #666;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #999;
}

.breadcrumb-list a {
    color: #008597;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: #006676;
    text-decoration: underline;
}

/* Main Content */
main {
    min-height: 60vh;
    padding: 0;
}

.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.entry-content h3 {
    font-size: 20px;
    margin: 25px 0 12px;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 0;
}

footer .container {
    text-align: center;
}

footer p {
    font-size: 14px;
}

/* Single Construction Page Styles */
.ly_block {
    padding: 40px 0;
}

.ly_cont {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.ly_cont2_2 {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.el_h2_2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.4;
}

.el_h2_2 span {
    font-size: 16px;
    color: #008597;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.bl_media2 {
    margin-top: 40px;
}

.bl_media2_imgWrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wp_wide {
    width: 100%;
}

/* Gallery Styles */
.bl_gallery2 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bl_gallery2_main {
    width: 100%;
    max-width: 600px;
    height: 450px;
    margin: 0 auto;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bl_gallery2_main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

.bl_gallery2_thumb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
}

.bl_gallery2_thumb li {
    cursor: pointer;
}

.bl_gallery2_thumb picture {
    display: block;
}

.bl_gallery2_thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.bl_gallery2_thumb img:hover {
    opacity: 0.7;
    border-color: #008597;
}

.bl_gallery2_thumb li.active img {
    border-color: #008597;
    opacity: 1;
}

.bl_media2_body {
    margin-top: 30px;
}

.bl_md {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.bl_md p {
    margin-bottom: 15px;
}

.bl_md h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    font-weight: 700;
}

.bl_md h3 {
    font-size: 18px;
    margin: 25px 0 12px;
    font-weight: 600;
}

/* Construction Content (title下のコンテンツ) */
.construction-content {
    margin-top: 30px;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.construction-content p {
    margin-bottom: 15px;
}

.construction-content h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    font-weight: 700;
}

.construction-content h3 {
    font-size: 18px;
    margin: 25px 0 12px;
    font-weight: 600;
}

/* Gallery Full Width */
.bl_gallery2_full {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Responsive for Gallery */
@media (min-width: 768px) {
    .bl_media2_imgWrap {
        flex-direction: row;
        gap: 60px;
    }

    .bl_gallery2 {
        flex: 1;
    }

    .bl_media2_body {
        flex: 1;
        margin-top: 0;
    }

    .bl_gallery2_thumb {
        grid-template-columns: repeat(4, 1fr);
    }

    .bl_gallery2_thumb img {
        height: 100px;
    }
}

@media (min-width: 992px) {
    .el_h2_2 {
        font-size: 36px;
    }

    .el_h2_2 span {
        font-size: 18px;
    }
}

/* Recruit Page Styles */
.ly_space_lv1 {
    margin-bottom: 40px;
}

.bl_form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bl_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 5rem;
}

.bl_table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.bl_table tbody tr:last-child {
    border-bottom: none;
}

.bl_table th {
    background-color: #f3f4f6;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #333;
    width: 30%;
    vertical-align: top;
}

.bl_table th span {
    display: block;
}

.bl_table td {
    padding: 15px 20px;
    color: #666;
    line-height: 1.8;
}

.recruit-apply-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.recruit-apply-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.btn-recruit-apply {
    display: inline-block;
    padding: 15px 50px;
    background-color: #008597;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-recruit-apply:hover {
    background-color: #006676;
}

@media (max-width: 768px) {
    .bl_table {
        display: block;
    }

    .bl_table tbody,
    .bl_table tr,
    .bl_table th,
    .bl_table td {
        display: block;
        width: 100%;
    }

    .bl_table th {
        padding: 12px 15px 8px;
        border-bottom: none;
    }

    .bl_table td {
        padding: 8px 15px 12px;
    }

    .bl_table tbody tr {
        margin-bottom: 15px;
    }
}

/*------------------------Contact---------------------------*/

.under-contact-contents-wrap {
  padding-top: 0;
  padding-bottom: 90px;
  padding-left: 15px;
  padding-right: 15px;
}

.contact-wrap {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
@media screen and (max-width: 480px) {
  .Form {
    margin-top: 40px;
  }
}
.Form-Item {
  border-top: 1px solid #ddd;
  padding-top: 24px;
  padding-bottom: 24px;
  width: 100%;
  display: flex;
  align-items: center;
}
@media screen and (max-width: 480px) {
  .Form-Item {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
  }
}

.Form-Item-Label {
  width: 100%;
  max-width: 248px;
  letter-spacing: 0.05em;
  font-weight: bold;
  font-size: 18px;
  margin-right: 30px;
}
@media screen and (max-width: 480px) {
  .Form-Item-Label {
    max-width: inherit;
    display: flex;
    align-items: center;
    font-size: 15px;
  }
}
.Form-Item-Label.isMsg {
  margin-top: 8px;
  margin-bottom: auto;
}
@media screen and (max-width: 480px) {
  .Form-Item-Label.isMsg {
    margin-top: 0;
  }
}
.Form-Item-Label-Required {
  border-radius: 6px;
  margin-right: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  width: 48px;
  display: inline-block;
  text-align: center;
  background: #ecfeff;
  color: #008597;
  font-size: 14px;
}
.Form-Item-Label-Required.red {
  border-radius: 6px;
  margin-right: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  width: 48px;
  display: inline-block;
  text-align: center;
  background: #F58220!important;
  color: #fff;
  font-size: 14px;
}

.Form-Item-Label-Required.green {
  border-radius: 6px;
  margin-right: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  width: 48px;
  display: inline-block;
  text-align: center;
  background: #2A623A!important;
  color: #fff;
  font-size: 14px;
}
@media screen and (max-width: 480px) {
  .Form-Item-Label-Required {
    border-radius: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    width: 32px;
    font-size: 10px;
  }
}
.Form-Item-Input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding-left: 1em;
  padding-right: 1em;
  height: 48px;
  flex: 1;
  width: 100%;
  max-width: 90%;
  background: #eaedf2;
  font-size: 18px;
}
@media screen and (max-width: 480px) {
  .Form-Item-Input {
    margin-left: 0;
    margin-top: 18px;
    height: 40px;
    flex: inherit;
    font-size: 15px;
  }
}
.Form-Item-Textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding-left: 1em;
  padding-right: 1em;
  height: 216px;
  flex: 1;
  width: 100%;
  max-width: 100%;
  background: #eaedf2;
  font-size: 18px;
}
@media screen and (max-width: 480px) {
  .Form-Item-Textarea {
    margin-top: 18px;
    margin-left: 0;
    height: 200px;
    flex: inherit;
    font-size: 15px;
  }
}
.Form-Btn {
  border-radius: 6px;
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 280px;
  display: block;
  letter-spacing: 0.05em;
  background: #008597;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
}
@media screen and (max-width: 480px) {
  .Form-Btn {
    margin-top: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 160px;
    font-size: 16px;
  }
}

@media screen and (max-width:768px){
  .contact-wrap {
    max-width: 100%;
  }

  .Form-Item-Input {
    width: 100%;
    max-width: 100%;
  }

  .Form-Item-Label-Required.green,
  .Form-Item-Label-Required.red {
    border-radius: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    width: 32px;
    font-size: 10px;
  }

  .Form-Btn {
    margin-bottom: 30px;
}
}


/*------------------------Contact---------------------------*/

.ssl-notice {
    background-color: #f0f9ff;
    border-left: 4px solid #008597;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 1140px;
    font-size: 14px;
    color: #333;
}

.ssl-notice p {
    margin: 0;
}

.policy_text {
  padding-top: 40px;
}

.policy_text a {
  color: #2A623A;
  text-decoration: underline;
}

.policy_text a:hover {
  opacity: 0.5;
}

.page-id-64 .policy_text,
.page-id-64 .policy_accept {
  display: none;
}

.submit_btn.text-center {
  margin-bottom: 5rem;
}

/* Work Page Styles */
.mt_2l {
    margin-top: 3rem;
}

.el_h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.wp_6_2__max {
    width: 100%;
}

.bl_media2_img {
    width: 100%;
    margin: 0;
}

.bl_media2_img img {
    width: 100%;
    height: 490px;
    display: block;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .el_h4 {
        font-size: 20px;
    }
}

/*------------------------Privacy Policy---------------------------*/
.privacy-content {
    margin-top: 3rem;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-heading {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #008597;
}

.privacy-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.privacy-list {
    margin-left: 2rem;
    margin-top: 1rem;
}

.privacy-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 0.5rem;
}

.privacy-end {
    text-align: right;
    font-size: 16px;
    color: #666;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

/*------------------------Contact Confirm / Complete---------------------------*/

/* 確認画面・完了画面のテキストを中央寄せ */
.mw_wp_form_confirm .mw_wp_form,
.mw_wp_form_complete .mw_wp_form,
.mw_wp_form_complete p,
.mw_wp_form_confirm p,
p.confirm,
p.complete {
    text-align: center;
}

/* 確認画面・完了画面のページタイトルを非表示（キービジュアルにタイトルがあるため） */
.page-child.parent-pageid-90 .entry-header {
    display: none;
}

/* 確認画面・完了画面のコンテンツエリアのスタイル */
.page-child.parent-pageid-90 .entry-content {
    padding: 40px 15px 90px;
    max-width: 800px;
    margin: 0 auto;
}
