/* =========================================================
   page-doc.css : 規約系テキストページ共通
   （プライバシーポリシー / 法定代理受領 など）
   page-pill / 本文 / 閉じるボタン
   施設子サイト（りじょう認定こども園）※背景はPC共通背景(body.bg-en)
   ========================================================= */

/* ===== ページタイトル pill（共通仕様） ===== */
.page-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  max-width: calc(100% - 40px);
  height: 70px;
  margin: 40px auto 0;
  background: var(--color-white);
  border: 1px solid var(--color-accent-mid);
  border-radius: 10px;
  font-family: var(--font-gothic);
  font-weight: 900;
  font-size: 28px;
  color: var(--color-accent);
}

/* ===== 本文 ===== */
.doc__inner {
  width: 100%;
  max-width: 1072px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* 文書タイトル（中央・本文より少し大きい） */
.doc__title {
  text-align: center;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
}
.doc__title + .doc__body { margin-top: 24px; }
.doc__body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-sub);
}
.doc__body > p { margin-top: 0; }
.doc__body > p + p { margin-top: 1.9em; } /* 段落間（空行相当） */
.doc__li { padding-left: 1em; text-indent: -1em; } /* ・項目：ぶら下げインデント */
.doc__sec { margin-top: 1.9em; }     /* セクション間（空行相当） */
.doc__h {                            /* セクション見出し（本文と同サイズ） */
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}
.doc__list { margin-top: 0; }        /* ・項目 */
.doc__contact { margin-top: 3.8em; } /* 連絡先（前に大きめの空き） */

/* ===== 閉じる／戻るボタン（白・緑枠・緑文字＋片矢じり／右寄せ） ===== */
.doc__back {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 45px;
  margin: 44px 0 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-accent-mid);
  border-radius: 10px;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-accent);
  transition: opacity 0.2s;
}
.doc__back:hover { opacity: 0.7; }
.doc__back-arrow {
  position: absolute;
  right: -24px;
  top: calc(50% - 1px);
  width: 45px;
  height: 2px;
  background: var(--color-accent-mid);
}
.doc__back-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 2px;
  background: var(--color-accent-mid);
  transform-origin: right bottom;
  transform: rotate(45deg);
}

/* ===== CTAボタン（中央・ラベル幅可変／法定代理受領のPDFリンク等） ===== */
.doc__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  height: 45px;
  margin: 44px auto 0;
  padding-inline: 36px;
  background: var(--color-white);
  border: 1px solid var(--color-accent-mid);
  border-radius: 10px;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-accent);
  transition: opacity 0.2s;
}
.doc__cta:hover { opacity: 0.7; }
.doc__cta-label { text-align: center; }
.doc__cta .br-sp { display: none; } /* SP専用改行（PCは1行） */

/* =========================================================
   レスポンシブ（SP : max-width 750px）
   ========================================================= */
@media (max-width: 750px) {
  .page-pill { width: 300px; max-width: calc(100% - 40px); height: 40px; font-size: 22px; margin-top: 24px; }

  .doc__inner { max-width: none; }
  /* SP：本文は幅90%・中央寄せ */
  .doc__body { width: 90%; margin-inline: auto; }

  /* ボタン：全幅・中央寄せ・シェブロンのみ */
  .doc__back,
  .doc__cta { width: 100%; max-width: 360px; height: 52px; margin: 36px auto 0; padding-inline: 20px; }
  .doc__cta .br-sp { display: inline; } /* SPは「…通知」の後で改行・2行中央 */
  .doc__back-arrow {
    width: 0;
    height: 0;
    right: 18px;
    top: 50%;
    background: transparent;
  }
  .doc__back-arrow::after {
    right: 0;
    bottom: auto;
    top: 50%;
    width: 7px;
    height: 7px;
    background: transparent;
    border-top: 1.5px solid var(--color-accent);
    border-right: 1.5px solid var(--color-accent);
    transform: translateY(-50%) rotate(45deg);
    transform-origin: center;
  }
}
