/*
Theme Name:tpl03
Template:astra
Version:1.0.0
*/

body {
  letter-spacing: 0.1em;
  /* font-family: 'Zen Old Mincho', serif; */
  font-family: serif;
}
p, th, td, li {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
}
.font_default {
  font-family: 'Zen Old Mincho', serif !important;
}
.white {
  color: var(--ast-global-color-5);
}
.left {
  text-align: left !important;
}
.right {
  text-align: right !important;
}
.center {
  text-align: center !important;
}
/* Flex */
.flex {
  display: flex;
}
.flexw {
  display: flex;
  flex-wrap: wrap;
}
.flexr {
  display: flex;
  flex-direction: row-reverse;
}
.flexsb {
  justify-content: space-between;
}
.flexc {
  justify-content: center;
  align-items: center;
}
.col-2 {
  width: 49%;
}
.col-3 {
  width: 32%;
}
.col-4 {
  width: 24%;
}
.col-5 {
  width: 19%;
}
/* 見出し・段落 */
.uael-sub-heading {
  opacity: 0.2;
}
/* テーブル */
.entry-content table {
  border-collapse: collapse !important;
  border: none !important;
}
.entry-content table th {
  border-right: none !important;
  border-bottom: 1px solid var(--ast-global-color-0) !important;
  padding: 15px 15px 15px 15px !important;
  text-align: left;
}
.entry-content table td {
  border-right: none !important;
  padding: 15px 15px 15px 15px !important;
}
/* モバイルメニュー
------------------------------------------ */
/*ボタン外側*/
.openbtn {
  position: fixed;
  z-index: 9999; /*ボタンを最前面に*/
  top: 0;
  right: 0;
  cursor: pointer;
  width: 90px;
  height: 90px;
  background: var(--ast-global-color-0);
}
/*ボタン内側*/
.openbtn span {
  display: inline-block;
  transition: all .4s; /*アニメーションの設定*/
  position: absolute;
  left: 20px;
  height: 3px;
  background-color: var(--ast-global-color-5);
}
.openbtn span:nth-of-type(1) {
  top: 39px;
  width: 50%;
}
.openbtn span:nth-of-type(2) {
  top: 50px;
  width: 30%;
}
/*activeクラスが付与されると線が回転して×に*/
.openbtn.active span:nth-of-type(1) {
  top: 40px;
  left: 23px;
  transform: translateY(6px) rotate(-45deg);
  width: 50%;
}
.openbtn.active span:nth-of-type(2) {
  top: 52px;
  left: 23px;
  transform: translateY(-6px) rotate(45deg);
  width: 50%;
}
/*========= ナビゲーションのためのCSS ===============*/
#g-nav {
  /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
  position: fixed;
  z-index: -1;
  opacity: 0; /*はじめは透過0*/
  /*ナビの位置と形状*/
  top: 0;
  /*動き*/
  transition: all 0.3s;
}
/*アクティブクラスがついたら透過なしにして最前面へ*/
#g-nav.panelactive {
  opacity: 1;
  width: 100%;
  height: 100vh; /*ナビの高さ*/
  background: rgba(0, 28, 67, 0.9); /*背景を少し透過させる*/
  z-index: 999;
}
/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh; /*表示する高さ*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
/*ナビゲーション*/
#g-nav ul {
  display: none; /*はじめは非表示*/
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#g-nav.panelactive ul {
  display: block;
  margin-left: 0 !important;
}
/*リストのレイアウト設定*/
#g-nav li {
  list-style: none;
  text-align: center;
  margin-left: 0 !important;
}
#g-nav li a {
  color: var(--ast-global-color-5);
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}
/* ホーム
------------------------------------------ */
/* フォーム
------------------------------------------ */
.look2 {
  margin: 1em;
  padding: 2%;
  background: var(--ast-global-color-6);
  font-size: 14px;
}

.scroll {
  height: 200px;
  margin: 1em;
  padding: 2%;
  background: var(--ast-global-color-5);
  border: 1px solid var(--ast-global-color-7);
  font-size: 85%;
  overflow-x: hidden;
  overflow-y: scroll;
}

.scroll h3 {
  margin: 15px 0;
  font-size: 18px;
}

.scroll h4 {
  margin: 15px 0;
  font-size: 16px;
}

/* --- Contact Form 7 カスタマイズ --- */

/* 入力欄をコンテナ100% */
.inquiry td input[type="text"],
.inquiry td input[type="tel"],
.inquiry td input[type="email"],
.inquiry td select,
.inquiry td textarea,
.wpcf7-form-control.wpcf7-textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 15px !important;
  border-radius: 2px;
  font-size: 14px;
  transition: all 0.3s;
}

.inquiry td input:focus, 
.inquiry td select:focus, 
.inquiry td textarea:focus {
  background: #ffffff !important;
  outline: 2px solid var(--ast-global-color-3) !important;
}

.inquiry {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.inquiry th {
  text-align: left;
  font-size: 14px;
  padding: 30px 5px 30px 20px;
  width: 30%;
  border-bottom: solid 1px var(--ast-global-color-7);
  background: var(--ast-global-color-5);
}

.inquiry td {
  font-size: 13px;
  padding: 20px;
  border-bottom: solid 1px var(--ast-global-color-7);
  background: var(--ast-global-color-5);
}

.inquiry td input, 
.inquiry td select, 
.inquiry td textarea {
  background: var(--ast-global-color-4);
  border: none;
}

.inquiry th p, .inquiry td p {
  margin: 0 !important;
  padding: 0 !important;
}

/* 横の行とテーブル全体 */
.entry-content .inquiry tr {
  border: solid 1px var(--ast-global-color-4);
}

.haveto {
  font-size: 9px;
  padding: 5px 10px;
  background: var(--ast-global-color-0);
  color: var(--ast-global-color-5);
  border-radius: 2px;
  margin-left: 10px;
  position: relative;
  bottom: 1px;
}

.any {
  font-size: 9px;
  padding: 5px 10px;
  background: var(--ast-global-color-8);
  color: var(--ast-global-color-5);
  border-radius: 2px;
  margin-left: 10px;
  position: relative;
  bottom: 1px;
}

/* ラジオボタンを縦並び指定 */
.verticallist .wpcf7-list-item {
  display: block;
}

/* 下部注意書き（.look）の装飾 */
.look {
  margin: 30px 0;
  padding: 20px 25px;
  background: var(--ast-global-color-4);
  border-left: 4px solid var(--ast-global-color-3); /* 左側のアクセント線で綺麗に */
  border-radius: 0 4px 4px 0;
}
.look ul {
  margin: 0;
  padding-left: 20px;
}
.look li {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 8px;
}
.look li:last-child {
  margin-bottom: 0;
}

/* 送信ボタンのデザイン（元ベースの角丸2px仕様） */
#formbtn {
  display: block;
  padding: 1em 0;
  margin: 30px auto 0 auto;
  width: 70%;
  background: var(--ast-global-color-3);
  color: var(--ast-global-color-5);
  font-size: 18px;
  font-weight: bold;
  border-radius: 2px; /* 丸型ではなく元の2pxに戻しました */
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

/* 送信ボタンマウスホバー時 */
#formbtn:hover {
  background: var(--ast-global-color-8);
  color: var(--ast-global-color-5);
}


/* --- スマホ（レスポンシブ）調整 --- */
@media(max-width: 748px) {
  .inquiry th, .inquiry td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .inquiry th {
    border-bottom: none !important; 
    padding: 25px 20px 2px 20px !important;
  }
  
  .inquiry td {
    padding: 2px 20px 25px 20px !important;
    border-bottom: 2px solid var(--ast-global-color-4) !important;
  }

  .inquiry tr:first-child th {
    border-top: 1px solid var(--ast-global-color-7) !important;
  }

  .inquiry .haveto, .inquiry .any {
    font-size: 10px;
    margin-bottom: 5px;
    display: inline-block;
  }
}