html {
  outline: 20px solid red !important;
}

/* =========================
   page-toolslist.css
   Final fixed version
========================= */

/* ===== 基本 ===== */
#main-content {
  background: #fff;
  color: #000;
  font-family: "Yu Gothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Meiryo", sans-serif;
}

#main-content .container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 0 !important;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

/* ===== 只顯示一張主圖 ===== */
#main-content .image.only-pc {
  display: block !important;
}

#main-content .image.only-sp {
  display: none !important;
}

/* ===== 標題區 ===== */
#main-content .page-title {
  margin: 0;
}

#main-content .title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  margin: 50px 0 0 0 !important;
  color: #000;
  position: relative;
  padding-bottom: 20px;
}

#main-content .title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9f8530 0%, #d1b24d 100%);
  position: absolute;
  left: 0;
  bottom: 0;
}

#main-content .title-p {
  font-size: 16px !important;
  line-height: 1.8;
  text-align: left;
  color: #000;
  margin: 14px 0 24px 0 !important;
  padding: 0;
}

/* ===== 主圖 ===== */
#main-content .image.only-pc {
  margin-left: 0;
  margin-right: calc((100% - 1100px) / -2);
  width: calc(100vw + 100px);
  max-width: 120%;
  overflow: hidden;
  border-radius: 15px;
}

#main-content .image.only-pc img {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 500px;
  border-radius: 20px;
  object-fit: cover;
  object-position: right center;
  display: block;
  margin: 25px 0 50px 0;
}

/* ===== 列表外層 ===== */
#main-content .tool-card-list {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== 每一項 ===== */
#main-content .tool-card {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 20px 0;
  margin-right: -100px;
  padding: 17px 67px 10px 10px;
  background: transparent;
  color: #000 !important;
  text-decoration: none !important;
  overflow: visible;
  transition: opacity 0.3s ease;
}

#main-content .tool-card:hover {
  opacity: 0.78;
}

#main-content .tool-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #000;
}

#main-content .tool-card::after {
  content: "\2192";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 80px;
  line-height: 1;
  color: #000;
  font-weight: 400;
  pointer-events: none;
}

/* ===== 卡片內文字 ===== */
#main-content .tool-card-inner {
  display: block;
}

#main-content .tool-card-inner h2 {
  margin: 0 0 15px 0;
  font-size: 33px;
  line-height: 1.35;
  font-weight: 700;
  color: #000 !important;
}

#main-content .tool-card-inner p {
  margin: 0 0 4px 0;
  font-size: 16px !important;
  line-height: 1.8;
  font-weight: 400;
  color: #000 !important;
}

/* ===== 最後一塊諮詢 ===== */
#main-content .contact-card {
  margin-top: 80px;
  margin-bottom: 80px;
}

#main-content .contact-card .tool-card-inner h2 {
  font-size: 35px;
  margin-bottom: 34px;
  margin-left: -10px;
}

#main-content .contact-card .tool-card-inner p {
  font-size: 15px !important;
  margin-bottom: 8px;
  margin-left: -10px;
}

/* ===== disabled 用 ===== */
#main-content .tool-card.disabled {
  pointer-events: none;
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================
   SP
========================= */
@media screen and (max-width: 768px) {
  #main-content .image.only-pc {
    display: none !important;
  }

  #main-content .image.only-sp {
    display: block !important;
  }

  #main-content .container {
    width: auto;
    max-width: none;
    margin-left: 18px;
    margin-right: 18px;
  }

  #main-content .title {
    font-size: 30px !important;
    line-height: 1.35;
    margin-top: 20px !important;
    margin-left: 10px !important;
  }

  #main-content .title-p {
    font-size: 16px !important;
    line-height: 1.8;
    margin-left: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 35px !important;
  }

  #main-content .image.only-sp {
    position: relative;
    width: calc(100vw + 20px);
    margin-left: 10px;
    margin-right: -40px;
    overflow: hidden;
    margin-top: 0;
  }

  #main-content .image.only-sp img {
    width: 100%;
    height: auto;
    max-height: 100px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0 0 30px 0;
  }

  #main-content .tool-card-list {
    gap: 15px;
  }

  #main-content .tool-card {
    margin-left: 10px;
    margin-right: 0;
    padding: 0;
  }

  #main-content .tool-card::before {
    left: 0;
    right: -10px;
    width: auto;
    bottom: -10px;
  }

  #main-content .tool-card::after {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
  }

  #main-content .tool-card-inner h2 {
    font-size: 30px;
    line-height: 1.35;
    margin-bottom: 25px;
  }

  #main-content .tool-card-inner p {
    font-size: 14px !important;
    line-height: 1.8;
    max-width: 90%;
  }

  #main-content .contact-card {
    margin-bottom: 70px;
    position: relative;
  }

  #main-content .contact-card .tool-card-inner h2 {
    font-size: 26px;
    margin-bottom: 40px;
    margin-left: -6px;
  }

  #main-content .contact-card .tool-card-inner p {
    font-size: 15px !important;
    margin-left: -5px;
    max-width: 80%;
  }

  #main-content .contact-card::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -5px;
    right: -5px;
    height: 1px;
    background: #000;
  }

  #main-content .contact-card::after {
    content: "\2192";
    position: absolute;
    right: -5px !important;
    top: 54%;
    transform: translateY(-50%);
    font-size: 45px;
    color: #000;
    font-weight: 400;
  }
}

/* =========================
   Tablet
========================= */
@media screen and (max-width: 1024px) and (min-width: 768px) {
  #main-content .container {
    width: 90%;
    max-width: none;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
  }

  #main-content .tool-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  #main-content .image.only-pc {
    position: relative;
    width: calc(100vw + 20px);
    margin-left: 0;
    margin-right: -40px;
    overflow: hidden;
    margin-top: 0;
  }

  #main-content .image.only-pc img {
    max-height: 230px;
  }
}

/* =========================
   Large Desktop
========================= */
@media screen and (min-width: 1281px) {
  #main-content .image.only-pc img {
    max-height: 330px;
  }
}