﻿/*
Theme name: 夢ハウス
Author: nobody
Author URI: https://tesmstudio-e.net
Version: 1.0
*/

/****  リセット  ****/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-style:normal;
	font-weight: normal;
	font-size: 100%;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}
h1,h2,h3,h4,h5,h6{
	clear: both;
}

/* html, bodyの横スクロールを一旦抑える */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}


/****  base  ****/
body {
  font-size: 17px;
  line-height: 1.9;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic Pro", "メイリオ", "ＭＳ Ｐゴシック", Sans-Serif;
  color: #666;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/****  文字装飾  ****/
.red { color: red; }
.blue { color: blue; }
.green { color: green; }
.gray { color: gray; }
.b, strong { font-weight: bold; }

.ll { font-size: 1.6em; font-weight: bold; }
.l { font-size: 1.3em; font-weight: bold; }
.s { font-size: 0.85em; }
.ss { font-size: 0.65em; }

.back-red { background-color: #ffccff; }
.back-blue { background-color: #ccffff; }

.badge-red, .badge-green {
  padding: 3px 8px 1px;
  margin-right: 5px;
  border-radius: 7px;
  color: #fff;
}
.badge-red { background-color: #e00; }
.badge-green { background-color: #060; }

.clear {
  clear: both;
  line-height: 0;
  overflow: hidden;
}
.space {
  clear: both;
  height: 2.5em;
}

.no-deco { text-decoration: none; }
a:hover img { opacity: 0.8; }

/****  レイアウト  ****/
.main,
.header-inner,
.content h2 {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.footer {
  clear: both;
  margin: 0 auto;
  background-color: #fff;
  text-align: center;
}

/****  ヘッダー  ****/
.site-header { width: 100%; height: 300px; }

.header-left { width: 100%; }

.header-right { float: right; }

.header-table {
  width: 100%;
  table-layout: fixed;
}
.header-table .td-center {
  text-align: center;
  vertical-align: middle;
}
.header-logo {
  display: inline-block;
}
.header-image {
  width: 100%;
  line-height: 1;
  margin-bottom: -1px;
}
.header-image img {
  width: 100%;
}
.btn_inquiry img {
  margin-top: 120px;
}
.full {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}
.top-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

/**** 投稿・固定ページ  ****/
.content-box {
  background-color: #fff;
  padding: 0 43px 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.content-header {
  margin: 0 -43px 10px;
  padding: 10px 43px 10px;
}
h1.title {
  font-size: 1.6em;
  color: #00a9e3;
  text-align: center;
  font-weight: bold;
}
.content-header .up-date,
.content-header .cat-link {
  text-align: right;
  float: none;
}
.eye-catch {
  display: block;
  max-width: 100%;
  margin: 0 auto 30px;
  box-shadow: 0 2px 5px #999;
}
.content h2 {
  font-size: 1.2em;
  padding: 3px 0;
  text-align: center;
  background-color: #f9e0ad;
}
.page-content {
  clear: both;
  padding: 0 40px 30px;
}
.page-content p {
  padding: 10px 0 20px;
}
.page-content h2 {
  font-size: 1.47em;
  padding-bottom: 0.5em;
}
.page-content h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  color: #00a9e3;
  font-size: 1.3em;
  margin: 30px 0 15px;
}
.fa-icon::before {
  font-family: "Font Awesome 6 Free";
  content: "\f058";
  font-weight: 900;
  font-size: 1em;
  color: #00a9e3;
}
.page-content ul {
  padding-left: 1.5em;
  padding-bottom: 2em;
}
.page-content a {
  color: #00aaff;
  text-decoration: none;
}
.page-content a:hover {
  text-decoration: underline;
}
.content h4,
.content h5,
.content h6 {
  font-size: 1.2em;
  clear: both;
}
.post-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.post-navigation .nav-button {
  text-align: center;
}

.post-navigation .nav-button a {
  display: inline-block;
  padding: 10px 20px;
  color: #00a9e3;
  border: 2px solid #00a9e3;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  font-weight: bold;
}

.post-navigation .nav-button a:hover {
  background-color: #00a9e3;
  color: #fff;
}
.content-header .highlight-title {
  font-size: 1.3em;
  text-align: left;
}

/**** フッター  ****/
.footer-name {
  color: #fff;
  background-color: #00a9e3;
  font-size: 0.7em;
  padding: 8px 0;
}
.footer-name a {
  color: #fff;
  text-decoration: none;
}
.footer-name a:hover {
  color: #d2c861;
}

.content-kugiri-space-top {
	margin-top: 120px;
}

.content-kugiri-space {
	margin-top: 70px;
}

.content-kugiri-space-s {
	margin-bottom: 50px;
  text-align: center;
}

.content-kugiri-space-s img {
  max-width: 100px; /* 画像サイズ調整 */
  height: auto;
  display: inline-block;
}

/**** グローバルメニュー  ****/
#gmenu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 999;
  background-color: white;
  box-shadow: none;
  transition: top 0.3s ease, box-shadow 0.3s ease;
}
#gmenu.fixed {
  position: fixed;
  top: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#gmenu ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 24px;
}
#gmenu ul li a {
  text-decoration: none;
  color: #666;
  padding: 15px 20px;
  display: inline-block;
  white-space: nowrap;
}
#gmenu ul li a:hover {
  color: #00a9e3;
  background-color: #fff;
}
.globalMenuSp a {
  text-decoration: none;
}

/**** スマホメニュー  ****/
nav.globalMenuSp {
  display: none;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background: #fff;
  color: #000;
  text-align: center;
  transform: translateY(-100%);
  transition: all 0.6s;
  width: 100%;
}
nav.globalMenuSp ul {
  background: #00a9e3;
  margin: 0;
  padding: 0;
  opacity: 0.9;
}
nav.globalMenuSp ul li {
  font-size: 1.1em;
  list-style: none;
  padding: 0;
  border-bottom: 1px dotted #333;
}
nav.globalMenuSp ul li:last-child {
  border-bottom: none;
}
nav.globalMenuSp ul li a {
  display: block;
  color: #fff;
  padding: 1em 0;
}
nav.globalMenuSp ul li a:hover {
  background-color: #00aaff;
}
nav.globalMenuSp.active {
  transform: translateY(0%);
}
.navToggle {
  display: none;
  position: fixed;
  right: 13px;
  top: 12px;
  width: 42px;
  height: 51px;
  cursor: pointer;
  z-index: 3;
  background: #666;
  text-align: center;
}
.navToggle span {
  display: block;
  position: absolute;
  width: 30px;
  border-bottom: solid 3px #eee;
  left: 6px;
}
.navToggle span:nth-child(1) { top: 9px; }
.navToggle span:nth-child(2) { top: 18px; }
.navToggle span:nth-child(3) { top: 27px; }
.navToggle span:nth-child(4) {
  border: none;
  color: #eee;
  font-size: 9px;
  font-weight: bold;
  top: 34px;
}
.navToggle.active span:nth-child(1) {
  top: 18px;
  transform: rotate(-45deg);
}
.navToggle.active span:nth-child(2),
.navToggle.active span:nth-child(3) {
  top: 18px;
  transform: rotate(45deg);
}

/**** お問い合わせボックス  ****/
.inquiry-box {
  background-color: #fff3b5;
  padding: 50px 0;
  color: #333;

  display: flex;
  justify-content: center; /* 中央寄せ */
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  text-align: left;

  max-width: 800px;
  margin: 0 auto;
}

.contact-button {
  background-color: #f8b500;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 200px; /* 明示的に固定幅にする */
  flex-shrink: 0;
}

.contact-info {
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.05em;
  width: 300px;
  font-family: "Noto Sans JP", "Meiryo", sans-serif;
}

.contact-info div {
  font-weight: bold;  /* ← 各行全体を太字に */
}

.contact-info span {
  font-weight: bold;
  display: inline-block;
  margin-right: 10px;
}

.wp-element-caption {
  text-align: center;
}

/* スマホ対応：縦並びで中央揃え */
@media screen and (max-width: 768px) {
  .inquiry-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-button,
  .contact-info {
    width: 100%;
    max-width: 400px;
  }
}


/**** 投稿リストとページネーション  ****/
.top-news-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list-box {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}
.post-list-box:last-child {
  border-bottom: none;
}
.post-date {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 5px;
}
.shimekiri {
  background-color: #00aaff;
  color: white;
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}
.post-list-title {
  font-size: 1em;
  margin: 0;
}
.post-list-title a {
  color: #00aaff;
  font-weight: bold !important;
  text-decoration: none;
}
.post-list-title a:hover {
  color: #0077cc;
}
#post-list-button {
  text-align: right;
  margin-top: 20px;
}
.pl-Link {
  display: inline-block;
  padding: 5px 18px;
  border: 2px solid #00aaff;
  color: #00a9e3;
  background-color: #fff;
  border-radius: 20px;
  font-size: 0.9em;
  text-decoration: none;
}
.pl-Link:hover {
  background-color: #00aaff;
  color: #fff;
}
.pagination {
  text-align: center;
  margin-top: 30px;
  font-size: 0;
}
.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 5px;
  width: 36px;
  height: 36px;
  line-height: 30px;
  text-align: center;
  border: 2px solid #00aaff;
  border-radius: 50%;
  color: #00aaff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.pagination .current {
  background-color: #00aaff;
  color: #fff;
}
.pagination a:hover {
  background-color: #00aaff;
  color: #fff;
}

/**** テーブル、アンカー調整 ****/
.wp-block-table {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.wp-block-table td {
  padding: .5em 1em;
}
.anchor-adjust {
  display: block;
  height: 100px;
  margin-top: -100px;
  visibility: hidden;
}

/**** Google Map レスポンシブ対応 ****/
.ggmap {
  position: relative;
  padding-bottom: 70%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}
.ggmap iframe,
.ggmap object,
.ggmap embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/**** レスポンシブ対応  ****/
@media screen and (max-width: 1000px) {
  .header-image,
  .main,
  .header-inner,
  .content h2,
  .content-box {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  #gmenu { display: none; }
  nav.globalMenuSp { display: block; }
  .navToggle { display: block; }
}

@media screen and (max-width: 768px) {
  .contact-button {
    width: 90%;
    max-width: 300px;
    font-size: 18px;
  }
  .contact-info {
    font-size: 16px;
    padding: 0 10px;
  }
  .post-list-title {
    line-height: 1.6;
    word-wrap: break-word;
  }
  .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .pagination a, .pagination span {
    width: 30px;
    height: 30px;
    font-size: 13px;
    line-height: 26px;
  }
  .page-content {
    padding: 0 10px;
  }
  .wp-block-table {
    overflow-x: auto;
  }
  .header-table {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .header-table tr,
  .header-table td {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .td-left {
    display: none !important; /* 不要なら非表示 */
  }

  .header-right {
    float: none !important;
    margin-top: 20px;
    text-align: center !important;
  }

  .btn_inquiry {
    display: inline-block !important;
    margin: 0 auto !important;
  }

  .btn_inquiry img {
    display: inline-block !important;
    margin: 0 auto !important;
  }

.content-kugiri-space-top {
	margin-top: 80px;
}

.content-kugiri-space {
	margin-top: 50px;
}

.content-kugiri-space-s {
	margin-bottom: 30px;
  text-align: center;
}
}




@media screen and (max-width: 480px) {
  body {
    font-size: 15px;
  }
}
.wp-block-table td, .wp-block-table th {
  border: none;
}
/* Mobile override for inquiry button under 768px */
@media screen and (max-width: 768px) {
  .header-right,
  .td-right {
    all: unset; /* これで float や text-align の影響をリセット */
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 20px 0 0 !important;
  }

  .btn_inquiry {
    display: block !important;
    margin: 0 auto !important;
  }
}

.day-table tbody tr td:nth-child(2) {
  color: #00a9e3;
}
.day-table tbody tr td {
  vertical-align: middle;
}

/* 主な作業内容bg */
.job_bg-1 {
  background-color: #f8fe8e;
  padding: 2em;
  margin-bottom: 1em;
}
.job_bg-2 {
  background-color: #cafec1;
  padding: 2em;
  margin-bottom: 1em;
}
.job_bg-3 {
  background-color: #fec5c8;
  padding: 2em;
  margin-bottom: 1em;
}
.customer_txt {
  /*color: #00a9e3!important;*/
  font-size: 1.2em!important;
}
.wp-block-file__button {
  background: #00a9e3;
  color: #fff!important;
  padding: 0 1em;
}
.wp-block-file:not(.wp-element-button) {
  font-size: 1em;
  margin-bottom: 1em;
}

/* ギャラリー画像文字 */
.bwg_image_title {
  font-size: 1.3em!important;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic Pro", "メイリオ", "ＭＳ Ｐゴシック", Sans-Serif!important;
  color: #666!important;
  font-weight: normal!important;
}
.bwg_image_info_container1 {
    display: table !important; /* 常に表示 */
    opacity: 1 !important;
}
/* BWG 右3つのアイコンを非表示 */
.bwg_ctrl_btn_container .bwg_info,
.bwg_ctrl_btn_container .bwg_facebook,
.bwg_ctrl_btn_container .bwg_twitter {
    display: none !important;
}
/* ギャラリーの小型縦スクロールバーを非表示 */
/* 縦スクロールバーの幅を0にして見えなくする */
.mCSB_scrollTools_vertical {
    width: 0 !important;
}

/* ドラッガー自体も非表示 */
.mCSB_draggerContainer,
.mCSB_dragger {
    width: 0 !important;
}
/* bwg_image_info 内全体を中央寄せ */
.bwg_image_info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 上下中央 */
    align-items: center;     /* 左右中央 */
    text-align: center;
    width: 100%;
    box-sizing: border-box;  /* パディングやボーダー込みで幅調整 */
}

/* mCustomScrollbar 内のコンテナも中央寄せ */
.bwg_image_info .mCSB_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* タイトルと説明を中央寄せ */
.bwg_image_info .bwg_image_title,
.bwg_image_info .bwg_image_description {
    text-align: center;
}

/* スクロールバーがあってもテキスト中央を維持 */
.bwg_image_info .mCSB_scrollTools_vertical {
    right: 0;         /* 必要ならスクロールバー位置を右端に */
}
