@charset "UTF-8";
/*
Theme Name:  三重の家づくり無料NAVI
Description: 三重の家づくり無料NAVI専用のWordPressテーマです
Author: seiya nakamura
Version: 1.0
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald&display=swap");

:root {
  --text-color: #222;
  --main-color: #4c8612;
  --sub-color: #a6b851;
  --btn-color: #4c8612;
  --header-color: #fffaee;
  --footer-color: #4c8612;
  --link-color: #222;

  /* headerの高さ指定場所 */
  --header-pc__height: 90px;
  --header-sp__height: 60px;
  scroll-padding-top: var(--header-pc__height);

  /* box-shadow */
  --shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.fixed {
  position: fixed;
  width: 100%;
  height: 100%;
}

html {
  font-size: 62.5%; /* 10px */
}

body {
  color: var(--text-color);
  background-color: #fffaee;
  font-size: 1.6rem; /* 16px */
  line-height: 1.8;
  font-family: "Noto Sans JP", sans-serif !important;
  letter-spacing: 0.05em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%; /* クロームバグ */
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

p,
div {
  max-height: 100%; /* クロームバグ */
}

ul,
ol {
  padding-left: 3rem;
}

main {
  flex: 1;
  margin-bottom: 70px;
}

/* リンク */
a {
  text-decoration: none;
}

a img:hover {
  /* opacity: 0.8; */
  transition: 0.3s all ease;
}

/*=======================================
テキスト
=======================================*/
/* フォント */
.zenmaru {
  font-family: "Zen Maru Gothic";
}

.oswald {
  font-family: "Oswald";
}

/* 文字・背景カラー */
.text-main {
  color: var(--main-color) !important;
}

.text-sub {
  color: var(--sub-color) !important;
}

.bg-main {
  background-color: var(--main-color) !important;
}

.bg-sub {
  background-color: var(--sub-color) !important;
}

/* 文字制御 */
.nowrap {
  display: inline-block;
  white-space: nowrap;
}

.indent {
  text-indent: -1em;
  padding-left: 1em;
}

/* リスト非表示 */
.list-none {
  list-style: none;
  padding: 0;
}

/*=======================================
オプション
=======================================*/
/* スマホ時のみtelクリック */
@media screen and (min-width: 991px) {
  a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
  }
}

/* 角丸 */
.b-rounded {
  border-radius: 15px;
}

/* 円 */
.b-circle {
  border-radius: 100%;
}

/* スクロール吸着 */
.sticky-box {
  position: sticky;
  top: var(--header-pc__height);
}

/* テキストアニメーション1 */
.text-animation1 {
  display: inline-block;
  overflow: hidden;
  animation-name: text-animation;
  animation-duration: 2s;
  animation-fill-mode: both;
}

@keyframes text-animation {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.text-animation1__inner {
  display: inline-block;
  overflow: hidden;
  animation-name: text-animation__inner;
  animation-duration: 2s;
  animation-fill-mode: both;
}

@keyframes text-animation__inner {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* テキストアニメーション2 */
.text-animation2 {
  display: inline-block;
  position: relative;
  animation: clip-text 0.5s ease-in-out forwards;
}

.text-animation2::before {
  content: "";
  display: block;
  background-color: #000;
  position: absolute;
  inset: 0;
  animation: clip-cover 0.5s ease-in-out forwards;
  animation-delay: 0.5s;
}

@keyframes clip-text {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes clip-cover {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 100%);
  }
}

/* フェードインエフェクト */
.fadein {
  opacity: 0;
  transform: translate(0px, 50px);
  transition: all 0.8s;
}

.fadein.scrollin {
  opacity: 1;
  transform: translate(0, 0);
}

.no-transition {
  transition: none !important;
}

/*=======================================
ローディング
=======================================*/
/* ローディング画面 */
#loading {
  width: 100vw;
  height: 100vh;
  transition: all 1s;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loaded {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 60px;
  height: 60px;
  background-color: var(--main-color);
  border-radius: 100%;
  animation: sk-scaleout 1s infinite ease-in-out;
}

/* ローディングアニメーション */
@keyframes sk-scaleout {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/*=======================================
見出し
=======================================*/
.h1 {
  font-size: 3.6rem;
  color: var(--main-color);
  margin: 0;
  padding: 0;
}

.h2 {
  color: #5b3314;
  font-family: "Zen Maru Gothic";
  font-size: 2.8rem;
  font-size: clamp(2.4rem, 2.9vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  display: table;
  margin: 0 auto;
  padding-top: 40px;
  margin-bottom: 70px;
}

.h2-w {
  color: #ffffff;
  font-family: "Zen Maru Gothic";
  font-size: 2.8rem;
  font-size: clamp(2.4rem, 2.9vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  display: table;
  margin: 0 auto;
  padding-top: 40px;
  margin-bottom: 70px;
}

/* 上の三角画像 */
.h2::before,
.h2-w::before {
  content: "";
  position: absolute;

  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 82px;
  height: 22px;

  background: url("images/h2_image.png") no-repeat center center;
  background-size: contain;
}

.h3 {
  color: #5b3314;
  font-family: "Zen Maru Gothic";
  font-size: 2.4rem;
  font-size: clamp(2rem, 2.9vw, 2.4rem);
  font-weight: 700;
  padding: 1rem 2rem;
  border-left: solid 4px var(--main-color);
}

.h4 {
  font-family: "Zen Maru Gothic";
  font-weight: 700;
  font-size: 2rem;
  font-size: clamp(1.8rem, 2.9vw, 2rem);
  padding: 1rem 0;
  border-bottom: solid 3px var(--main-color);
}

/*=======================================
  header-pc
=======================================*/
header {
  width: 100%;
  z-index: 100;
  top: 0;
  background-color: var(--header-color);
}

header .container-fluid,
header .container {
  padding: 0;
}

.header-pc {
  width: 100%;
  height: var(--header-pc__height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-pc h1 {
  flex: 1;
  font-size: 0%;
  margin: 0 25px;
}

.header-pc h1 img {
  height: 70px;
}

/* オプション */
.header-pc__address {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1em;
  padding: 0 1em;
  height: var(--header-pc__height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-pc__address .tit {
  color: #fff;
  font-size: 1.4rem;
  font-weight: normal;
  padding: 2px 5px;
  border-radius: 5px;
  background-color: var(--main-color);
  margin-right: 5px;
}

.header-pc__address .icon {
  font-size: 2.2rem;
  margin-right: 8px;
}

.header-pc__address .tel {
  font-family: "Oswald";
  font-size: 2.8rem;
  font-weight: 700;
  display: flex;
  justify-content: right;
  align-items: center;
}

.header-pc__address .tel img {
  height: 40px;
  margin-right: 5px;
}

/*=======================================
  nav-pc
=======================================*/
.nav-pc {
  background: rgba(237, 244, 219, 0.9);
}

.nav-lists {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  flex-grow: 1;
  height: 70px;
  position: relative;
}

.nav-list a {
  font-size: 1.4rem;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: all 0.3s;
  padding: 0 1em;
}

/* ディフォルトホバー */
.nav-list a:hover {
  color: #fff;
  background: var(--sub-color);
}

/* メニュー間ライン */
.nav-list:not(:first-child)::before {
  content: "";
  display: block;
  height: 1.2em;
  border-left: 1px solid #222;
  opacity: 0.5;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}

/* 表示中のページをマウスオーバー表示 */
.current a {
  color: #fff;
  /* background: var(--main-color); */
  background: var(--sub-color);
}

@media screen and (max-width: 991px) {
  .header-pc,
  .nav-pc {
    display: none;
  }
}

/*=======================================
  header-sp
=======================================*/
.header-sp,
.nav-sp {
  display: none;
}

@media screen and (max-width: 991px) {
  .header-sp {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-sp__height);
    background: rgba(255, 250, 238, 0.9);
    z-index: 100;
  }

  .header-sp .logo {
    flex: 1;
    font-size: 0;
    line-height: 0;
  }

  .header-sp .logo img {
    height: 38px;
    padding-left: 10px;
  }

  .header-sp .toggle {
    font-size: 1.8rem;
    line-height: 50px;
    text-align: center;
    width: 50px;
    display: block;
    cursor: pointer;
    color: #fff;
    background-color: var(--sub-color);
    border-radius: 20px;
    margin-right: 5px;
  }

  .header-sp .tel {
    font-size: 1.8rem;
    line-height: 60px;
    text-align: center;
    width: 60px;
    display: block;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
  }

  .header-sp .tel a {
    color: var(--link-color);
  }
}

/*=======================================
  nav-sp
=======================================*/
@media screen and (max-width: 991px) {
  .nav-sp {
    display: block;
    position: fixed;
    opacity: 0; /*最背面*/
    z-index: -1; /*はじめは透過0*/
    top: 60px;
    width: 100%;
    height: 100vh;
    background: #fffaee;
    padding-bottom: 150px;
    overflow: auto;
    transition: all 0.3s;
    -webkit-overflow-scrolling: touch;
    /* transform: translateX(100%); */
  }

  .nav-sp.active {
    /* transform: translateX(0); */
    opacity: 1; /*アクティブで表示*/
    z-index: 100;
  }

  .main-menu {
    font-size: 1.4rem;
    list-style: none;
    padding: 0;
  }

  .main-menu li {
    position: relative;
  }

  .main-menu li a {
    display: block;
    color: var(--link-color);
    text-decoration: none;
    padding: 15px;
  }

  .main-menu li a:hover {
    color: #fff;
    background: var(--sub-color);
  }

  /* 2つめからライン追加 */
  .main-menu li:nth-of-type(n + 2) {
    border-top: 1px solid #ccc;
  }

  .main-menu li:last-child {
    border-bottom: 1px solid #ccc;
  }

  .main-menu li a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    margin-right: 10px;
  }

  /* 追加オプション */
  .nav-sp .m-address {
    font-size: 1.4rem;
    text-align: center;
    padding: 10px;
  }

  .m-address .tit {
    color: #fff;
    font-size: 1.2rem;
    padding: 2px 5px;
    border-radius: 5px;
    background-color: var(--main-color);
    margin-right: 5px;
  }

  .nav-sp .m-tel {
    font-family: "Oswald";
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-sp .m-icon {
    height: 40px;
    margin-right: 5px;
  }
}

/*=======================================
swiper - トップスライダー
=======================================*/
.top-swiper {
  width: 100%;
  position: relative;
}

.top-swiper img {
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
  /* height: calc(50vh - var(--header-pc__height)); */
  height: 750px;
}

.mv {
  position: relative;
  overflow: hidden;
}

.mv-img {
  width: 100%;
  display: block;
}

.mv-mask {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 40px;
  background: #fffaee;
  transform: translateX(-50%);
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 0, 0 100%);
}

@media screen and (max-width: 991px) {
  .mv-mask {
    height: 20px;
  }
}

/*=======================================
swiper - 要素スライダー
=======================================*/
.slider-swiper {
  padding: 15px;
}

/*=======================================
swiper - オプション全体
=======================================*/
.swiper-slide {
  height: auto;
}

.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 10;
}

.slide-caption__text {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translate(0%, -50%);
  z-index: 10;
}

.slide-caption__text img {
  width: 660px;
  height: auto;
}

.slide-caption__img {
  position: absolute;
  bottom: 0;
  right: 20px;
  z-index: 10;
}

.slide-caption__img img {
  width: 520px;
  height: auto;
}

@media screen and (max-width: 991px) {
  .slide-caption__img {
    right: 0px;
  }

  .slide-caption__img img {
    float: right;
    width: 70%;
    height: auto;
  }
}

.swiper-pagination-bullet,
.swiper-pagination-bullet-active {
  background-color: #fff;
}

.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  padding: 0px;
  margin: 0px;
  background-color: #fff;
  border-radius: 50%;
  transform: translateY(-30%);
  box-shadow: var(--shadow);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  color: var(--btn-color);
  height: 16px;
  width: 16px;
  margin: 60px;
}

/* 前への矢印カスタマイズ */
.swiper-button-prev::after {
  font-size: 16px;
  font-family: fontAwesome;
  content: "\f053";
}

/* 次への矢印カスタマイズ */
.swiper-button-next::after {
  font-size: 16px;
  font-family: fontAwesome;
  content: "\f054";
}

/*=======================================
  footer
=======================================*/
/* アクセスマップ */
iframe {
  vertical-align: bottom;
}

footer {
  font-size: clamp(1.4rem, 2.9vw, 1.6rem);
  color: #fff;
  background-color: var(--footer-color);
  padding: 50px 0;
}

.footer-logo img {
  height: 60px;
}

.footer-text {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 0;
  margin-bottom: 20px;
}

.footer-tel {
  font-family: "Oswald";
  font-size: 2.8rem;
  display: flex;
  align-items: center;
}

.footer-tel .icon {
  height: 40px;
  margin-right: 10px;
}

.footer-text__address {
  margin-bottom: 0px;
}

.footer-text__copy {
  font-size: 1.2rem;
  text-align: center;
}

.footer-nav {
  font-size: 1.4rem;
  display: flex;
  justify-content: end;
}

.footer-nav ul {
  margin: 0; /* ブラウザ初期marginも消す */
  padding-left: 1em; /* 左余白を消す */
  list-style-position: outside; /* マーカーをテキストの内側に */
  margin-right: 20px;
}

.footer-nav ul li::marker {
  content: "-  ";
  color: #fff;
  font-size: 1em;
  font-weight: bold;
}

.footer-nav ul li a {
  color: #fff;
  position: relative;
  text-decoration: none;
}

.footer-nav ul li a::after {
  position: absolute;
  bottom: 0px;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: transform 0.3s;
}

.footer-nav ul li a:hover::after {
  transform: scale(1, 1);
}

@media screen and (max-width: 991px) {
  .footer-text__copy {
    font-size: 1.2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    padding-top: 10px;
  }

  .footer-nav {
    justify-content: start;
  }

  .footer-nav ul {
    font-size: 1.4rem;
  }
}

/* ページトップ */
#page-top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  font-size: 18px;
  z-index: 2;
}

#page-top a {
  display: block;
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--btn-color);
  box-shadow: var(--shadow);
  color: #fff;
}

#page-top i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*=======================================
トップページ
=======================================*/
section {
  margin-top: 140px;
}

@media screen and (max-width: 991px) {
  section {
    margin-top: 50px;
  }
}

/* 画像端から中央 */
.half-box {
  display: flex;
  justify-content: space-between;
  margin: auto;
}

.half-box__text {
  width: 50%;
  padding: 10px 40px;
  display: flex;
  align-items: center;
}

.half-box__img {
  max-width: none; /* 既定の最大幅を解除 */
  width: 50vw; /* ウィンドウ幅の50%を設定 */
  height: 450px;
  object-fit: cover;
}

.half-box__left {
  margin-left: calc(50% - 50vw);
}

.half-box__right {
  margin-right: calc(50% - 50vw);
}

.half-box__left__rounded {
  border-radius: 0 20px 20px 0;
}

.half-box__right__rounded {
  border-radius: 20px 0 0 20px;
}

.reverse {
  flex-direction: row-reverse;
}

@media screen and (max-width: 991px) {
  .half-box {
    flex-direction: column;
  }

  .half-box__text {
    padding: 0px;
    width: 100%;
  }

  .half-box__img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  .half-box__left,
  .half-box__right {
    width: 100%;
    margin: 0%;
  }

  .half-box__left__rounded,
  .half-box__right__rounded {
    border-radius: 20px;
  }
}

.fs26-prf {
  font-size: clamp(2rem, 2.9vw, 2.6rem);
  line-height: 1.2em;
  font-weight: 700;
  color: var(--main-color);
}

.fs20-prf {
  font-size: clamp(1.6rem, 2.9vw, 2rem);
  line-height: 1.2em;
  font-weight: 700;
}

/* 施工エリア */
.frame-box {
  position: relative;
  border: 3px solid var(--main-color);
  border-radius: 20px;
  padding: 30px 20px 20px;
  margin: 40px auto;
}

.frame-title {
  color: #5b3314;
  font-family: "Zen Maru Gothic";
  font-size: 2.8rem;
  font-size: clamp(2.4rem, 2.9vw, 2.8rem);
  font-weight: bold;
  position: absolute;
  top: -20px;
  left: 20px;
  margin: 0;
  padding: 0 16px;
  background: #fffaee; /* 背景色と合わせる */
}

.frame-content {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.8;
}

/* 経歴テーブル */
.table-prf {
  width: 100%;
}

.table-prf th {
  font-weight: bold;
  min-width: 100px;
  padding: 10px;
  border-bottom: solid 1px #ccc;
}

.table-prf td {
  padding: 10px;
  border-bottom: solid 1px #ccc;
}

@media screen and (max-width: 991px) {
  .table-prf th {
    display: block;
    border-bottom: none;
    padding: 10px 0 0 0;
  }

  .table-prf td {
    display: block;
    padding: 0 0 10px 0;
    border-bottom: solid 1px #ccc;
  }
}

.bg-blog {
  background: linear-gradient(45deg, #8bb813 0%, #3b7a11 95%);
  padding: 40px 0;
}

/*=======================================
ジャンボトロン&パンくずリスト
=======================================*/
.jumbotron {
  height: 240px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("images/menu_image.jpg");
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
}

.jumbotron__tit {
  font-size: clamp(2.4rem, 2.9vw, 2.6rem);
  color: #fff;
  text-align: center;
  text-shadow: 0px 0px 10px #222;
}

/* スマホ時ヘッダー分移動 */
@media screen and (max-width: 991px) {
  .jumbotron {
    height: 150px;
  }

  .jumbotron__tit {
    font-size: 2rem;
    text-shadow: 0px 0px 5px #333;
  }
}

/* パンくずリスト */
.breadcrumb {
  font-size: clamp(1rem, 2.9vw, 1.2rem);
  padding: 0;
  margin: 0;
}

.breadcrumb a {
  color: #9f9f9f;
  transition: 0.5s;
}

.breadcrumb a:hover {
  color: var(--main-color);
}

/*=======================================
新着情報
=======================================*/
.info-box {
  margin: 0;
  padding: 0;
}

.info-list a {
  color: var(--link-color);
  display: block;
  transition: 0.5s;
  padding: 20px 10px;
  border-bottom: 1px solid #ccc;
}

.info-list a:hover {
  background-color: #f2f2f2;
  text-decoration: none;
}

.info-list__data {
  display: table-cell;
  white-space: nowrap;
  padding-right: 1em;
}

.info-list__data .day {
  color: var(--link-color);
  display: inline-block;
  width: 110px;
}

.info-list__data .tag {
  display: inline-block;
  font-size: 1.2rem;
  text-align: center;
  padding: 3px 1em;
  border-radius: 15px;
  color: #fff;
  background: var(--sub-color);
}

.info-list__tit {
  display: table-cell;
}

@media screen and (max-width: 991px) {
  .info-list__data {
    display: block;
    margin-bottom: 5px;
  }
}

/* 投稿詳細エリア */
.info-detail__data {
  display: table-cell;
  white-space: nowrap;
  padding-right: 1em;
}

.info-detail__data .day {
  font-size: 1.2rem;
  color: var(--link-color);
  display: inline-block;
}

.info-detail__data .tag {
  display: inline-block;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  padding: 2px 1em;
  border-radius: 15px;
  background: #eaeaea;
}

.info-text {
  padding-bottom: 3em;
  margin-bottom: 3em;
  border-bottom: solid 1px #ccc;
  overflow: hidden;
}

.info-button__arrow {
  color: var(--btn-color);
  border: 1px solid var(--btn-color);
  padding: 0px 20px;
  height: 100%;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

.info-button__arrow:hover {
  color: #fff;
  background-color: var(--btn-color);
}

/* カテゴリー */
.cat-01 {
  color: var(--text-color);
  background: #dba653 !important;
}

.cat-02 {
  color: var(--text-color);
  background: #67ba6e !important;
}

.cat-03 {
  color: var(--text-color);
  background: #d173b2 !important;
}

.cat-04 {
  color: var(--text-color);
  background: #d8b260 !important;
}

.cat-05 {
  color: var(--text-color);
  background: #967e4c !important;
}

.cat-06 {
  color: var(--text-color);
  background: #448ac3 !important;
}

.cat-07 {
  color: var(--text-color);
  background: #e25d5d !important;
}

.cat-08 {
  color: var(--text-color);
  background: #8cb18e !important;
}

.cat-09 {
  color: var(--text-color);
  background: #57881e !important;
}

.cat-10 {
  color: var(--text-color);
  background: #909090 !important;
}

/*=======================================
お問い合わせフォーム
=======================================*/
input[type="text"],
input[type="email"],
textarea {
  -webkit-appearance: none;
  appearance: none;

  border: 1px solid #bbbbbb;
  border-radius: 8px;
  padding: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border: 2px solid var(--main-color);
  outline: none;
}

.form-txt {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #dadada;
  background-color: #f9f9f9;
}

::placeholder {
  color: #ccc;
}

.requied {
  font-size: 0.8em;
  color: red;
}

.form-width {
  width: 100%;
}

div.wpcf7 .wpcf7-spinner {
  display: none !important; /* ローダー非表示 */
}

.table-form p {
  margin: 0;
  padding: 0;
}

.table-form th {
  font-weight: bold;
  width: 25%;
  padding: 10px;
  border-bottom: solid 2px var(--main-color);
  /*background-color: #f8f9fa;*/
}

.table-form td {
  padding: 20px 10px;
  border-bottom: solid 2px #ccc;
  /*background-color: #fff;*/
}

.table-form tr:last-child th,
.table-form tr:last-child td {
  border-bottom: 0px solid #dee2e6;
}

.table-form .last {
  text-align: center;
  border-bottom: 0px solid #fff;
}

@media screen and (max-width: 991px) {
  .table-form th,
  .table-form td {
    width: 100%;
    display: block;
  }

  .table-form td {
    border: none;
  }

  .table-form tr:last-child th {
    border-bottom: 0px;
  }

  div.wpcf7 .wpcf7-spinner {
    display: none !important;
  }
}

input.wpcf7-submit {
  padding: 0.8em !important;
  background-color: var(--btn-color) !important;
  border-radius: 5px !important;
  color: #fff !important;
  font-size: 1.6rem !important;
  width: 40%;
  transition: 0.5s;
  border: none;
}

input.wpcf7-submit:hover {
  background-color: var(--sub-color) !important;
  color: #fff !important;
}

.btn-submit {
  width: 100%;
  text-align: center;
}

/* reCAPTCHA非表示 */
/*.grecaptcha-badge {
  visibility: hidden;
}*/

.grecaptcha-badge {
  bottom: 90px !important;
}

/*=======================================
テンプレート用
=======================================*/
/* 固定バナー */
.banner-box {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  z-index: 10;
}

.banner {
  font-size: 1.4rem;
  color: #fff;
  padding: 15px;
  background: var(--btn-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px 0 0 10px;
  margin-bottom: 10px;
  transition: all 0.5s ease;
}

.banner span {
  writing-mode: vertical-rl;
  display: inline-block;
}

.banner:hover {
  background: var(--sub-color);
}

@media screen and (max-width: 991px) {
  .banner {
    display: none;
  }
}

/* テキストサイズ */
.fs12 {
  font-size: 1.2rem;
}

.fs14 {
  font-size: 1.4rem;
}

.fs18 {
  font-size: 1.8rem;
}

.fs24 {
  font-size: clamp(2rem, 2.9vw, 2.4rem);
}

.fs36 {
  font-size: clamp(3rem, 2.9vw, 3.6rem);
}

.fs42 {
  font-size: clamp(3rem, 2.9vw, 4.2rem);
  line-height: 1.5;
}

/* テキストカラー */
.text-red {
  color: #dc3445;
}

.text-blue {
  color: #0d6efd;
}

.text-yellow {
  color: #ffca47;
}

.text-green {
  color: #1a8754;
}

/* マーカーテキスト */
.text-marker {
  background: -webkit-linear-gradient(transparent 60%, #ffff8e 70%);
  background: linear-gradient(transparent 60%, #ffff8e 70%);
  background: -webkit-linear-gradient(transparent 60%, #ffff8e 60%);
  font-weight: bold;
}

/* リストスタイル */
li::marker {
  color: var(--sub-color);
}

/* ボーダーボックス */
.border-box {
  padding: 1em;
  border: 1px solid #ccc;
}

/* フロート */
.float-l {
  float: left;
  margin: 0 10px 0 0;
}

.float-r {
  float: right;
  margin: 0 0 0 10px;
}

.float-c {
  margin: 0 auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .float-l,
  .float-r,
  .float-c {
    float: none;
    margin: 0 0 10px 0;
    width: 100%;
    height: auto;
  }
}

/* 背景有りボックス */
.box-bg {
  border: 1px solid #ccc;
  padding: 10px;
}

.box-bg__y {
  background: #ffffee; /* 黄色 */
}

.box-bg__b {
  background: #e0ffff; /* 水色 */
}

.box-bg__p {
  background: #fff0f5; /* ピンク */
}

/*=======================================
レスポンシブテーブル
=======================================*/
.table-resp {
  width: 100%;
}

.table-resp th {
  color: #fff;
  font-weight: normal;
  min-width: 200px;
  background-color: var(--sub-color);
  padding: 10px;
  border: solid 1px #ccc;
}

.table-resp td {
  padding: 10px;
  background-color: #fff;
  border: solid 1px #ccc;
}

@media screen and (max-width: 991px) {
  .table-resp th,
  .table-resp td {
    display: block;
    border-bottom: none;
  }

  .table-resp tr:last-child {
    border-bottom: solid 1px #ccc;
  }
}

/*=======================================
ラインテーブル
=======================================*/
.table-line {
  width: 100%;
}

.table-line th {
  font-weight: bold;
  min-width: 250px;
  padding: 10px;
  border-bottom: solid 1px #ccc;
}

.table-line td {
  padding: 10px;
  border-bottom: solid 1px #ccc;
}

@media screen and (max-width: 991px) {
  .table-line th,
  .table-line td {
    display: block;
    border-bottom: solid 1px #ccc;
  }
}

/*=======================================
スクロールテーブル
=======================================*/
.table-scroll {
  padding: 0;
  overflow: auto;
  background: #fff;
}

.table-scroll tr:nth-child(odd) td {
  background: #f8f8f8;
}

.table-scroll table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table-scroll th {
  color: #fff;
  text-align: center;
  background-color: var(--sub-color);
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px;
  white-space: nowrap;
}

.table-scroll td {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px;
}

.table-scroll table tr:first-child th,
.table-scroll table tr:first-child td {
  border-top: 1px solid #ccc;
}
.table-scroll table th:first-child,
.table-scroll table td:first-child {
  border-left: 1px solid #ccc;
}
.table-scroll table th.fixed-cell,
.table-scroll table td.fixed-cell {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  min-width: 60px;
  width: 60px;
}

.table-scroll__swipe {
  font-size: 1.4rem;
  text-align: center;
  padding: 10px;
}

.table-scroll__swipe {
  animation: sway 2s linear infinite;
}

@keyframes sway {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(8px);
  }
  50% {
    transform: translate(0);
  }
  75% {
    transform: translate(-8px);
  }
  100% {
    transform: translate(0);
  }
}

@media screen and (max-width: 991px) {
  .h300 {
    height: 300px;
  }

  .table-scroll td {
    white-space: nowrap;
  }
}

/*=======================================
テーブルthサイズ指定
=======================================*/
.th-w300 {
  width: 300px;
}

.th-w400 {
  width: 400px;
}

.th-w500 {
  width: 500px;
}

.th-w600 {
  width: 600px;
}

@media screen and (max-width: 991px) {
  .th-w300,
  .th-w400,
  .th-w500,
  .th-w600 {
    width: 100%;
  }
}

/*=======================================
ボタン
=======================================*/
.button {
  color: #fff;
  text-align: left;
  width: auto; /* 横幅を自動調整 */
  max-width: fit-content; /* 内容に合わせて最大幅を調整 */
  display: inline-block;
  padding: 10px 50px;
  background: var(--btn-color);
  border: 1px solid var(--btn-color);
  transition: all 0.5s ease;
  position: relative;
  /* box-shadow: var(--shadow); */
}

.button:hover {
  color: var(--btn-color);
  background: none;
}

.button::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: 25px;
  width: 10px;
  height: 10px;
  border: 1px solid;
  border-color: transparent transparent #fff #fff;
  transform: rotate(-135deg);
  transition: all 0.5s ease;
}

.button:hover::before {
  border-color: transparent transparent var(--btn-color) var(--btn-color);
  right: 20px;
}

/* 背景白 */
.button-w {
  color: var(--btn-color);
  text-align: left;
  width: auto; /* 横幅を自動調整 */
  max-width: fit-content; /* 内容に合わせて最大幅を調整 */
  display: inline-block;
  padding: 10px 50px;
  background: #fff;
  border: 2px solid var(--btn-color);
  transition: all 0.5s ease;
  position: relative;
  /* box-shadow: var(--shadow); */
}

.button-w:hover {
  color: #fff;
  border: #fff solid 2px;
  background: var(--btn-color);
}

.button-w::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: 25px;
  width: 10px;
  height: 10px;
  border: 1px solid;
  border-color: transparent transparent var(--btn-color) var(--btn-color);
  transform: rotate(-135deg);
  transition: all 0.5s ease;
}

.button-w:hover::before {
  border-color: transparent transparent #fff #fff;
  right: 20px;
}

/* 背景無し */
.button__line {
  color: var(--btn-color);
  background: none;
}

.button__line:hover {
  color: #fff;
  background: var(--btn-color);
}

.button__line::before {
  border-color: transparent transparent var(--btn-color) var(--btn-color);
}

.button__line:hover::before {
  border-color: transparent transparent #fff #fff;
}

.button__rounded {
  border-radius: 15px;
}

.button__circle {
  border-radius: 100px;
}

.button_shadow {
  box-shadow: var(--shadow);
}

/*=======================================
WordPress--投稿記事スタイル
=======================================*/
.blog-box h2 {
  font-size: clamp(1.8rem, 2.9vw, 2rem);
  padding: 20px 30px 20px 40px;
  position: relative;
  background: #eef1f2;
  border-radius: 10px;
  margin-bottom: 1em;
}

.blog-box h2::before {
  position: absolute;
  top: 25%;
  left: 20px;
  width: 6px;
  height: 50%;
  content: "";
  opacity: 0.2;
  border-radius: 3px;
  background: var(--sub-color);
}

.blog-box h3 {
  font-size: clamp(1.4rem, 2.9vw, 1.8rem);
  padding: 1rem 0;
  border-bottom: solid 1px var(--main-color);
  margin-bottom: 1em;
}

.mainbox {
  overflow: hidden;
}

/* ブログ記事画像フロート */
img.alignleft {
  float: left;
  margin: 0 10px 0 0;
}

img.alignright {
  float: right;
  margin: 0 0 0 10px;
}

img.aligncenter {
  margin: 0 auto;
  display: block;
}

@media screen and (max-width: 991px) {
  img.alignleft,
  img.alignright,
  img.aligncenter {
    float: none;
    margin: 0 0 10px 0;
    width: 100%;
    height: auto;
  }
}


/*=======================================
WordPress--ページナビ
=======================================*/
.pager a {
  color: var(--main-color);
}

.wp-pagenavi {
  /* 全体 */
  margin: 20px 0;
  font-size: 1.4rem;
}

.wp-pagenavi a {
  /* フォント色 */
  color: var(--main-color);
}

.pages {
  /* 左の表記 */
  margin-right: 20px;
}

.wp-pagenavi .current,
.wp-pagenavi a.page {
  /* ボタン */
  margin: 0 6px 6px 0;
  display: inline-block;
  border: solid 1px #ccc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
}

.wp-pagenavi .current {
  /* カレント数字 */
  border: none;
  background: var(--main-color);
  color: #fff;
}

.wp-pagenavi a.page:hover {
  /* マウスオーバー */
  background: var(--main-color);
  color: #fff;
  text-decoration: none;
}

.wp-pagenavi .first,
.wp-pagenavi .extend {
  /* ... */
  margin-right: 10px;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  /* 記号の削除 */
  display: none;
}

/*=======================================
WordPressブログ--リストカード表示
=======================================*/
.blog-list-card {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--link-color);
  background-color: #fff;
  overflow: hidden;
  transition: 0.2s ease;
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.blog-list-card .ribbon {
  font-size: 1.2rem;
  width: 150px;
  padding: 7px;
  font-weight: bold;
  background: #4564c9;
  color: #ffffff;
  text-align: center;
  position: absolute;
  top: 20px;
  right: -40px;
  text-transform: uppercase;
  transform: rotate(-315deg);
  box-shadow: var(--shadow);
  z-index: 2;
}

.blog-list-card img {
  transition: 0.2s ease;
}

.blog-list-card:hover img {
  /* 範囲内で画像拡大時ON */
  transform: scale(1.1);
}

.blog-list-card__img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.blog-list-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-card__text {
  padding: 15px;
  width: 100%;
}

.blog-list-card__text .tit {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 3px;
}

.blog-list-card__data {
  display: table-cell;
  white-space: nowrap;
}

.blog-list-card__data .day {
  display: inline-block;
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.blog-list-card__data .tag {
  display: inline-block;
  font-size: 1rem;
  text-align: center;
  padding: 2px 1em;
  border-radius: 15px;
  background: #f8f8f8;
  border: solid 1px #ccc;
}

/* @media screen and (max-width: 991px) {
  .blog-list-card {
    display: flex;
  }

  .blog-list-card__img {
    width: 80px;
    height: 100%;
  }

  .blog-list-card__text {
    padding: 10px;
  }
} */

/*=======================================
WordPressブログ--詳細表示
=======================================*/
.blog-detail__data {
  display: table-cell;
  white-space: nowrap;
  padding-right: 1em;
}

.blog-detail__data .day {
  font-size: 1.2rem;
  color: var(--link-color);
  display: inline-block;
}

.blog-detail__data .tag {
  display: inline-block;
  font-size: 1rem;
  text-align: center;
  padding: 2px 1em;
  border-radius: 15px;
  background: #f8f8f8;
  border: solid 1px #ccc;
}

/*=======================================
おすすめ工務店
=======================================*/
.img-box {
  position: relative;
  overflow: hidden; /* はみ出したリボンを隠す */
  border-radius: 20px; /* 画像角丸にしたい場合 */
}

/* 右上 */
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 110px solid #f28c28;
  border-left: 110px solid transparent;
  z-index: 10;
}

.ribbon span {
  position: absolute;
  top: -90px;
  right: 10px;

  color: #fff;
  font-size: 16px;
  font-weight: bold;

  transform: rotate(45deg);
  white-space: nowrap;
}

/* お問い合わせボックス */
.contact-box {
  background-color: var(--sub-color);
  border-radius: 20px;
  padding: 20px;
}

.btn-tel__txt {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.btn-tel__number {
  font-family: "Oswald";
  font-size: 3.2rem;
  line-height: 0;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-tel__number img {
  height: 40px;
  margin-right: 10px;
}

.btn-contact {
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: 700;
  background-color: #fff;
  border-radius: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: center;
  box-shadow: var(--shadow);
  /* 追加 */
  border: none;
  outline: none;
  transition: 0.3s all ease;
}

.btn-contact:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.btn-contact .icon {
  color: var(--sub-color);
  font-size: 3rem;
  margin-right: 10px;
}

@media screen and (max-width: 991px) {
  .btn-contact {
    margin-bottom: 10px;
  }
}

.table-line-shop {
  width: 100%;
}

.table-line-shop th {
  font-weight: normal;
  min-width: 150px;
  padding: 10px;
  border-bottom: solid 1px var(--sub-color);
}

.table-line-shop td {
  padding: 10px;
  border-bottom: solid 1px #ababab;
}

@media screen and (max-width: 991px) {
  .table-line-shop th {
    display: block;
    border-bottom: solid 1px #ccc;
    background-color: #f8f8f8;
  }

  .table-line-shop td {
    display: block;
    border-bottom: solid 0px #ccc;
  }
}

/*=======================================
プルダウン
=======================================*/
.guide-sbox {
    position: relative;
    outline: 2px solid #4c8612;
    border-radius: 3px;
}

.guide-sbox::before,
.guide-sbox::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.guide-sbox::before {
    display: inline-block;
    right: 0;
    width: 2.8em;
    height: 2.8em;
    border-radius: 0 3px 3px 0;
    background-color: #4c8612;
}

.guide-sbox::after {
    position: absolute;
    top: 50%;
    right: 1.4em;
    transform: translate(50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
}

.guide-sbox select {
    appearance: none;
    min-width: 230px;
    height: 2.8em;
    padding: .4em 3.6em .4em .8em;
    border: none;
    border-radius: 3px;
    background-color: #f2f2f2;
    color: #333;
    font-size: 1em;
    cursor: pointer;
}

.guide-sbox select:focus {
    outline: 2px solid #4c8612;
}
