
.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;
}

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

}

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

 .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;
}

/* ツール項目 */
.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; /* PC用だけスマホで非表示 */
}
  
.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;
}

.title-p {
  font-size: 16px !important;
  margin-left: 10px !important;
  margin-bottom: 35px !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: 0;
  height: 1px;
  left: -5px;
  right: -5px; 
  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;
  right: 8px;
  }
}

@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%; /* 1100px max-widthをやや縮小 */
    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;
}
}