/* =========================================================
   共通パーツ（全ページ）：フォント・配色・ヘッダー・フッター・CTA・動き
   デザイン見本：design/recruit-top-design-c2.html
   ========================================================= */
:root {
  --c-ink: #121417;
  --c-ink-2: #374151;
  --c-ink-3: #4B5563;
  --c-gray: #C9CED6;
  --c-gray-2: #9AA1AB;
  --c-line: #E3E7EE;
  --c-line-2: #D5DBE5;
  --c-soft: #F4F6FA;
  --c-soft-2: #F8FAFD;
  --c-blue: #1F5FD6;
  --c-blue-dark: #123E91;
  --c-blue-soft: #E8F0FD;
  --c-blue-pale: #E3ECFB;
  --c-yellow: #FFD84D;
  --c-dark: #121417;
  --c-darker: #0B0D10;
  --f-body: 'Noto Sans JP', "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-display: 'M PLUS 1p', 'Noto Sans JP', "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1200px;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; }
#page { font-family: var(--f-body); color: var(--c-ink); background: #FFFFFF; line-height: 1.8; font-size: 16px; }
a { color: var(--c-blue); }
a:hover { color: var(--c-blue-dark); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.g-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.g-display { font-family: var(--f-display); font-weight: 800; }

/* ボタン・リンクの共通の動き */
#page a, #page button { transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }
#page a:active, #page button:active { transform: scale(.97); }
.g-btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 18px 32px; line-height: 1.8; }
.g-btn--yellow { background: var(--c-yellow); color: var(--c-ink); }
.g-btn--yellow:hover { color: var(--c-ink); }
.g-btn--outline { color: #FFFFFF; border: 1px solid #FFFFFF; padding: 17px 31px; }
.g-btn--outline:hover { color: #FFFFFF; background: rgba(255,255,255,.08); }

/* 読了バー・右下の追従ボタン */
.g-progress { position: fixed; top: 0; left: 0; z-index: 50; height: 4px; background: var(--c-yellow); width: 0; transition: width .1s linear; }
.g-float { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; gap: 10px; align-items: center; animation: g-up .4s cubic-bezier(.2,.7,.2,1) both; }
.g-float__top { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--c-line-2); background: #FFFFFF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(18,20,23,0.15); }
.g-float__cta { text-decoration: none; background: var(--c-yellow); color: var(--c-ink); font-weight: 700; padding: 15px 24px; border-radius: 999px; box-shadow: 0 8px 24px rgba(18,20,23,0.2); }
.g-float__cta:hover { color: var(--c-ink); }

/* 全ページ上部の案内帯 */
.g-announce { background: var(--c-yellow); }
.g-announce a { display: block; padding: 9px 0; color: var(--c-ink); font-weight: 700; font-size: 14px; text-decoration: none; line-height: 1.5; }
.g-announce a:hover { color: var(--c-ink); text-decoration: underline; }
.g-announce__tag { display: inline-block; background: var(--c-ink); color: #FFFFFF; font-size: 12px; border-radius: 4px; padding: 0 .5em; margin-right: .6em; vertical-align: middle; }

/* ヘッダー */
.g-dark { background: var(--c-dark); color: #FFFFFF; }
.g-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.g-logo { text-decoration: none; color: #FFFFFF; display: flex; flex-direction: column; line-height: 1.35; }
.g-logo:hover { color: #FFFFFF; }
.g-logo__sub { font-size: 12px; color: var(--c-gray); }
.g-logo__main { font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.g-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 420px; justify-content: flex-end; font-size: 14px; font-weight: 500; }
.g-nav a { text-decoration: none; color: #FFFFFF; }
.g-nav a:hover { color: var(--c-yellow); }
.g-nav a[aria-current="page"] { color: var(--c-yellow); }
.g-header__cta { text-decoration: none; background: var(--c-yellow); color: var(--c-ink); font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 10px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.g-header__cta:hover { color: var(--c-ink); }
/* スマホのメニューボタン（JSが動くときだけ表示。動かないときはメニューをそのまま並べる） */
.g-menu { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid #3A4048; border-radius: 10px; background: transparent; color: #FFFFFF; cursor: pointer; align-items: center; justify-content: center; }
.g-menu__bar, .g-menu__bar::before, .g-menu__bar::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s ease, background-color .2s ease; }
.g-menu__bar { position: relative; }
.g-menu__bar::before, .g-menu__bar::after { content: ""; position: absolute; left: 0; }
.g-menu__bar::before { top: -6px; }
.g-menu__bar::after { top: 6px; }
.g-menu[aria-expanded="true"] .g-menu__bar { background: transparent; }
.g-menu[aria-expanded="true"] .g-menu__bar::before { transform: translateY(6px) rotate(45deg); }
.g-menu[aria-expanded="true"] .g-menu__bar::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .g-header__inner { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .g-logo { flex: 1 1 auto; min-width: 0; }
  .g-logo__sub { font-size: 11px; }
  .g-logo__main { font-size: 16px; }
  .g-header__cta { padding: 10px 14px; font-size: 13px; }
  .js-nav .g-menu { display: inline-flex; }
  .js-nav .g-nav { display: none; }
  .js-nav .g-nav.is-open { display: grid; }
  .g-nav { order: 3; flex: 1 1 100%; grid-template-columns: 1fr 1fr; gap: 0 16px; justify-content: stretch; font-size: 15px; border-top: 1px solid #2A2F36; padding-top: 4px; }
  .g-nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid #2A2F36; }
}

/* 共通CTA（全ページの下部） */
.g-cta { background: var(--c-dark); color: #FFFFFF; }
.g-cta__inner { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px; text-align: center; }
.g-cta__art { display: block; margin: 0 auto 24px; max-width: 100%; height: auto; }
.g-cta__lead { margin: 0 0 12px; display: inline-block; background: var(--c-yellow); color: var(--c-ink); font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.g-cta__title { margin: 0 0 18px; font-family: var(--f-display); font-weight: 800; font-size: 38px; line-height: 1.45; color: #FFFFFF; }
.g-cta__text { margin: 0 auto 32px; max-width: 760px; color: var(--c-gray); }
.g-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.g-cta__actions .g-btn { padding: 18px 36px; }
.g-cta__actions .g-btn--outline { padding: 17px 35px; }
.g-cta__mail { margin: 24px 0 0; font-size: 14px; color: var(--c-gray); }
.g-cta__mail a { color: var(--c-gray); }
.g-cta__mail a:hover { color: #FFFFFF; }

/* フッター */
.g-footer { background: var(--c-darker); color: var(--c-gray); font-size: 13px; }
.g-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 32px; }
.g-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; margin-bottom: 40px; }
.g-footer__about { flex: 1 1 280px; }
.g-footer__about p { margin: 0 0 4px; }
.g-footer__name { margin: 0 0 8px !important; color: #FFFFFF; font-family: var(--f-display); font-weight: 800; font-size: 17px; }
.g-footer a { color: var(--c-gray); text-decoration: none; }
.g-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.g-footer__nav { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px 24px; }
.g-footer__note { margin: 0 0 8px; font-size: 12px; color: var(--c-gray-2); }
.g-footer__note a { color: var(--c-gray-2); text-decoration: underline; }
.g-footer__note--first { border-top: 1px solid #2A2F36; padding-top: 24px; }
.g-footer__copy { margin: 0; font-size: 12px; color: var(--c-gray-2); }

/* フローティング・ふわふわ（見本の装飾イラスト） */
@keyframes g-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes g-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fl1 { animation: g-bob 5s ease-in-out infinite; }
.fl2 { animation: g-bob 4s .7s ease-in-out infinite; }

/* スクロールでのフェードイン（JSが js-reveal を付けたときだけ隠す） */
.lift { transition: translate .25s ease, box-shadow .25s ease; }
.lift:hover { translate: 0 -6px; box-shadow: 0 16px 32px rgba(18,20,23,0.12); }
.js-reveal .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), translate .25s ease, box-shadow .25s ease, background-color .2s ease; }
.js-reveal .rv.in { opacity: 1; transform: none; }
.js-reveal .rv.in:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s, 0s; }
.js-reveal .rv.in:nth-child(3) { transition-delay: .2s, .2s, 0s, 0s, 0s; }
.js-reveal .rv.in:nth-child(4) { transition-delay: .3s, .3s, 0s, 0s, 0s; }
.js-reveal .rv.in:nth-child(5) { transition-delay: .4s, .4s, 0s, 0s, 0s; }
.js-reveal .rv.in:nth-child(6) { transition-delay: .5s, .5s, 0s, 0s, 0s; }

@media (max-width: 600px) {
  .g-cta__title { font-size: 28px; }
  .g-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fl1, .fl2, .g-float { animation: none; }
  .js-reveal .rv { opacity: 1; transform: none; transition: none; }
  #page a:active, #page button:active { transform: none; }
}
