/*
 Theme Name: AIDER Child
 Template: aider_tcd115
 Version: 1.0.0
 Description: AIDER の子テーマ
 Author: 新田事務所
*/

/*=============================================================
【共通】基本調整
=============================================================*/
body, body * {
    font-weight: 600 !important;
    line-height: 1.8;
}

/*=============================================================
【共通】デバイス限定表示
=============================================================*/
@media (max-width: 499px) {
    .only_pc {
        display: none;
      }
}
@media (min-width: 500px) {
    .only_sp {
        display: none;
      }
}

/*=============================================================
ヘッダーメニュー固定
=============================================================*/
body .l-header {
    position: fixed !important;
    z-index: 999 !important;
}

@media (min-width: 991px) {
    /* 投稿ページなどには margin-top を適用 */
    body.single .c-archive-header__content,
    body.archive .c-archive-header__content {
    margin-top: 160px !important;
    }
    body.single-service .l-main,
    body.single-news .l-main {
        margin-top: 160px;
    }
    /* 固定ページ（page.php）は除外 */
    body.page-template-default .c-archive-header__content {
    margin-top: 30px !important;
    }
    body:not(.home):not(.page):not(.single-service):not(.single-news) .l-container {
        margin-top: 160px !important;
    }
    .p-mv2 .p-mv2_catch_content,.p-mv2 .p-mv2_img_slider_content {
        margin-top: 160px !important;
    }

    body.page .c-archive-header__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    body.page .c-archive-header__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }
    body.page .c-archive-header__title_use_img {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 10;
        height: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(5px);
    }
}

/* 電話アイコン調整 */
.tel_number_icon{
    display: flex;
    align-items: center;
}

/*=============================================================
トップ
=============================================================*/
.p-cb-header-subtitle {
    font-family: var(--tcd-bd-base-font-type) !important;
    font-weight: 600 !important;
}


/*=============================================================
ページ見出し
=============================================================*/
.h2_basic {
    position: relative;
    text-align: center;
    font-size: 28px;
    margin: 4rem auto 3rem;
    padding: 1rem;
}
.h2_basic:before {
    position: absolute;
    bottom: -1px;
    left: calc(50% - 15px);
    width: 30px;
    height: 5px;
    content: '';
    border-radius: 3px;
    background: #31673f;
}
@media (max-width: 990px) {
    .h2_basic {
        font-size: 24px;
        margin: 3rem auto 2rem;
    }
}


/*=============================================================
サービス（個別）
=============================================================*/
@media (max-width: 990px) {
    .p-single__content_service {
    padding-top: 40px;
    width: calc(100% - 40px);
    margin: 0 20px;
    }
}


/*=============================================================
プライバシーポリシー
=============================================================*/
.privacy_h3{
    color: #31673f;
    font-size: 1.4em;
    margin: 2rem 0 1rem;
}


/*=============================================================
問い合わせフォーム
=============================================================*/
.wpcf7 {
    margin-top: 3rem;
}
.wpcf7 form,
.wpcf7-form { 
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.wpcf7-form label{
  display:block;
  margin: 0 0 14px;
  font-weight: 700;
  color:#1f1f1f;
}

.wpcf7-form .badge {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: baseline;
    position: relative;
    top: -2px;
  }
.wpcf7-form .badge-req{
  background:#d93025;
  color:#fff;
}
.wpcf7-form .badge-opt{
  background:#9aa0a6;
  color:#fff;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea{
  width:100%;
  box-sizing:border-box;
  font-size:16px;
  padding:10px 12px;
  border:1px solid #d7d7d7;
  border-radius:6px;
  background:#fff;
  color:#222;
  margin-top:8px;
  margin-bottom:18px;
}
.wpcf7-form textarea{
  min-height:160px;
  resize:vertical;
}

.wpcf7-form ::placeholder{
  color:rgba(34,32,0,0.3);
}

.wpcf7-form input.wpcf7-submit,
.wpcf7 form .wpcf7-submit{
  display:block;
  margin: 10px auto 0;
  padding:12px 32px;
  background:#00582d;
  color:#fff;
  border:0;
  border-radius:6px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition: filter .2s ease;
}
.wpcf7-form input.wpcf7-submit:hover{
  opacity: 0.7;
}
.wpcf7-form input.wpcf7-submit:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(0,88,45,.25);
}


@media (max-width:499px){
  .wpcf7-form label{ margin-bottom:12px; }
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea{ font-size:15px; }
  .wpcf7-form input.wpcf7-submit{ width: 180px; }
}


.wpcf7-form .wpcf7-acceptance {
    margin: 16px 0 24px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.wpcf7-form .wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    accent-color: #00582d;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
}

.wpcf7-form .privacy-link,
.wpcf7-form .wpcf7-acceptance a.privacy-link {
    color: #00a7ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.wpcf7-form .privacy-link:hover {
    opacity: 0.6;
}

.wpcf7-form input.wpcf7-submit,
.wpcf7 form .wpcf7-submit {
    margin-top: 8px;
}

@media (max-width:500px){
    .wpcf7-form .wpcf7-acceptance label {
        gap: 8px;
        font-size: 14px;
    }
    .wpcf7-form .wpcf7-acceptance input[type="checkbox"]{
        width:16px;
        height:16px;
    }
    .wpcf7-form input.wpcf7-submit{ width: 180px; }
}

/*=============================================================
フッターメニュー
=============================================================*/
/* ベースリセット */
.p-footer-nav,
ul.p-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* --- PC / タブレット --- */
@media (min-width: 500px) {
  .p-footer-nav,
  ul.p-footer-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0 40px;
  }

  .p-footer-nav > li {
    flex: 1 1 calc(33.333% - 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .p-footer-nav > li > a {
    display: inline-block;
    position: relative;
    padding-left: 36px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
  }


  .p-footer-nav > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: #00582d;
    border-radius: 2px;
  }


  .p-footer-nav .sub-menu {
    list-style: none;
    margin: 6px 0 0 36px;
    padding: 0;
  }
  .p-footer-nav .sub-menu li {
    margin: 6px 0;
  }
  .p-footer-nav .sub-menu a {
    display: inline-block;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    white-space: normal;
  }
}


/* --- スマホ --- */
@media (max-width: 499px) {
  .p-footer-nav,
  ul.p-footer-nav {
    display: block !important;
    width: 100%;
  }

  .p-footer-nav > li {
    margin-bottom: 18px;
  }

  .p-footer-nav > li > a {
    display: inline-block;
    position: relative;
    padding-left: 28px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    white-space: normal;
  }

  .p-footer-nav > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 3px;
    background: #00582d;
    border-radius: 2px;
  }

  .p-footer-nav .sub-menu {
    margin: 6px 0 0 28px;
    padding: 0;
  }
  .p-footer-nav .sub-menu li {
    margin: 4px 0;
  }
}

.p-footer-nav a {
  transition: opacity 0.18s ease;
}
.p-footer-nav a:hover,
.p-footer-nav a:focus {
  opacity: 0.7;
}