@charset "UTF-8";

/* ==========================================================
   header.php / footer.php 専用CSS
   ----------------------------------------------------------
   :root のデザイントークンは guide.css 側にあり、このファイルは
   guide.css とセットで読み込まれる前提で参照しています。
   ========================================================== */

/* body{padding-top}（固定ヘッダー分の押し下げ）はfunctions.php側でpage-guide.phpに限定して出力（旧ページの本文レイアウトを壊すため） */

/* ==========================================================
   GLOBAL: サイトヘッダー  .siteHeader / .gnav / .navToggle
   ----------------------------------------------------------
   旧 .header* / .spMenu（ルート style.css）とは別名で新造しています。
   JSフックは既存の .js-spMenu を流用しています（nier.js）。
   ========================================================== */
.siteHeader{
  /* 本番の現行ヘッダーに合わせた固定ヘッダーです。高さは:root（guide.css）の
     --headerHを参照し、SP側の上書きもそこで行います（bodyのpadding-topと連動）。 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;            /* SPドロップダウンをページ内容より前面に */
  background: rgb(255 255 255 / 92%);   /* var(--c-bg)を少しだけ透かした値です。
                                            固定ヘッダーの下を流れるコンテンツが
                                            ほんの少し透けて見えるようにしています */
  border-bottom: 1px solid var(--c-border);
}
.siteHeader__inner{
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline: auto;
  height: var(--headerH);
  padding-inline: 24px;
}

/* ロゴ（画像＝SELVA と RECRUIT を横並び。本番の .header-logo span と同方式） */
.siteHeader__logo{ margin: 0; flex: none; }
.siteHeader__logo a{ display: inline-flex; align-items: end; gap: 9px; }
.siteHeader__logo img{ display: block; height: 34px; width: auto; }
.siteHeader__logo span{
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--c-muted);
  white-space: nowrap;
}

/* グローバルナビ
   ※ ルート style.css の旧ルール nav{position:absolute; width:100%} を明示的に上書きしています */
.gnav{
  margin-left: auto;
  position: static;
  width: auto;
}
.gnav__list{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 28px);   /* 幅に応じて詰める */
  margin: 0; padding: 0;
  list-style: none;
}
.gnav__link{
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  white-space: nowrap;             /* 項目内で折り返しません */
  color: var(--c-text);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.36vw, 1.5rem);  /* 下限13px・上限15px */
  transition: color .2s;
}
.gnav__link::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform .2s;
}
.gnav__link:hover{ color: var(--c-primary); }
.gnav__link:hover::after,
.gnav__item.is-current .gnav__link::after{ transform: scaleX(1); }
.gnav__item.is-current .gnav__link{ color: var(--c-primary); }

/* エントリーボタン（ヘッダー高さいっぱいの緑ブロック・右端まで） */
.siteHeader__entry{
  flex: none;
  align-self: stretch;      /* ヘッダー高さいっぱいに伸ばします */
  margin-right: -24px;      /* inner の右パディングを打ち消し、右端に密着させます */
  height: 100%;
}
.siteHeader__entry a{
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 34px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  transition: background .2s;
}
.siteHeader__entry a:hover{ background: var(--c-primary-d); }

/* ハンバーガー（SPのみ表示） */
.navToggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.navToggle span{
  display: block;
  width: 26px; height: 2px;
  margin-inline: auto;
  background: var(--c-text);
  transition: transform .3s, opacity .3s;
}
.navToggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.navToggle.is-open span:nth-child(2){ opacity: 0; }
.navToggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* SNSアイコン列です。header/footer で共有する部品で、footerでは白版アイコンに差し替えて使います。
   header側は 1025〜1199px の間だけ「SNS」ボタン+プルダウンに切り替えます（下記メディアクエリ）。 */
.snsToggle{
  display: none;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.snsToggle:hover{ border-color: var(--c-primary); color: var(--c-primary); }
.snsList{
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0; padding: 0;
  list-style: none;
}
.snsList li{ width: 20px; height: 20px; }
.snsList a{ display: flex; width: 20px; height: 20px; opacity: .8; transition: opacity .2s; }
.snsList a:hover{ opacity: 1; }
.snsList img{ display: block; width: 20px; height: 20px; }

/* ---- 1025〜1199px: SNSアイコン3つを横並びで置く余裕がなくなるため、
   「SNS」ボタン＋プルダウンに切り替えます（開閉は js-snsToggle / nier.js） ---- */
@media (max-width: 1199px) and (min-width: 1025px){
  .gnav__item--sns{ position: relative; display: flex; align-items: center; }
  .snsToggle{ display: inline-flex; }
  /* .gnav同様、.wrapのoverflow:hiddenに切られないようposition:fixedにします。
     表示位置はnier.jsがボタンの実位置を計測してセットします。.snsListは
     footerとも共有するクラスなので、ここでは.gnav__item--sns配下限定で上書きします。 */
  .gnav__item--sns .snsList{
    display: none;
    justify-content: space-around;
    position: fixed;
    z-index: 1010;
    padding: 12px 16px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    width: 210px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .gnav__item--sns .snsList.is-open{ display: flex; }
}

/* ---- タブレット以下（〜1024px）: ナビをハンバーガーに切り替えます ----
   横並びが窮屈になる手前で畳みます。SPのブレイクポイントを待ちません。 */
@media (max-width: 1024px){
  .navToggle{ display: flex; }
  /* .gnav が fixed になり流れから外れるため、エントリーを右へ押し出します。
     右端はハンバーガーに譲るので、端への貼り付き（負マージン）は解除します */
  .siteHeader__entry{ margin-left: auto; margin-right: 4px; }

  .gnav{
    position: fixed;                 /* .wrap の overflow:hidden に切られないよう固定配置します */
    top: var(--headerH, 76px);       /* ヘッダー高さに自動追随します */
    left: 0; right: 0;
    width: auto;
    max-height: calc(100vh - var(--headerH, 76px));
    overflow-y: auto;
    margin: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .gnav.is-open{ transform: translateY(0); opacity: 1; visibility: visible; box-shadow: 1px 1px 10px #00000040;}
  .gnav__list{ flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 0; }
  .gnav__item{ border-bottom: 1px solid var(--c-border); }
  .gnav__item:last-child{ border-bottom: 0; }
  .gnav__link{ display: block; padding: 16px 4px; font-size: 1.6rem; }
  .gnav__link::after{ display: none; }

  /* SNSはボタン化せず、Q&Aの直下に通常のメニュー項目として表示します */
  .gnav__item--sns{ padding: 16px 4px; }
  .snsToggle{ display: none; }
  .gnav__item--sns .snsList{ gap: 20px; }
}

/* ---- SP（〜767px）---- */
@media (max-width: 767px){
  :root{ --headerH: 60px; }   /* bodyのpadding-topも連動して縮みます */
  .siteHeader__inner{ padding-inline: 16px; gap: 12px; }
  .siteHeader__logo img{ height: 28px; }
  /* エントリーはSPでも残します（カンプでは省略されていますが、公開中サイトに準じ応募動線を確保します）。
     全高ブロックだと窮屈なので、ハンバーガー左のコンパクトなボタンに切り替えます */
  .siteHeader__entry{
    align-self: center;
    margin-left: auto;
    margin-right: 4px;
  }
  .siteHeader__entry a{
    padding: 0 16px;
    font-size: 1.3rem;
  }
  .snsList {
    justify-content: center;
  }
}

/* ---- 極小幅（〜374px）: 4要素が入りきらないため RECRUIT の文字を省きます ---- */
@media (max-width: 374px){
  .siteHeader__inner{ padding-inline: 12px; gap: 8px; }
  .siteHeader__logo span{ display: none; }
  .siteHeader__logo img{ height: 24px; }
  .siteHeader__entry a{ padding: 0 12px; font-size: 1.2rem; }
}


/* ==========================================================
   GLOBAL: サイトフッター  .siteFooter / .footerNav
   ----------------------------------------------------------
   .footerNav はルート style.css の旧ルール nav{position:absolute;
   width:100%} に当たるため、.gnav と同様に明示的に上書きします。
   ========================================================== */
.siteFooter{
  background: var(--c-footer);
}
.siteFooter__inner{
  /* max-width: var(--wrap); */
  margin-inline: auto;
  padding: 56px 24px 28px;
}

/* 上段：ロゴ／ナビ／エントリー */
.siteFooter__top{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.siteFooter__logo{ margin: 0; flex: none; }
.siteFooter__logo a{ display: inline-flex; align-items: end; gap: 9px; }
.siteFooter__logo img{ display: block; height: 30px; width: auto; }
.siteFooter__logo span{
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
}

.footerNav{
  position: static;   /* 旧 nav{position:absolute;width:100%} を明示的に上書きします */
  width: auto;
  margin-right: auto;
}
.footerNav__list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0; padding: 0;
  list-style: none;
}
.footerNav__list a{
  color: rgba(255,255,255,.82);
  font-family: var(--font-head);
  font-size: 1.4rem;
  white-space: nowrap;
  transition: color .2s;
}
.footerNav__list a:hover{ color: #fff; }

.siteFooter__entry{ flex: none; }
.siteFooter__entry a{
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 24px;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  transition: background .2s;
}
.siteFooter__entry a:hover{ background: var(--c-primary-d); }

/* 下段：著作権／法務リンク */
.siteFooter__bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
}
.siteFooter__copyright{
  margin: 0;
  color: rgba(255,255,255,.5);
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: .02em;
}
.siteFooter__legal{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0; padding: 0;
  list-style: none;
}
.siteFooter__legal a{
  color: rgba(255,255,255,.5);
  font-size: 1.2rem;
  transition: color .2s;
}
.siteFooter__legal a:hover{ color: rgba(255,255,255,.85); }

/* ---- SP（〜767px）: 中央寄せで積む ---- */
@media (max-width: 767px){
  .siteFooter__inner{ padding: 40px 20px 24px; }
  .siteFooter__top{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .footerNav{ margin-right: 0; }
  .footerNav__list{ justify-content: center; }
  .siteFooter__bottom{
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ==========================================================
   独自コンポーネントを持たない軽量ページ共通CSS（サイトマップ等）
   ----------------------------------------------------------
   business.css等のような「1ページ1CSS」にはせず、見出し＋本文だけの
   単純なページはここにまとめて追記していく方針（ページを増やすたびに
   ファイルまで増やさない）。common-mod.css自体が元々無条件・全ページ
   読み込みのため、is_page()分岐は不要です。
   ========================================================== */
.sitemapPage__head {
  padding: 56px 24px 32px;
  text-align: center;
}
.sitemapPage__head .sectionEyebrow {
  display: block;
  margin-bottom: 8px;
}
.sitemapPage__head h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--c-text);
}
.sitemapTree {
  /* ルートstyle.cssの nav{position:absolute;width:100%} を打ち消す
     （<nav>要素は必ず明示的に打ち消すこと。前例多数） */
  position: static;
  width: auto;
}
.sitemapTree ul {
  margin: 0;
  padding-left: 28px;
  list-style: none;
}
.sitemapTree > ul {
  padding-left: 0;
}
.sitemapTree li {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
}
.sitemapTree ul ul li:last-child {
  border-bottom: none;
}
.sitemapTree a {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-text);
  transition: color .2s;
}
.sitemapTree a:hover {
  color: var(--c-primary);
}
.sitemapTree > ul > li > a {
  font-size: 1.7rem;
  text-decoration: underline;
  color: var(--c-primary);
}
.sitemapTree ul ul a {
  text-decoration: underline;
}
.sitemapTree ul ul a, .sitemapTree ul ul li {
  font-size: 1.4rem;
  font-weight: 600;
}
.sitemapTree ul ul ul a {
  font-size: 1.35rem;
  font-weight: 500;
  text-decoration: underline;
  color: var(--c-muted);
}

@media (max-width: 600px) {
  .sitemapPage__head {
    padding: 40px 24px 24px;
  }
  .sitemapTree ul {
    padding-left: 18px;
  }
}
