@charset "UTF-8";

/* CSS Document 制作者：寺嶋 */

/**************************************************
 about 
 **************************************************/
/* ページタイトル（h1） */
.main .title {
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: .02em;
  line-height: 1.35;
  margin: 24px 0 12px;
  text-align: left;
}

/* セクション共通 */
.main .about-section {
  margin: 24px 0;
  padding: 20px 16px;
  background: #f6f7f6;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.main .about-section + .about-section {
  margin-top: 20px;
}

.main .about-section .about-section-title {
  font-size: 1.15rem;
  color: #0a7f4f;  /* ブランド系グリーン（common.cssのトーンに寄せる） */
  margin: 0 0 12px;
}

/* 代表あいさつ：テキスト＋画像の2カラム（SPは1カラム） */
.main .about-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.main .about-lead .about-lead-text {
  font-size: 1.02rem;
  line-height: 1.95;
}

.main .about-lead .about-lead-sign {
  margin-top: .5rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.main .about-lead figure {
  margin: 0;
}

.main .about-lead figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.main .about-lead figure figcaption {
  margin-top: 6px;
  font-size: .9rem;
  color: #6b7280;
}

/* 768px〜で2カラム化 */
@media (min-width: 768px){
  .main .about-lead {
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
  }
}

/* 会社概要（dlをカード行として並べる。テーブルは不使用） */
.main .company-info {
  display: grid;
  gap: 8px;
  margin: 0;
}

.main .company-info .row {
  display: grid;
  grid-template-columns: 1fr;      /* SPは縦積み */
  gap: 6px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 12px;
}

.main .company-info dt {
  margin: 0;
  font-weight: 700;
  color: #3f7a41;
}

.main .company-info dd {
  margin: 0;
  line-height: 1.9;
  word-break: break-word;
}

.main .company-info a[href^="tel:"],
.main .company-info a[href^="mailto:"] {
  color: #0a7f4f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px){
  .main .company-info .row {
    grid-template-columns: 180px 1fr;  /* PCでは見出し/内容を横並び */
    align-items: center;
  }
}

/* 地域密着の強み（チェックリスト＋中央CTA）
   既存 .btn/.cta-small と併用してもOK（common.css参照） */
.main .about-strengths .ticks {
  margin: 0 0 12px 1.2em;
  padding: 0;
}

.main .about-strengths .ticks li {
  list-style: "✔︎  " outside;
  margin: .25em 0;
  line-height: 1.8;
  color: #1a1a1a;
}

.main .about-strengths .cta-center {
  text-align: center;
  margin-top: 10px;
  color: #1a1a1a;
}

.main .about-note {
  margin-top: 10px;
  font-size: .95rem;
  color: #6b7280;
}

/* アクセシビリティ配慮（動きが苦手なユーザー） */
@media (prefers-reduced-motion: reduce){
  .main .about-section { scroll-behavior: auto; }
}

/* ダークモード（任意） */
@media (prefers-color-scheme: dark){
  .main .about-section {
    background: #111411;
    border-color: #1f2937;
  }
  .main .company-info .row { background: #0f120f; }
  .main .about-note { color: #9aa3ad; }
}


/**************************************************
 works 
 **************************************************/

/* タイトル・導入 */
.works .works-title{
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: .02em;
  margin: 24px 0 8px;
}
.works .works-intro{
  color:#33423b;
  line-height: 1.9;
  margin-bottom: 10px;
}

/* フィルタ（任意機能：見た目だけCSS。JS未実装でも表示OK） */
.works .works-filter{
  display:flex; gap:8px; flex-wrap:wrap;
  margin: 14px 0 10px; padding:0;
}
.works .works-filter button{
  padding:.5rem .8rem; border-radius:999px;
  border:1px solid #e8ece9; background:#fff; cursor:pointer;
}
.works .works-filter button.is-active{ border-color:#0a7f4f; color:#0a7f4f; font-weight:700; }

/* グリッド（SP1→PC2） */
.works .works-grid{
  display:grid; gap:16px;
  grid-template-columns: 1fr;
  margin-top: 10px;
}
@media (min-width: 900px){
  .works .works-grid{ grid-template-columns: 1fr 1fr; }
}

/* カード */
.works .works-card{
  background:#fff; border:1px solid #e8ece9; border-radius:14px;
  padding:14px; box-shadow:0 6px 18px rgba(0,0,0,.04);
  display:flex; flex-direction:column; gap:10px;
}
.works .works-card-title{
  font-size:1.1rem; margin:0 0 4px; line-height:1.5;
}
/* 施工事例メタ：ラベルと値を揃えて、値だけ折り返し可 */
.works .works-meta{
  display: grid;
  grid-template-columns: auto 1fr; /* 左：ラベルは必要幅、右：残り幅 */
  column-gap: 10px;
  row-gap: 4px;
  margin: 0;
  padding: 0;
}
.works .works-meta li{
  list-style: none;
  display: contents;           /* li自体をグリッドの器にしない */
}
.works .works-meta .label{
  font-weight: 700;
  color: #3f7a41;
  white-space: nowrap;         /* 「場所：」「作業：」は改行しない */
}
.works .works-meta .value{
  min-width: 0;                /* 右カラムがきれいに折り返せるように */
  word-break: break-word;
}

.works .works-desc{ margin:0; line-height:1.85; color:#1a1a1a; }
.works .works-card-foot{ margin-top:4px; }

/* Before / After：横並び→SPで縦並び */
.works .ba{
  display:grid; gap:10px; grid-template-columns:1fr 1fr;
}
@media (max-width: 640px){
  .works .ba{ grid-template-columns:1fr; }
}
.works .ba-pane{ margin:0; position:relative; }
.works .ba-pane img{
  width:100%; height:auto; display:block; border-radius:12px;
  aspect-ratio: 4 / 3; object-fit: cover; /* トリミングで揃える */
}
.works .ba-label{
  position:absolute; left:10px; top:10px;
  background:rgba(0,0,0,.6); color:#fff;
  font-weight:700; font-size:.85rem;
  padding:.25rem .5rem; border-radius:999px;
}
.works .ba-label--after{ background:#0a7f4f; }

/* アクセシビリティ（動きが苦手な方向け） */
@media (prefers-reduced-motion: reduce){
  .works .sen-cta{ transition:none; }
}


/**************************************************
 * サービス・料金 *
**************************************************/

.service .service-title{
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: .02em;
  margin: 24px 0 10px;
}
.service .service-intro{
  color:#33423b;
  line-height:1.9;
  margin-bottom: 10px;
}

/* ===== サービスポイント（緑背景＋白文字のバッジ） ===== */
.service .svc-top{ margin: 10px 0 16px; display:grid; gap:12px; }

.service .trust-badges{
  margin:0; padding:0;
  display:grid; gap:10px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px){
  .service .trust-badges{ grid-template-columns: repeat(4, 1fr); }
}
/* サービスポイント（キャッチコピーだけ） */
/* ===== Service: キャッチコピー・バッジ ===== */
/* サービスポイント（キャッチコピー） */
.service .catch-badges{
  margin: 10px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);  /* PC: 横4列 */
}

@media (max-width: 720px){
  .service .catch-badges{
    grid-template-columns: repeat(2, 1fr); /* SP: 2×2 */
  }
}

.service .catch-badges li{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:#0a7f4f;
  color:#fff;
  border-radius:14px;
  padding: 24px 12px;
  /* 影を濃く */
  box-shadow: 0 6px 10px rgba(0,0,0,.2),
              0 6px 6px rgba(0,0,0,.15);
  text-align:center;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* ホバー時さらに強調 */
.service .catch-badges li:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,.25),
              0 16px 32px rgba(0,0,0,.2);
}

.service .catch-badges .ico{
  font-size: 32px;             /* アイコンも大きめ */
  line-height:1;
  margin-bottom:8px;
}

.service .catch-badges b{
  font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2rem);  /* 大きめ文字 */
  letter-spacing: .05em;
  color:#fff;
}


@media (max-width: 720px){
  .service .catch-badges li{                /* SPでも見やすい行間に */
    grid-template-columns: 28px 1fr;
    padding: 14px 12px;
  }
  .service .catch-badges b{
    font-size: 1.25rem;
  }
}

/* ホバーのわずかな反応（任意） */
.service .catch-badges li:hover{
  filter: brightness(1.05);
}

/* クイックCTA */
.service .quick-cta{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  background:#fbfdfb; border:1px solid #e8ece9; border-radius:12px;
  padding:10px 12px;
}
.service .quick-cta-text{ margin:0; color:#33423b; }
.service .quick-cta-tel, .service .quick-cta-mail{
  text-decoration: underline; text-underline-offset: 2px; color:#0a7f4f; font-weight:700;
}
.service .sep{ color:#9aa3ad; }
.service .quick-cta-btn{ margin-left:auto; }
@media (max-width: 520px){
  .service .quick-cta-btn{ width:100%; text-align:center; }
}

/* ===== サービスカード（見出し=緑 / 本文=白） ===== */
.service .service-grid{
  display: grid;
  gap: 14px;
  margin: 14px 0 6px;
  grid-template-columns: 1fr;           /* SP: 1列 */
  grid-auto-flow: row dense;            /* ← 空きを自動で埋める */
}

/* サービス一覧の見出しはグリッド全幅で表示 */
.service .service-grid > .section-title{
  grid-column: 1 / -1;
  margin: 12px 0;   /* お好みで */
}

@media (min-width: 900px){
  .service .service-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* PC: 2列 */
  }
}

/* カード側で列指定や幅が入っても無効化（保険） */
.service .svc-card{
  grid-column: auto !important;
  width: auto;
  float: none;
}

/* ワイドカードはPCだけ横断、SPでは通常幅に戻す */
@media (min-width: 900px){
  .service .svc-card--wide{ grid-column: 1 / -1; }
}
@media (max-width: 899px){
  .service .svc-card--wide{ grid-column: auto; }
}

.service .svc-card--wide{ grid-column: 1 / -1; } /* PCで横に広げる */
.service .svc-head{
  background:#0a7f4f; color:#fff; font-weight:700; font-size:1.2rem; padding:15px 14px;
}
.service .svc-body{
  background:#fff; color:#1a1a1a; padding:12px 14px; line-height:1.8; border:1px solid #e8ece9;
}

/* ===== 料金：DLカード ===== */
.service .price{ margin-top: 6px; }
.service .section-title{ font-size:1.2rem; margin:12px 0; color:#0a7f4f; }
.service .price-list{ display:grid; gap:8px; margin:0; }
.service .price-list .row{
  display:grid; grid-template-columns:1fr; gap:6px;
  background:#fff; border:1px solid #e8ece9; border-radius:12px;
  padding:12px 14px;
}
.service .price-list dt{ margin:0; font-weight:700; color:#3f7a41; }
.service .price-list dd{ margin:0; line-height:1.85; }
.service .price-ul{ margin:.25rem 0 0 1.2em; padding:0; }
.service .price-ul li{ list-style:"・ " outside; margin:.1rem 0; }
@media (min-width: 768px){
  .service .price-list .row{ grid-template-columns: 220px 1fr; align-items:center; }
}
.service .price-note{ color:#6b7b72; font-size:.95rem; margin:.6rem 0 0; }

/* ===== 流れ（ol） ===== */
.service .flow{ margin-top: 16px; }
.service .flow-steps{
  counter-reset: step;
  display:grid; gap:8px; margin:0; padding:0;
}
.service .flow-steps li{
  position:relative; background:#fbfdfb; border:1px solid #e8ece9;
  border-radius:12px; padding:12px 14px 12px 44px; line-height:1.8;
}
.service .flow-steps li::before{
  counter-increment: step; content: counter(step);
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:24px; height:24px; border-radius:50%;
  display:grid; place-items:center;
  background:#0a7f4f; color:#fff; font-weight:700; font-size:.9rem;
}

/* 動きを抑制（配慮） */
@media (prefers-reduced-motion: reduce){
  .service .sen-cta{ transition:none; }
}

/******** Service: 対応エリア ********/
.service .area { margin-top: 16px; }

.service .area .section-title{
  font-size: 1.2rem;
  margin: 12px 0;
  color: #0a7f4f;
}

.service .area-map{
  margin: 0 0 10px;
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.service .area-map img{
  display: block;
  width: 100%;
  height: auto;
}
.service .area-map figcaption{
  padding: 8px 12px;
  font-size: .92rem;
  color: #6b7b72;
  background: #fbfdfb;
  border-top: 1px solid #e8ece9;
}

/* 市町名チップ（折返しOK） */
.service .area-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
}
.service .area-tags li{
  background: #0a7f4f;
  color: #fff;
  padding: .45rem .7rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

/* 対応エリアの地図画像 */
.service .area-map img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 600px;   /* PCでの最大幅 */
  margin: 0 auto;     /* 中央寄せ */
  border-radius: 12px;
}

/**************************************************
 * お問い合わせ *
**************************************************/

/* ===== Contact Form 7 フォーム調整 ===== */

/* テキスト系入力欄 */
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form input[type="url"],
.wpcf7 form select,
.wpcf7 form textarea,
.wpcf7 form input[type="file"],
.wpcf7 form input[type="submit"],
.wpcf7 form .wpcf7-acceptance,
.wpcf7 form .privacy-link {
  width: 80%;          /* 横幅揃える（%はお好みで調整） */
  max-width: 500px;    /* PCで横に広がりすぎ防止 */
  margin: 0 auto 1em;  /* 中央寄せ＋下に余白 */
  display: block;
  box-sizing: border-box;
}

/* チェックボックスと文章の整え方 */
.wpcf7 form .wpcf7-acceptance label {
  display: flex;        /* チェックと文章を横並び */
  align-items: left;  /* 縦位置を揃える */
  gap: 0.5em;           /* 間隔を少しあける */
  line-height: 1.4;
  padding: 0;
}

@media (min-width: 768px){
.wpcf7 form .wpcf7-acceptance label {
  display: inline;
}}

/* 送信ボタンだけ少し見やすく */
.wpcf7 form input[type="submit"] {
  color: #fff;
  border: none;
  padding: 0.8em;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  text-align: center;
}

.wpcf7 form label {
  width: 80%;          /* 入力欄と同じ幅に */
  max-width: 500px;
  margin: 0 auto 0.5em; /* 中央寄せ＋下に少し余白 */
  display: block;       /* ブロック化で幅指定を効かせる */
  font-weight: bold;    /* 見やすくするため */
  box-sizing: border-box;
}

/* お問い合わせページだけ h1（Cocoonのタイトル）を中央＆幅揃え */
/* お問い合わせページだけ h1 タイトルを調整 */
.page-id-18 .entry-title {
  width: 80%;
  max-width: 500px;
  margin: 0 auto 1em;
  padding-top: 1rem;
  text-align: center;
  font-size: clamp(20px, 4.8vw, 28px);
  line-height: 1.4;
}

/* お問い合わせページ（page-id-18）の送信ボタン */
.page-id-18 .wpcf7 form input[type="submit"] {
  background-color: #3B5D45; /* センテイヤカラー */
  color: #fff;
}
.page-id-18 .wpcf7 form input[type="submit"]:hover {
  background-color: #0a7f4f; /* ホバーで明るい緑 */
}
