@charset "utf-8";

/*=================================================================================================================================*/
/** 個別指定 for スマートフォン
/*=================================================================================================================================*/

/*---------------------------------------------
 ** 740px
---------------------------------------------*/
@media screen and (max-width: 740px) {
  /*---------------------------------------------
	body
---------------------------------------------*/
  html {
    scroll-behavior: smooth;
  }
  body {
    font-size: 15px;
    line-height: 1.8;
    border: none;
  }
  p {
    font-size: 15px;
  }

  .only_pc_none {
    display: block !important;
  }
  .only_sp_none {
    display: none !important;
  }
  .sp_br {
    display: inline;
  }

  /*画像*/
  img {
    max-width: 100%;
    height: auto;
  }

  header {
    padding-bottom: 130px;
  }

  #lower header {
    padding-bottom: 0px;
  }
  header > ul {
    margin-top: 60px;
  }

  nav {
    background: #333;
    padding-top: 0;
    height: 60px;
    position: fixed;
    top: 0;
  }

  nav > div > div h1 {
    width: 100%;
    background: url(../img/logo01.png) no-repeat left 2% top 12px;
    background-size: 140px auto;
    padding: 24px 0 10px 150px;
    color: #fff;
    font-size: 80%;
    box-sizing: border-box;
  }

  .hamburger {
    display: block;
    position: fixed;
    z-index: 3;
    right: 8px;
    top: 8px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    text-align: center;
    background: #000000a3;
  }
  .hamburger span {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    left: 6px;
    background: #fff;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
  }
  .hamburger span:nth-child(1) {
    top: 10px;
  }
  .hamburger span:nth-child(2) {
    top: 20px;
  }
  .hamburger span:nth-child(3) {
    top: 30px;
  }

  /* ナビ開いてる時のボタン */
  .hamburger.active span:nth-child(1) {
    top: 16px;
    left: 6px;
    background: #fff;
    -webkit-transform: rotate(315deg);
    -moz-transform: rotate(315deg);
    transform: rotate(315deg);
  }

  .hamburger.active span:nth-child(2),
  .hamburger.active span:nth-child(3) {
    top: 16px;
    background: #fff;
    -webkit-transform: rotate(-315deg);
    -moz-transform: rotate(-315deg);
    transform: rotate(-315deg);
  }

  .globalMenuSp {
    position: fixed;
    z-index: 2;
    top: 60px;
    left: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }

  .globalMenuSp ul {
    margin: 0 auto;
    padding: 0;
    width: 100%;
  }

  .globalMenuSp ul li {
    list-style-type: none;
    padding: 0;
    width: 100%;
    transition: 0.4s all;
    border-bottom: 1px solid #fff;
    border-left: 0 !important;
    border-right: 0 !important;
    margin: 0 !important;
  }
  .globalMenuSp ul li:last-child {
    padding-bottom: 0;
  }
  .globalMenuSp ul li:hover {
    background: #ddd;
  }

  .globalMenuSp ul li a {
    display: block;
    color: #fff;
    padding: 1em 0;
    text-decoration: none;
  }

  /* このクラスを、jQueryで付与・削除する */
  .globalMenuSp {
    pointer-events: none;
  }
  .globalMenuSp.active {
    opacity: 100;
    pointer-events: visible;
  }

  #top_main {
    max-width: 300px;
    position: absolute;
    top: 65%;
  }
  #top_main p {
    font-size: 80%;
  }
  #top_main img {
    max-width: 160px;
    margin-bottom: 2%;
  }

  #lower_main {
    width: 50%;
    max-width: 300px;
    position: absolute;
    top: 50%;
    padding: 1.5% 2%;
  }
  .plan #lower_main {
    width: 70%;
  }
  #lower_main h2 {
    font-size: 100%;
    margin-bottom: 5px;
  }
  .plan #lower_main h2 {
    font-size: 80% !important;
  }
  @media screen and (max-width: 340px) {
    #lower_main h2 {
      font-size: 90% !important;
    }
    .plan #lower_main h2 {
      font-size: 80% !important;
    }
  }
  #lower_main p {
    font-size: 80%;
    font-weight: 300;
    line-height: 1.4;
  }

  #pageTop {
    position: fixed;
    bottom: 0;
    right: 0px;
    z-index: 999;
  }

  h2 span {
    font-size: 120%;
    letter-spacing: 0;
  }

  @media screen and (max-width: 340px) {
    h2 span {
      font-size: 100%;
    }
  }
  .btn_con a {
    width: 80%;
    max-width: 300px;
    font-size: 150%;
    letter-spacing: 0.2em;
    padding: 20px 0;
  }
  .top_con section > div:nth-of-type(2).cap01::before {
    font-size: 120%;
    top: 8px;
    left: 10px;
  }
  .top_con section > div:nth-of-type(2).cap02::before {
    font-size: 120%;
    top: 8px;
    left: 10px;
  }

  .top_con section > div:nth-of-type(1) p {
    width: 100%;
    background: url(../img/icon01.png) no-repeat center top;
    background-size: 30px auto;
    text-align: center;
    padding: 25px 0 0 3px;
    margin: 6% auto 1%;
    font-size: 90%;
  }
  .top_con section > div:nth-of-type(1) h3 {
    width: 100%;
    font-size: 110%;
    letter-spacing: 0;
    border-left: 0;
    padding-left: 3%;
    box-sizing: border-box;
    padding-bottom: 0.7em;
    font-family: "Noto Serif JP", serif;
    padding-left: 0;
  }
  @media screen and (max-width: 340px) {
    .top_con section > div:nth-of-type(1) h3 {
      font-size: 90%;
    }
  }
  .top_con section.top_map > div:nth-of-type(1) p {
    width: 100%;
    background: url(../img/icon01.png) no-repeat center top;
    background-size: 30px auto;
    text-align: center;
    padding: 25px 0 0;
    margin: 5% auto 0;
    font-size: 90%;
  }
  .top_con section.top_map > div:nth-of-type(1) h3 {
    width: 100%;
    font-size: 110%;
    letter-spacing: 0;
    border-left: 0;
    padding-left: 3%;
    box-sizing: border-box;
    padding-bottom: 0.7em;
    font-family: "Noto Serif JP", serif;
    padding-left: 0;
  }

  @media screen and (max-width: 340px) {
    .top_con section.top_map > div:nth-of-type(1) h3 {
      font-size: 90%;
    }
  }
  #lower h3 {
    font-size: 120%;
    letter-spacing: 0.1em;
    font-family: "Noto Serif JP", serif;
    text-align: center;
    margin-bottom: 3%;
  }
  @media screen and (max-width: 340px) {
    #lower h3 {
      font-size: 100%;
      letter-spacing: 0;
    }
  }
  .read {
    width: 100%;
  }
  #lower h3 + img {
    width: 100%;
  }

  .dl_col3 {
    width: 98%;
    margin: 0 auto;
  }
  .dl_col3 dl {
    width: 48%;
    margin-right: 4%;
  }
  .dl_col3 dl:nth-child(3n) {
    margin-right: 4%;
  }
  .dl_col3 dl:nth-child(2n) {
    margin-right: 0;
  }
  .dl_col3 dl dd {
    font-size: 80%;
  }
  .life_data {
    width: 100%;
  }
  .life_data > div {
    width: 100%;
    font-size: 80%;
  }
  .life_data > div p {
    font-size: 90%;
  }
  .life_data > div ul li {
    display: inline-block;
  }
  .life_data > div ul li::after {
    content: " / ";
  }

  .shirononishi {
    width: 100%;
  }
  .shirononishi a {
    width: 49%;
  }

  .modalWrapper {
    transform: translate(-50%, -50%);
    width: 95%;
    max-height: 90%;
    padding: 30px 10px;
    overflow: scroll;
  }
  .modalWrapper h3 {
    font-size: 120% !important;
    font-family: "Noto Sans JP", sans-serif !important;
  }
  .modalWrapper p {
    font-size: 80% !important;
  }

  .history {
    font-size: 140%;
    padding: 15px 0 40px 0;
    text-align: center;
  }
  #openModal {
    top: 45px;
    right: 0;
    left: 0;
    margin: 0 auto;
    padding: 0 0 0 0px;
    text-align: center;
  }

  .gallery h3 {
    width: 100%;
    font-size: 120% !important;
    background: url(../img/icon01.png) no-repeat top 8px left;
    background-size: 30px auto;
    padding-left: 40px;
  }

  .g_switch {
    width: 100%;
  }
  .gallery p {
    width: 100%;
  }
  .plan_galle ul li {
    width: 32%;
    margin-right: 2%;
    margin-bottom: 2%;
  }
  .plan_galle ul li:nth-child(5n) {
    margin-right: 2%;
  }
  .plan_galle ul li:nth-child(3n) {
    margin-right: 0;
  }
  .madori_data h4 {
    text-align: center;
    font-size: 140%;
  }

  .madori_data h4 span::after {
    margin-left: 3px;
    margin-right: 15px;
  }
  .madori_data > div > div {
    width: 100%;
  }
  .family div dl dt {
    font-size: 80%;
  }
  .family div dl dt span {
    font-size: 140%;
  }
  .family div:nth-of-type(1) dl dd {
    font-size: 100%;
    background: url(../img/plan/family01.png) no-repeat center top;
    background-size: 50% auto;
    padding-right: 0;
    padding-top: 220px;
    box-sizing: border-box;
  }
  .family div:nth-of-type(2) dl dd {
    font-size: 100%;
    background: url(../img/plan/family02.png) no-repeat center top;
    background-size: 50% auto;
    padding-right: 0;
    padding-top: 220px;
    box-sizing: border-box;
  }
  .plan_tbl th {
    width: 22%;
    padding: 10px 10px;
    text-align-last: unset;
    text-justify: unset;
    font-size: 90%;
  }
  .plan_tbl td {
    width: 78%;
    padding: 10px 10px;
    font-size: 90%;
  }
  .plan_tbl td br {
    display: none;
  }

  @media screen and (max-width: 340px) {
    .plan_tbl th {
      font-size: 80%;
      padding: 10px 5px;
    }
    .plan_tbl td {
      font-size: 80%;
      padding: 10px 5px;
    }
  }

  .company dl {
    width: 90%;
    font-size: 120%;
    margin: 0 auto 7%;
  }

  .company dl dt a,
  .company dl dt span {
    padding: 15px 10px;
  }
  .faq dl {
    font-size: 90%;
  }
  .faq dl dt {
    width: 100%;
    min-height: auto;
    margin-bottom: 25px;
    padding: 15px 6%;
  }
  .faq dl dt::after {
    width: 20px;
    height: 35px;
    background: url(../img/contact/arrow02.png) no-repeat top left;
    background-size: 100% auto;
    top: auto;
    bottom: -40px;
    right: 0;
    left: 0;
    margin: 0 auto;
  }
  .faq dl dd {
    width: 100%;
    margin-bottom: 40px;
    min-height: auto;
    padding: 15px 6%;
  }
  .faq dl dt::before,
  .faq dl dd::before {
    top: -5px;
    left: -5px;
  }

  footer {
    padding: 5% 2% 1%;
  }
  footer ul {
    display: none;
  }

  #pageTop a {
    width: 50px;
    height: 50px;
    opacity: 0.9;
  }
  #pageTop a:hover {
    opacity: 0.9;
  }
}

/* スマホのときのみ電話をかける */
@media (min-width: 740px) {
  a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
  }
}
