/*
Theme Name: tera-block2
Theme URI:
Author: 東京テクニカルカレッジ 施設貸し
Author URI:
Description:
Version:
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tera-block2
Tags:
*/

/**************************************
 * 基本
 */
html {
  scroll-behavior: smooth;
}

@media (min-width: 600px) {
  html {
    scroll-padding-top: 96px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 50px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 4vw;
  }
}

main {
  margin: 0;
}

@media (max-width: 600px) {

  main p,
  main ul,
  main ol {
    font-size: 1.1em;
  }
}

/**************************************
 * リスト
 */
ul {
  padding-left: 1.8em;
}

ol {
  padding-left: 1.8em;
}

::marker {
  color: #0693e3;
}

.spacing li {
  margin: 1em 0;
}

/**************************************
 * テーブル
 */
th {
  white-space: nowrap;
}

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

/**************************************
 * リンク
 */
a {
  filter: brightness(1);
  transition: all 0.5s;
}

a:hover {
  filter: brightness(1.1);
}

a img {
  transition: all 0.5s;
}

/* a img:hover {
  opacity: 0.5;
} */

/* シャイニー */
.shine a {
  position: relative;
  display: table;
  overflow: hidden;
  width: 100%;
}

.shine a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(130deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 80%);
  transition: .5s;
}

.shine a:hover::before {
  top: 0;
  left: 100%;
}

/**************************************
 * 共通デザイン
 */

/* 表示エリア */
@media (min-width: 599px) {
  .narrow {
    max-width: 800px;
    margin: auto;
  }
}

/* 文字位置 */
@media (max-width: 600px) {
  .sp-center {
    text-align: center !important;
  }
}

/**************************************
 * GoogleMap
 */
iframe {
  margin: 0;
  vertical-align: bottom;
}


/**************************************
 * ブロックデザイン
 */
.wp-block-media-text {
  gap: 1.5em;
}

.wp-block-media-text>.wp-block-media-text__content {
  padding: 0;
}

.wp-block-media-text__content *:first-child {
  margin-top: 0;
}

.wp-block-media-text__content *:last-child {
  margin-bottom: 0;
}

/**************************************
 * ボタン
 */
.btn {
  text-align: center;
  width: 80%;
}

.btn.-w50 {
  width: 40%;
}

/* パターン */
.btn.btn01 a {
  padding: 1.6em 1em 0.5em;
}


@media (max-width: 600px) {
  .btn {
    width: 100% !important;
  }
}

/* シャイニー */
.btn a {
  position: relative;
  overflow: hidden;
  max-width: 80%;
}

.btn a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(130deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 80%);
  transition: .5s;
}

.btn a:hover::before {
  top: 0;
  left: 100%;
}

/* ボタン無効化 */
.disable a {
  pointer-events: none;
  background-color: #aaa !important;
  box-shadow: 1px 1px 4px #999 !important;
}

.btn.btn01.disable a::after {
  content: "受付を終了しました";
  position: absolute;
  left: 50%;
  top: 0.8em;
  transform: translate(-50%, 0);
  color: #fff;
  font-size: 70%;
  width: 100%;
}


/**************************************
 * ヘッダー
 * 900px以下はハンバーガーメニュー
 */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 0 6px #aaa;
}

@media (max-width: 900px) {
  header.wp-block-template-part>div {
    background-color: #ffffff;
  }
}

@media (min-width: 900px) {
  header.wp-block-template-part>div {
    background-color: #ffffff80;
    backdrop-filter: blur(100px);
  }
}

header~.wp-block-group {
  margin-top: 0;
}

/* 職業訓練はこちら */
header .textLink a {
  color: #333;
  text-decoration: none;
}

header .textLink a:hover {
  color: #0693e3;
  text-decoration: underline;
}

/**************************************
 * スマホヘッダー
 */
/* スマホヘッダー時はロングロゴに変更 */
@media (max-width: 900px) {
  .logoLong {
    width: 70vw;
    max-width: 400px;
  }
}

/* 職業訓練はこちらを非表示 */
@media (max-width: 900px) {
  header .textLink {
    display: none;
  }
}

/* ハンバーガーメニュー */
@media (min-width: 900px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: block !important;
    width: 100%;
    position: relative;
    z-index: auto;
    background-color: inherit;
  }
}

@media (min-width: 600px) {
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }

  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }
}

.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
  height: 3em;
  width: 3em;
}

@media (max-width: 600px) {

  .wp-block-navigation__responsive-container-close svg,
  .wp-block-navigation__responsive-container-open svg {
    height: 2em;
    width: 2em;
  }
}

/* スマホメニュー幅 */
.sp-header ul.wp-block-navigation__container {
  width: 90%;
}

/* ナビ内の文字を左揃え */
header .wp-block-navigation .wp-block-navigation-item {
  align-items: flex-start !important;
  width: 100%;
}

/* 表示・非表示切り替え */
@media (min-width: 900px) {
  .sp-header {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .pc-header {
    display: none !important;
  }
}

/* スマホボタン追加 */
.sp-header {
  gap: 0;
}

.spHeaderBtnList {
  width: 100%;
}

.spHeaderBtn {
  flex: 1;

  a {
    display: block;
    background-color: #666666;
    background-image: linear-gradient(90deg, #0000001a 0%, transparent 20%, transparent 80%, #0000001a 100%);
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    padding: 0.6em;
    transition: all 0.5s;
  }

  a:hover {
    filter: brightness(1.2);
  }

  &.-job a {
    background-color: #2d9c14;
  }

  &.-rental a {
    background-color: #0693e3;
  }

  &.-kensyu a {
    background-color: #3f51b5;
  }
}


@media (max-width: 600px) {
  .spHeaderBtn a {
    font-size: 2.8vw;
    padding: 0.6em;
  }
}

/**************************************
 * フッター
 */
footer.wp-block-template-part {
  margin: 0;
}

@media (max-width: 600px) {
  footer.wp-block-template-part {
    padding-bottom: 3.8em;
  }

  footer .tel {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }
}

.footer a {
  color: #fff;
  text-decoration: none;
}

/* フッター画像 */
.footerImg {
  background-image: url("img/single_eyecatch.jpg");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 200px;
  height: 200px;
}

@media (min-width: 600px) {
  .footerImg {
    background-size: auto 200px;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .footerImg {
    background-size: auto 100px;
    height: 100px;
  }
}


/**************************************
 * ページトップに戻る
 */
.pagetop {
  position: fixed;
  bottom: 2em;
  right: 2em;
  z-index: 1000;
}

.pagetop a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  border-radius: 50%;
  box-shadow: 0 0 6px #aaa;
  color: #fff;
  font-size: 0.7em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 3em;
  height: 3em;
  padding: 1em;
  transition: all 0.5s;
  opacity: 0;
}

.pagetop.is-active a {
  opacity: 1;
  visibility: visible;
}

.pagetop a:hover {
  background-color: #dace29;
}

/**************************************
 * スマホ下部固定ボタン
 */
.spBottom {
  position: fixed;
  bottom: 0;
  z-index: 1000;
  width: 100%;
}

.spBottom a {
  position: relative;
  display: inline-block;
  background-color: #32373c;
  box-shadow: 0 -2px 3px #aaa;
  color: #fff;
  font-size: 0.8em;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: none;
  padding: 2.2em 0 1em;
  width: 50%;
}

.spBottom a:first-child {
  background-color: #0693e3;
}

.spBottom a::after {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 50%;
  transform: translate(-50%, 0);
  display: block;
  width: 1.4em;
  height: 1.4em;
  background-image: url(img/icon13.png);
  background-repeat: no-repeat;
  background-size: 1.4em auto;
}

.spBottom a:first-child::after {
  content: "";
  background-image: url(img/icon12.png);
}

/**************************************
 * PC下部固定ボタン
 */
.pcBottom {
  position: fixed;
  bottom: 3em;
  right: 8em;
  z-index: 1000;
}

.pcBottom a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  border-radius: 50px;
  box-shadow: 0 0 6px #aaa;
  color: #fff;
  font-size: 0.7em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  padding: 2.6em 1em 1em;
  transition: all 0.5s;
  opacity: 0;
}

.pcBottom.is-active a {
  opacity: 1;
  visibility: visible;
}

.pcBottom a:hover {
  background-color: #2d9c14;
}

.pcBottom a::after {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 50%;
  transform: translate(-50%, 0);
  display: block;
  width: 1.4em;
  height: 1.4em;
  background-image: url(img/icon12.png);
  background-repeat: no-repeat;
  background-size: 1.4em auto;
}


/**************************************
 * フォーム
 */
.form {
  dd {
    margin: 0;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5em;
    border: solid 1px #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
  }

  input[type="date"],
  select {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    box-sizing: border-box;
    border: solid 1px #ccc;
    border-radius: 5px;
    color: #333;
    font-size: 1em;
    font-family: inherit;
    padding: 0.5em;
    vertical-align: middle;
  }

  @media screen and (max-width: 600px) {
    .wpcf7-date::before {
      content: '日付選択';
      font-size: 0.6em;
    }
  }

  input[type="submit"] {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.8em 2em;
    font-size: 1.2em;
    border-radius: 50px;
    min-width: 40%;
    display: block;
    margin: auto;
    transition: all 0.5s;
  }

  input[type="submit"]:hover {
    background-color: #0693e3;
  }

  .required {
    color: #0693e3;
    font-size: 0.8em;
  }
}

/* 施設利用フォームカレンダーエラーメッセージ用 */
select {
  padding: 0.36rem 0.66rem;
  border: solid 1px #ccc;
}

.error .wpcf7-not-valid-tip {
  display: none;
}

.error .error-message {
  color: #dc3232;
  display: none;
}

.error:has(.wpcf7-not-valid-tip) .error-message {
  display: block;
}

.error br {
  display: none;
}

/**************************************
 * フロントページ
 */
/* 施設リスト */
.facilityList {
  margin-top: 3em;

  h3 {
    text-align: center;
  }

  img {
    border-radius: 10px;
  }

  .wp-block-columns {
    margin-bottom: 3.5em;
  }

  .wp-block-columns:last-child {
    margin-bottom: 0;
  }

  .is-layout-flow {
    display: flex;
    flex-direction: column;

    ul {
      margin-bottom: 2em;
    }

    .wp-block-buttons {
      margin-top: auto;

      .-small {
        font-size: 0.8em;
      }
    }
  }
}

@media (max-width: 900px) {
  .facilityList ul {
    font-size: 0.9em;
  }
}

/* @media (max-width: 900px) {
  .facilityList ul {
    display: table;
    margin-left: auto;
    margin-right: auto;
  }
} */

/* ご利用の流れ */
.usageFlow>div {
  position: relative;
  background-color: #f0f0f0;
  padding: 1.6em;
  border-radius: 10px;
  margin-bottom: 3em;
}

.usageFlow>div::after {
  content: "";
  display: block;
  border-top: solid 16px #0693e3;
  border-bottom: solid 0 transparent;
  border-left: solid 54px transparent;
  border-right: solid 54px transparent;
  position: absolute;
  bottom: -2.1em;
  left: 50%;
  transform: translate(-50%, 0);
}

.usageFlow>div:last-child::after {
  content: "";
  display: none;
}

.usageFlow h3 {
  font-size: 1.2em;
}

/* 料金表 */
.feeTable {
  table {
    margin: 0 auto;
  }

  a {
    color: #0693e3;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }
}


/**************************************
 * アクセス
 */

.access {
  background: linear-gradient(to bottom, #ffffff, #bed2b921);

  h3 {
    border-left: solid 8px #0693e3;
    color: #0693e3;
    font-size: 1.4em;
    font-weight: 400;
    padding: 0.3em 0.5em;
    margin: 2em 0 1em;
  }
}

.access>div {
  padding-top: 80px;
}

@media (max-width: 600px) {
  .accessItem p {
    font-size: 0.9em;
  }
}

.accessItem img {
  border-radius: 10px;
}

.accessItem ul {
  font-size: 0.9em;
}

/* アクセスナビ */
.accessNav {
  position: sticky;
  z-index: 100;
  padding: 0.8em 0;
  margin: 0;
  background-color: #ecececd1;
  backdrop-filter: blur(100px);
  font-size: 0.8em;

  a {
    color: #0693e3;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }
}

@media (max-width: 600px) {
  .accessNav {
    background-color: #f0f0f0;
    top: 20vw;
  }
}


@media (min-width: 600px) {
  .accessNav {
    top: 105px;
  }
}

@media (min-width: 900px) {
  .accessNav {
    top: 66px;
  }
}


/**************************************
 * 施設詳細
 */
.roomItem {
  background: linear-gradient(to bottom, #ffffff, #bed2b921);
  padding: 80px 1em;
  margin: 0;

  h3 {
    border-left: solid 8px #0693e3;
    color: #0693e3;
    font-size: 1.4em;
    font-weight: 400;
    padding: 0.3em 0.5em;
    margin: 2em 0;
  }

  img {
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .roomItem table {
    font-size: 0.8em;
  }
}




.roomPhotoList figure {
  text-align: center;
}

@media (min-width: 600px) {
  .roomPhotoList {
    display: flex;
    justify-content: center;
    gap: 1em;
  }

  .roomPhotoList figure {
    width: 33%;
    margin: 0 !important;
  }

  .roomPhotoList img {
    width: 100%;
    height: 240px;
    object-fit: cover;
  }
}

.otherFacilityList {
  margin: 0;
  padding: 3em 1em;
}


/**************************************
 * 表示・非表示
 */
@media (min-width: 900px) {
  .tab {
    display: none !important;
  }
}

@media (min-width: 600px) {
  .sp {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .pc {
    display: none !important;
  }

  .sp-block {
    display: block !important;
  }
}
