/* 見積書、請求書、納品書、領収書の発行について（shp_issue）UI改修用 */

/* FV：書類カード */
html ul.p-shp-issue-card {
  margin-left: 0;
  text-indent: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  html ul.p-shp-issue-card {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

ul.p-shp-issue-card .p-shp-issue-card__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-shp-issue-card__link {
  position: relative;
  display: block;
  box-sizing: border-box;
  height: 100%;
  padding: 20px 8px 34px;
  border: 1px solid #004da1;
  background-color: #004da1;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

@media (min-width: 768px) {
  .p-shp-issue-card__link {
    padding: 28px 10px 40px;
    font-size: 22px;
  }
}

.p-shp-issue-card__link::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateX(-50%) rotate(45deg);
}

.p-shp-issue-card__link:hover {
  background-color: #003a7a;
}

.p-shp-issue-card__link:focus-visible {
  outline: 3px solid #00a2e6;
  outline-offset: 2px;
}

/* FV：発行ボタン */
html ul.p-shp-issue-btn {
  margin-left: 0;
  text-indent: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  html ul.p-shp-issue-btn {
    flex-direction: row;
    gap: 16px;
  }
}

ul.p-shp-issue-btn .p-shp-issue-btn__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  ul.p-shp-issue-btn .p-shp-issue-btn__item {
    flex: 1;
  }
}

.p-shp-issue-btn__link {
  position: relative;
  display: block;
  box-sizing: border-box;
  padding: 10px 36px 10px 16px;
  border: 1px solid #004da1;
  background-color: #fff;
  color: #004da1;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.p-shp-issue-btn__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #004da1;
  border-bottom: 2px solid #004da1;
  transform: translateY(-70%) rotate(45deg);
}

.p-shp-issue-btn__link:hover {
  background-color: #eaf3fb;
}

.p-shp-issue-btn__link:focus-visible {
  outline: 3px solid #00a2e6;
  outline-offset: 2px;
}

/* 手順図解 */
html ol.p-shp-issue-steps {
  margin-left: 0;
  text-indent: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: shp-issue-steps;
}

@media (min-width: 768px) {
  html ol.p-shp-issue-steps {
    flex-direction: row;
    gap: 32px;
  }
}

ol.p-shp-issue-steps .p-shp-issue-steps__item {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #ccc;
  background-color: #f4f8fc;
  color: #484848;
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
  counter-increment: shp-issue-steps;
}

@media (min-width: 768px) {
  .p-shp-issue-steps__item {
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 14px;
    font-size: 16px;
    text-align: center;
  }
}

.p-shp-issue-steps__item::before {
  content: counter(shp-issue-steps);
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 50%;
  background-color: #004da1;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

@media (min-width: 768px) {
  .p-shp-issue-steps__item::before {
    margin: 0 0 10px;
  }
}

.p-shp-issue-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 3px solid #00a2e6;
  border-bottom: 3px solid #00a2e6;
  transform: translateX(-50%) rotate(45deg);
}

@media (min-width: 768px) {
  .p-shp-issue-steps__item:not(:last-child)::after {
    top: 50%;
    right: -21px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%) rotate(-45deg);
  }
}

/* 注意書き（マーカー） */
.p-shp-issue-note {
  margin: 0 0 30px;
  font-size: 14px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .p-shp-issue-note {
    font-size: 16px;
  }
}

.p-shp-issue-note__marker {
  background: linear-gradient(transparent 60%, #fff200 60%);
  font-weight: bold;
}

/* ページTOPへ戻る */
.p-shp-issue-pagetop {
  margin: 0 0 40px;
  text-align: right;
}

.p-shp-issue-pagetop__link::after {
  margin-left: 8px;
}

.p-shp-issue-pagetop__link:focus-visible {
  outline: 3px solid #00a2e6;
  outline-offset: 2px;
}
