@charset "utf-8";
/* ===============================
申請・手続きページ 固有CSS
=============================== */

/* 一覧レイアウト */
.apply-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (min-width: 720px) {
  .apply-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .apply-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.apply-item {
  margin: 0;
  padding: 0;
}

/* カード */
.apply-card {
  width: 330px;
  max-width: 330px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.55;
  display: grid;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

.apply-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* カードタイトル（　）書き */
.card-title-small {
  font-size: 0.8rem;
  line-height: 0.8;
  margin-top: -8px;
  text-align: center;
}


/* カードタイトル空白行用 */
.card-title-blank {
  font-size: 0.8rem;
  line-height: 0.8;
  margin: 0;
  text-align: center;
}

.term {
  position: relative;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: #005bac;
  text-underline-offset: 2px;
  cursor: help;
}
.term::after {
  content: "?";
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  border-radius: 50%;
  background: #005bac;
  color: #fff;
  font-size: 8px;
  margin-left: 3px;
  position: relative;
  top: -10px
}

.term-card {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  background: #ffffff;
  border: 1px solid #b8c7d9;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border-radius: 4px;
  z-index: 1000;
  text-align: left;
}
.term-card-header {
  background: #005bac;
  color: #fff;
  padding: 6px 6px;
  font-size: 0.85rem;
  font-weight: bold;
}
.term-card-body {
  padding: 10px;
  font-size: 0.85rem;
  line-height: 1.0;
  color: #555;
}
.term:hover .term-card,
.term:focus-within .term-card {
  display: block;
}

.page-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 15px 0 15px;
  text-align: center;
}

.act-text {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
  text-align: right;
  font-weight: bold;
  color: #005bac;
}

.act-term {
  position: relative;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: #005bac;
  text-underline-offset: 3px;
  cursor: help;
}

.act-term-card {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  background: #ffffff;
  border: 1px solid #b8c7d9;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border-radius: 4px;
  z-index: 1000;
  text-align: left;
}
.act-term-card-header {
  background: #005bac;
  color: #fff;
  padding: 6px 6px;
  font-size: 0.85rem;
  font-weight: bold;
}
.act-term-card-body {
  padding: 10px;
  font-size: 0.85rem;
  line-height: 1.0;
  color: #555;
}
.act-term:hover .act-term-card,
.act-term:focus-within .act-term-card {
  display: block;
}

