@charset "UTF-8";
/* =========================================================
   雨漏り修理LP 下層ページ共通スタイル（under-layer）
   下層ページで共通して使うもの。サイト全体の共通は common.css
   読み込み順：common.css → under-layer.css → ページ別CSS（TOP と共通のセクションは common.css にあり、下層ページでの差分をここ・ページ別CSSで上書きする。top.css は index.html・city.html だけ）
   PCファースト / ブレークポイント 1280px・960px・568px
   ========================================================= */

/* ===== パンくず =====
   WordPress 版は Breadcrumb NavXT が項目を出力するため、項目のタグやクラスに頼らない指定にしている */
.breadcrumb {
  background: #fff;
}

.breadcrumb_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 101px;
  padding: 20px 0;
  font-size: 16px;
  line-height: 24px;
}

.breadcrumb_list > * + *::before {
  content: "＞";
  margin: 0 1em;
}

.breadcrumb_list a:hover {
  text-decoration: underline;
}

/* SP（960px以下）はデザインどおりパンくずを表示しない（非表示でも HTML 上の BreadcrumbList の構造化データは残る） */
@media only screen and (max-width: 960px) {
  .breadcrumb {
    display: none;
  }
}

/* ===== アイキャッチ ===== */
.page_head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 306px;
  overflow: hidden;
  background: #1e56af;
}

.page_head_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page_head_title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 511px;
  min-height: 147px;
  padding: 0 74px;
  font-size: 58px;
  font-weight: 700;
  line-height: 70px;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(-51deg, rgba(3, 33, 68, 0.6) 8%, rgba(3, 33, 68, 0.75) 33%, rgba(3, 33, 68, 0.9) 93%);
}

.page_head_title img {
  flex-shrink: 0;
  width: 58px;
}

@media only screen and (max-width: 960px) {
  .page_head {
    height: 156px;
  }

  .page_head_title {
    gap: 7px;
    min-width: 161px;
    min-height: 58px;
    padding: 0 20px 0 17px;
    font-size: 18px;
    line-height: 24px;
  }

  .page_head_title img {
    width: 29px;
  }
}

/* ===== 下層ページ共通：導入（左に見出し・本文、右に写真）。施工の流れ・施工事例一覧 ===== */
.page_intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  column-gap: 53px;
  align-items: start;
  margin-top: 55px;
}

.page_intro_title {
  font-size: 36px;
  font-weight: 700;
  line-height: 52px;
  color: var(--c_navy);
}

.page_intro_text {
  margin-top: 18px;
  font-size: 16px;
  line-height: 24px;
}

.page_intro_img {
  display: block;
  width: 100%;
  margin-top: 4px;
  aspect-ratio: 520 / 346;
  object-fit: cover;
  border-radius: 10px;
}

@media only screen and (max-width: 1280px) {
  .page_intro {
    grid-template-columns: minmax(0, 1fr) 42%;
    column-gap: 40px;
  }

  .page_intro_title {
    font-size: 30px;
    line-height: 44px;
  }
}

@media only screen and (max-width: 960px) {
  .page_intro {
    display: block;
    margin-top: 24px;
  }

  .page_intro_title {
    font-size: 24px;
    line-height: 28px;
  }

  .page_intro_text {
    margin-top: 20px;
    font-size: 15px;
    line-height: 20px;
  }

  .page_intro_img {
    margin-top: 25px;
    aspect-ratio: 680 / 453;
    border-radius: 5px;
  }
}

/* =========================================================
   工事詳細ページ（屋根・外壁など）の共通セクション
   TOPと同じセクションは common.css を共用し、差分だけ detail_ の修飾クラスで上書き
   ========================================================= */

/* ===== 工事詳細ページ：アイキャッチ ===== */
.detail_head {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #000f26;
}

.detail_head_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.detail_head_inner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
}

.detail_head_box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  width: 720px;
  max-width: 100%;
  height: 330px;
  padding: 0 40px;
  background: linear-gradient(-63.37deg, rgba(3, 33, 68, 0.6) 7.7%, rgba(3, 33, 68, 0.75) 32.7%, rgba(3, 33, 68, 0.9) 93%);
}

.detail_head_title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 58px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.02em;
  color: #fff;
}

.detail_head_title img {
  flex-shrink: 0;
  width: 58px;
}

.detail_head_lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #f5f7f9;
}

@media only screen and (max-width: 1280px) {
  .detail_head_inner {
    padding: 0 40px;
  }

  .detail_head_title {
    font-size: 50px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_head {
    height: 242px;
  }

  .detail_head_inner {
    align-items: stretch;
    max-width: none;
    padding: 0;
  }

  .detail_head_box {
    gap: 15px;
    width: 57%;
    max-width: 320px;
    height: 100%;
    padding: 0 10px 0 17px;
    background: linear-gradient(-78.74deg, rgba(3, 33, 68, 0.6) 6.3%, rgba(3, 33, 68, 0.75) 31.7%, rgba(3, 33, 68, 0.9) 93%);
  }

  .detail_head_title {
    gap: 7px;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.015em;
  }

  .detail_head_title img {
    width: 29px;
  }

  .detail_head_lead {
    font-size: 14px;
    line-height: 20px;
    color: #fff;
  }
}

/* ===== 工事詳細ページ：アイキャッチ（見出しが2行以上になるページ用の修飾クラス） =====
   box に detail_head_box_multi、h2 に detail_head_title_multi を付ける（料金・施工の流れなど） */
.detail_head_box_multi {
  gap: 10px;
}

.detail_head_title_multi {
  line-height: 70px;
}

@media only screen and (max-width: 1280px) {
  .detail_head_title_multi {
    line-height: 62px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_head_box_multi {
    gap: 15px;
  }

  .detail_head_title_multi {
    font-size: 18px;
    line-height: 28px;
  }
}

/* ===== 工事詳細ページ：よくある症状 ===== */
/* TOP の .symptom / .symptom_list / .symptom_item を流用し、3列・カードサイズを上書き */
.detail_symptom {
  padding: 18px 0 71px;
}

.detail_symptom_list {
  margin-top: 40px;
}

.detail_symptom_item {
  width: calc((100% - 60px) / 3);
  max-width: 380px;
}

.detail_symptom_item .detail_symptom_img {
  height: auto;
  aspect-ratio: 380 / 237;
}

.detail_symptom_title {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 88px;
  padding: 0 18px 0 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: rgba(16, 48, 95, 0.8);
}

@media only screen and (max-width: 1280px) {
  .detail_symptom_title {
    padding: 0 12px 0 16px;
    font-size: 17px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_symptom {
    padding: 25px 0 47px;
  }

  .detail_symptom::before {
    top: 8px;
    right: -120px;
  }

  .detail_symptom_list {
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
  }

  .detail_symptom_item {
    display: block;
    width: calc((100% - 20px) / 2);
    height: auto;
    border-radius: 5px;
  }

  .detail_symptom_item .detail_symptom_img {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 300;
  }

  .detail_symptom_title {
    height: 74px;
    padding: 0 8px 0 15px;
    font-size: 16px;
    line-height: 1.32;
  }
}

/* ===== 工事詳細ページ：まずはご相談ください ===== */
/* TOP の .consult（水滴背景・上端の三角）と .consult_title を流用 */
.detail_consult {
  padding: 72px 0 80px;
}

.detail_consult_title {
  line-height: 73px;
}

.detail_consult_body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 40px;
}

.detail_consult_photo {
  flex-shrink: 0;
  width: calc(548 / 1200 * 100%);
}

.detail_consult_img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.detail_consult_list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: calc(612 / 1200 * 100%);
}

.detail_consult_item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 10px 16px 10px 72px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c_navy);
  background: #fff;
  border-radius: 20px 0;
}

.detail_consult_item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 27px;
  width: 34px;
  height: 32px;
  background: url("../img/top/icon_check.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.detail_consult_item em {
  color: var(--c_orange);
}

@media only screen and (max-width: 1280px) {
  .detail_consult_item {
    min-height: 80px;
    padding-left: 60px;
    font-size: 26px;
  }

  .detail_consult_item::before {
    left: 18px;
    width: 30px;
    height: 28px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_consult {
    padding: 40px 0 24px;
  }

  .detail_consult_title {
    line-height: 37px;
  }

  .detail_consult_body {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
  }

  .detail_consult_photo {
    width: 100%;
  }

  .detail_consult_img {
    aspect-ratio: 680 / 396;
    object-fit: cover;
  }

  .detail_consult_list {
    gap: 15px;
    width: 100%;
    margin-top: 23px;
  }

  .detail_consult_item {
    min-height: 38px;
    padding: 6px 10px 6px 38px;
    font-size: 18px;
    border-radius: 10px 0;
  }

  .detail_consult_item::before {
    left: 9px;
    width: 21px;
    height: 20px;
  }
}

/* ===== 工事詳細ページ：雨漏りはどこから発生する ===== */
.detail_cause {
  position: relative;
  padding: 96px 0 100px;
  overflow: hidden;
}

/* 背景の波紋（TOP .propose::before と同じ画像） */
.detail_cause::before {
  content: "";
  position: absolute;
  top: 64px;
  right: calc(50% + 279px);
  width: 479px;
  height: 479px;
  background: url("../img/top/ripple.webp") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.detail_cause .container {
  position: relative;
}

.detail_cause_lead {
  margin-top: 34px;
  font-size: 16px;
  line-height: 1.5;
  color: #515963;
  text-align: center;
}

.detail_cause_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 40px;
  margin-top: 69px;
}

.detail_cause_item {
  display: flex;
  width: calc((100% - 40px) / 2);
  min-height: 200px;
  background: #fff;
  border: 4px solid #dcebff;
  border-radius: 8px;
  overflow: hidden;
}

.detail_cause_img {
  position: relative;
  flex: 0 0 48.6%;
  overflow: hidden;
}

.detail_cause_img .detail_cause_photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.detail_cause_num {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #ec750a;
}

.detail_cause_body {
  flex: 1;
  padding: 20px;
}

.detail_cause_title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #000f26;
}

.detail_cause_title_em {
  color: #ec750a;
}

.detail_cause_text {
  margin-top: 15px;
  font-size: 14px;
  line-height: 20px;
  color: #515963;
}

@media only screen and (max-width: 1280px) {
  .detail_cause_title {
    font-size: 19px;
    line-height: 26px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_cause {
    padding: 32px 0 40px;
  }

  .detail_cause::before {
    top: 0;
    right: auto;
    left: -100px;
    width: 240px;
    height: 240px;
  }

  .detail_cause_lead {
    margin-top: 16px;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
  }

  .detail_cause_list {
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
  }

  .detail_cause_item {
    width: 100%;
    min-height: 197px;
    border-width: 2px;
    border-radius: 5px;
  }

  .detail_cause_img {
    flex-basis: 48%;
  }

  .detail_cause_num {
    width: 35px;
    height: 35px;
    font-size: 22px;
  }

  .detail_cause_body {
    padding: 12px;
  }

  .detail_cause_title {
    font-size: 17px;
    line-height: 21px;
  }

  .detail_cause_text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 18px;
  }
}

/* ===== 工事詳細ページ：種類によって原因・修理方法は異なります ===== */
.detail_type {
  padding: 96px 0;
  background: var(--c_light);
}

.detail_type_heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.0;
  color: var(--c_navy2);
}

.detail_type_heading_icon {
  flex-shrink: 0;
}

.detail_type_heading_text {
  line-height: 46px;
}

.detail_type_heading_em {
  font-size: 58px;
  line-height: 67px;
  color: #ec750a;
}

.detail_type_lead {
  margin-top: 56px;
  font-size: 16px;
  line-height: 1.5;
  color: #515963;
  text-align: center;
}

.detail_type_list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 45px;
}

.detail_type_item {
  display: flex;
  flex-direction: column;
  width: calc((100% - 40px) / 2);
  padding: 40px;
  background: #fff;
  border: 1px solid #dcebff;
  border-radius: 8px;
}

.detail_type_title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #032144;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.detail_type_tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 25px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: #032144;
  background: var(--c_cream);
  border-radius: 4px;
}

.detail_type_text {
  margin: 25px 0 32px;
  font-size: 16px;
  line-height: 24px;
  color: #515963;
}

.detail_type_img {
  display: block;
  width: 100%;
  margin-top: auto;
  border-radius: 10px;
}

.detail_type_note {
  margin-top: 22px;
  font-size: 14px;
  line-height: 24px;
  color: #999;
}

@media only screen and (max-width: 1280px) {
  .detail_type_item {
    padding: 30px;
  }

  .detail_type_title {
    font-size: 30px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_type {
    padding: 40px 0 48px;
  }

  .detail_type_heading {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 29px;
  }

  .detail_type_heading_icon {
    align-self: center;
    width: 32px;
    height: 32px;
  }

  .detail_type_heading_text {
    line-height: 39px;
  }

  .detail_type_heading_em {
    font-size: 34px;
    line-height: 39px;
  }

  .detail_type_lead {
    margin-top: 16px;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
  }

  .detail_type_list {
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
  }

  .detail_type_item {
    width: 100%;
    padding: 20px;
    border-radius: 5px;
  }

  .detail_type_item_head {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .detail_type_title {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 30px;
    text-underline-offset: 3px;
  }

  .detail_type_tag {
    margin-top: 0;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 18px;
  }

  .detail_type_text {
    margin: 12px 0 16px;
    font-size: 15px;
    line-height: 18px;
  }

  .detail_type_img {
    border-radius: 5px;
  }

  .detail_type_note {
    margin-top: 14px;
    padding-left: 1em;
    font-size: 14px;
    line-height: 18px;
    text-indent: -1em;
  }
}

/* ===== 工事詳細ページ：状態に合わせて必要な修理をご提案 ===== */
.detail_repair {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

/* 背景の波紋（装飾） */
.detail_repair::before {
  content: "";
  position: absolute;
  top: 60px;
  left: calc(50% + 276px);
  width: 479px;
  height: 479px;
  background: url("../img/top/ripple.webp") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.detail_repair .container {
  position: relative;
}

.detail_repair_box {
  margin-top: 46px;
  padding: 41px 40px 48px;
  background: var(--c_light);
  border-radius: 10px;
}

@media only screen and (max-width: 1280px) {
  .detail_repair::before {
    left: auto;
    right: -120px;
  }

  .detail_repair_box {
    padding: 40px 30px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_repair {
    padding: 30px 0 40px;
  }

  .detail_repair::before {
    top: 15px;
    right: auto;
    left: calc(50% + 50px);
    width: 240px;
    height: 240px;
  }

  .detail_repair_box {
    margin-top: 30px;
    padding: 22px 20px 30px;
  }
}

/* --- 導入（写真＋見出し・本文） --- */
.detail_repair_intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 0 8px;
}

.detail_repair_intro_img {
  flex: 0 0 420px;
  width: 420px;
  border-radius: 10px;
}

.detail_repair_intro_body {
  flex: 1;
  padding-top: 7px;
}

.detail_repair_intro_head {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 32px;
  font-weight: 700;
  line-height: 39px;
  color: var(--c_navy2);
}

.detail_repair_intro_head img {
  flex-shrink: 0;
  width: 64px;
}

.detail_repair_intro_head em {
  color: #ec750a;
}

.detail_repair_intro_text {
  margin-top: 6px;
  font-size: 16px;
  line-height: 24px;
  color: #515963;
}

@media only screen and (max-width: 1280px) {
  .detail_repair_intro {
    gap: 30px;
    padding: 0;
  }

  .detail_repair_intro_img {
    flex-basis: 38%;
    width: 38%;
  }

  .detail_repair_intro_head {
    font-size: 28px;
    line-height: 1.3;
  }
}

@media only screen and (max-width: 960px) {
  .detail_repair_intro {
    display: block;
  }

  .detail_repair_intro_img {
    width: 100%;
    border-radius: 5px;
  }

  .detail_repair_intro_body {
    padding-top: 0;
  }

  .detail_repair_intro_head {
    gap: 11px;
    margin-top: 21px;
    font-size: 20px;
    line-height: 24px;
  }

  .detail_repair_intro_head img {
    width: 32px;
  }

  .detail_repair_intro_text {
    margin-top: 15px;
    font-size: 15px;
    line-height: 20px;
  }
}

/* --- 工法カード --- */
.detail_repair_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  margin-top: 66px;
}

.detail_repair_item {
  display: flex;
  flex-direction: column;
  width: calc((100% - 56px) / 3);
  overflow: hidden;
  background: #fff;
  border: 4px solid #032144;
  border-radius: 10px;
}

.detail_repair_item_photo {
  position: relative;
}

.detail_repair_item_img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.detail_repair_item_icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 65px;
}

.detail_repair_item_title {
  position: relative;
  margin: 20px 20px 0;
  padding-left: 25px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #032144;
}

/* 見出し頭の■ */
.detail_repair_item_title::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 18px;
  height: 18px;
  background: #032144;
}

.detail_repair_item_title em {
  color: #ec750a;
}

.detail_repair_item_text {
  margin: 8px 20px 20px;
  font-size: 16px;
  line-height: 20px;
  color: #515963;
}

@media only screen and (max-width: 1280px) {
  .detail_repair_list {
    gap: 20px;
    margin-top: 50px;
  }

  .detail_repair_item {
    width: calc((100% - 40px) / 3);
  }

  .detail_repair_item_title {
    font-size: 20px;
    line-height: 28px;
  }

  .detail_repair_item_title::before {
    top: 6px;
    width: 16px;
    height: 16px;
  }

  .detail_repair_item_text {
    font-size: 15px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_repair_list {
    display: block;
    margin-top: 20px;
  }

  .detail_repair_item {
    display: grid;
    grid-template-columns: 50% 1fr;
    align-items: center;
    width: auto;
    border-width: 2px;
  }

  .detail_repair_item + .detail_repair_item {
    margin-top: 20px;
  }

  .detail_repair_item_img {
    aspect-ratio: 300 / 176;
    object-position: left center;
  }

  .detail_repair_item_icon {
    width: 33px;
  }

  .detail_repair_item_title {
    margin: 0 10px 0 14px;
    padding-left: 18px;
    font-size: 20px;
    line-height: 24px;
  }

  .detail_repair_item_title::before {
    top: 5px;
    width: 14px;
    height: 14px;
  }

  .detail_repair_item_text {
    grid-column: 1 / -1;
    margin: 15px 20px 18px;
    font-size: 15px;
    line-height: 20px;
  }
}

/* --- まとめ（黄色の枠・スタッフ写真） --- */
.detail_repair_note {
  position: relative;
  min-height: 285px;
  margin-top: 50px;
  padding: 51px 49px 40px 312px;
  overflow: hidden;
  background: var(--c_cream);
  border-radius: 10px;
}

.detail_repair_note_head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #032144;
  border-bottom: 3px solid #032144;
}

.detail_repair_note_head img {
  flex-shrink: 0;
  width: 48px;
}

.detail_repair_note_marker {
  background: linear-gradient(transparent calc(100% - 15px), var(--c_yellow) calc(100% - 15px), var(--c_yellow) calc(100% - 4px), transparent calc(100% - 4px));
}

.detail_repair_note_staff {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 280px;
  height: 285px;
  object-fit: cover;
  object-position: center top;
}

.detail_repair_note_text {
  margin-top: 25px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.detail_repair_note_text em {
  color: #ec750a;
}

@media only screen and (max-width: 1280px) {
  .detail_repair_note {
    padding: 40px 30px 30px 270px;
  }

  .detail_repair_note_staff {
    left: 10px;
    width: 240px;
    height: auto;
    aspect-ratio: 280 / 285;
  }

  .detail_repair_note_head {
    font-size: 24px;
  }

  .detail_repair_note_text {
    font-size: 18px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_repair_note {
    min-height: 0;
    margin-top: 20px;
    padding: 22px 20px 0;
  }

  .detail_repair_note_head {
    gap: 8px;
    padding-bottom: 2px;
    font-size: 18px;
    line-height: 24px;
    border-bottom-width: 2px;
  }

  .detail_repair_note_head img {
    width: 35px;
  }

  .detail_repair_note_marker {
    background-image: linear-gradient(transparent calc(100% - 8px), var(--c_yellow) calc(100% - 8px), var(--c_yellow) calc(100% - 2px), transparent calc(100% - 2px));
  }

  .detail_repair_note_body {
    display: flow-root;
    margin-top: 16px;
  }

  /* スタッフ写真を本文の5行目以降の右下に回り込ませるための余白 */
  .detail_repair_note_body::before {
    content: "";
    float: right;
    height: 84px;
  }

  .detail_repair_note_staff {
    position: static;
    float: right;
    clear: right;
    width: 158px;
    height: 180px;
    margin-right: -20px;
    margin-left: 4px;
    object-position: left top;
  }

  .detail_repair_note_text {
    margin: 0 0 15px;
    font-size: 15px;
    line-height: 21px;
  }
}

/* ===== 工事詳細ページ：「漏れている場所＝原因」とは限りません ===== */
/* TOP の .cause（common.css）を流用し、1段目（左に見出し・本文・吹き出し、右に断面画像）だけ追加 */
.detail_leak_main_body {
  flex: 1;
}

.detail_leak_point {
  display: grid;
  grid-template-columns: 262fr 296fr;
  gap: 22px;
  margin-top: 30px;
}

.detail_leak_point_item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 93px;
  padding: 10px 5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  color: #0f305f;
  text-align: center;
  background: #fff;
  border-radius: 10px;
}

.detail_leak_point_item em {
  font-size: 24px;
  color: #ec750a;
}

@media only screen and (max-width: 1280px) {
  .detail_leak_point {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .detail_leak_point_item {
    min-height: 0;
    line-height: 1.5;
  }

  .detail_leak_point_item em {
    font-size: 20px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_leak_main_img {
    order: -1;
  }

  .detail_leak_point {
    gap: 15px;
    margin: 25px 20px 0;
  }

  .detail_leak_point_item {
    min-height: 80px;
    font-size: 18px;
    line-height: 28px;
  }

  .detail_leak_point_item em {
    font-size: 24px;
  }
}

@media only screen and (max-width: 568px) {
  .detail_leak_point {
    margin: 25px 0 0;
  }

  .detail_leak_point_item em {
    font-size: 21px;
  }
}

/* ===== まずは現地を確認（TOP の .propose を流用・背景を水色に） ===== */
.detail_propose {
  background: var(--c_light);
}

/* ===== 火災保険・補助金（TOP の .support を流用・背景白／箱を水色に反転） ===== */
.detail_support {
  background: #fff;
}

.detail_support .support_intro,
.detail_support .support_cta_box {
  background: var(--c_light);
}

@media only screen and (max-width: 960px) {
  .detail_support {
    background: #fff;
  }
}

/* ===== 選ばれる理由（TOP の .reason を流用・背景水色／カード白） ===== */
.detail_reason {
  background: var(--c_light);
}

.detail_reason .reason_item {
  background: #fff;
}

/* ===== 費用・料金の目安 ===== */
/* TOP の .price と同じ見た目のため上書きなし */

/* ===== よくある質問 ===== */
/* TOP と共通の .faq（common.css）を流用。質問文が長く、375px幅でデザインどおりの2行に収まらないため字間と右余白だけ詰める */
@media only screen and (max-width: 568px) {
  .detail_faq .faq_q {
    padding-right: 34px;
    letter-spacing: -0.03em;
  }
}

/* ===== 工事詳細ページ：「漏れている場所＝原因」とは限りません（吹き出しの強調文字が長いページ用） ===== */
/* section に detail_leak_long を付けたページだけに効く（外壁・ベランダ） */
/* 吹き出しの強調文字が屋根版より長いため、1行に収まる大きさにする */
.detail_leak_long .detail_leak_point_item em {
  font-size: 22px;
}

@media only screen and (max-width: 1280px) {
  .detail_leak_long .detail_leak_point_item em {
    font-size: 20px;
  }
}

@media only screen and (max-width: 960px) {
  .detail_leak_long .detail_leak_point_item em {
    font-size: 23px;
  }
}

@media only screen and (max-width: 568px) {
  .detail_leak_long .detail_leak_point_item em {
    font-size: 21px;
  }
}

/* ===== 専用テンプレートのないページ（WordPress の index.php） ===== */
.index_page {
  padding: 80px 0;
}

@media (max-width: 960px) {
  .index_page {
    padding: 50px 0;
  }
}
