/* ============================================================
   アプデ人事 (/update-hr) PCビュー
   1024px以上のみ適用。1023px以下のスマホ/タブレット表示には一切影響させない。
   ============================================================ */

/* PC専用要素 / SP専用要素の出し分け */
.hr-pc-only { display: none !important; }

/* 導入実績・コラムはPCで3枚並べる。スマホ・タブレットは従来どおり2枚 */
@media (max-width: 1023px) {
  #case .card-grid > *:nth-child(3),
  #column .card-grid > *:nth-child(3) { display: none !important; }
}

@media (min-width: 1024px) {

  :root {
    --pc-max: 1200px;
    --pc-narrow: 900px;
    --pc-gutter: 40px;
    --pc-header-h: 84px;
    --pc-blue: #0080B6;
    --pc-blue-dark: #006892;
    --pc-ink: #1b2733;
    --pc-body: #444444;
  }

  .hr-pc-only { display: block !important; }
  .hr-sp-only { display: none !important; }

  /* ---- 土台 ------------------------------------------------ */

  body.hr-layout { padding-left: 0; }
  :root { --hr-content-offset: 0px; }

  #hr-page-wrap { max-width: 100%; box-shadow: none; overflow-x: hidden; }
  #hr-page-wrap .max-w-\[640px\] { max-width: none; }

  /* 旧PCサイドバー・SPヘッダー・下部追従CTAはPCでは使わない */
  #hr-pc-sidebar,
  [data-hr-header],
  #hr-menu-modal,
  #hr-bottom-cta { display: none !important; }

  /* ---- PCヘッダー ------------------------------------------ */

  #hr-pc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--pc-header-h);
    display: flex !important;
    align-items: center;
    background: transparent;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
  }
  /* LP以外(コラム一覧・お問い合わせ等)は背景が明るいので最初から塗る */
  body:not(.hr-lp) #hr-pc-header {
    background: var(--pc-blue);
    box-shadow: 0 6px 24px rgba(0, 40, 70, 0.12);
  }
  #hr-pc-header.is-scrolled {
    background: rgba(0, 128, 182, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(0, 40, 70, 0.14);
  }
  #hr-pc-header .pc-header-inner {
    width: 100%;
    max-width: var(--pc-max);
    margin: 0 auto;
    padding: 0 var(--pc-gutter);
    display: flex;
    align-items: center;
    gap: 32px;
  }
  #hr-pc-header .pc-logo img { height: 30px; width: auto; display: block; }
  #hr-pc-header .pc-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
  }
  #hr-pc-header .pc-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
    transition: opacity 0.3s;
  }
  #hr-pc-header .pc-nav a:hover { opacity: 0.7; }
  #hr-pc-header .pc-nav .en {
    display: block;
    font-family: 'Figtree', sans-serif;
    font-size: 10px;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
  }
  #hr-pc-header .pc-header-cta { display: flex; gap: 10px; margin-left: 8px; }
  #hr-pc-header .pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s, background 0.3s, color 0.3s;
  }
  #hr-pc-header .pc-btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff; }
  #hr-pc-header .pc-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
  #hr-pc-header .pc-btn--solid { background: #fff; color: var(--pc-blue); }
  #hr-pc-header .pc-btn--solid:hover { opacity: 0.85; }

  /* ---- 共通のセクション部品 -------------------------------- */

  .pc-section-head { text-align: center; margin-bottom: 56px; }
  .pc-section-head .en {
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    letter-spacing: 2.4px;
    display: block;
  }
  .pc-section-head .ja {
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-top: 10px;
    display: block;
  }

  /* ---- ヒーロー -------------------------------------------- */

  #hr-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    grid-template-rows: 1fr min-content min-content min-content 1fr;
    align-items: center;
    column-gap: 56px;
    max-width: calc(var(--pc-max) + 80px);
    margin: 0 auto;
    padding: calc(var(--pc-header-h) + 64px) var(--pc-gutter) 96px;
  }
  #hr-hero .hero-main { display: contents; }
  #hr-hero .hero-decor { display: none !important; }

  #hr-hero .hero-media {
    position: static !important;
    width: 100% !important;
    grid-column: 2;
    grid-row: 1 / span 5;
    justify-self: end;
    align-self: center;
    max-width: 560px;
  }
  #hr-hero .hero-media img { width: 100%; height: auto; }

  #hr-hero .hero-headline {
    grid-column: 1;
    grid-row: 2;
    padding: 0 !important;
  }
  #hr-hero .hero-headline h1 {
    font-size: clamp(42px, 3.6vw, 58px);
    line-height: 1.22;
    letter-spacing: -1.5px;
  }
  #hr-hero .hero-headline p { font-size: 13px; letter-spacing: 3px; margin-top: 12px; }

  #hr-hero .hero-lead {
    grid-column: 1;
    grid-row: 3;
    padding: 0 !important;
    margin: 28px 0 0 !important;
    max-width: 540px;
  }
  #hr-hero .hero-lead p { font-size: 16px; line-height: 2; }

  #hr-hero .hero-cta {
    grid-column: 1;
    grid-row: 4;
    display: flex !important;
    gap: 14px;
    margin-top: 36px;
  }
  #hr-hero .hero-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 58px;
    padding: 0 28px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s, background 0.3s;
  }
  #hr-hero .hero-cta .is-solid { background: #fff; color: var(--pc-blue); }
  #hr-hero .hero-cta .is-solid:hover { opacity: 0.85; }
  #hr-hero .hero-cta .is-ghost { border: 1.5px solid rgba(255, 255, 255, 0.8); color: #fff; }
  #hr-hero .hero-cta .is-ghost:hover { background: rgba(255, 255, 255, 0.14); }

  /* ---- About ----------------------------------------------- */

  #about { padding: 104px var(--pc-gutter) 96px !important; }
  #about > div {
    max-width: var(--pc-max) !important;
    padding: 0 !important;
  }
  #about .about-head { justify-content: center; margin-bottom: 14px !important; }
  #about .about-head span:first-child { font-size: 20px; letter-spacing: 2px; }
  #about .about-head span:last-child { font-size: 17px; }
  #about h2 {
    font-size: 40px !important;
    text-align: center;
    line-height: 1.4 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 40px !important;
    position: relative;
  }
  #about h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 72px;
    height: 3px;
    background: var(--pc-blue);
    border-radius: 2px;
  }
  #about .about-text {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    font-size: 17px !important;
    line-height: 2.1 !important;
  }
  #about .about-figure {
    margin-top: 64px !important;
    max-width: 1120px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ---- 特徴 (Features) ------------------------------------- */

  #features { padding: 104px var(--pc-gutter) !important; }
  #features > .feature-head {
    max-width: var(--pc-max) !important;
    padding: 0 !important;
    margin: 0 auto 56px !important;
  }
  #features > .feature-head p { font-size: 15px !important; letter-spacing: 2.4px !important; }
  #features > .feature-head h2 { font-size: 34px !important; margin-top: 10px !important; }

  #feature-cards {
    max-width: var(--pc-max) !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  /* カード枠(白い角丸)と番号の飛び出しは画像に含まれているため、
     背景やpaddingを重ねない(重ねると番号がカード内に収まってしまう) */
  #feature-cards > picture {
    display: block;
    margin: 0 !important;
    overflow: visible;
  }
  #feature-cards > picture > img { margin: 0 !important; }

  /* ---- 料金プラン ------------------------------------------ */

  #price { padding: 104px var(--pc-gutter) !important; }
  #price > div { max-width: var(--pc-max) !important; padding: 0 !important; margin: 0 auto; }
  #price .price-head { margin-bottom: 48px !important; }
  #price .price-head span:first-child { font-size: 15px !important; letter-spacing: 2.4px; }
  #price .price-head span:last-child { font-size: 34px !important; }
  #price .price-figure { max-width: 1000px !important; margin: 0 auto 56px !important; }
  #price .price-figure img { margin-bottom: 0 !important; }
  #price .price-lead { font-size: 17px !important; margin-bottom: 32px !important; }
  #price .price-lead br { display: none; }
  #price .price-cta {
    max-width: 620px;
    margin: 0 auto;
    gap: 20px !important;
    padding-bottom: 0 !important;
  }
  #price .price-cta a { height: 62px !important; font-size: 16px !important; }
  #price .price-cta a:first-child { background: var(--pc-blue); color: #fff !important; }

  /* ---- フロー ---------------------------------------------- */

  #flow { padding: 104px var(--pc-gutter) !important; }
  #flow > div { max-width: var(--pc-max) !important; padding: 0 !important; }
  #flow .flow-head { margin-bottom: 56px !important; }
  #flow .flow-head p { font-size: 15px !important; letter-spacing: 2.4px !important; }
  #flow .flow-head h2 { font-size: 34px !important; }

  #flow .flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 26px;
    align-items: stretch;
  }
  #flow .flow-steps > div { margin-top: 0 !important; }
  #flow .flow-step {
    padding: 28px 18px !important;
    border-radius: 14px !important;
    text-align: center;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 26px rgba(0, 90, 130, 0.16);
  }
  #flow .flow-step > div {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100%;
  }
  #flow .flow-step span:first-child { font-size: 15px !important; letter-spacing: 1px; opacity: 0.85; }
  #flow .flow-step .flow-title { font-size: 16px !important; line-height: 1.5; letter-spacing: -0.5px; }
  #flow .flow-step .flow-sub { font-size: 12px !important; line-height: 1.6; }
  /* ステップ間の矢印: 下向き → 右向き */
  #flow .flow-arrow {
    left: -18px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(-90deg) !important;
  }
  #flow .flow-note { margin-top: 48px !important; font-size: 13px !important; }

  /* ---- 導入実績 / コラム ----------------------------------- */

  #case,
  #column { padding: 104px var(--pc-gutter) !important; }
  #case > div,
  #column > div { max-width: var(--pc-max) !important; padding: 0 !important; }
  #case .section-head,
  #column .section-head { margin-bottom: 8px; }
  #case .section-head p,
  #column .section-head p { font-size: 15px !important; letter-spacing: 2.4px !important; }
  #case .section-head h2,
  #column .section-head h2 { font-size: 34px !important; }
  #case .card-grid,
  #column .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px !important;
  }
  #case .more-wrap,
  #column .more-wrap { padding-bottom: 0 !important; margin-top: 48px !important; }
  #case .more-wrap a,
  #column .more-wrap a {
    max-width: 340px;
    margin: 0 auto;
    height: 60px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
  }

  /* ---- FAQ ------------------------------------------------- */

  #faq { padding: 104px var(--pc-gutter) !important; }
  #faq > div { max-width: var(--pc-narrow) !important; }
  #faq .section-head { margin-bottom: 8px; }
  #faq .section-head p { font-size: 15px !important; letter-spacing: 2.4px !important; }
  #faq .section-head h2 { font-size: 34px !important; }
  #faq [data-faq-item] { border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 40, 70, 0.06); }
  #faq [data-faq-trigger] { padding: 26px 32px !important; font-size: 17px !important; }
  #faq [data-faq-body] p { padding: 0 32px 28px !important; font-size: 15px !important; }

  /* ---- Contact CTA ----------------------------------------- */

  /* PCではカード状に独立させ、フッターとの間に余白を取る */
  #contact-cta { padding: 0 var(--pc-gutter) 104px !important; }
  #contact-cta > a {
    max-width: var(--pc-max);
    margin: 0 auto;
    padding: 72px 72px !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 44px rgba(0, 90, 130, 0.18);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
  /* 見出しブロック・リード文・矢印を横一列に並べ替える */
  #contact-cta .cta-copy { display: contents !important; }
  #contact-cta > a > .cta-copy > div:first-child { order: 1; flex: 0 1 auto; }
  #contact-cta h2 { font-size: 40px !important; }
  #contact-cta .cta-lead { order: 2; font-size: 16px !important; max-width: 460px; margin: 0 auto 0 0 !important; }
  #contact-cta .cta-arrow {
    order: 3;
    width: 76px !important;
    height: 76px !important;
    transition: transform 0.3s;
  }
  #contact-cta > a:hover .cta-arrow { transform: translateX(6px); }

  /* ---- フッター -------------------------------------------- */

  #hr-page-wrap footer > div:first-child {
    max-width: var(--pc-max) !important;
    padding: 88px var(--pc-gutter) 56px !important;
  }
  #hr-page-wrap footer nav ul {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px !important;
  }
  #hr-page-wrap footer > div:last-child > div { max-width: var(--pc-max) !important; }
}

/* 小さめのPC(1024〜1279px): ヘッダーを詰めて2行折返しを防ぐ */
@media (min-width: 1024px) and (max-width: 1279px) {
  #hr-pc-header .pc-header-inner { gap: 20px; padding: 0 24px; }
  #hr-pc-header .pc-nav { gap: 18px; }
  #hr-pc-header .pc-nav a { font-size: 13px; white-space: nowrap; }
  #hr-pc-header .pc-nav .en { display: none; }
  #hr-pc-header .pc-btn { height: 40px; padding: 0 18px; font-size: 13px; }
  #hr-pc-header .pc-btn--ghost { display: none; }
  #hr-pc-header .pc-logo img { height: 26px; }

  #hr-hero { column-gap: 40px; padding-left: 24px; padding-right: 24px; }
  #hr-hero .hero-cta a { min-width: 176px; height: 54px; font-size: 15px; }
}

/* 大型ディスプレイ */
@media (min-width: 1600px) {
  :root { --pc-max: 1280px; }
}
