@charset "UTF-8";
/* ==========================================================
   トップページ「当院の取り組み」
   テーマフォルダ直下に置いてください（bonus.css と同じ階層）
   ========================================================== */

.contents-torikumi {
  padding: 0 0 70px;
}

.torikumi-title {
  color: #00797f;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 34px;
  padding-bottom: 16px;
  position: relative;
}
.torikumi-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 3px;
  margin-left: -30px;
  background: #5eb533;
  border-radius: 2px;
}

/* 項目は2列。1件だけのときは中央に並びます */
.torikumi-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.torikumi-list li {
  width: calc(50% - 15px);
}

.torikumi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  box-sizing: border-box;
  padding: 14px 20px 14px 26px;
  background: #fff;
  border: 2px solid #00797f;
  border-radius: 12px;
  color: #333;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  position: relative;
}
.torikumi-item::before {            /* 左端の色帯 */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: #00797f;
  border-radius: 9px 0 0 9px;
}
.torikumi-item:hover {
  opacity: 1;
  background: #e8f5f5;
}
.torikumi-item__name {
  padding-left: 6px;
}
/* 右端のしるし：専用ページは矢印、PDFは「PDF」ラベル */
.torikumi-item::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-top: 3px solid #00797f;
  border-right: 3px solid #00797f;
  transform: rotate(45deg);
}
.torikumi-item.is-pdf::after {
  content: "PDF";
  width: auto;
  height: auto;
  margin-right: 0;
  border: 0;
  transform: none;
  background: #d9482b;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .05em;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 4px;
}

@media screen and (max-width: 768px) {
  .contents-torikumi { padding: 10px 0 40px; }
  .torikumi-title { font-size: 20px; margin-bottom: 22px; padding-bottom: 12px; }
  .torikumi-list { gap: 12px; }
  .torikumi-list li { width: 100%; }
  .torikumi-item { min-height: 60px; font-size: 16px; padding: 12px 14px 12px 22px; }
}
