/*
Theme Name: 高宮城3
Theme URL: 
Description: 
Author: enets
Version: 1
*/

/* Table
============================================================= */
.pg_table {
  width: 92%;
  max-width: 740px;
  margin: auto;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
}
@media only screen and (max-width: 640px) {
  .pg_table {
    border-spacing: 0;
  }
}
.pg_table th,
.pg_table td {
  vertical-align: middle;
  padding: 0.5em 0;
}
.pg_table tr:nth-child(even) th {
  background-color: #f6baaf;
}
.pg_table th {
  width: 30%;
  background-color: #fdece8;
  font-weight: 500;
  letter-spacing: 0.1em;
}
@media only screen and (max-width: 640px) {
  .pg_table th {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
  }
}
.pg_table td {
  width: 70%;
  line-height: 1.5em;
  padding-left: 30px;
}
@media only screen and (max-width: 640px) {
  .pg_table td {
    display: block;
    width: 100%;
    padding: 5px 0 30px;
    text-align: center;
  }
}
.pg_table td span {
  display: inline-block;
}

/* Form
=============================================================*/
.contact_form {
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 1rem;
  width: 100%;
}

@media only screen and (max-width: 640px) {
  .contact_form {
    border-spacing: 0;
  }
}

.contact_form th,
.contact_form td {
  text-align: left;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.contact_form th {
  width: 30%;
  font-weight: 400;
  -webkit-font-feature-settings: "palt";
          font-feature-settings: "palt";
  line-height: 1.2em;
}

@media only screen and (max-width: 640px) {
  .contact_form th {
    display: block;
    width: 100%;
    text-align: center;
  }
}

.contact_form th > div {
  padding: 1em;
  background-color: #f6baaf;
}

.contact_form tr:nth-child(even) th > div {
  background-color: #fdece8;
}

.contact_form td {
  width: 70%;
  line-height: 1.6em;
  vertical-align: middle;
}

@media only screen and (max-width: 640px) {
  .contact_form td {
    width: 100%;
    display: block;
    text-align: center;
    padding: 1rem 0 4em;
  }
}

.wpcf7 {
  width: 92%;
  max-width: 740px;
  margin: auto;
}

.wpcf7-radio, .wpcf7-checkbox {
  display: block;
  text-align: left;
}

.wpcf7-radio > span, .wpcf7-checkbox > span {
  padding: 0.8rem 0.5rem;
}

.wpcf7-radio input, .wpcf7-checkbox input {
  font-size: 1.4rem;
  display: inline-block;
  margin: -0.25em 0 0 0;
}

.wpcf7-submit {
  width: 100%;
  border: none;
  background-color: #f6baaf;
  padding: 0.5em 0;
  cursor: pointer;
  letter-spacing: 0.2em;
}

@media only screen and (min-width: 961px) {
  .wpcf7-submit {
    font-size: 2rem;
  }
}

@media only screen and (min-width: 865px) and (max-width: 960px) {
  .wpcf7-submit {
    font-size: calc(1.9rem + ((1vw - 0.865rem) * (1.05263)));
  }
}

@media only screen and (min-width: 641px) and (max-width: 864px) {
  .wpcf7-submit {
    font-size: calc(1.8rem + ((1vw - 0.641rem) * (0.44843)));
  }
}

@media only screen and (min-width: 481px) and (max-width: 640px) {
  .wpcf7-submit {
    font-size: calc(1.7rem + ((1vw - 0.481rem) * (0.62893)));
  }
}

@media only screen and (min-width: 321px) and (max-width: 480px) {
  .wpcf7-submit {
    font-size: calc(1.6rem + ((1vw - 0.321rem) * (0.62893)));
  }
}

@media only screen and (max-width: 320px) {
  .wpcf7-submit {
    font-size: 1.6rem;
  }
}

.wpcf7-submit:hover {
  opacity: 0.8;
}

.wpcf7-select {
  font-size: 1.6rem;
}

.wpcf7-text {
  font-size: 1.6rem;
  width: 100%;
  display: block;
}

.wpcf7-textarea {
  width: 100%;
  resize: vertical;
  display: block;
}

.wpcf7-response-output {
  margin: 0 auto !important;
  text-align: center;
  line-height: 1.6em;
}

.wpcf7-captchar {
  max-width: 8em;
}

/* Home
============================================================= */

/* 一日の流れ */
.daily {
  width: 92%;
  max-width: 960px;
  margin: 0 auto;
  background-color: #fdece8;
  border-radius: 10px;
  padding: 50px;
}

.daily-tbl__wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
}

.daily-tbl {
  background-color: white;
  font-size: 1.2em;
  width: 50%;
  font-weight: 400;
}

.daily-tbl td {
  border: 2px solid #f99f93;
  padding: .5em 1em;
  line-height: 1.5em;
  vertical-align: middle;
}

.daily-tbl td:first-child {
  width: 100px;
  text-align: center;
  font-family: var(--font-family-roboto);
}

.daily-tbl__time {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 300px;
}

.daily-tbl__line {
  border-top: none;
  padding-top: 0;
}

.daily-img__wrapper {
  display: flex;
  align-items: center;
  width: 25%;
}

.daily-img {
  width: 100%;
}

.daily-text__wrapper {
  margin-top: 20px;
  line-height: 1.5em;
  text-align: center;
}

.daily-text span {
  font-size: 1.2em;
  font-weight: 500;
}

.daily-text {
  display: inline-block;
  text-align: left;
}

@media only screen and (min-width: 641px) and (max-width: 864px) {
  .daily-img__wrapper {
    display: none;
  }

  .daily-tbl {
    width: 100%;
  }
}

@media only screen and (max-width: 640px) {
  .daily-img__wrapper {
    display: none;
  }

  .daily-tbl td:first-child {
    width: 25%;
  }

  .daily {
    padding: 30px;
  }

  .daily-tbl__wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    align-items: center;
  }

  .daily-tbl {
    font-size: 1em;
    width: 100%;
  }

  .daily-tbl__small {
    font-size: .8em;
  }
}

/* 入居までの流れ */
.flow {
  margin: 0 auto 100px;
  max-width: 960px;

}

.flow-wrapper {
  width: 60%;
  margin: 0 auto;
}

.flow-li__grp {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.flow-li {
  background-color: #fdece8;
  height: 3em;
  margin: 10px 0;
  border-radius: 15px;
  font-size: 1.2em;
  padding: 1em 0 0 1em;
  font-weight: 400;
}

.flow-li span {
  color: #f29200;
  font-weight: 700;
  font-size: 1.2em;
  font-family: Arial;
}

.flow__small {
  width: 90%;
  margin-left: 10%;
  text-indent: -1em;
  line-height: 1.5em;
  font-size: 0.9em;
}

@media only screen and (max-width: 864px) {
  .flow-wrapper {
    width: 92%;
  }

  .flow-li {
    font-size: 1em;
  }

  .flow-li span {
    font-size: 1.2em;
  }
}

@media only screen and (min-width: 641px) and (max-width:864px) {
  .flow-wrapper {
    width: 92%;
  }

  .flow-li {
    font-size: 1em;
  }

  .flow-li span {
    font-size: 1.2em;
  }

}

@media only screen and (max-width: 640px) {
  .flow-wrapper {
    width: 92%;
  }

  .flow-li {
    font-size: .9em;
  }

  .flow-li span {
    font-size: 1.2em;
  }
}

/* 有料老人ホーム
============================================================= */
.sect-fee {
  width:740px;
  max-width:92%;
  margin:0 auto;
}

.fee-title {
  font-size:24px;
  color: #004628;
  margin:0 0 10px;
}

.table-title {
  font-size:18px;
  color: #004628;
  margin:0 0 10px;
  & small {
    color: #006f3f;
    font-size: 0.7em;
  }
}

@media only screen and (max-width: 640px) {
  .table-title {
    font-size:18px;
  }
}

.fee-note {
  margin:8px 0 0;
  font-size:14px;
  font-feature-settings: "palt";
  line-height:1.5em;
}

.fee-text {
  font-size:18px;
  line-height:1.5em;
}

@media only screen and (max-width: 767.98px) {
  .fee-text {
    font-size:16px;
  }
  
  .fee-text--center {
    text-align:center;
  }
}

/* 料金
============================================================= */
.table-fee {
  position: relative;
  overflow: visible;
  border-collapse: collapse;
  font-size:18px;
  width: 100%;
  border: 1px solid #666;
  table-layout: fixed;
  
  & th,
  & td{
    text-align: center;
    padding:0.5em;
    vertical-align: middle;
    border: 1px solid #666;
  }

  & td {
    font-size:18px;
  }
}

.table-fee thead {
 & th,
 & td {
  background-color: #f6baaf;
  font-weight:500;
 }
}

.table-fee tbody {
  & th {
    background-color: #f6baaf;
    font-weight:500;
  }
  
  & td {
    font-size:1.2em;
  }
}

@media only screen and (max-width: 640px) {
  .table-fee {
    border-collapse: collapse;
    font-size:12px;
    table-layout: fixed;

    & td {
      font-size:14px;
    }
  }
}

.table-fee__unit {
  margin:-19px 0 5px;
  font-size: 14px;
  text-align:right;
}



/* レンタル
============================================================= */

.table-rental {
  border-collapse: collapse;
  font-size:18px;
  width: 100%;
  border: 1px solid #666;
  
  & th,
  & td{
    padding:0.5em;
    vertical-align: middle;
    border: 1px solid #666;
  }

  & th {
    width:20%;
    text-align: center;
    background-color: #f6baaf;
    font-weight:500;
  }

  & td {
    line-height:1.5em;
    padding:0.5em 1em;
  }


}

@media only screen and (max-width: 640px) {
  .table-rental {
    border-collapse: collapse;
    font-size:12px;

    & th {
      width:auto;
      white-space: nowrap;
    }
  }
}
