/* benefit-support.css | page_benefit.php 専用。既存の共通CSSは編集不要。 */
#wrap.bm-benefit-wrap { width: 1000px; max-width: 100%; margin-inline: auto; }
#bm-benefit-support { --bs-pink: #d71467; --bs-line: #e6dce1; box-sizing: border-box; width: 100%; margin: 0 auto 50px; color: #222; font-size: 16px; line-height: 1.8; text-align: left; overflow-wrap: anywhere; }
#bm-benefit-support *, #bm-benefit-support *::before, #bm-benefit-support *::after { box-sizing: border-box; }
#bm-benefit-support div::after { content: none; }
#bm-benefit-support h1, #bm-benefit-support h2, #bm-benefit-support p { line-height: 1.8; }
#bm-benefit-support p { margin: 0 0 20px; }
#bm-benefit-support a { color: #a71050; text-underline-offset: 4px; }
#bm-benefit-support a:focus-visible, #bm-benefit-support [tabindex]:focus-visible { outline: 3px solid #333; outline-offset: 4px; }
#bm-benefit-support .bs-hero { padding: 45px 45px 35px; margin-bottom: 30px; background: #fff; border-top: 6px solid var(--bs-pink); border-bottom: 1px solid var(--bs-line); }
#bm-benefit-support .bs-eyebrow { color: var(--bs-pink); font-weight: bold; text-align: center; margin-bottom: 12px; }
#bm-benefit-support h1 { font-size: 38px; text-align: center; color: var(--bs-pink); line-height: 1.5; margin: 0 0 25px; }
#bm-benefit-support .bs-lead { max-width: 820px; margin: 0 auto; font-size: 19px; font-weight: bold; }
#bm-benefit-support .bs-section { padding: 30px; margin: 0 0 30px; background: #fff; scroll-margin-top: 25px; }
#bm-benefit-support .bs-heading { font-size: 23px; color: #222; border-left: 6px solid var(--bs-pink); padding: 0 0 0 15px; margin: 0 0 22px; line-height: 1.6; }
#bm-benefit-support table { width: 100%; border-collapse: collapse; line-height: 1.7; font-size: 16px; }
#bm-benefit-support caption { text-align: left; font-weight: bold; padding: 0 0 12px; color: #555; }
#bm-benefit-support th, #bm-benefit-support td { border: 1px solid var(--bs-line); padding: 18px; vertical-align: middle; }
#bm-benefit-support .bs-overview th { background: #fbf1f5; width: 27%; text-align: left; }
#bm-benefit-support .bs-list { margin: 0; padding: 0 0 0 1.2em; }
#bm-benefit-support .bs-list li { list-style: disc; margin-bottom: 10px; }
#bm-benefit-support .bs-list li:last-child { margin-bottom: 0; }
#bm-benefit-support .bs-small { display: block; font-size: 13px; color: #555; line-height: 1.8; margin: 8px 0 0; }
#bm-benefit-support .bs-ref { white-space: nowrap; font-size: 12px; font-weight: normal; margin-left: 4px; }
#bm-benefit-support .bs-system { background: #fbf1f5; padding: 35px 30px; margin-bottom: 30px; border-block: 1px solid #eed4df; }
#bm-benefit-support .bs-system h2 { text-align: center; font-size: 25px; margin-bottom: 12px; }
#bm-benefit-support .bs-system > p { text-align: center; }
#bm-benefit-support .bs-pair { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; max-width: 800px; margin: auto; }
#bm-benefit-support .bs-pair a { background: #fff; border: 2px solid var(--bs-pink); padding: 18px 12px; text-decoration: none; text-align: center; font-size: 23px; font-weight: bold; }
#bm-benefit-support .bs-pair a:hover { background: #fff8fb; }
#bm-benefit-support .bs-pair span { display: block; font-size: 14px; letter-spacing: .12em; }
#bm-benefit-support .bs-pair b { font-size: 28px; text-align: center; color: var(--bs-pink); }
#bm-benefit-support .bs-point { margin: 0 0 8px; font-size: 14px; letter-spacing: .12em; color: var(--bs-pink); font-weight: bold; }
#bm-benefit-support .bs-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
#bm-benefit-support .bs-amounts { min-width: 580px; table-layout: fixed; }
#bm-benefit-support .bs-amounts th:first-child { width: 15%; }
#bm-benefit-support .bs-amounts thead th:nth-child(2) { width: 33%; }
#bm-benefit-support .bs-amounts thead th { background: var(--bs-pink); color: #fff; text-align: center; }
#bm-benefit-support .bs-amounts thead a { color: #fff; }
#bm-benefit-support .bs-amounts tbody th { background: #fbf1f5; text-align: center; }
#bm-benefit-support .bs-amounts td { text-align: center; }
#bm-benefit-support .bs-amounts strong { font-size: 23px; color: var(--bs-pink); white-space: nowrap; }
#bm-benefit-support .bs-amounts span { display: block; font-size: 12px; font-weight: normal; }
#bm-benefit-support .bs-tag { display: inline-block; color: var(--bs-pink); border: 1px solid currentColor; font-size: 14px; padding: 1px 10px; vertical-align: middle; }
#bm-benefit-support .bs-scroll-hint { display: none; }
#bm-benefit-support .bs-total { text-align: center; color: var(--bs-pink); font-size: 26px; font-weight: bold; margin-bottom: 25px; }
#bm-benefit-support .bs-total strong { font-size: 52px; line-height: 1.3; }
#bm-benefit-support .bs-maximum picture { display: block; margin: 30px auto; max-width: 849px; }
#bm-benefit-support .bs-maximum img { display: block; width: 100%; height: auto; }
#bm-benefit-support .bs-maximum .bs-heading { font-size: 20px; }
#bm-benefit-support .bs-notes { padding: 30px; background: #fff; }
#bm-benefit-support .bs-notes ol { padding: 0; margin: 0 0 25px; }
#bm-benefit-support .bs-notes li { display: flex; gap: 10px; list-style: none; font-size: 14px; scroll-margin-top: 25px; }
#bm-benefit-support .bs-notes li > span { flex: 0 0 28px; }
#bm-benefit-support .bs-links { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
#bm-benefit-support .bs-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--bs-pink); padding: 16px 20px; text-decoration: none; font-size: 15px; font-weight: bold; }
#bm-benefit-support .bs-links a:hover { background: #fbf1f5; }
#bm-benefit-support .bs-mobile { display: none; }
@media screen and (max-width: 640px) {
  #bm-benefit-support { padding: 0 3.12%; font-size: 15px; margin-bottom: 30px; }
  #bm-benefit-support .bs-hero { padding: 25px 18px; margin-bottom: 20px; }
  #bm-benefit-support h1 { font-size: 29px; margin-bottom: 20px; }
  #bm-benefit-support .bs-mobile { display: block; }
  #bm-benefit-support .bs-eyebrow { font-size: 13px; }
  #bm-benefit-support .bs-lead { font-size: 16px; }
  #bm-benefit-support .bs-section, #bm-benefit-support .bs-notes, #bm-benefit-support .bs-system { padding: 22px 16px; margin-bottom: 20px; }
  #bm-benefit-support .bs-heading { font-size: 20px; padding-left: 12px; margin-bottom: 18px; }
  #bm-benefit-support .bs-overview { font-size: 14px; }
  #bm-benefit-support .bs-overview th { width: 32%; }
  #bm-benefit-support th, #bm-benefit-support td { padding: 12px 9px; }
  #bm-benefit-support .bs-system h2 { font-size: 20px; }
  #bm-benefit-support .bs-pair { grid-template-columns: 1fr; gap: 8px; }
  #bm-benefit-support .bs-pair a { padding: 12px; font-size: 21px; }
  #bm-benefit-support .bs-pair b { line-height: 1; }
  #bm-benefit-support .bs-amounts { font-size: 14px; }
  #bm-benefit-support .bs-amounts strong { font-size: 20px; }
  #bm-benefit-support .bs-scroll-hint { display: block; font-size: 12px; color: #666; margin: 8px 0 16px; }
  #bm-benefit-support .bs-total { font-size: 20px; }
  #bm-benefit-support .bs-total strong { font-size: 40px; }
  #bm-benefit-support .bs-maximum .bs-heading { font-size: 18px; }
  #bm-benefit-support .bs-links { grid-template-columns: 1fr; }
}

/* 見出し・支援内容・最大額に強弱をつけるデザイン調整 */
#bm-benefit-support .bs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 52px 50px 42px;
  border-top: 5px solid var(--bs-pink);
  border-bottom: 0;
  background: linear-gradient(125deg, #fff 45%, #fcebf3);
}
#bm-benefit-support .bs-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  border: 44px solid #f8d9e7;
  border-radius: 50%;
  right: -130px;
  top: -155px;
  opacity: .65;
}
#bm-benefit-support .bs-eyebrow { letter-spacing: .12em; }
#bm-benefit-support h1 { font-size: 40px; letter-spacing: .04em; }
#bm-benefit-support .bs-lead {
  padding: 22px 26px;
  background: rgba(255,255,255,.85);
  border-left: 3px solid #e8a4c0;
  font-size: 18px;
}
#bm-benefit-support .bs-section {
  padding: 34px;
  border: 1px solid #eee5e9;
  box-shadow: 0 4px 16px rgba(76,36,55,.035);
}
#bm-benefit-support .bs-heading {
  border-left: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid #eadfe4;
  position: relative;
}
#bm-benefit-support .bs-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 58px;
  height: 3px;
  background: var(--bs-pink);
}
#bm-benefit-support .bs-overview caption { font-size: 13px; letter-spacing: .06em; }
#bm-benefit-support .bs-overview th { background: #f7f3f5; }
#bm-benefit-support .bs-system {
  padding: 38px 34px;
  background: #f9edf2;
  border: 0;
}
#bm-benefit-support .bs-system h2 { font-size: 27px; }
#bm-benefit-support .bs-pair { max-width: 860px; grid-template-columns: 1fr 56px 1fr; }
#bm-benefit-support .bs-pair a {
  position: relative;
  padding: 22px 16px;
  border: 0;
  border-top: 4px solid var(--bs-pink);
  box-shadow: 0 5px 0 #efd4df;
  font-size: 25px;
}
#bm-benefit-support .bs-pair a:first-child { border-color: #745266; color: #69465b; }
#bm-benefit-support .bs-pair span { font-size: 17px; margin-bottom: 4px; }
#bm-benefit-support .bs-point {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 16px;
  background: var(--bs-pink);
  color: #fff;
  font-size: 12px;
  border-radius: 2px;
}
#bm-benefit-support #bs-tuition { border-top: 4px solid #745266; }
#bm-benefit-support #bs-tuition .bs-point { background: #745266; }
#bm-benefit-support #bs-tuition .bs-heading::after { background: #745266; }
#bm-benefit-support #bs-tuition .bs-amounts thead th { background: #745266; }
#bm-benefit-support #bs-tuition .bs-amounts strong { color: #69465b; }
#bm-benefit-support #bs-scholarship { border-top: 4px solid var(--bs-pink); }
#bm-benefit-support .bs-amounts thead th { padding-block: 17px; }
#bm-benefit-support .bs-amounts tbody tr:first-child td { background: #fff9e9; }
#bm-benefit-support .bs-amounts tbody tr:first-child th { background: #f6edcf; }
#bm-benefit-support .bs-amounts tbody tr:first-child strong { font-size: 27px; }
#bm-benefit-support .bs-amounts tbody th { background: #f7f3f5; }
#bm-benefit-support .bs-maximum {
  border: 2px solid #e8a4c0;
  background: linear-gradient(#fff3f8, #fff 260px);
  padding-top: 30px;
}
#bm-benefit-support .bs-total { font-size: 27px; margin-bottom: 26px; }
#bm-benefit-support .bs-total strong {
  font-size: 72px;
  letter-spacing: -.04em;
  margin: 0 5px;
  background: linear-gradient(transparent 79%, #f7df77 79%, #f7df77 94%, transparent 94%);
}
#bm-benefit-support .bs-maximum .bs-heading { font-size: 19px; text-align: center; border: 0; padding-bottom: 0; }
#bm-benefit-support .bs-maximum .bs-heading::after { content: none; }
#bm-benefit-support .bs-maximum picture { background: #fff; padding: 18px 8px; }
#bm-benefit-support .bs-notes { background: #faf9fa; border-top: 1px solid #ded5da; }
#bm-benefit-support .bs-notes .bs-heading { font-size: 19px; }
#bm-benefit-support .bs-links a { background: #fff; border-color: #ddbbc9; }
#bm-benefit-support .bs-links a > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #fbf1f5;
  border-radius: 50%;
}
@media screen and (max-width: 640px) {
  #bm-benefit-support .bs-hero { padding: 30px 16px 24px; }
  #bm-benefit-support h1 { font-size: 29px; }
  #bm-benefit-support .bs-eyebrow { letter-spacing: .03em; font-size: 12px; }
  #bm-benefit-support .bs-lead { font-size: 15px; padding: 16px; }
  #bm-benefit-support .bs-section, #bm-benefit-support .bs-system { padding: 24px 16px; }
  #bm-benefit-support .bs-heading { padding-bottom: 13px; }
  #bm-benefit-support .bs-system h2 { font-size: 20px; }
  #bm-benefit-support .bs-pair { grid-template-columns: 1fr; gap: 12px; }
  #bm-benefit-support .bs-pair a { padding: 14px; font-size: 22px; }
  #bm-benefit-support .bs-pair span { display: inline; font-size: 16px; margin-right: 12px; }
  #bm-benefit-support .bs-point { margin-bottom: 13px; }
  #bm-benefit-support .bs-amounts tbody tr:first-child strong { font-size: 23px; }
  #bm-benefit-support .bs-total { font-size: 18px; }
  #bm-benefit-support .bs-total strong { font-size: 49px; margin-inline: 2px; }
  #bm-benefit-support .bs-maximum .bs-heading { font-size: 17px; }
  #bm-benefit-support .bs-maximum picture { padding: 10px 0; margin: 22px auto; }
}
