/* /help/ — HiPro corp / Biz 下層に寄せたスタイル */

:root {
  --help-navy: #07507b;
  --help-blue: #0094d7;
  --help-blue-btn: #0099e5;
  --help-silver: #7a8a93;
  --help-text: #1a1a1a;
  --help-muted: #555;
  --help-line: #979899;
  --help-line-soft: #ddd;
  --help-bg-soft: #f5f7f9;
  --help-footer-gray: #888;
  --help-max: 1088px;
  --help-content: 822px;
  --help-side: 40px;
  --help-side-sp: 20px;
}

.p-help {
  color: var(--help-text);
  font-family: "Noto Sans JP", noto-sans-cjk-jp, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* ルートTOP固定ヘッダー分の余白（assets/css/common.css の .l-main と同値を明示） */
.l-main.p-help {
  margin-bottom: 0;
  padding-top: var(--header-height-pc, 80px);
}

@media (max-width: 767px) {
  .l-main.p-help {
    padding-top: var(--header-height-sp, 70px);
  }
}

/*
  assets/css/common.css:
    html.wf-loading .l-wrapper { opacity: 0; }
  Typekit 読込待ちで白画面になるのを防ぐ
*/
html.wf-loading .l-wrapper,
html.is-loading .l-wrapper {
  opacity: 1;
}

.p-help a {
  color: var(--help-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* テキストリンクのみ。アニメ付きボタン／カードでは opacity を変えない */
.p-help-detail__body a:hover,
.p-help-detail__cta-link:hover {
  opacity: 0.7;
}

/* ---------- Body layout (/company/ の p-company 準拠) ---------- */
.p-help-body {
  padding-bottom: 100px;
}

/* 詳細は c-page-head でカテゴリ文脈を示すため、帯なし時の追加余白は不要 */
.p-help-body--detail {
  padding-top: 0;
}

.p-help-body__inner {
  max-width: 948px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

@media (max-width: 767px) {
  .p-help .c-page-head {
    margin-bottom: 0;
  }

  .p-help-body {
    padding-top: 54px;
    padding-bottom: 60px;
  }

  .p-help-body--detail {
    padding-top: 54px;
  }

  .p-help-body__inner {
    padding: 0 var(--side-padding-sp, 20px);
    gap: 60px;
  }
}

/* ---------- Page head (/company/ の c-page-head 準拠) ---------- */
.p-help .c-page-head__ttl-2 {
  font-family: "Noto Serif JP", dnp-shuei-mincho-pr6n, serif;
  font-weight: 400;
  font-size: 40px;
  color: #07507b;
  letter-spacing: 0.05em;
  line-height: 2;
  margin: 0;
}

/* 詳細: カテゴリ帯は文脈表示（H1ではない）。見た目はカテゴリTOPと同じ */
.p-help-page-head__link {
  color: inherit !important;
  text-decoration: none !important;
  transition: opacity 0.25s ease;
}

.p-help-page-head__link:hover {
  opacity: 0.7;
}

.p-help-page-head__suffix {
  display: inline;
  margin-left: 0.25em;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .p-help .c-page-head__ttl-2 {
    font-size: 24px;
  }

  .p-help-page-head__suffix {
    font-size: 14px;
  }
}

/* ---------- Section heading (/company/ の p-company__heading 準拠) ---------- */
.p-help-heading {
  font-family: "Noto Serif JP", dnp-shuei-mincho-pr6n, serif;
  font-weight: 500;
  font-size: 30px;
  color: #222;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0 0 35px;
}

@media (max-width: 767px) {
  .p-help-heading {
    font-size: 24px;
    margin-bottom: 24px;
  }
}

.p-help-lead {
  margin: -15px 0 35px;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.04em;
  color: #222;
  font-feature-settings: "pwid" 1;
}

@media (max-width: 767px) {
  .p-help-lead {
    margin: -8px 0 24px;
    font-size: 15px;
    line-height: 1.8;
  }
}

/* ---------- Category cards (top) ---------- */
.p-help-cats__grid {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .p-help-cats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 28px;
  }
}

.p-help-cats__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--help-line-soft);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.p-help-cats__card::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 28px;
  height: 7px;
  background-color: var(--help-navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='7' viewBox='0 0 32 7' fill='none'%3E%3Cpath d='M0 6.32617H30L24.8333 0.326172' stroke='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='7' viewBox='0 0 32 7' fill='none'%3E%3Cpath d='M0 6.32617H30L24.8333 0.326172' stroke='black'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.25s ease;
}

.p-help-cats__card:hover {
  border-color: var(--help-navy);
  box-shadow: 0 8px 24px rgba(7, 80, 123, 0.08);
}

.p-help-cats__card:hover::after {
  transform: translateX(4px);
}

.p-help-cats__name {
  margin: 0;
  padding-right: 36px;
  font-size: 20px;
  font-weight: 500;
  color: var(--help-navy);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.p-help-cats__desc {
  margin: 0;
  padding-right: 36px;
  padding-bottom: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--help-muted);
}

/* ---------- Question list ---------- */
.p-help-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ddd;
}

.p-help-list__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 36px 28px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none !important;
  color: #222 !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s ease;
  font-feature-settings: "pwid" 1;
}

.p-help-list__link::before {
  content: "Q";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 20px;
  color: #07507b;
  line-height: 1;
}

.p-help-list__link::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background-color: #07507b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.p-help-list__link:hover {
  color: #07507b !important;
}

@media (max-width: 767px) {
  .p-help-list__link {
    font-size: 15px;
    padding: 20px 28px 20px 0;
    gap: 12px;
  }
  .p-help-list__link::before {
    font-size: 18px;
  }
}

/* ---------- Detail Q/A ---------- */
.p-help-detail__question {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-help-detail__question-text {
  flex: 1;
}

.p-help-detail__a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.p-help-detail__label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}

/* Q: 見出し行の高さに合わせて中央 */
.p-help-detail__label--q {
  color: #07507b;
  min-height: 1.5em; /* .p-help-heading の line-height に合わせる */
}

/* A: 本文1行目（32px）の高さに合わせて中央 */
.p-help-detail__label--a {
  color: #7a8a93;
  min-height: 32px;
}

.p-help-detail__body {
  flex: 1;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.04em;
  color: #222;
  font-feature-settings: "pwid" 1;
}

.p-help-detail__body p {
  margin: 0 0 1em;
}

.p-help-detail__body p:last-child {
  margin-bottom: 0;
}

.p-help-detail__body ul,
.p-help-detail__body ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.p-help-detail__body ul {
  list-style: disc;
}

.p-help-detail__body ol {
  list-style: decimal;
}

.p-help-detail__body li + li {
  margin-top: 0.35em;
}

.p-help-detail__cta {
  margin-top: 24px;
}

.p-help-detail__cta-link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
  color: #07507b !important;
}

@media (max-width: 767px) {
  .p-help-detail__body {
    font-size: 15px;
    line-height: 1.8;
  }
  .p-help-detail__label {
    font-size: 20px;
  }
  .p-help-detail__label--a {
    min-height: calc(15px * 1.8);
  }
}

/* ---------- Related ---------- */
.p-help-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ddd;
}

.p-help-related__list li {
  border-bottom: 1px solid #ddd;
}

.p-help-related__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px 20px 0;
  text-decoration: none !important;
  color: #222 !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  position: relative;
  font-feature-settings: "pwid" 1;
}

.p-help-related__list a::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background-color: #07507b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.p-help-related__list a:hover {
  color: #07507b !important;
}

/* ---------- Buttons (/company/ の c-button 準拠) ---------- */
.p-help-btn-wrap {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.p-help-btn-wrap--multi {
  flex-wrap: wrap;
  gap: 16px 24px;
}

.p-help-btn-wrap .c-button {
  border-color: #07507b;
  color: #07507b;
  width: auto;
  min-width: 335px;
  max-width: 100%;
  min-height: 48px;
  height: auto;
  /* 矢印（right:30px + 幅30px）と文字が被らないよう右側を確保 */
  padding: 14px 80px 14px 40px !important;
  text-decoration: none;
  box-sizing: border-box;
}

.p-help-btn-wrap .c-button > span {
  display: block;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.p-help-btn-wrap .c-button::before {
  background: #07507b;
}

.p-help-btn-wrap .c-button--go i::after {
  border-color: #07507b;
}

.p-help-btn-wrap .c-button:hover {
  color: #fff;
}

.p-help-btn-wrap .c-button--go:hover i::after {
  border-color: #fff;
}

@media (max-width: 767px) {
  .p-help-btn-wrap .c-button {
    min-width: 0;
    width: 100%;
    padding: 14px 64px 14px 20px !important;
  }

  .p-help-btn-wrap .c-button--go i {
    right: 24px;
  }
}

/* ---------- Footer breadcrumb (Biz .l-footer-links__breadcrumb 準拠) ---------- */
/*
  assets/inc/footer.html の .l-footer__upper も background:#888 のため、
  灰色帯が連続する。上下余白が二重にならないよう隣接フッターの padding-top を相殺する。
*/
.p-help-foot {
  width: 100%;
  background-color: #888;
  color: #fff;
  font-size: 14px;
  padding: 40px 60px 0 60px;
  font-family: noto-sans-cjk-jp, "Noto Sans JP", sans-serif;
  box-sizing: border-box;
}

.p-help-foot + .l-footer .l-footer__upper {
  padding-top: 0;
}

.p-help-foot a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.p-help-foot a:hover {
  opacity: 0.7;
}

/* Biz .l-inner と同じ余白ルール */
.p-help-foot .l-inner {
  width: 1088px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 1262px) {
  .p-help-foot .l-inner {
    /* padding-left: 20px;
    padding-right: 20px; */
  }
}

@media screen and (max-width: 767px) {
  .p-help-foot .l-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .p-help-foot .l-inner {
    width: 100%;
  }

  .p-help-foot {
    padding: 30px 0;
  }
}

.p-help-foot__breadcrumb {
  margin: 0;
  padding: 0;
}

.p-help-foot__breadcrumb .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: noto-sans-cjk-jp, "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.p-help-foot__breadcrumb .breadcrumb-list li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.p-help-foot__breadcrumb .breadcrumb-list li::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 7px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.p-help-foot__breadcrumb .breadcrumb-list li:last-child::after {
  content: none;
  display: none;
}

/* 共通フッター: Typekit 適用（未読込時フォールバック付き） */
.l-footer {
  font-family: noto-sans-cjk-jp, "Noto Sans JP", sans-serif;
}

.l-footer__gnav__title {
  font-family: dnp-shuei-mincho-pr6n, "Noto Serif JP", serif;
}

.l-footer__sns__title {
  font-family: noto-sans-cjk-jp, "Noto Sans JP", sans-serif;
}
