/* 下層ページ共通。基準は Figma「見本｜福利厚生」（下層_実装用）。
   ヘッダー・追従エントリー・フッターは global.css を使い、ここでは変更しない。 */

.lower-page {
  --l-cream: #fff8df;
  --l-line: #b2b2b2;
  --l-ink: #0b0b0b;
  --l-muted: #4b4944;
  --l-radius: 40px;
  --l-table-line: #eadfb9;
  /* 暫定デザインシステムのトークン（docs/design-system.md）。現時点では福利厚生だけが使う */
  --ds-text: #2b2a28;
  --ds-text-muted: #5f5a50;
  --ds-cream: #fff8df;
  --ds-yellow-pale: #ffeba5;
  --ds-peach-soft: #fff0e8;
  --ds-line: #f0e6c6;
  --ds-line-strong: #efd98c;
  --ds-shadow-float: 0 18px 44px rgb(83 63 37 / 16%);
  --ds-radius-panel: clamp(24px, calc(2.8 * var(--vw, 1vw)), 40px);
  --ds-radius-photo: clamp(28px, calc(3.5 * var(--vw, 1vw)), 50px);
  --ds-radius-card: clamp(20px, calc(2 * var(--vw, 1vw)), 28px);
  --ds-radius-chip: 12px;
  --ds-panel-gutter: clamp(12px, calc(1.4 * var(--vw, 1vw)), 26px);
  --ds-space-section: clamp(88px, calc(10 * var(--vw, 1vw)), 160px);
  --ds-space-panel: clamp(64px, calc(7.6 * var(--vw, 1vw)), 112px);
  --ds-space-head: clamp(28px, calc(3.2 * var(--vw, 1vw)), 48px);
  --ds-text-col: 560px;
  --ds-h2: clamp(23px, calc(2.3 * var(--vw, 1vw)), 32px);
  --ds-eyebrow: clamp(13px, calc(1.05 * var(--vw, 1vw)), 15px);
  --ds-body: clamp(14.5px, calc(1.1 * var(--vw, 1vw)), 16px);
  --ds-body-l: clamp(15px, calc(1.2 * var(--vw, 1vw)), 17px);
  --ds-figure-xl: clamp(60px, calc(7 * var(--vw, 1vw)), 104px);
  --ds-figure-l: clamp(48px, calc(4.8 * var(--vw, 1vw)), 72px);
  color: var(--l-ink);
}
.lower-page main {
  overflow-x: clip;
}
.lower-page [hidden] {
  display: none !important;
}
/* PCのアンカー見出しを固定ヘッダーの下に出す。 */
@media (min-width: 768px) {
  html .lower-page :is(.ar-section, .pp-section, #clinics-title) {
    scroll-margin-top: 104px;
  }
}
/* PCの固定ヘッダーの裏の余白（main の padding-top 104px）を、先頭の帯と同じ黄で埋める。
   帯の寸法・中身の位置は変えない。写真入りFV（.lfv）は自前でヘッダーの裏まで敷くので、この上に重なる。
   タブレットの縮小表示でつなぎ目に白い線が出ないよう、帯の裏まで4px重ねる。 */
@media (min-width: 768px) {
  html body.lower-page main {
    background: linear-gradient(var(--yellow), var(--yellow)) top / 100% 108px no-repeat;
  }
}
/* 見出し・短い説明の文節の箱。PHPでは hinode_phrases() が「|」区切りから作る。.nb は箱の間でだけ折り返し、.nw は箱の中でも折り返さない。
   本文の段落には使わない（SP幅で行の右がそろわず、箱が画面幅を超えると1〜2字だけが次の行に落ちる）。 */
.nb {
  display: inline-block;
}
.nw {
  white-space: nowrap;
}
/* 本文には text-wrap: pretty を使わない。iOSのWebKitが段落全体の行末をならし、全行の右に3〜4字分の空きが出る。 */
@supports (word-break: auto-phrase) {
  .lower-page :is(h1, h2, h3, .ar-sub, .ar-quote) {
    word-break: auto-phrase;
  }
}
.l-wrap {
  width: min(calc(100% - 80px), var(--content-width));
  margin-inline: auto;
}

/* ---------- ページ名の帯 ---------- */
.l-hero {
  padding: 40px 0 48px;
  background: var(--yellow);
}
.l-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #6f6a5c;
  font-size: 14px;
  line-height: 1.7;
}
.l-crumbs li + li::before {
  content: '>';
  margin-right: 10px;
}
.l-crumbs a {
  color: inherit;
  text-decoration: none;
}
.l-crumbs a:hover {
  text-decoration: underline;
}
.l-hero-en {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--orange);
  font-size: clamp(22px, calc(2.2 * var(--vw, 1vw)), 32px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.l-hero-en img {
  flex: none;
  width: clamp(30px, calc(2.9 * var(--vw, 1vw)), 41px);
  height: auto;
}
.l-hero h1 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(32px, calc(4.4 * var(--vw, 1vw)), 64px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

/* ---------- 追従エントリー（TOPの通常URLと同じ丸型。global.css の fv-layout-v2 の指定を下層へ写す） ----------
   TOPのCSSは home-page に限定されているので、TOPの表示を変えずに下層だけへ当てる。
   縮む基準はタイトル帯（assets/js/lower-header-entry.js）。1200px以下は共通の表示（mobile-entry）のまま。 */
@media (min-width: 768px) {
  html body.lower-page .site-header .header-entry {
    top: 24px;
    right: clamp(16px, calc(2.2 * var(--vw, 1vw)), 40px);
    flex-direction: column;
    width: 240px;
    min-width: 0;
    height: 240px;
    padding: 0;
    border: 3px solid rgb(255 255 255 / 0.9);
    border-radius: 50%;
    font-size: 29px;
    letter-spacing: 0.09em;
    transform: none;
    transform-origin: top right;
    box-shadow: var(--entry-shadow);
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, color 0.35s ease, border-color 0.35s ease;
  }
  html body.lower-page .site-header .header-entry-label {
    position: absolute;
    top: 42%;
    left: 50%;
    flex-direction: column;
    width: 100%;
    transform: translate(-50%, -50%);
  }
  html body.lower-page .site-header .header-entry small {
    width: 160px;
    margin: 5px 0 0;
    padding: 5px 0 0;
    border-top: 1px solid currentColor;
    border-left: 0;
    font-size: 35px;
  }
  html body.lower-page .site-header .header-entry-note {
    display: block;
    font-size: 15px;
  }
  html body.lower-page .site-header .header-entry-arrow {
    position: absolute;
    bottom: 18px;
    display: block;
    width: 25px;
    height: 14px;
  }
  html body.lower-page .site-header .header-entry:hover,
  html body.lower-page .site-header .header-entry:focus-visible {
    transform: translate(1%, -1%) scale(1.02);
    box-shadow: 0 22px 50px rgb(253 107 12 / 0.58), 0 8px 18px rgb(65 45 26 / 0.14);
  }
  html body.lower-page.is-entry-compact .site-header .header-entry {
    transform: scale(0.62);
  }
  html body.lower-page.is-entry-compact .site-header .header-entry:hover,
  html body.lower-page.is-entry-compact .site-header .header-entry:focus-visible {
    transform: translate(1%, -1%) scale(0.64);
  }
  html body.lower-page.is-entry-instant .site-header .header-entry {
    transition: none;
  }
}

/* ---------- 帯・見出し ---------- */
.qa-intro-title {
  text-wrap: balance;
}

/* 会社見学の帯そのものは visit-band.css。ここは帯の内側の幅だけ残す（SPは下の 767px で .l-wrap と同じ）。 */
.home-container {
  width: min(calc(100% - 80px), var(--content-width));
  margin-inline: auto;
}

/* ---------- レスポンシブ共通 ---------- */
@media (max-width: 767px) {
  .l-wrap,
  .home-container {
    width: calc(100% - 40px);
  }
  .l-hero {
    padding: 28px 0 34px;
  }
  .l-crumbs ol {
    font-size: 12px;
  }
  .l-hero-en {
    margin-top: 16px;
  }
}

/* ================= 共通の小物 ================= */
.l-link {
  color: var(--orange);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- 表示演出（assets/js/lower-reveal.js。TOPの理念と同じ動き） ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.has-lower-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
  }
  html.has-lower-reveal [data-reveal='photo'] {
    transform: scale(0.86);
  }
  html.has-lower-reveal [data-reveal].is-revealed {
    animation: lower-reveal-copy 720ms cubic-bezier(0.4, 0, 0.2, 1) var(--reveal-delay, 0ms) both;
  }
  html.has-lower-reveal [data-reveal='photo'].is-revealed {
    animation: lower-reveal-photo 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) both;
  }
}
/* 数え上げ中は元の数字を透明にして幅を保ち、aria-hidden の複製（.count-up-display）を重ねる */
[data-count-up].is-counting {
  position: relative;
  -webkit-text-fill-color: transparent;
}
.count-up-display {
  position: absolute;
  inset: 0;
  text-align: right;
  -webkit-text-fill-color: currentColor;
}
@keyframes lower-reveal-copy {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lower-reveal-photo {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

/* ================= 応募方法 ================= */
@counter-style circled-number {
  system: fixed;
  symbols: '①' '②' '③' '④' '⑤';
  suffix: ' ';
}
.cr-line-need {
  margin: 0 0 22px;
  padding-left: 1.7em;
  font-size: clamp(15px, calc(1.3 * var(--vw, 1vw)), 18px);
  font-weight: 500;
  line-height: 2;
}
.cr-line-need p {
  margin: 0;
}
.cr-line-need ul {
  margin: 0;
  padding: 0;
  list-style: circled-number;
  padding-left: 1.6em;
}
.cr-line-note {
  margin: 0;
  font-size: clamp(16px, calc(1.4 * var(--vw, 1vw)), 19px);
  font-weight: 900;
  line-height: 1.9;
}
.cr-form-notice {
  max-width: 1000px;
  margin: 0 auto 28px;
  padding: 22px 28px;
  border: 2px solid var(--yellow);
  border-radius: 20px;
  background: var(--l-cream);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}
.cr-form-notice p {
  margin: 0;
}
.cr-form {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(20px, calc(4 * var(--vw, 1vw)), 56px);
  border: 3px solid var(--l-cream);
  border-radius: var(--l-radius);
  background: #fff;
}
.cr-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.cr-fields:disabled {
  opacity: 0.5;
}
.cr-fields:disabled :is(input, select, textarea, button) {
  cursor: not-allowed;
}
.cr-row {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 22px 0;
  border-top: 1px solid #e8dfc4;
}
.cr-row:first-of-type {
  border-top: 2px solid #e8dfc4;
}
.cr-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
}
.cr-req,
.cr-opt {
  flex: none;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.6;
}
.cr-opt {
  background: #767676;
}
.cr-input {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid #cfc7ac;
  border-radius: 8px;
  background: #faf8f2;
  color: var(--l-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}
.cr-input--wide {
  max-width: 100%;
}
.cr-input::placeholder {
  color: #757575;
}
.cr-input:focus-visible {
  outline-offset: 1px;
}
.cr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cr-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid #cfc7ac;
  border-radius: 12px;
  background: #faf8f2;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.cr-option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--orange);
}
.cr-hint {
  margin: 8px 0 0;
  color: var(--l-muted);
  font-size: 13px;
  line-height: 1.7;
}
.cr-agree {
  padding-top: 26px;
  border-top: 1px solid #e8dfc4;
  text-align: center;
}
.cr-submit {
  margin: 26px 0 0;
  text-align: center;
}
.cr-submit-btn {
  min-width: 320px;
  min-height: 66px;
  padding: 8px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.cr-submit-btn:disabled {
  background: #b9b5aa;
}
.cr-qa-more {
  margin: 36px 0 0;
  text-align: center;
}
@media (max-width: 767.98px) {
  .cr-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .cr-submit-btn {
    width: 100%;
    min-width: 0;
  }
  .cr-input {
    max-width: 100%;
  }
}

/* ================= よくある質問 ================= */
.qa-intro-title {
  margin: 0 0 14px;
  font-size: clamp(19px, calc(2 * var(--vw, 1vw)), 28px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.8;
}
@media (max-width: 767px) {
  .qa-intro-title br {
    display: none;
  }
}

/* ================= 先輩の声 ================= */
.iv-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, calc(2.2 * var(--vw, 1vw)), 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.iv-card {
  display: grid;
  grid-template-columns: clamp(120px, calc(14 * var(--vw, 1vw)), 180px) minmax(0, 1fr);
  gap: clamp(18px, calc(2 * var(--vw, 1vw)), 28px);
  padding: clamp(18px, calc(2 * var(--vw, 1vw)), 28px);
  border-radius: 28px;
  background: #fff;
}
.iv-photo {
  align-self: start;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
}
.iv-photo img {
  object-position: 50% 24%;
}
.iv-role {
  margin: 0 0 8px;
}
.iv-head {
  min-width: 0;
}
.iv-body h3 {
  margin: 0;
  font-size: clamp(20px, calc(1.8 * var(--vw, 1vw)), 26px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.iv-school {
  margin: 2px 0 12px;
  color: var(--l-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}
.iv-text {
  margin: 0;
  font-size: clamp(14px, calc(1.15 * var(--vw, 1vw)), 16px);
  font-weight: 500;
  line-height: 2;
}
.iv-empty {
  margin: 12px 0 0;
  padding: 36px 20px;
  border-radius: 24px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 767.98px) {
  .iv-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .iv-card {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas:
      'photo head'
      'text text';
    align-items: center;
    gap: 14px 16px;
    padding: 18px;
  }
  .iv-photo {
    grid-area: photo;
  }
  .iv-body {
    display: contents;
  }
  .iv-head {
    grid-area: head;
  }
  .iv-text {
    grid-area: text;
  }
  .iv-school {
    margin-bottom: 0;
  }
}

/* ================= HINODE STYLE（記事詳細・店舗詳細） ================= */

.iv-head-art h2 {
  margin: 0;
}
.iv-title-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 8px 18px;
}
.iv-title-line img {
  width: min(100%, 572px);
  height: auto;
}
.iv-title-line span {
  padding-bottom: 6px;
  font-size: clamp(24px, calc(2.6 * var(--vw, 1vw)), 38px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.3;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .iv-title-line img {
    width: min(calc(78 * var(--vw, 1vw)), 300px);
  }
  .iv-title-line span {
    padding-bottom: 0;
  }
}

/* ---------- パンくずなしの帯（2026-10-15） ----------
   TOP直下のページはパンくずを出さない（詳細ページは残す）。英字ラベルを帯の先頭にし、上の余白を下と揃える。
   Figma：PCの帯 224px、SPは上下36px。 */
.l-hero.l-hero--no-crumbs {
  padding-top: 48px;
}
.l-hero.l-hero--no-crumbs .l-hero-en {
  margin-top: 0;
}
@media (max-width: 767px) {
  .l-hero.l-hero--no-crumbs {
    padding-top: 34px;
  }
}
/*
  区切りA｜要所（日の出の弧）。Figma の各ページ本体に入っている弧の共通部品。
  下の帯（色の面）の要素に .has-arc-top を付けると、上端の左右が上の帯の色（--arc-above）で削られ、
  中央が盛り上がった弧になる。高さは Figma PC の 88px。
  2026-10-14 時点では PC だけに出す（SP の Figma が未調整のため）。SP で出すときは下のメディアクエリを外し、高さ 32px にする。
*/
@media (min-width: 768px) {
  .has-arc-top {
    position: relative;
  }

  .has-arc-top::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: var(--arc-height, 88px);
    background: var(--arc-above, #fff);
    pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 88' preserveAspectRatio='none'%3E%3Cpath d='M0 88C640-29.333 1280-29.333 1920 88V0H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 88' preserveAspectRatio='none'%3E%3Cpath d='M0 88C640-29.333 1280-29.333 1920 88V0H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
}

/* 2026-10-15 SP採用版の区切りA（32px）。 */
@media (max-width: 767.98px) {
  .has-arc-top, .message-philosophy { position: relative; }
  .has-arc-top::before, .message-philosophy::before {
    content: ''; position: absolute; inset: 0 0 auto; z-index: 1; height: 32px;
    background: var(--arc-above, #fff); pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 88' preserveAspectRatio='none'%3E%3Cpath d='M0 88C640-29.333 1280-29.333 1920 88V0H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 88' preserveAspectRatio='none'%3E%3Cpath d='M0 88C640-29.333 1280-29.333 1920 88V0H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
  .message-philosophy, .cu-kiwami { --arc-above: #ffc602; }
  .trainer-seminar { --arc-above: #fff8df; }
}
