/*
Theme Name: affinger-child
Template: affinger
Description: AFFINGER6 対応
Version: 20240601
*/

/*media Queries PC
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 770px) {
  .modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1;
  }
  .modal_overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  #header {
    font-family: メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MSPGothic", Helvetica, sans-serif, Osaka;
    position: relative;
    background: #FFFFFF;
    height: auto;
    min-width: 1120px;
  }
  #header .header_border {
    background: #89BE1F;
    display: flex;
    gap: 0 20px;
    justify-content: center;
    align-items: center;
    height: 40px;
  }
  #header .header_border p > img {
    display: block;
    margin-bottom: 0;
  }
  #header .header_top_appeal {
    margin-bottom: 0;
  }
  #header .header_border_check {
    font-size: 15px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 0;
  }
  #header .header_border_check span {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
  }
  #header .header_border_check img {
    width: 15px;
    height: 15px;
    vertical-align: middle;
  }
  #header .header_top_tel {
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-bottom: 0;
    cursor: pointer;
  }
  #header .header_top_tel:hover {
    opacity: 0.7;
  }
  #header .header_top_tel span {
    background: #FFFFFF;
    color: #89BE1F;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    font-size: 15px;
    vertical-align: middle;
    margin-right: 5px;
    width: 80px;
    height: 20px;
  }
  #header .modal_close {
    position: absolute;
    top: -50px;
    right: -5px;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  #header .modal_close::before,
  #header .modal_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #333333;
    transform-origin: center;
  }
  #header .modal_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  #header .modal_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  #header .tel_container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 820px;
    max-width: calc(100% - 40px);
    padding: 30px;
    border-radius: 40px;
    background-color: #FFFFFF;
    box-sizing: border-box;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -55%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  #header .tel_container.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
  }
  #header .tel_body {
    display: flex;
    justify-content: space-around;
    gap: 30px;
  }
  #header .modal_title {
    font-size: 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
  }
  #header .modal_title img {
    width: 30px;
    margin-right: 3px;
  }
  #header .tel_num {
    font-size: 40px;
    color: #FF0000;
    font-weight: bold;
    line-height: 1.2;
  }
  #header .time {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 0;
  }
  .header_main {
    display: flex;
    gap: 0 80px;
    justify-content: center;
    align-items: center;
    margin: 13px 0;
  }
  .header_main_lists {
    width: 905px;
    display: flex;
    gap: 0 5px;
  }
  .header_main_list {
    text-align: center;
    width: 60px;
    height: 75px;
    font-size: 10px;
  }
  .header_main_list p {
    margin-bottom: 0;
  }
  .header_main_lists .header_main_list::marker {
    font-size: 0;
  }
  p {
    margin-bottom: 0;
  }
  a {
    color: #333333;
    text-decoration: none;
    img {
      width: 100%;
    }
    &:hover {
      opacity: 0.5;
    }
  }
  .header_main_list_text {
    margin-top: 0;
    color: #333333;
    font-size: 10px;
    font-family: メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MSPGothic", Helvetica, sans-serif, Osaka;
  }
  .gnav_wrapper {
    height: 40px;
    display: flex;
    align-items: center;
  }
  /****************** site search ***********************/
  .gnav_wrapper #___gcse_0 {
    display: flex;
    align-items: center;
  }
  .gnav_wrapper .gsc-control-cse {
    padding: 0;
    font-family: メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MSPGothic", Helvetica, sans-serif, Osaka;
    border: none;
    font-size: 15px;
    background: none;
  }
  .gnav_wrapper form.gsc-search-box {
    font-size: 15px;
    margin-bottom: 0;
  }
  .gnav_wrapper table.gsc-search-box {
    margin-bottom: 0;
  }
  .gnav_wrapper tr {
    position: relative;
    display: flex;
    width: 1120px;
    flex-wrap: wrap;
    box-sizing: border-box;
    border-right: 1px solid #333333;
  }
  .gnav_wrapper table.gsc-search-box td.gsc-input {
    padding-right: 0;
  }
  .gnav_wrapper .gsc-input-box {
    border: 1px solid #333333;
    background: #fff;
    border-radius: 100px;
    width: 300px;
  }
  .gnav_wrapper .gsc-input {
    width: 90% !important;
    height: 28px !important;
    margin: 0 auto !important;
    font-size: 15px;
  }
  .gnav_wrapper .gsib_a {
    padding: 0;
  }
  .gnav_wrapper .gsc-search-button {
    position: relative;
  }
  .gnav_wrapper .gsc-search-button .gsc-search-button-v2 {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 15px;
    height: 15px;
    padding: 0;
    border-radius: 0;
    margin: 0;
  }
  .gnav_wrapper .gsc-search-button .gsc-search-button-v2 svg {
    fill: #333333;
    width: 15px;
    height: 15px;
  }
  .gnav_wrapper td.gsib_b {
    display: none;
  }
  /****************** site search end ***********************/
  .gnav_wrapper:before {
    content: "";
    background: #F5F5F5;
    width: 100%;
    height: 40px;
    display: block;
    position: absolute;
  }
  .gnav_wrapper .gnav {
    display: flex;
    gap: 0 10px;
    width: 1120px;
    margin: 0 auto;
    position: relative;
  }
  .gnav_wrapper .gnav .gnav_top {
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }
  .gnav_wrapper .gnav .gnav_top a {
    border: 1px solid #333333;
    border-radius: 100px;
    color: #333333;
    font-size: 15px;
    background: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    font-family: メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MSPGothic", Helvetica, sans-serif, Osaka;
    padding: 0 10px;
  }
  .gnav_wrapper .gnav .gnav_top a.sougou {
    width: 100px;
    box-sizing: border-box;
  }
  .gnav_wrapper .gnav_inner {
    display: flex;
    align-items: center;
  }
  .gnav_wrapper .gnav_inner .gnav_inner_title {
    position: relative;
    margin-bottom: 0;
  }
  .gnav_wrapper .gnav_inner .gnav_inner_title:hover {
    cursor: pointer;
  }
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 769px) {
  .modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1;
  }
  .modal_overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  #header {
    font-family: メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MSPGothic", Helvetica, sans-serif, Osaka;
    height: auto;
    width: 100vw;
  }
  #header .header_border {
    background: #89BE1F;
    display: flex;
    gap: 0 2.66vw;
    justify-content: center;
    align-items: center;
    height: 8vw;
  }
  #header .header_border p > img {
    display: block;
    margin-bottom: 0;
  }
  #header .header_top_appeal {
    width: 44.4vw;
    margin-bottom: 0;
  }
  #header .header_border_check {
    font-size: 15px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 0;
  }
  #header .header_border_check span {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
  }
  #header .header_border_check img {
    width: 15px;
    height: 15px;
    vertical-align: middle;
  }
  #header .header_top_tel {
    font-size: 4vw;
    font-weight: bold;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-bottom: 0;
    cursor: pointer;
  }
  #header .header_top_tel:hover {
    opacity: 0.7;
  }
  #header .header_top_tel span {
    background: #FFFFFF;
    color: #89BE1F;
    border-radius: 4vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    font-size: 2.66vw;
    vertical-align: middle;
    margin-right: 0.93vw;
    width: 13.33vw;
    height: 4.66vw;
  }
  #header .modal_close {
    position: absolute;
    top: -50px;
    right: -5px;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  #header .modal_close::before,
  #header .modal_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #333333;
    transform-origin: center;
  }
  #header .modal_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  #header .modal_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  #header .tel_container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 820px;
    max-width: calc(100% - 40px);
    padding: 30px;
    border-radius: 40px;
    background-color: #FFFFFF;
    box-sizing: border-box;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -55%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  #header .tel_container.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
  }
  #header .tel_body {
    display: flex;
    flex-direction: column;
  }
  #header .modal_title {
    font-size: 3.73vw;
    display: flex;
    align-items: center;
    font-weight: bold;
    margin: 1vw 0;
  }
  #header .modal_title img {
    width: 5vw;
    margin-right: 2%;
  }
  #header .tel_num {
    font-size: 8vw;
    color: #FF0000;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
  }
  #header .time {
    font-size: 5.33vw;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: left;
  }
  .tel_link {
    margin-top: 3vw;
  }
  .top_link {
    display: flex;
    gap: 1vw;
    position: absolute;
    top: -0.5vw;
    right: -0.5%;
  }
  .top_link .all_top,
  .top_link .service_top {
    width: 24vw;
    height: 9.33vw;
    border: 1px solid #333333;
    border-radius: 1.33vw;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    line-height: 1.3;
    font-size: 3.2vw;
    text-decoration: none;
  }
  .header_main {
    display: flex;
    margin: 2.66vw auto;
    width: 94.66vw;
    position: relative;
  }
  .header_main a  {
    width: 33.8vw;
  }
  .header_main a img {
    width: 33.8vw;
  }
  .header_main_lists {
    display: none;
  }

  /****************** site search ***********************/
  .gnav_wrapper #___gcse_0 {
    display: flex;
    align-items: center;
  }
  .gnav_wrapper .gsc-control-cse {
    padding: 0;
    font-family: メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MSPGothic", Helvetica, sans-serif, Osaka;
    border: none;
    font-size: 15px;
    background: none;
  }
  .gnav_wrapper form.gsc-search-box {
    font-size: 15px;
    margin-bottom: 0;
  }
  .gnav_wrapper table.gsc-search-box {
    margin-bottom: 0;
  }
  .gnav_wrapper tr {
    position: relative;
    display: flex;
    width: 100vw;
    flex-wrap: wrap;
    box-sizing: border-box;
    border-right: 0 !important;
  }
  .gnav_wrapper table.gsc-search-box td.gsc-input {
    padding-right: 0;
  }
  .gnav_wrapper .gsc-input-box {
    border: 1px solid #333333;
    background: #fff;
    border-radius: 100px;
    width: 300px;
  }
  .gnav_wrapper .gsc-input {
    width: 90% !important;
    height: 28px !important;
    margin: 0 auto !important;
    font-size: 15px;
  }
  .gnav_wrapper .gsib_a {
    padding: 0;
  }
  .gnav_wrapper .gsc-search-button {
    position: relative;
  }
  .gnav_wrapper .gsc-search-button .gsc-search-button-v2 {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 15px;
    height: 15px;
    padding: 0;
    border-radius: 0;
    margin: 0;
  }
  .gnav_wrapper .gsc-search-button .gsc-search-button-v2 svg {
    fill: #333333;
    width: 15px;
    height: 15px;
  }
  .gnav_wrapper td.gsib_b {
    display: none;
  }
  /****************** site search end ***********************/

  .gnav_wrapper .gnav {
    display: flex;
    gap: 0 10px;
    width: 90.66vw;
    margin: 0 auto;
    position: relative;
    background-color: #FFFFFF;
  }
  .gnav_wrapper .gnav .gnav_top {
    display: none;
  }
  .gnav_wrapper .gnav .gnav_top a {
    border: 1px solid #333333;
    border-radius: 100px;
    color: #333333;
    font-size: 15px;
    background: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    font-family: メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MSPGothic", Helvetica, sans-serif, Osaka;
    padding: 0 10px;
  }
  .gnav_wrapper .gnav .gnav_top a.sougou {
    width: 100px;
    box-sizing: border-box;
  }
  .gnav_wrapper .gnav_inner {
    display: flex;
    align-items: center;
  }
  .gnav_inner_title {
    position: relative;
    margin-bottom: 0;
  }
  .gnav_inner_title img {
    width: 9.33vw;
  }
  .banner_list {
    background-color: #FFFFFF;
    padding: 2.64vw 1.32vw 2.64vw;
    border-bottom: 1px solid #333333;
    border-top: 1px solid #333333;
  }
  .banner_list a img {
    padding-bottom: 1.32vw;
  }  
}

