﻿/*河野追加*/

/*画像の上にbefore･afterの文字を重ねる*/
.before {
  position: relative;
}
.before p{
  position: absolute;
  color: #fff;
  font-size: 1.0rem;
  top: -5px;/*左上に配置*/
  left: -10px;/*左上に配置*/
  background: #999999;/*背景色*/
  padding: 0.2rem 0.4rem;/*文字の回りの余白*/
  margin:0; 
}

.after {
  position: relative;
}
.after p{
  position: absolute;
  color: #fff;
  font-size: 1.0rem;
  top: -5px;/*左上に配置*/
  left: -10px;/*左上に配置*/
  background: #ff8000;/*背景色*/
  padding: 0.2rem 0.4rem;/*文字の回りの余白*/
  margin:0; 
}

/*工事内容*/

.detail_box {
	position: relative;
	background: #eaf5f9;
	}
.detail_box_ttl {
	position: relative;
	display: inline-block;
	padding: 0.5em 2em;
	background: #27acd9;
	color: #fff;
	font-weight: bold;
	top: 20px;
	left: -10px;
	}
.detail_box_ttl::before {
	position: absolute;
	content: '';
	top: 100%;
	left: 0;
	border: none;
	border-bottom: solid 10px transparent;
	border-right: solid 10px rgb(149, 158, 155);
	}
.detail_box_txt {
	margin-top: 10px;
	padding: 1em 1.5em 1.5em;
	}
	
/*スタッフコメント吹き出し*/
	
.balloon {
  width: 100%;
  margin: 1.5em 0;
  overflow: hidden;
}

.balloon .faceicon {
  float: left;
  margin-right: -90px;
  width: 80px;
}

.balloon .faceicon img{
  width: 100%;
  height: auto;
  border: solid 3px #fffdcb;
  border-radius: 50%;
}

.balloon .chatting {
  width: 100%;
}

.says {
  display: inline-block;
  position: relative; 
  margin: 5px 0 0 105px;
  padding: 17px 13px;
  border-radius: 12px;
  background: #fffdcb;
}

.says:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 18px; 
  left: -24px;
  border: 12px solid transparent;
  border-right: 12px solid #fffdcb;
}

.says p {
  margin: 0;
  padding: 0;
}
/*レスポンシブ h3 タイトル*/
h3.title {
  position: relative;
  padding: 1rem .5rem;
  font-weight: bold;
}

h3.title:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  content: '';
  border-radius: 3px;
  background-image: -webkit-gradient(linear, right top, left top, from(#2af598), to(#009efd));
  background-image: -webkit-linear-gradient(right, #2af598 0%, #009efd 100%);
  background-image: linear-gradient(to left, #2af598 0%, #009efd 100%);
}

/*お客様の声　カード方式*/
/* 見出し */
.contents {
  margin: 30px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2a7ae2;
}

/* 一覧（←ここが今回の修正ポイント） */
.voice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* PCは2列固定 */
  gap: 24px;                 /* ← カード間の余白しっかり */
  padding: 20px;             /* ← 外側余白 */
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* スマホ */
@media (max-width: 768px) {
  .voice-list {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 10px;
  }
}

/* カード */
.voice-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  transition: 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.voice-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* メイン画像 */
.main-img {
  width: 100%;
  border-radius: 8px;
}

/* タグ */
.tags {
  margin: 8px 0;
  color: inherit;
}

.tag {
  font-size: 12px;
  margin-right: 6px;
  text-decoration: none;
}

.tag.zasso { color: #004e03 !important; }
.tag.jshiba { color: #1caa23 !important; }
.tag.tshiba { color: #2c9aa8 !important; }
.tag.deck  { color: #ff9800 !important; }
.tag.concrete { color: #5e5e5e !important; }
.tag.jari { color: #063479 !important; }
.tag.fence  { color: #7064b8 !important; }
.tag.mekakushi  { color: #51d1a7 !important; }
.tag.wfence  { color: #522d04 !important; }
.tag.tile  { color: #3cc4e6 !important; }
.tag.sentei  { color: #dd2121 !important; }
.tag.ishibari  { color: #e07801 !important; }
.tag.hw  { color: #f15221 !important; }
.tag.renga  { color: #b55233 !important; }
.tag.kaigo  { color: #fa6093 !important; }
.tag.wafu  { color: #db343c !important; }
.tag.youfu  { color: #ff0d9ab2 !important; }
.tag.dog  { color: #dba634 !important; }
.tag.child  { color: #F646A6 !important; }
.tag.gaikou { color: #646463 !important; }
.tag.bbq { color: #6d22f7 !important; }
.tag.niwaishi { color: #5e5e5e !important; }
.tag.ref  { color: #f15221 !important; }
.tag.bc  { color: #7e480b !important; }
.tag.pet  { color: #1358D7 !important; }
.tag.shintiku  { color: #0030FF !important; }
.tag.syokusai { color: #48661E !important; }
.tag.ishoku { color: #007BC9 !important; }
/* 星 */
.star {
  color: #f5b301;
  margin: 5px 0;
  font-size: 14px;
}

/* タイトル */
.voice-title {
  font-size: 16px;
  margin: 5px 0;
}

/* メタ */
.voice-meta {
  font-size: 13px;
  color: #777;
}

/* テキスト */
.voice-text {
  font-size: 14px;
  color: #555;
}

/* Before After */
.before-after {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.ba-item {
  position: relative;
  width: 50%;
}

.ba-item img {
  width: 100%;
  border-radius: 6px;
}

/* ラベル */
.ba-label {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  color: #fff;
}

.ba-before { background: #999; }
.ba-after { background: #2a7ae2; }

/* リンク */
.voice-link {
  display: inline-block;
  margin-top: 10px;
  color: #2a7ae2;
  text-decoration: none;
  font-weight: bold;
}

/* =========================
   pagination
========================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  margin: 32px auto 24px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 38px;
  padding: 0 12px;

  border: 1px solid #cfcfcf;
  border-radius: 10px;

  background: #fff;
  color: #666;

  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  transition: all .2s ease;
  box-sizing: border-box;
}

/* hover */
.pagination a:hover {
  border-color: #999;
  color: #333;
}

/* current */
.pagination .current {
  background: #666;
  border-color: #666;
  color: #fff;
}

/* dots */
.pagination .dots {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 2px;
}

/* next */
.pagination .next {
  padding: 0 14px;
}

/* パターンA：左線アクセント */
h3.sub-title {
    font-size: 18px;          /* 文字の大きさ（適宜調整してください） */
    font-weight: bold;        /* 太字 */
    color: #333333;           /* 文字の色（濃いグレー） */
    padding: 5px 0 5px 15px;  /* 内側の余白（左側に線をよける隙間を作る） */
    margin: 20px 0;           /* 上下の余白 */
    border-left: 5px solid #4caf50; /* 左側の線の太さと色（※緑色にしています。ロゴ等の色に合わせて変更可） */
    line-height: 1.5;         /* 行間 */
    letter-spacing: 0.05em;   /* 文字の間隔を少し広げて上品に */
}

.intro-text {
    font-size: 15px;
    color: #444444;
    line-height: 1.8;
    margin: 15px 0 30px 0; /* 下に少し広めの余白を取って事例カードへ繋げます */
    padding: 0 5px;
}

/* お悩みナビ全体の枠 */
.nav-container {
    box-sizing: border-box; /* 👈 これを追加！横幅の計算を自動でピタッと合わせます */
    margin: 50px 15px 20px 15px;
    padding: 20px;          /* スマホ用に少しだけ余白を狭くするとさらにスッキリします */
    background-color: #fcfbfa;
    border: 1px solid #eaddd0;
    border-radius: 8px;
}
/* ナビの見出し */
.nav-title {
    font-size: 16px;
    font-weight: bold;
    color: #47321a;
    margin-bottom: 20px;
    text-align: center;
}
/* グリッド配置（スマホは1列、PCは自動で2列になります） */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}
/* 各バナーカードの基本設定 */
.nav-card {
    display: block;
    text-decoration: none;
    padding: 18px 20px;
    border-radius: 6px;
    color: #ffffff !important;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
/* マウスを乗せた時の動き */
.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    opacity: 0.9;
}
/* カードの中の文字配置 */
.nav-card-inner {
    display: flex;
    flex-direction: column;
}
.nav-sub {
    font-size: 11px;
    opacity: 0.9;
    font-weight: normal;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}
.nav-main {
    font-size: 16px;
    letter-spacing: 0.05em;
}

/* ===================================================
   ★お悩みバナー 12色のセンスアップ・グラデーション
=================================================== */

/* 1. 最新情報：信頼感と深みのあるアースボルドー */
.card-latest { background: linear-gradient(135deg, #A75D5D, #632B2B); }

/* 2. 雑草対策：深みのあるナチュラルグリーン */
.card-zassou { background: linear-gradient(135deg, #609966, #40513B); }

/* 3. ペット：あたたかみのあるテラコッタオレンジ */
.card-pet { background: linear-gradient(135deg, #DE8944, #A65A26); }

/* 4. ウッドデッキ：高級感のあるモカブラウン */
.card-wooddeck { background: linear-gradient(135deg, #9C8470, #6F5643); }

/* 5. 目隠し：落ち着きのあるクラシックネイビー */
.card-privacy { background: linear-gradient(135deg, #526D82, #27374D); }

/* 6. 子供の庭：爽やかなマスタードイエロー */
.card-child { background: linear-gradient(135deg, #D4AD53, #9E7415); }

/* 7. 庭石・段差：スマートなチャコールグレー */
.card-niwaishi { background: linear-gradient(135deg, #7F8487, #413F42); }

/* 8. 新築外構：爽やかなミントアッシュ */
.card-shintiku { background: linear-gradient(135deg, #6B8A7A, #3B4A42); }

/* 9. 広い庭：開放感のあるマイルドオリーブ */
.card-hiroiniwa { background: linear-gradient(135deg, #829460, #4E5E30); }

/* 10. 天然芝：生き生きとしたリーフグリーン */
.card-shibafu { background: linear-gradient(135deg, #73A942, #1A4314); }

/* 11. 別荘・実家：上品で落ち着いたスモーキーパープル */
.card-bessou { background: linear-gradient(135deg, #8E7AB5, #4B3F72); }

/* 12. シニア：優しく上品なモーヴピンク */
.card-age { background: linear-gradient(135deg, #A87C7C, #6B4A4A); }