/**
 * component.css
 * サイト固有のカスタムコンポーネントを管理するファイル
 * style.css の後に読み込まれる
 */

.--white {
  color: #ffffff !important;
}

.heading1 {
  color: #2d6016;
  font-family:
    "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho",
    "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E",
    "ＭＳ Ｐ明朝", "MS PMincho", "Noto Serif JP", serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 16px 0;
}

.heading2 {
  color: #000000;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.6;
  margin: 12px 0;
}

@media screen and (max-width: 767px) {
  .heading1 {
    font-size: 24px;
  }

  .heading2 {
    font-size: 1.08em;
  }
}

/* ==========================================================================
   c-work-list / c-work-item — 対応工事リスト
   左ボーダー付きのリスト形式コンポーネント
   使い方:
   <div class="c-work-list">
     <div class="c-work-item">
       <p class="c-work-item__title">工事名</p>
       <p class="c-work-item__desc">説明文</p>
     </div>
   </div>
   ========================================================================== */

.c-work-list {
  margin: 24px 0;
}

.c-work-item {
  border-left: 3px solid #8aafc5;
  padding: 4px 0 4px 16px;
  margin-bottom: 20px;
}

.c-work-item__title {
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.5;
}

.c-work-item__desc {
  margin: 0;
  line-height: 1.8;
}

@media screen and (max-width: 959px) {
  .c-work-item {
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 640px) {
  .c-work-item {
    padding-left: 12px;
    margin-bottom: 14px;
  }
}

/* ==========================================================================
   c-construction-btns / c-construction-btn — 対応工事一覧ボタン
   2列折り返しボタン + 左から右のホバーアニメーション
   使い方:
   <div class="c-construction-btns">
     <span class="c-construction-btn p-main-image_btn-link_type3 p-main-image_btn-link"><a href="#">ラベル</a></span>
   </div>
   ========================================================================== */

.c-construction-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin-top: 40px;
  align-self: stretch;
}

.c-construction-btn {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  max-width: 200px;
  height: 58px;
  position: relative;
  pointer-events: none;
  margin: 0 !important;
  justify-self: stretch;
  border: 1px solid #157a3a;
}

.c-construction-btn a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100%;
  padding: 0 54px 0 28px !important;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: auto;
  color: #157a3a;
  background: #ffffff;
  border: 0;
  text-decoration: none;
  text-align: center;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 3;
  font-weight: 400;
}

.c-construction-btn a::before {
  background-color: #157a3a;
  content: "";
  height: 100%;
  width: 100%;
  left: -102%;
  top: 0;
  opacity: 1;
  position: absolute;
  z-index: -1;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.c-construction-btn a::after {
  content: none;
  display: none;
}

/* customize.css の .p-main-image_btn-link_type3 a::after（白い下半分カバー要素）を
   詳細度(0,3,2)で完全に無効化。display はトランジション不可なため、
   ホバー解除時に瞬時復活してアニメーションが崩れるのを防ぐ */
.c-construction-btn.p-main-image_btn-link_type3 a::after {
  content: none !important;
  display: none !important;
}

.c-construction-btn::after {
  font-size: 0.9em;
  content: "\e910";
  font-family: "design_plus";
  position: absolute;
  top: 0;
  right: 24px;
  line-height: 58px;
  z-index: 10;
  display: inline-block;
  color: #157a3a;
  pointer-events: none;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.c-construction-btn:hover {
  color: #ffffff;
}

.c-construction-btn:hover::after,
.c-construction-btn:has(a:hover)::after {
  color: #ffffff;
}

.c-construction-btn a:hover {
  color: #ffffff;
  background-color: #ffffff;
  border: 0;
}

.c-construction-btn.p-main-image_btn-link_type3 a:hover::before {
  height: 100% !important;
}

.c-construction-btn.p-main-image_btn-link_type3 a:hover::after {
  content: none !important;
  display: none !important;
  height: auto !important;
}

.c-construction-btn a:hover::before {
  left: 0;
}

@media screen and (max-width: 959px) {
  .c-construction-btns {
    max-width: 100%;
  }
}

@media screen and (max-width: 640px) {
  

  .c-construction-btn::after {
    right: 24px !important;
  }
}

/* ==========================================================================
   #cb_3 — セクション背景画像
   ========================================================================== */

#cb_3 {
  background-image: url('../../uploads/bg_sec3.png');
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   #cb_4 — セクション背景画像
   ========================================================================== */

#cb_4 {
  background-image: url('../../uploads/bg_sec4.png');
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   c-problem-heading — お困りセクション 小見出し（緑帯 + 逆三角フキダシ）
   使い方: <p class="c-problem-heading">見出しテキスト</p>
   ========================================================================== */

.c-problem-heading {
  display: block;
  background-color: var(--color-sub);
  color: #ffffff;
  font-weight: bold;
  padding: 10px 16px;
  position: relative;
  margin-top: 28px;
  margin-bottom: 20px;
}

.c-problem-heading::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-sub);
}
