/* ページ共通 */
.guideline-main {
  --content-width: 86rem;
  background-color: #f6f6f6;
}

.guideline-header,
.guideline-section {
  font-family: "UDShinGoPro", sans-serif;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}

.section-inner {
  position: relative;
  margin-inline: auto;
  width: var(--content-width);
}

/* ページタイトル */
.guideline-header-inner {
  padding-top: 7.6rem;
  text-align: center;
}

.guideline-header-subtitle {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.guideline-header-title {
  margin-top: 1.7rem;
  font-size: 3.1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* 各セクション（デザインの余白から行間分を差し引いた値） */
.guideline-section {
  padding-top: 9.4rem;
}

.guideline-section.fix02 {
  padding-top: 9rem;

  .guideline-title {
    margin-bottom: 3rem;
  }

  .guideline-subtitle+.guideline-list {
    margin-top: 1.2rem;
  }
}

.guideline-title {
  margin: 0 auto 2.5rem;
  padding-bottom: 0.5rem;
  width: fit-content;
  border-bottom: 2px solid var(--color-primary);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.guideline-title.fix01 {
  margin: 0 auto 3.2rem;

}

.guideline-subtitle {
  margin-top: 2.4rem;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.4;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.guideline-subtitle::before {
  content: "■";
  margin-right: 0.4rem;
  color: var(--color-primary);
}

/* 相談窓口：前の本文との間は広めに */
.guideline-subtitle.is-contact {
  margin-top: 5.2rem;
}

/* 見出し横の注記マーク（※） */
.guideline-subtitle-mark {
  margin-left: 0.2rem;
  font-size: 1.2rem;
  font-weight: 400;
  vertical-align: top;
}

.guideline-text {
  font-size: 1.6rem;
  line-height: 1.875;
  text-align: justify;
  letter-spacing: 0.02em;
}

.guideline-text+.guideline-text {
  margin-top: 1rem;
}

.guideline-list+.guideline-text,
.guideline-table+.guideline-text {
  margin-top: 2.2rem;
}

/* 適用対象：求職者等リストと行為者の説明の間は広めに */
.guideline-list.is-wide-bottom+.guideline-text {
  margin-top: 8.6rem;
}

.guideline-note {
  margin-top: 1.2rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* リスト */
.guideline-list {
  display: grid;
}


.guideline-text+.guideline-list {
  margin-top: 2rem;
}

.guideline-subtitle+.guideline-list {
  margin-top: 1.6rem;
}

.guideline-list-item {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.875;
}

.guideline-list-item::before {
  content: "•";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-primary);
  font-size: 1.5em;
  /* 本文の行の高さ（1.875）に合わせて中央揃え */
  line-height: 1.25;
}

/* 相談・通報：本文サイズのリスト */
/* 相談窓口テーブル */
.guideline-subtitle+.guideline-table {
  margin-top: 1.2rem;
}

.guideline-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

.guideline-table th,
.guideline-table td {
  height: 7.5rem;
  border: 1px solid #9fa0a0;
  vertical-align: middle;
  text-align: left;
}

.guideline-table th {
  padding: 1.2rem 1.5rem;
  width: 19.3rem;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.guideline-table td {
  padding: 1.2rem 2.3rem;
  font-size: 1.6rem;
  line-height: 1.5;
}

.guideline-table-small {
  font-size: 1.6rem;
  font-weight: 400;
}

.guideline-table+.guideline-text {
  margin-top: 1.8rem;
}

.guideline-link {
  color: #006df1;
  text-decoration: underline;
  word-break: break-all;
}

@media (any-hover: hover) {
  .guideline-link:hover {
    text-decoration: none;
  }
}

/* 情報の取扱い */
.guideline-section.is-info {
  padding-top: 12rem;
}

.guideline-info {
  padding: 3.6rem 3.8rem 4rem;
  background-color: #fff;
}

.guideline-info-title {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.4;
}

.guideline-info-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #9fa0a0;
}

.guideline-info-text+.guideline-info-title {
  margin-top: 4rem;
}

.guideline-info-text {
  margin-top: 1.4rem;
  font-size: 1.4rem;
  line-height: 1.8;
}

.guideline-info-link-list {
  display: flex;
  justify-content: center;
  gap: 3.6rem;
  margin-top: 2rem;
}

.guideline-info-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-inline: 4rem;
  min-width: 24.5rem;
  height: 4.3rem;
  background-color: #f6f6f6;
  font-size: 1.6rem;
  transition: opacity 0.3s;
}

.guideline-info-link::after {
  content: "";
  display: block;
  width: 1.4rem;
  aspect-ratio: 6/5;
  mask: url(../../../img/common/icon-other-tab.svg) no-repeat center / contain;
  background-color: #585656;
}

@media (any-hover: hover) {
  .guideline-info-link:hover {
    opacity: 0.7;
  }
}

.guideline-info-note {
  margin-top: 2.2rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* FAQ */
.guideline-faq-list {
  display: grid;
  gap: 4.2rem;
}

.guideline-faq-item {
  overflow: hidden;
}

.guideline-faq-question {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  position: relative;
  padding: 1.2rem 6.6rem 1.2rem 1.7rem;
  min-height: 7.3rem;
  border-bottom: 1px solid #9fa0a0;
  background-color: #fff;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.47;
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.08em;
}

.guideline-faq-question::-webkit-details-marker {
  display: none;
}

/* 開閉アイコン（＋／−） */
.guideline-faq-question::before,
.guideline-faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2rem;
  width: 2.6rem;
  height: 2px;
  background-color: var(--color-primary);
  transition: rotate 0.3s;
}

.guideline-faq-question::after {
  rotate: 90deg;
}

.guideline-faq-item[open]:not(.is-closing) .guideline-faq-question::after {
  rotate: 0deg;
}

.guideline-faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 2.3rem 8.1rem 0 1.7rem;
}

.guideline-faq-answer-text {
  font-size: 1.5rem;
  line-height: 1.87;
}

.guideline-faq-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.4rem;
  aspect-ratio: 1;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}

.guideline-faq-question .guideline-faq-icon {
  background-color: var(--color-primary);
  color: #fff;
}

.guideline-faq-answer .guideline-faq-icon {
  border: 1px solid var(--color-primary);
  background-color: #fff;
  color: var(--color-primary);
}

/* page-link */
.page-link-content {
  padding-block: 14.4rem;
  background-color: #f6f6f6;
}

.page-link-list {
  display: grid;
  grid-template-columns: repeat(2, 28rem);
  justify-content: center;
  gap: 2.2rem 2.6rem;
}

.page-link {
  display: grid;
  place-items: center;
  padding-block: 2rem;
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {

  /* ページ共通 */
  .guideline-main {
    --content-width: 67.6rem;
  }

  .guideline-header-subtitle {
    font-size: 2.6rem;
  }

  .guideline-header-title {
    margin-top: 1.6rem;
    font-size: 3.8rem;
    line-height: 1.4;
  }

  .guideline-section {
    padding-top: 10rem;
  }

  .guideline-title {
    margin-bottom: 4rem;
    font-size: 3.2rem;
  }

  .guideline-subtitle {
    margin-top: 4.8rem;
    font-size: 2.8rem;
  }

  .guideline-text,
  .guideline-list-item {
    font-size: 2.4rem;
    line-height: 1.8;
  }

  .guideline-list-item {
    padding-left: 2.2rem;
  }

  .guideline-list-item::before {
    line-height: 1.2;
  }

  .guideline-list.is-wide-bottom+.guideline-text {
    margin-top: 6.4rem;
  }

  .guideline-note,
  .guideline-info-note {
    font-size: 2rem;
  }

  /* 相談窓口テーブル：縦積み */
  .guideline-table tr,
  .guideline-table th,
  .guideline-table td {
    display: block;
    width: 100%;
    height: auto;
  }

  .guideline-table th {
    padding: 2rem 2.4rem;
    font-size: 2.6rem;
  }

  .guideline-table td {
    padding: 2rem 2.4rem;
    border-top: none;
    font-size: 2.4rem;
  }

  .guideline-table tr+tr th {
    border-top: none;
  }

  .guideline-table-small {
    font-size: 2.2rem;
  }

  /* 情報の取扱い */
  .guideline-section.is-info {
    padding-top: 12rem;
  }

  .guideline-info {
    padding: 4.8rem 4rem;
  }

  .guideline-info-title {
    font-size: 2.6rem;
  }

  .guideline-info-text {
    font-size: 2.4rem;
  }

  .guideline-info-link-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .guideline-info-link {
    width: 48rem;
    height: 8rem;
    font-size: 2.4rem;
  }

  .guideline-info-link::after {
    width: 2rem;
  }

  /* FAQ */
  .guideline-faq-question {
    gap: 2rem;
    padding: 2.4rem 8rem 2.4rem 2.4rem;
    font-size: 2.6rem;
  }

  .guideline-faq-question::before,
  .guideline-faq-question::after {
    right: 2.4rem;
    width: 3.2rem;
    height: 3px;
  }

  .guideline-faq-answer {
    gap: 2rem;
    padding: 2.8rem 8rem 0 2.4rem;
  }

  .guideline-faq-answer-text {
    font-size: 2.4rem;
  }

  .guideline-faq-icon {
    width: 5.2rem;
    font-size: 3rem;
  }

  /* page-link */
  .page-link-content {
    padding-inline: 3.6rem;
  }

  .page-link-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }

  .page-link {
    padding-block: 2rem;
    font-size: 2rem;
  }
}