.image.only-pc {
  display: block; 
}
  
.image.only-sp {
  display: none; 
}

/* 共通スタイル */
.container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 0 !important;
  position: relative;
  overflow: visible;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.page-template-page-toolslist {
  background-color: #ffffff;
  padding-top: 50px;
}

/* メインビジュアル */
h1 {
  font-size: 40px;
  font-weight: bold;
  text-align: left;
  margin-top: 0 !important;
}

p {
  font-size: 16px !important;
  text-align: left;
  color: #000000;
  margin-left: -100px;
  padding-left: 0;
  margin-top: -22px !important;
}

/* page-title 最小調整 */
.page-title {
  margin-bottom: 56px;
}

.page-title .tools-catchcopy {
  margin-left: 0;
  margin-top: 8px !important;
  margin-bottom: 18px;
  padding-left: 0;
  font-size: 28px !important;
  font-weight: 700;
  line-height: 1.5;
  color: #9f8530;
}

.page-title .title-p {
  margin-left: 0;
  margin-top: 0 !important;
  padding-left: 0;
  line-height: 1.9;
}

.image.only-pc {
  margin-left: 0;
  margin-right: calc((100% - 1100px) / -2);
  width: calc(100vw + 100px);
  overflow: hidden;
  border-radius: 15px;
}

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

/* ========================
   h1タイトル装飾Line
   ======================== */
.h1-line {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

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

/* ツール項目 */
.tool-card-list {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px; 
}

.tool-card {
  position: relative;
  display: block;
  padding: 17px 67px 17px 0;
  background-color: transparent;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  font-size: 32px;
  transition: color 0.3s;
  overflow: visible;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin-left: 0px;
  margin-right: -100px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  padding-left: 10px;
}

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

.tool-card::after {
  content: '\2192';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 80px;
  color: #000000;
  pointer-events: none;
}

.tool-card:last-child {
  margin-top: 80px;
  margin-bottom: 80px;
}

.tool-card:last-child h2 {
  font-size: 35px;
  margin-bottom: 34px;
  margin-left: -10px;
}

.tool-card:last-child p {
  font-size: 15px !important;
  margin-bottom: 8px;
  margin-left: -10px;
}

.tool-card-inner h2 {
  margin: 0;
  font-size: 33px;
  font-weight: inherit;
  color: #000;
  margin-bottom: 15px;
}

.tool-card-inner p {
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: normal;
}

/* ボタン非活性＆グレーアウト */
.tool-card.disabled {
  pointer-events: none;
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: none;
}

/* 以下レスポンシブ */
@media screen and (max-width: 768px) {
  .image.only-pc {
    display: none;
  }
  
  .image.only-sp {
    display: block;
  }

  .container {
    margin-left: 18px;
  }

  h2,
  p {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
  }

  .title {
    font-size: 30px !important;
    margin-top: 0 !important;
    margin-left: 10px !important;
    margin-top: 20px !important;
  }

  .page-title {
    margin-bottom: 40px;
  }

  .page-title .tools-catchcopy {
    margin-left: 10px !important;
    margin-top: 10px !important;
    margin-bottom: 16px;
    font-size: 22px !important;
    line-height: 1.6;
  }

  .page-title .title-p {
    margin-left: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 35px !important;
    line-height: 1.8;
  }

  .title-p {
    font-size: 16px !important;
  }

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

  .image.only-sp img {
    width: 100%;
    height: auto;
    max-height: 100px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center center;
    transform: none;
    margin: 0;
    margin-bottom: 30px;
  }

  .tool-card {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 0;
    margin-left: 10px;
  }

  .tool-card::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: -10px; 
    height: 1px;
    background-color: #000;
  }

  .tool-card-list {
    flex-direction: column;
    gap: 15px;
  } 

  .tool-card-inner {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  .tool-card-inner h2 {
    font-size: 30px;
    margin-bottom: 25px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tool-card-inner p {
    font-size: 14px !important;
    max-width: 90%;
  }

  .tool-card::after {
    content: '\2192';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: inherit;
    z-index: 10;
    font-weight: normal;
  }

  .tool-card:last-child h2 {
    font-size: 26px;
    margin-bottom: 40px;
    margin-left: -6px;
  }

  .tool-card:last-child p {
    font-size: 15px !important;
    margin-left: -5px;
    max-width: 80%;
  }

  .tool-card:last-child {
    margin-bottom: 70px;
    border-bottom: none;
    position: relative;
  }

  .tool-card:last-child::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -5px;
    right: -5px; 
    height: 1px;
    background-color: #000;
    margin-top: 10px;
  }

  .tool-card:last-child::after {
    content: '\2192';
    position: absolute;
    right: -5px !important;
    top: 54%;
    transform: translateY(-50%);
    font-size: 45px;
    color: inherit;
    z-index: 10;
    font-weight: normal;
  }
}

@media screen and (max-width: 1024px) {
  .tool-card {
    flex: 1 1 calc(50% - 20px);
    max-width: none;
  }
}

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

  .tool-card-list {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

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

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

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

@media screen and (max-width: 1280px) and (min-width: 1280px) {
  .image.only-pc {
    position: relative;
    width: calc(100vw + 20px); 
    margin-left: 0;         
    margin-right: -40px;      
    overflow: hidden;
    margin-top: 0;
  }

  .image.only-pc img {
    max-height: 330px;
  }
}
