/*
Theme Name: 高宮城2
Theme URL: 
Description: 
Author: enets
Version: 260119
*/

/* 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: #e7cd7e;
}
.pg_table th {
  width: 30%;
  background-color: #dfbc53;
  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: #dfbc53;
}

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

.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: #c19a24;
  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;
}

/* 有料老人ホーム
============================================================= */
.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: #e7cd7e;
  font-weight:500;
 }
}

.table-fee tbody {
  & th {
    background-color: #e7cd7e;
    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: #e7cd7e;
    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;
    }
  }
}

table .example {
  background-image: linear-gradient(to right top, transparent calc(50% - 0.5px), #ccc 50%, #ccc calc(50% + 0.5px), transparent calc(50% + 1px));
}

/* 
============================================================= */
.wp-block-wrapper {
  max-width: 960px;
  width:92%;
  margin:auto;
}