/* 法人・人事総務ご担当者様へ（/corporate/）— 加藤様のデザイン案の型 — 2026-10-05 blanc
 * 本文は DB（固定ページ corporate）、このCSSは inc/corporate-page.php が body 先頭で読む */

/* サイドバーとテンプレートの見出し・下線を外して全幅にする */
.main-grid-wrap:has(.jrb) { grid-template-columns: 1fr; max-width: 1200px; gap: 0; }
.main-grid-wrap:has(.jrb) > .side-parts { display: none; }
#subpage .main-content:has(.jrb) > h2.menu-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#subpage .main-content .jrb h2, #subpage .main-content .jrb h3 { margin: 0; padding: 0; border: 0; background: none; }
#subpage .main-content .jrb h2::before, #subpage .main-content .jrb h2::after,
#subpage .main-content .jrb h3::before, #subpage .main-content .jrb h3::after { content: none; display: none; }
/* フォームがページ内にあるので、共通の「お問い合わせ」帯は出さない */
#primary:has(.jrb) > #contact { display: none; }

.jrb {
  --b-navy: #0f2a55;
  --b-navy2: #163a73;
  --b-green: #2f9a45;
  --b-pale: #eef4fb;
  --b-line: #dfe6ef;
  --b-text: #2b3440;
  --b-gold: #b8913a;
  --b-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  color: var(--b-text);
  font-size: 1.5rem;
  line-height: 1.85;
}
.jrb p { margin: 0; }
.jrb img { display: block; max-width: 100%; height: auto; }
.jrb ul, .jrb ol { margin: 0; padding: 0; list-style: none; }
.jrb li { list-style: none; }
.jrb svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jrb section { margin: 0; }

#subpage .main-content .jrb .jrb-title { font-family: var(--b-serif); font-size: 3rem; line-height: 1.4; color: var(--b-navy); text-align: center; margin-bottom: 1rem; }
#subpage .main-content .jrb .jrb-title--left { text-align: left; }
#subpage .main-content .jrb .jrb-title--left::after { content: "" !important; display: block !important; width: 4.8rem; height: 3px; background: var(--b-navy); margin-top: 1.4rem; }
.jrb-lead { text-align: center; color: #4a5566; margin-bottom: 3rem !important; }

/* ボタン */
.jrb-btn { display: inline-flex; align-items: center; gap: .8rem; padding: 1.5rem 3.2rem; border-radius: 4px; font-size: 1.7rem; font-weight: bold; text-decoration: none !important; line-height: 1.3; transition: opacity .2s; }
.jrb-btn:hover { opacity: .85; }
.jrb-btn::after { content: "\203A"; font-size: 2rem; line-height: 1; margin-left: .4rem; }
.jrb-btn--green { background: var(--b-green); color: #fff !important; box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* 上部 */
.jrb-hero { position: relative; min-height: 44rem; display: flex; align-items: center; overflow: hidden; border-radius: 6px; }
.jrb-hero__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.jrb-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,30,62,.88) 0%, rgba(10,30,62,.72) 45%, rgba(10,30,62,.15) 80%); }
.jrb-hero__body { position: relative; z-index: 2; padding: 4.4rem 4rem; color: #fff; }
.jrb-hero__tag { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.55); padding: .4rem 1.6rem; font-size: 1.6rem; font-weight: bold; letter-spacing: .08em; margin-bottom: 1.8rem !important; }
#subpage .main-content .jrb .jrb-hero__title { font-family: var(--b-serif); font-size: 4.4rem; line-height: 1.4; color: #fff; letter-spacing: .04em; margin-bottom: 2rem; }
.jrb-hero__text { font-size: 1.75rem; line-height: 1.9; font-weight: bold; margin-bottom: 2.8rem !important; }

/* お悩み */
.jrb-worry { background: var(--b-pale); padding: 5.6rem 2.4rem 5rem; margin-top: 4rem !important; border-radius: 6px; }
.jrb-worry__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem; }
.jrb-worry__list li { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; background: #fff; border: 1px solid var(--b-line); border-radius: 50% / 34%; padding: 2.8rem 1rem 2.4rem; text-align: center; }
.jrb-worry__list svg { width: 5.6rem; height: 5.6rem; color: var(--b-navy); }
.jrb-worry__list p { font-size: 1.45rem; line-height: 1.6; font-weight: bold; color: var(--b-navy); }

/* 選ばれる理由 */
.jrb-reason { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding: 6rem 2.4rem; }
.jrb-reason__body > p { font-size: 1.6rem; line-height: 2; margin: 2rem 0 3.2rem !important; }
.jrb-reason__img { width: 100%; border-radius: 6px; box-shadow: 0 6px 20px rgba(15,42,85,.15); }
.jrb-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.jrb-badges li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; padding: 1rem; text-align: center;
  border: 2px solid var(--b-gold); border-radius: 50%; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px rgba(184,145,58,.45); }
.jrb-badge__main { font-family: var(--b-serif); font-size: 1.7rem; line-height: 1.35; font-weight: bold; color: var(--b-navy); }
.jrb-badge__main b { font-size: 3.4rem; line-height: 1; }
.jrb-badge__sub { margin-top: .6rem; font-size: 1.15rem; color: #5d6f8c; border-top: 1px solid var(--b-line); padding-top: .4rem; }

/* サービス 6ステップ */
.jrb-service { background: var(--b-pale); padding: 5.6rem 2.4rem 5rem; border-radius: 6px; }
.jrb-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; counter-reset: none; }
.jrb-steps li { display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,42,85,.08); }
.jrb-steps__head { display: flex; align-items: center; gap: .8rem; padding: 1.4rem 1.2rem .6rem; font-size: 1.4rem; font-weight: bold; line-height: 1.4; color: var(--b-navy); }
.jrb-steps__head span { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--b-navy); color: #fff; font-size: 1.6rem; }
.jrb-steps__text { flex: 1; padding: 0 1.2rem 1.2rem; font-size: 1.3rem; line-height: 1.65; }
.jrb-steps img { width: 100%; aspect-ratio: 230 / 93; object-fit: cover; }

/* 写真の帯 */
.jrb-band { margin-top: 4rem !important; border-radius: 6px; overflow: hidden; }
.jrb-band__photos { display: grid; grid-template-columns: 1.15fr 1fr 1fr; }
.jrb-band__photos img { width: 100%; height: 24rem; object-fit: cover; }
.jrb-band__text { background: var(--b-navy); color: #fff; text-align: center; padding: 2.6rem 2rem 2.8rem; }
.jrb-band__title { font-family: var(--b-serif); font-size: 2.6rem; line-height: 1.5; font-weight: bold; margin-bottom: .6rem !important; }
.jrb-band__text p:last-child { font-size: 1.45rem; color: #d7e1f0; }

/* 資料カード */
.jrb-docs { padding: 6rem 2.4rem; }
.jrb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.jrb-cards a { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--b-line); border-radius: 6px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 2px 10px rgba(15,42,85,.06); transition: box-shadow .2s, transform .2s; }
.jrb-cards a:hover { box-shadow: 0 8px 20px rgba(15,42,85,.14); transform: translateY(-2px); }
.jrb-cards img { width: 100%; aspect-ratio: 2.6; object-fit: cover; }
.jrb-cards__title { display: block; padding: 1.6rem 4rem .4rem 1.8rem; font-size: 1.7rem; font-weight: bold; color: var(--b-navy); }
.jrb-cards__text { display: block; padding: 0 4rem 1.8rem 1.8rem; font-size: 1.35rem; line-height: 1.7; color: #4a5566; }
.jrb-cards a::after { content: "\203A"; position: absolute; right: 1.6rem; bottom: 2.4rem; font-size: 2.6rem; line-height: 1; color: var(--b-navy); }

/* 相談フォーム */
.jrb-contact { scroll-margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.6rem; align-items: center; padding: 5rem 4rem; border-radius: 6px; color: #fff;
  background: linear-gradient(rgba(10,30,62,.86), rgba(10,30,62,.86)), url("../images/en-lp-banner.jpg") center / cover no-repeat; }
#subpage .main-content .jrb .jrb-contact__title { font-family: var(--b-serif); font-size: 3.2rem; line-height: 1.4; color: #fff; margin-bottom: 1.8rem; }
.jrb-contact__text > p { font-size: 1.6rem; line-height: 1.9; }
.jrb-contact__points { display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 2.8rem 0 !important; }
.jrb-contact__points li { display: flex; align-items: center; gap: .8rem; font-size: 1.6rem; font-weight: bold; }
.jrb-contact__points svg { width: 3.2rem; height: 3.2rem; }
.jrb .jrb-contact__tel { font-size: 1.4rem; line-height: 1.9; color: #d7e1f0; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.6rem; }
.jrb-contact__tel a { color: #fff; font-weight: bold; font-size: 1.6rem; }
.jrb-contact__form { background: #fff; color: var(--b-text); border-radius: 8px; padding: 2.8rem 2.8rem 2.4rem; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.jrb-contact__formtitle { font-size: 1.9rem; font-weight: bold; color: var(--b-navy); border-bottom: 2px solid var(--b-navy); padding-bottom: .8rem; margin-bottom: 1.8rem !important; }
.jrb .jrb-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.jrb .jrb-f { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.jrb .jrb-f--wide { grid-column: 1 / -1; }
.jrb .jrb-f > p { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; margin: 0; }
.jrb .jrb-f .wpcf7-form-control-wrap { display: block; width: 100%; }
.jrb .jrb-f label { font-size: 1.35rem; font-weight: bold; color: var(--b-navy); }
.jrb .jrb-f .hissu { margin-left: .6rem; }
.jrb .jrb-f input, .jrb .jrb-f select, .jrb .jrb-f textarea { width: 100% !important; max-width: none !important; margin: 0 !important; box-sizing: border-box; border: 1px solid #c9d3e0; border-radius: 4px; padding: 1rem 1.2rem; font-size: 1.5rem; background: #fff; color: var(--b-text); }
.jrb .jrb-f input, .jrb .jrb-f select { height: 4.6rem; }
.jrb .jrb-f textarea { min-height: 10rem; resize: vertical; }
.jrb .jrb-f input:focus, .jrb .jrb-f select:focus, .jrb .jrb-f textarea:focus { outline: 2px solid rgba(47,154,69,.4); border-color: var(--b-green); }
.jrb .jrb-f br { display: none; }
.jrb .cf7-form-buttons { margin-top: 2rem; text-align: center; }
.jrb .cf7-form-buttons > p { margin: 0; }
.jrb .cf7-form-buttons br { display: none; }
.jrb .cf7-confirm-btn, .jrb .cf7-submit-btn { width: 100%; max-width: none; background: var(--b-green) !important; border-color: var(--b-green) !important; color: #fff !important; }
.jrb .cf7-confirm-screen { margin-top: 0; }

/* タブレット */
@media only screen and (max-width: 1024px) {
  .jrb-worry__list, .jrb-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jrb-contact { grid-template-columns: minmax(0, 1fr); }
}

/* スマホ */
@media only screen and (max-width: 599px) {
  .jrb { font-size: 1.45rem; }
  #subpage .main-content .jrb .jrb-title { font-size: 2.3rem; }
  .jrb-lead { text-align: left; }
  .jrb-hero { min-height: 0; border-radius: 0; }
  .jrb-hero::before { background: linear-gradient(180deg, rgba(10,30,62,.6) 0%, rgba(10,30,62,.85) 100%); }
  .jrb-hero__body { padding: 3.2rem 1.8rem; }
  .jrb-hero__tag { font-size: 1.35rem; }
  #subpage .main-content .jrb .jrb-hero__title { font-size: 2.4rem; }
  #subpage .main-content .jrb .jrb-hero__title br { display: none; }
  .jrb-hero__text { font-size: 1.45rem; }
  .jrb-hero__text br { display: none; }
  .jrb-btn { width: 100%; justify-content: center; padding: 1.5rem 1.6rem; }
  .jrb-worry, .jrb-service { padding: 4rem 1.4rem; border-radius: 0; }
  .jrb-worry__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .jrb-worry__list li { border-radius: 10px; padding: 1.8rem .8rem; }
  .jrb-worry__list svg { width: 4.4rem; height: 4.4rem; }
  .jrb-worry__list p { font-size: 1.35rem; }
  .jrb-reason { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; padding: 4.4rem 1.4rem; }
  .jrb-badges { gap: .8rem; }
  .jrb-badges li { aspect-ratio: auto; border-radius: 10px; padding: 1.4rem .4rem 1.2rem; }
  .jrb-badge__main { font-size: 1.3rem; }
  .jrb-badge__main b { font-size: 2.4rem; }
  .jrb-badge__sub { font-size: 1rem; }
  .jrb-steps { grid-template-columns: minmax(0, 1fr); }
  .jrb-steps img { aspect-ratio: auto; height: 13rem; }
  .jrb-band__photos { grid-template-columns: 1fr 1fr; }
  .jrb-band__photos img { height: 14rem; }
  .jrb-band__photos img:first-child { grid-column: 1 / -1; }
  .jrb-band { border-radius: 0; }
  .jrb-band__title { font-size: 1.9rem; }
  .jrb-docs { padding: 4.4rem 1.4rem; }
  .jrb-cards { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .jrb-contact { padding: 4rem 1.4rem; border-radius: 0; gap: 2.4rem; }
  #subpage .main-content .jrb .jrb-contact__title { font-size: 2.4rem; }
  .jrb-contact__text > p:not(.jrb-contact__tel) br { display: none; }
  .jrb-contact__form { padding: 2rem 1.6rem; }
  .jrb .jrb-fgrid { grid-template-columns: 1fr; }
}
