/* =========================================================
   採用ページ（Figma「採用ページ」）
   背景：クリーム／濃いグレー／緑のセクションを全幅で積む
   ========================================================= */
:root {
  --rg: #00c039;
  --rd: #222;
  --rc: #fff8e9;
}

:root,
.gh-recruit {
  --u: calc(min(100vw, 1280px) / 1280);
}

.gh-recruit-main {
  overflow-x: clip;
}

.gh-rentry > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* セクションは SWELL の「フルワイド」ブロック（背景色・余白はブロック側で設定）
   中身の幅だけここでそろえる */
.gh-rentry .swell-block-fullWide {
  margin: 0;
}

.gh-rentry .swell-block-fullWide + .swell-block-fullWide {
  margin-top: 0;
}

.swell-block-fullWide__inner:has(> .gh-rhead, > .gh-rcard, > .gh-ren, > .wp-block-image) {
  width: min(100% - var(--gh-gutter) * 2, 1152px);
  margin-right: auto;
  margin-left: auto;
  padding: 0;
}

.gh-rentry .swell-block-fullWide__inner > * {
  margin-top: 0;
  margin-bottom: 0;
}

.gh-rnews {
  width: min(100% - var(--gh-gutter) * 2, 1166px);
  margin-right: auto !important;
  margin-left: auto !important;
}

#policy {
  padding-bottom: 120px !important;
}

/* 見出し（英字の大見出し＋日本語） */
.wp-block-heading.gh-rhead {
  margin: 0;
  padding: 0;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--rg);
  background: none;
  border: 0;
}

.wp-block-heading.gh-rhead::before,
.wp-block-heading.gh-rhead::after {
  content: none;
}

:is(#job, .swell-block-fullWide:is([style*="#222222"], [style*="34, 34, 34"]):not(:has(.gh-rcard))) .wp-block-heading.gh-rhead {
  font-size: 44px;
  line-height: 1.2;
  color: var(--gh-white);
}

:is(#company, .swell-block-fullWide:is([style*="#222222"], [style*="34, 34, 34"]):has(.gh-rcard)) .wp-block-heading.gh-rhead {
  font-size: 56px;
  color: var(--rg);
}

.gh-rhead__ja {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 700;
  vertical-align: 2px;
}

p.gh-rhead-sub {
  margin-top: 4px !important;
  font-size: 16px;
  font-weight: 700;
}

:is(#job, .swell-block-fullWide:is([style*="#222222"], [style*="34, 34, 34"]):not(:has(.gh-rcard))) p.gh-rhead-sub {
  font-size: 14px;
  color: var(--rg);
}

:is(#company, .swell-block-fullWide:is([style*="#222222"], [style*="34, 34, 34"]):has(.gh-rcard)) p.gh-rhead-sub {
  color: var(--gh-white);
}

.swell-block-fullWide__inner > p.gh-rhead-sub + * {
  margin-top: 32px;
}

.wp-block-heading.gh-rhead--huge {
  font-size: min(71px, 5.5vw);
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.wp-block-heading.gh-rcatch {
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 34px;
  color: inherit;
  background: none;
  border: 0;
}

.wp-block-heading.gh-rcatch::before,
.wp-block-heading.gh-rcatch::after {
  content: none;
}

/* ボタン：採用ページでは黒 */
.gh-recruit .wp-block-button.is-style-gh-pill .wp-block-button__link {
  background: var(--rd);
  box-shadow: inset 0 0 0 1.5px var(--rd);
}

.gh-recruit .wp-block-button.is-style-gh-pill .wp-block-button__link::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M7 13.5h12M14 8.5l5 5-5 5' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E");
}

.gh-recruit .wp-block-button.is-style-gh-pill .wp-block-button__link:hover {
  color: var(--rd);
  background: var(--gh-white);
}

.gh-recruit .wp-block-button.is-style-gh-pill .wp-block-button__link:hover::after {
  background-color: var(--rd);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 27'%3E%3Cpath d='M7 13.5h12M14 8.5l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.wp-block-buttons.gh-btn-row--left {
  justify-content: flex-start;
}

/* エントリーボタン（ボタン：スタイル「エントリーボタン（緑）」） */
.wp-block-button.is-style-gh-entry .wp-block-button__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 347px;
  height: 82px;
  padding: 0;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--gh-white);
  background: var(--rg);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 0 rgba(0, 192, 57, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.wp-block-button.is-style-gh-entry .wp-block-button__link::after {
  content: "マイナビからエントリーする";
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.wp-block-button.is-style-gh-entry .wp-block-button__link:hover {
  background: #00a832;
  box-shadow: 0 10px 24px rgba(0, 120, 36, 0.3);
  transform: translateY(-3px);
}

/* ---------------------------------------------------------
   ヘッダー（採用ページ専用）
   --------------------------------------------------------- */
.gh-rlogo {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 55px;
  color: var(--rc);
}

.gh-rlogo__site {
  display: block;
  width: 360px;
  padding-left: 14px;
  text-decoration: none;
  color: var(--rc) !important;
  background: var(--rg);
  transition: background-color 0.2s ease;
}

.gh-rlogo__site:hover {
  background: #00a832;
}

.gh-rlogo__page {
  display: block;
  width: 164px;
  padding-left: 30px;
  background: var(--rd);
}

.gh-header--recruit .gh-nav__card {
  background: var(--rd);
}

.gh-header--recruit .gh-nav__list a,
.gh-header--recruit .gh-nav__toggle {
  color: var(--gh-white);
}

.gh-header--recruit .gh-nav__list a:hover,
.gh-header--recruit .gh-nav__list a:focus-visible,
.gh-header--recruit .gh-nav__toggle:hover {
  color: var(--rg);
}

.gh-header--recruit .gh-nav__caption {
  color: var(--rd);
}

.gh-nav__btn--entry {
  padding: 4px 0;
  font-size: 13px;
  color: var(--rd) !important;
  background: var(--gh-white);
  border: 2px solid var(--gh-white);
}

.gh-nav__btn--entry:hover,
.gh-nav__btn--entry:focus-visible {
  color: var(--gh-white) !important;
  background: var(--rg);
  border-color: var(--rg);
}

/* ---------------------------------------------------------
   ファーストビュー（写真は筆で塗ったような形に切り抜く）
   --------------------------------------------------------- */
.wp-block-group.gh-rhero {
  position: relative;
  width: min(100%, 1280px);
  height: calc(860 * var(--u));
  margin: 0 auto;
}

.gh-rhero > .wp-block-group__inner-container > * {
  margin: 0;
}

.gh-rhero .wp-block-image {
  position: absolute;
  top: calc(-43 * var(--u));
  left: calc(261 * var(--u));
  width: calc(1222 * var(--u));
  height: calc(822 * var(--u));
  margin: 0;
  -webkit-mask: url("../images/recruit/brush-mask.png") center / 100% 100% no-repeat;
  mask: url("../images/recruit/brush-mask.png") center / 100% 100% no-repeat;
}

.gh-rhero .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-heading.gh-rhero__title {
  position: absolute;
  top: calc(577 * var(--u));
  left: calc(51 * var(--u));
  margin: 0;
  padding: 0;
  font-size: calc(70 * var(--u));
  font-weight: 900;
  line-height: 1.2;
  color: var(--rd);
  background: none;
  border: 0;
}

.wp-block-heading.gh-rhero__title::before,
.wp-block-heading.gh-rhero__title::after {
  content: none;
}

p.gh-rhero__catch {
  position: absolute;
  top: calc(667 * var(--u));
  left: calc(51 * var(--u));
  font-size: max(20px, calc(32 * var(--u)));
  font-weight: 700;
  line-height: 1.32;
  color: var(--rd);
}

p.gh-rhero__lead {
  position: absolute;
  top: calc(763 * var(--u));
  left: calc(51 * var(--u));
  font-size: 15px;
  color: var(--rd);
}

.gh-rhero__entry {
  position: absolute;
  top: calc(709 * var(--u));
  left: calc(897 * var(--u));
}

/* ---------------------------------------------------------
   お知らせ（採用カテゴリ）
   --------------------------------------------------------- */
.wp-block-group.gh-rnews {
  margin: 0;
  padding: 42px 0 64px;
  background: var(--rc);
}

.gh-news-panel {
  padding: 57px 53px 23px;
  background: var(--gh-white);
  border-radius: 40px 40px 40px 40px;
}

.gh-news-panel ul.gh-news__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--rg);
}

.gh-news-panel .gh-news__item {
  margin: 0;
  border-bottom-color: var(--rg);
}

.gh-news-panel .gh-news__more {
  margin-top: 23px;
  text-align: right;
}

/* ---------------------------------------------------------
   仕事について（濃いグレー）
   --------------------------------------------------------- */
.wp-block-columns.gh-rabout {
  --wp-column-gap: 25px;
  align-items: flex-start;
  margin-top: 40px !important;
}

.wp-block-columns.gh-rabout + .wp-block-columns.gh-rabout {
  margin-top: 32px !important;
}

.gh-rabout .wp-block-column > * {
  margin-top: 0;
  margin-bottom: 0;
}

.gh-rabout .wp-block-column > * + * {
  margin-top: 26px;
}

.gh-rabout p {
  font-size: 15px;
  line-height: 29px;
  text-indent: 1em;
}

.wp-block-columns.gh-rphotos {
  --wp-column-gap: 6px;
  flex-wrap: nowrap !important;
  margin: 0 !important;
}

.gh-rphotos .wp-block-column {
  flex: 1 1 0 !important;
  min-width: 0;
}

.gh-rphotos .wp-block-image {
  margin: 0;
}

.gh-rphotos img {
  width: 100%;
  aspect-ratio: 198 / 271;
  object-fit: cover;
}

/* ---------------------------------------------------------
   働く環境とデータ（緑）
   --------------------------------------------------------- */
:is(#environment, .swell-block-fullWide:is([style*="#00c039"], [style*="0, 192, 57"])) .swell-block-fullWide__inner > .wp-block-image {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
}

:is(#environment, .swell-block-fullWide:is([style*="#00c039"], [style*="0, 192, 57"])) .swell-block-fullWide__inner > .wp-block-image img {
  width: 100%;
  aspect-ratio: 1152 / 459;
  object-fit: cover;
}

p.gh-ren {
  margin-top: 28px !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gh-rpolicy p.gh-ren {
  margin-top: 0 !important;
  color: var(--rg);
}

.wp-block-heading.gh-rtitle {
  margin: 4px 0 0 !important;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--gh-white);
  background: none;
  border: 0;
}

.wp-block-heading.gh-rtitle::before,
.wp-block-heading.gh-rtitle::after {
  content: none;
}

.wp-block-columns.gh-rstats {
  --wp-column-gap: 16px;
  flex-wrap: nowrap !important;
  margin-top: 28px !important;
}

.wp-block-column.gh-rstat {
  display: flex;
  flex: 1 1 0 !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 12px;
  text-align: center;
  color: var(--rd);
  background: var(--gh-white);
  border-radius: 24px;
}

.gh-rstat p {
  margin: 0;
}

p.gh-rstat__num {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--rg);
}

p.gh-rstat__num strong {
  margin-right: 4px;
  font-size: 60px;
  font-weight: 700;
  line-height: 72px;
}

p.gh-rstat__label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.wp-block-columns.gh-rpills {
  --wp-column-gap: 12px;
  flex-wrap: nowrap !important;
  margin-top: 28px !important;
  padding: 0 9px;
}

.wp-block-columns.gh-rpills + .wp-block-columns.gh-rpills {
  margin-top: 12px !important;
}

.wp-block-column.gh-rpill {
  display: grid;
  flex: 1 1 0 !important;
  place-items: center;
  min-height: 48px;
  padding: 8px 16px;
  background: var(--gh-white);
  border-radius: 16px;
}

.gh-rpill p {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  color: var(--rg);
}

/* ---------------------------------------------------------
   先輩の声（スライダー＋モーダル）
   --------------------------------------------------------- */
#voice {
  overflow: hidden;
}

#voice .wp-block-heading.gh-rhead + * {
  margin-top: 24px;
}

.gh-voices {
  position: relative;
  --slide: min(1079px, 100vw - 120px);
}

.gh-voices__viewport {
  margin: 0 calc((100% - var(--slide)) / 2);
}

ul.gh-voices__track {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.5s ease;
}

li.gh-voice {
  display: grid;
  flex: 0 0 var(--slide);
  grid-template-columns: 300px 1fr;
  gap: 36px;
  min-height: 489px;
  margin: 0;
  padding: 58px 40px 48px;
  background: var(--gh-white);
  border-radius: 40px;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

li.gh-voice.is-current {
  opacity: 1;
}

.gh-voice__person {
  text-align: center;
}

.gh-voice__photo {
  overflow: hidden;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  background: #4ab8e8;
  border-radius: 50%;
}

.gh-voice__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

p.gh-voice__name {
  display: inline-block;
  margin: 10px 0 0;
  padding: 1px 16px;
  font-size: 13px;
  color: var(--gh-white);
  background: var(--rd);
  border-radius: 50px;
}

p.gh-voice__profile {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.25;
  color: #667380;
}

.gh-voice__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.gh-voice__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 34px;
  color: var(--rg);
}

.gh-voice__text {
  position: relative;
  max-height: 290px;
  margin-top: 24px;
  overflow: hidden;
  font-size: 16px;
  line-height: 31px;
  color: #262b38;
}

.gh-voice__text p {
  margin: 0 0 24px;
}

.gh-voice__text::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.gh-voice__more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 0 0 0 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--rg);
  background: var(--gh-white);
  border: 1.5px solid var(--rg);
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-voice__more::after {
  content: "";
  width: 37px;
  height: 37px;
  margin: -1.5px -1.5px -1.5px 0;
  background: var(--rg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M15 25l10-10M17 15h8v8' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-radius: 50%;
}

.gh-voice__more:hover {
  color: var(--gh-white);
  background: var(--rg);
}

.gh-voices__arrow {
  position: absolute;
  top: calc(489px / 2 - 30px);
  z-index: 2;
  width: 60px;
  height: 60px;
  padding: 0;
  background: var(--rg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M18 30h24M32 20l10 10-10 10' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.gh-voices__arrow--prev {
  left: calc((100% - var(--slide)) / 2 - 30px);
  transform: scaleX(-1);
}

.gh-voices__arrow--next {
  right: calc((100% - var(--slide)) / 2 - 30px);
}

.gh-voices__arrow:hover {
  background-color: #00a832;
}

.gh-voices__arrow--prev:hover {
  transform: scaleX(-1) translateX(3px);
}

.gh-voices__arrow--next:hover {
  transform: translateX(3px);
}

.gh-voices__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.gh-voices__dot {
  width: 16px;
  height: 16px;
  padding: 0;
  background: #d9d9d9;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.gh-voices__dot[aria-current="true"] {
  background: var(--gh-recruit-green);
}

.gh-voice-modal {
  /* SWELL の * { margin: 0 } で中央寄せが消えるので戻す */
  position: fixed;
  inset: 0;
  height: fit-content;
  margin: auto !important; /* セクション内の * { margin: 0 } より優先 */
  width: min(820px, 100vw - 32px);
  max-height: calc(100vh - 64px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 32px;
}

.gh-voice-modal::backdrop {
  background: rgba(34, 34, 34, 0.7);
}

.gh-voice-modal__inner {
  max-height: calc(100vh - 64px);
  padding: 48px 56px 40px;
  overflow-y: auto;
}

.gh-voice-modal__head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.gh-voice-modal__head .gh-voice__photo {
  width: 120px;
  margin: 0;
}

.gh-voice-modal .gh-voice__text {
  max-height: none;
  overflow: visible;
}

.gh-voice-modal .gh-voice__text::after {
  content: none;
}

.gh-voice-modal__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--rd) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M17 17l14 14M31 17L17 31' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------------------------------------------------------
   会社を知る
   --------------------------------------------------------- */
.wp-block-group.gh-rcard {
  margin: 0;
  padding: 56px;
  color: var(--rd);
  background: var(--gh-white);
  border-radius: 40px;
}

.gh-rcard > .wp-block-group__inner-container > * {
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-columns.gh-rcompany {
  --wp-column-gap: 56px;
  align-items: flex-start;
  margin: 0;
}

.gh-rcompany .wp-block-column > * {
  margin-top: 0;
  margin-bottom: 0;
}

.gh-rcompany .wp-block-column > * + * {
  margin-top: 24px;
}

.gh-rcompany .wp-block-image img {
  width: 100%;
  aspect-ratio: 400 / 237;
  object-fit: cover;
}

.gh-rcompany p {
  font-size: 15px;
  line-height: 27px;
  color: #3f3f3f;
}

.gh-recruit .wp-block-table.is-style-gh-table {
  --swl-cell1-width: 164px;
}

.gh-recruit .wp-block-table.is-style-gh-table tr > :first-child {
  color: var(--rd);
}

.gh-recruit .wp-block-table.is-style-gh-table td {
  font-size: 15px;
  line-height: 26px;
  color: #3f3f3f;
}

/* ---------------------------------------------------------
   採用の流れ
   --------------------------------------------------------- */
p.gh-rnote {
  margin-top: -20px !important;
  font-size: 13px;
  text-align: right;
  color: #3f3f3f;
}

.wp-block-columns.gh-rsteps {
  --wp-column-gap: 35px;
  flex-wrap: nowrap !important;
  margin-top: 20px !important;
  counter-reset: gh-step;
}

.wp-block-column.gh-rstep {
  position: relative;
  flex: 1 1 0 !important;
  min-height: 237px;
  padding: 28px 22px;
  background: var(--gh-white);
  border-radius: 24px;
  counter-increment: gh-step;
}

.gh-rstep::before {
  content: "STEP";
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--rg);
}

.gh-rstep:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -24px;
  font-size: 32px;
  font-weight: 900;
  color: var(--rg);
  transform: translateY(-50%);
}

.gh-rstep .wp-block-heading {
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--rd);
  background: none;
  border: 0;
}

.gh-rstep .wp-block-heading::before {
  content: counter(gh-step, decimal-leading-zero);
  position: static;
  display: block;
  margin: 4px 0 8px;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--rg);
  background: none;
  border: 0;
  transform: none;
}

.gh-rstep .wp-block-heading::after {
  content: none;
}

/* 並び方は「枠の幅」で切り替える（画面幅ではなく）
   → サイト・エディタ（サイドバー開閉）・ステップ数の増減のどれでも崩れない */
.swell-block-fullWide__inner:has(> .gh-rsteps) {
  container: gh-flow / inline-size;
}

@container gh-flow (max-width: 1000px) {
  .wp-block-columns.gh-rsteps {
    --wp-column-gap: 28px;
    flex-direction: column;
    flex-wrap: nowrap !important;
  }

  .wp-block-columns.gh-rsteps > .wp-block-column.gh-rstep {
    flex: none !important;
    flex-basis: auto !important;
    width: 100%;
    min-height: 0;
    padding: 20px 24px;
  }

  .gh-rstep .wp-block-heading::before {
    display: inline-block;
    margin: 0 14px 0 0;
    font-size: 32px;
    vertical-align: -3px;
  }

  .gh-rstep p {
    margin-top: 6px !important;
  }

  .gh-rstep:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -26px;
    left: 50%;
    font-size: 26px;
    line-height: 1;
    transform: translateX(-50%) rotate(90deg);
  }
}

.gh-rstep p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 23px;
  color: #3f3f3f;
}

/* ---------------------------------------------------------
   説明会スケジュール
   --------------------------------------------------------- */
#schedule .gh-rcard {
  padding: 40px 56px;
}

ul.gh-sessions {
  margin: 0;
  padding: 0;
  list-style: none;
}

li.gh-session {
  display: grid;
  grid-template-columns: 250px 101px 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--gh-line);
}

li.gh-session:last-child {
  border-bottom: 0;
}

.gh-session__date {
  font-size: 20px;
  font-weight: 700;
}

.gh-session__type {
  display: grid;
  place-items: center;
  height: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-white);
  background: var(--rg);
  border-radius: 999px;
}

.gh-session__type.is-offline {
  background: var(--rd);
}

.gh-session__title {
  font-size: 16px;
  color: #3f3f3f;
}

.gh-session__btn {
  display: grid;
  place-items: center;
  min-width: 174px;
  height: 41px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--gh-white);
  background: var(--rd);
  border: 1.5px solid var(--rd);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-session__btn:hover {
  color: var(--rd);
  background: var(--gh-white);
}

.gh-sessions__empty {
  margin: 0;
  padding: 8px 0;
  font-size: 15px;
  text-align: center;
}

/* ---------------------------------------------------------
   募集要項（新卒／中途 → 職種カード → 詳細）
   --------------------------------------------------------- */
#requirements .wp-block-heading.gh-rhead--huge + * {
  margin-top: 40px;
}

.gh-jobs__kinds {
  display: flex;
}

.gh-jobs__kind {
  width: 206px;
  height: 53px;
  padding: 0;
  font-family: inherit;
  font-size: 17.5px;
  letter-spacing: 0.2em;
  color: var(--rg);
  background: var(--gh-white);
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-jobs__kind[aria-selected="true"] {
  color: var(--gh-white);
  background: var(--rg);
}

.gh-jobs__kind:not([aria-selected="true"]):hover {
  background: #e6f9ec;
}

.gh-jobs__panel {
  padding: 52px 52px 40px;
  background: var(--gh-white);
  border-radius: 0 40px 40px 40px;
}

.gh-jobs__title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  color: var(--rg);
}

.gh-jobs__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}

.gh-job-card {
  position: relative;
  display: block;
  width: 286px;
  padding: 0;
  font-family: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.gh-job-card__photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 286 / 169;
  background: #eee;
}

.gh-job-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gh-job-card:hover .gh-job-card__photo img {
  transform: scale(1.05);
}

.gh-job-card__status {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 75px;
  height: 28px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-white);
  background: var(--rg);
  border-radius: 999px;
}

.gh-job-card__name {
  display: grid;
  place-items: center;
  height: 35px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--rg);
  background: var(--gh-white);
  border: 1px solid var(--rg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gh-job-card[aria-selected="true"] .gh-job-card__name,
.gh-job-card:hover .gh-job-card__name {
  color: var(--gh-white);
  background: var(--rg);
}

.gh-job-card.is-closed .gh-job-card__photo::after {
  content: "";
  position: absolute;
  inset: 0 0 35px;
  background: rgba(110, 110, 110, 0.7);
}

.gh-job-card.is-closed .gh-job-card__status {
  z-index: 1;
  background: #6f6f6f;
}

.gh-job-detail__closed {
  margin: 20px 0 0;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  background: #f1f1f1;
  border-radius: 8px;
}

.gh-job-detail__body {
  position: relative;
  margin-top: 8px;
}

.gh-job-detail__body.is-collapsed {
  max-height: 420px;
  overflow: hidden;
}

.gh-job-detail__body.is-collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.gh-job-detail .wp-block-table.is-style-gh-table {
  --swl-cell1-width: 190px;
}

.gh-job-detail .wp-block-table.is-style-gh-table td {
  font-size: 16px;
  font-weight: 500;
  line-height: 27px;
  color: #262b38;
}

.gh-job-detail .wp-block-table.is-style-gh-table tr > :first-child {
  padding-left: 20px;
  font-weight: 700;
  color: #262b38;
}

/* 「…」で続きを開く */
.gh-job-detail__toggle {
  display: block;
  width: 48px;
  height: 70px;
  margin: 12px auto 0;
  padding: 0;
  background:
    radial-gradient(circle, #d9d9d9 9px, transparent 10px) center 5px / 20px 20px no-repeat,
    radial-gradient(circle, #d9d9d9 9px, transparent 10px) center 34px / 20px 20px no-repeat,
    radial-gradient(circle, #d9d9d9 9px, transparent 10px) center 63px / 20px 20px no-repeat;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gh-job-detail__toggle:hover {
  opacity: 0.6;
}

.gh-job-detail__toggle[aria-expanded="true"] {
  display: none;
}

/* ---------------------------------------------------------
   ハラスメント対策・お問い合わせ・エントリー
   --------------------------------------------------------- */
.gh-rpolicy {
  margin-top: 0 !important;
}

.gh-rpolicy > .wp-block-group__inner-container > * + * {
  margin-top: 16px;
}

.gh-rpolicy p.gh-ren + .wp-block-heading {
  margin-top: 12px;
}

.wp-block-heading.gh-rpolicy__title {
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--rd);
  background: none;
  border: 0;
}

.wp-block-heading.gh-rpolicy__title::before,
.wp-block-heading.gh-rpolicy__title::after {
  content: none;
}

.gh-rpolicy p {
  font-size: 16px;
  line-height: 1.9;
  color: #262b38;
}

.wp-block-group.gh-rbox {
  margin-top: 24px !important;
  padding: 28px 32px;
  background: #f1f1f1;
  border-radius: 20px;
}

.gh-rbox .wp-block-heading {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--rd);
  background: none;
  border: 0;
}

.gh-rbox .wp-block-heading::before,
.gh-rbox .wp-block-heading::after {
  content: none;
}

.gh-rbox p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 28px;
  color: #3f3f3f;
}

.wp-block-columns.gh-rcontact {
  --wp-column-gap: 40px;
  align-items: center;
  margin-top: 20px !important;
  padding: 28px 40px;
  background: #f1f1f1;
  border-radius: 20px;
}

.gh-rcontact .wp-block-column > * {
  margin: 0;
}

p.gh-rcontact__label {
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.gh-rcontact p {
  font-size: 15px;
  line-height: 28px;
  color: #3f3f3f;
}

.gh-rcontact .wp-block-buttons {
  margin-top: 8px !important;
}

.gh-rentry-big {
  margin-top: 20px !important;
}

.gh-rentry-big .wp-block-button {
  width: 100%;
}

.gh-rentry-big .wp-block-button.is-style-gh-entry .wp-block-button__link {
  width: 100%;
  height: 144px;
  font-size: 90px;
}

.gh-rentry-big .wp-block-button.is-style-gh-entry .wp-block-button__link::after {
  font-size: 13px;
}

/* ---------------------------------------------------------
   タブレット・スマホ
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  p.gh-rstat__num strong {
    font-size: 44px;
  }

  li.gh-voice {
    grid-template-columns: 200px 1fr;
  }

  .gh-voice__photo {
    width: 200px;
  }

  li.gh-session {
    grid-template-columns: auto auto 1fr;
  }

  .gh-session__btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 781px) {
  .wp-block-columns.gh-rabout,
  .wp-block-columns.gh-rcompany {
    --wp-column-gap: 24px;
    flex-wrap: wrap !important;
  }

  .gh-rabout .wp-block-column,
  .gh-rcompany .wp-block-column {
    flex-basis: 100% !important;
  }

  .wp-block-columns.gh-rabout--reverse {
    flex-direction: column-reverse;
  }
}

@media (max-width: 767px) {
  .wp-block-heading.gh-rhead,
  :is(#company, .swell-block-fullWide:is([style*="#222222"], [style*="34, 34, 34"]):has(.gh-rcard)) .wp-block-heading.gh-rhead {
    font-size: 40px;
  }

  :is(#job, .swell-block-fullWide:is([style*="#222222"], [style*="34, 34, 34"]):not(:has(.gh-rcard))) .wp-block-heading.gh-rhead {
    font-size: 34px;
  }

  .wp-block-heading.gh-rhead--huge {
    font-size: 30px;
    white-space: normal;
  }

  /* ヘッダー */
  .gh-rlogo {
    font-size: 14px;
    line-height: 40px;
  }

  .gh-rlogo__site {
    width: auto;
    padding: 0 12px;
  }

  .gh-rlogo__page {
    width: auto;
    padding: 0 12px;
  }

  .gh-header--recruit .gh-menu-btn {
    background: var(--rd);
  }

  .gh-header--recruit .gh-nav {
    background: rgba(0, 192, 57, 0.96);
  }

  .gh-header--recruit .gh-nav__card {
    background: var(--rd);
  }

  .gh-header--recruit .gh-nav__list a {
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }

  /* ファーストビュー */
  .wp-block-group.gh-rhero {
    height: auto;
    padding: 300px var(--gh-gutter) 32px;
  }

  .gh-rhero .wp-block-image {
    top: 20px;
    left: -40px;
    width: calc(100% + 80px);
    height: 300px;
  }

  .wp-block-heading.gh-rhero__title,
  p.gh-rhero__catch,
  p.gh-rhero__lead,
  .gh-rhero__entry {
    position: relative;
    top: auto;
    left: auto;
  }

  .wp-block-heading.gh-rhero__title {
    font-size: 48px;
  }

  p.gh-rhero__catch {
    margin-top: 8px !important;
    font-size: 22px;
  }

  p.gh-rhero__lead {
    margin-top: 10px !important;
    font-size: 13px;
  }

  .gh-rhero__entry {
    margin-top: 20px !important;
  }

  .wp-block-button.is-style-gh-entry .wp-block-button__link {
    width: 100%;
    height: 72px;
    font-size: 40px;
  }

  .gh-rhero__entry .wp-block-button {
    width: 100%;
  }

  /* お知らせ */
  .gh-news-panel {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .gh-news-panel .gh-news__item a {
    grid-template-columns: auto 1fr 16px;
    gap: 6px 12px;
    padding: 14px 0;
  }

  .gh-news-panel .gh-news__item time {
    padding-left: 0;
  }

  .gh-news-panel .gh-news__label {
    justify-self: start;
    height: 22px;
    padding: 0 14px;
    font-size: 10px;
  }

  .gh-news-panel .gh-news__title {
    grid-column: 1 / 3;
    grid-row: 2;
    padding-right: 0;
    font-size: 14px;
    white-space: normal;
  }

  .gh-news-panel .gh-news__arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .gh-news-panel .gh-news__more {
    text-align: center;
  }

  /* 働く環境 */
  .wp-block-columns.gh-rstats,
  .wp-block-columns.gh-rpills {
    flex-wrap: wrap !important;
  }

  .wp-block-columns.gh-rstats {
    --wp-column-gap: 10px;
  }

  /* SWELL はスマホでカラムを1列にするので、より強い指定で2列にする */
  .wp-block-columns.gh-rstats > .wp-block-column.gh-rstat {
    flex: 0 0 calc(50% - 5px) !important;
    flex-basis: calc(50% - 5px) !important;
    min-height: 120px;
  }

  p.gh-rstat__num strong {
    font-size: 44px;
    line-height: 54px;
  }

  .wp-block-columns.gh-rpills {
    --wp-column-gap: 8px;
    padding: 0;
  }

  .wp-block-columns.gh-rpills + .wp-block-columns.gh-rpills {
    margin-top: 8px !important;
  }

  .wp-block-column.gh-rpill {
    flex: 0 0 100% !important;
  }

  /* 先輩の声 */
  .gh-voices {
    --slide: calc(100vw - 48px);
  }

  li.gh-voice {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 32px 22px;
    border-radius: 28px;
  }

  .gh-voice__photo {
    width: 160px;
  }

  .gh-voice__title {
    font-size: 19px;
    line-height: 1.5;
  }

  .gh-voice__text {
    max-height: 220px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 2;
  }

  .gh-voices__arrow {
    top: 90px;
    width: 44px;
    height: 44px;
  }

  .gh-voices__arrow--prev {
    left: 4px;
  }

  .gh-voices__arrow--next {
    right: 4px;
  }

  .gh-voice-modal__inner {
    padding: 32px 22px 28px;
  }

  .gh-voice-modal__close {
    top: -12px;
    right: -6px;
  }

  /* カード */
  .wp-block-group.gh-rcard,
  #schedule .gh-rcard {
    padding: 28px 20px;
    border-radius: 28px;
  }

  /* 採用の流れ */
  p.gh-rnote {
    margin-top: 12px !important;
    text-align: left;
  }


  /* 説明会 */
  li.gh-session {
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
  }

  .gh-session__date {
    font-size: 17px;
  }

  .gh-session__type {
    justify-self: start;
    padding: 0 12px;
  }

  .gh-session__title {
    grid-column: 1 / -1;
  }

  /* 募集要項 */
  .gh-jobs__kind {
    flex: 1;
    width: auto;
  }

  .gh-jobs__panel {
    padding: 28px 18px 24px;
    border-radius: 0 0 24px 24px;
  }

  .gh-jobs__title {
    font-size: 21px;
  }

  .gh-jobs__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .gh-job-card {
    width: auto;
  }

  .gh-job-card__status {
    top: 4px;
    right: 4px;
    min-width: 0;
    height: 20px;
    padding: 0 8px;
    font-size: 10px;
  }

  .gh-job-card__name {
    height: 30px;
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  .gh-job-card.is-closed .gh-job-card__photo::after {
    inset: 0 0 30px;
  }

  .gh-job-detail .wp-block-table.is-style-gh-table td {
    font-size: 14px;
  }

  .gh-job-detail .wp-block-table.is-style-gh-table tr > :first-child {
    padding-left: 0 !important;
  }

  /* お問い合わせ */
  .wp-block-columns.gh-rcontact {
    --wp-column-gap: 12px;
    padding: 24px 20px;
  }

  .gh-rcontact .wp-block-column {
    flex-basis: 100% !important;
  }

  p.gh-rcontact__label {
    text-align: left;
  }

  .gh-rentry-big .wp-block-button.is-style-gh-entry .wp-block-button__link {
    height: 110px;
    font-size: 56px;
  }
}

@media (max-width: 767px) {
  #policy {
    padding-bottom: 72px !important;
  }
}
