/* ========================================
   リセットCSS
======================================== */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 14px;
  font-family: sans-serif;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}



/* ========================================
   共通のstyle
======================================== */

.body {
  background-color: #fceacd;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  overflow-x: hidden;
}

/* -----タイトル----- */
.title {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  /* タイトルとコンテンツの間隔 */
}

.title::after {
  content: "";
  flex: 1;
  margin-left: 10px;
  /* 文字との余白 */
  border-bottom: 2px solid #8c6239;
}


/* -----ロゴ----- */
.logo img {
  width: 12vw;
  max-width: 70px;
  min-width: 5px;
  height: auto;
}

.logo {
  position: fixed;
  top: 15px;
  left: 2%;
  z-index: 1001;
}

/* -----ナビ（共通）----- */
nav {
  font-size: 20px;
}

/* PCのナビ初期状態は header 固定・ul は通常フロー */
nav ul {
  display: flex;
  gap: 20px;
  justify-content: right;
  align-items: center;
  margin: 30px 6px 0 0;
  padding: 0;
}

nav ul li {
  text-shadow: 0 2px 7px rgba(0, 0, 0, .3);
}

/* 下線アニメ付リンク */
.nav ul {
    gap: clamp( 2px, 1.5vw, 20px);
}
nav .hakusen a {
  color: #fff;
  position: relative;
  padding: 4px 8px;
  transition: color .3s;
  font-size: clamp( 12px, 1.5vw, 20px);
}

nav .hakusen a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform .3s;
}

nav .hakusen a:hover::after {
  transform: scaleX(1);
}

/* お仕事探しはこちら　ボタン */
/* 共通ボタン 変更 */
a.btn_07 {
  display: block;
  text-align: center;
  margin: auto;
  padding: 1rem 2rem;
  font-weight: bold;
/*  background: #fff; */
background-image: radial-gradient(circle at 30% 103%, #fdf497, #76cbea 15%, #3182d4 45%, #2d5eae 67%, #2f53a8 90%, #1c338d 99.5%);
/*  color: #fbb03b; */
color: #fff; /* 追記 */
font-size: 1.3em; /* 追記 */
letter-spacing: 0.1em; /* 追記 */
  border-bottom: 2px solid #1c338d;
  border-radius: 100vh;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
  transition: .5s;
  white-space: nowrap;
  width: fit-content; /* 追記 */
 text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.6); /* 追記 */
}

a.btn_07:hover {
  color: #fff;
  /* background: #fbb03b; */
  border-bottom: 2px solid #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  transform: translateY(3px);
}

/* SNSボタン（共通） */
.btn-sns {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  width: 180px;
  margin: 0 auto;
  padding: 1rem 1rem;
  font-weight: bold;
  color: #fff;
  border-radius: 15px 0 0 15px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
  transition: .5s;
  white-space: nowrap;
}

.btn-sns img {
  width: 27%;
  height: auto;
  vertical-align: middle;
}

.btn-line {
  background: #00c300;
  border-bottom-color: #00c300;
}

.btn-line:hover {
  color: #fff;
  background: #00c300;
  border-bottom-color: #fff;
  transform: translateY(3px);
}

/* Instagram（誤記修正：image -> img） */
.btn-insta {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.btn-insta img {
  margin: 0;
}

.btn-insta:hover {
  color: #ffffff;
  transform: translateY(2px);
  border-bottom-color: #fff;
}

/* SNSの縦配置（右固定） */
.social {
  position: fixed;
  top: 170px; /* 元210px */
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

/* --- SNSアイコンだけ表示するモード（テキスト非表示でコンパクトに） --- */
.social.icon-only a {
  width: 50px;
  justify-content: center;
  padding: 3rem;
  font-size: 0;
  /* テキスト非表示 */
}

.social.icon-only img {
  width: 50px;
  height: 50px;
}

/* --- アニメーション制御 --- */
.social {
  transition: transform .4s ease, opacity .4s ease;
}

/* 右に退場 */
.social.hide {
  transform: translateX(120%);
  opacity: 0;
}

/* アイコンだけ右外に待機 */
.social.icon-only {
  transform: translateX(120%);
  opacity: 1;
}

/* 右から左へスライドイン */
.social.icon-only.enter {
  transform: translateX(0);
}

/* 企業向け */
a.btn_09 {
  display: block;
  text-align: center;
  width: 220px;
  margin: auto;
  padding: 2px 0 50px;
  font-weight: bold;
  background: #f9bc43;
  color: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
}

a.btn_09 p {
  text-underline-offset: .5em;
}

a.btn_09:hover {
  color: #fff;
  background: #fdb31e;
  border-bottom: 2px solid #fff;
}

/* お問い合わせ */
a.btn_10 {
  display: block;
  text-align: center;
  width: 180px;
  margin: 0 auto;
  padding: 1rem 1rem;
  font-weight: bold;
  background: #fceacd;
  color: #e29d23;
  border-bottom: 2px solid #fceacd;
  border-radius: 15px 0 0 15px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
}

a.btn_10:hover {
  color: #e29d23;
  background: #fceacd;
  border-bottom: 2px solid #fff;
  transform: translateY(3px);
}

/* 企業向け／お問い合わせを重ねる配置 */
.kigyo {
  z-index: 10;
  position: absolute;
  top: 100px;
  right: 0;
}

.otoiawase {
  z-index: 20;
  position: absolute;
  top: 140px;
  right: 0;
}

/* デモ用ボックス */
.sk,
.sk1,
.sk2 {
  padding: 200px 500px;
  background: #e29d23;
  position: absolute;
  text-align: center;
  z-index: 0;
}

.sk {
  top: 300px;
}

.sk1 {
  top: 800px;
}

.sk2 {
  top: 1300px;
}

/* ハンバーガー（共通） */
.hamburger {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}


.hamburger span {
  display: block;
  width: 34px;
  height: 6px;
  margin: 8px auto;
  background: #fff;
  border-radius: 2px;
  transition: .25s;
box-shadow: 0px 0px 10px 3px rgba(229, 129, 34, 1);/* 追記 */
}


/* ===== 下固定CTA（ベース：PCは非表示） ===== */
.floating-cta {
  display: none !important;
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2000;
  width: 60%;
  max-width: 320px;
  pointer-events: none;
}

.floating-cta .btn_07 {
  width: 100%;
  pointer-events: auto;
}

/* ===== ヘッダーの出し入れ（PC） ===== */
:root {
  --hide-extra: 12px;
}

@media (min-width: 901px) {

  /* ヘッダー自体を固定してアニメ対象に */
  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform .28s ease;
    will-change: transform;
  }

  /*
  body.nav-hide #header {
    transform: translateY(calc(-220% - var(--hide-extra)));
  }
  */

  
  /* 追記　ヘッダースクロールで隠さない 代わりに背景色をつける */
    body.nav-hide #header {
/*      border: solid 2px red; /* 確認用 */
    background: linear-gradient(to right, rgba(226, 157, 35, 0), rgba(229, 129, 34, .8));
    padding-bottom: 20px;
    }

  /* ヘッダー固定ぶんの余白（JSで --header-h を更新） */
  /* body {
    padding-top: var(--header-h, 90px);
  } */
}



/* ===== モバイル ======================================================================================================== */

@media (max-width: 900px) {

  /* 下固定CTAを表示 */
  .floating-cta {
    display: block !important;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: block;
  }

  /* スライドパネル型ナビ（右4割） */

  #global-nav ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 80px 20px 50px;
    padding: 0;
    align-items: flex-start;
  }

  /* 右側群のはみ出し抑止 */
  .social,
  .kigyo,
  .otoiawase {
    right: 2px;
  }

  .social {
    position: fixed;
    top: 180px;
  }

  /* ハンバーガーの開閉状態 */
  #header.menu-open #global-nav {
    transform: translateX(0);
  }

  #header.menu-open .hamburger span:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
  }

  #header.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #header.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
  }

  /* 企業向け／お問い合わせ／SNSの縮小（共通） */
  .btn-sns,
  .btn_09,
  .btn_10 {
    width: 120px;
    font-size: .7rem;
    padding: .4rem .6rem;
  }

  a.btn_09 {
    width: 150px;
  }

  .btn-sns img {
    width: 20px;
    height: 20px;
  }

  /* a.btn_09 個別微調整（下側過大余白を通常化） */
  a.btn_09 {
    padding: .6rem .8rem;
  }

  /* a.btn_10 も合わせて微調整 */
  a.btn_10 {
    width: 120px;
    font-size: .7rem;
    padding: .4rem .6rem;
  }
}


/* --- SP専用項目はPCでは非表示 --- */
.sp-only {
  display: none;
}


@media (max-width: 900px) {

  /* 右側の大きいボタン群（PC用）はSPで隠す */
  .kigyo_ma {
    display: none !important;
  }

  /* ハンバーガー内のSP専用リンクを表示（他のナビと同じテキストリンク） */
  .sp-only {
    display: list-item;
  }

  .sp-only a {
    color: #ffffff;
    font-size: .7em;
    /* 既存SPナビに合わせる */
    line-height: 1.4;
    display: block;
    padding: 10px;
  }

  /* SNS：SPでは常にアイコンのみ・コンパクト表示 */
  /* 既存の .btn-sns, .btn_09, .btn_10 の縮小指定よりも後ろに書いて上書き */
  .social {
    top: 90px;
    right: 6px;
    gap: 8px;
  }

  /* 位置微調整 */
  .social .btn-sns {
    width: 60px;
    padding: .50rem;
    justify-content: center;
    border-radius: 12px;
    font-size: 0;
    /* テキストを視覚的に非表示（DOMは残る） */
    white-space: normal;
  }

  .social .btn-sns img {
    width: 40px;
    height: 40px;
    margin: 0;
  }
}

/* ======================= SP（max-width:900px）: フルスクリーン・ドロップ演出 ======================= */
@media (max-width: 900px) {

  /* ★フルスクリーンの半透明オレンジ背景（50%） */
  #global-nav {
    position: fixed;
    inset: 0;
    background: rgba(226, 157, 35, .8);
    /* #e29d23 の50% */
    /* 視認性を少し上げたい場合はコメントアウト外す */
    backdrop-filter: blur(2px);
    transform: translateY(-100%);
    /* 上から隠す */
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
    z-index: 2000;
    /* ヘッダーより上 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 開いたら下に降りてくる */
  #header.menu-open #global-nav {
    transform: translateY(0);
  }

  /* ハンバーガーは常に最前面（閉じる操作を可能に） */
  .hamburger {
    z-index: 3001;
  }

  /* リストのレイアウト（全幅＆区切り線） */
  #global-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* 区切り線でリズムを付ける */
    margin: calc(var(--header-h, 72px) + 12px) 20px 32px;
    padding: 0;
    align-items: stretch;
  }

  #global-nav li {
    width: 100%;
    text-shadow: none;
  }

  #global-nav li+li {
    border-top: 1px solid rgba(255, 255, 255, .55);
  }

  /* テキスト（全画面なので少し大きめ） */
  #global-nav li a {
    color: #ffffff;
    display: block;
    padding: 16px 8px;
    font-size: clamp(18px, 2.6vh, 22px);
    line-height: 1.4;
  }

  /* PCの“下線アニメ”はSPでは無効化 */
  #global-nav .hakusen a::after {
    content: none !important;
  }

  /* ▼ アイテムが上→下に「流れる」ステップアニメ */
  @keyframes drop {
    from {
      transform: translateY(-14px);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  #header.menu-open #global-nav li {
    opacity: 0;
    animation: drop .5s ease forwards;
  }

  /* ステップの遅延（必要数に応じて増減） */
  #header.menu-open #global-nav li:nth-child(1) {
    animation-delay: .00s;
  }

  #header.menu-open #global-nav li:nth-child(2) {
    animation-delay: .05s;
  }

  #header.menu-open #global-nav li:nth-child(3) {
    animation-delay: .10s;
  }

  #header.menu-open #global-nav li:nth-child(4) {
    animation-delay: .15s;
  }

  #header.menu-open #global-nav li:nth-child(5) {
    animation-delay: .20s;
  }

  #header.menu-open #global-nav li:nth-child(6) {
    animation-delay: .25s;
  }

  #header.menu-open #global-nav li:nth-child(7) {
    animation-delay: .30s;
  }

  #header.menu-open #global-nav li:nth-child(8) {
    animation-delay: .35s;
  }
}









/* -----page topボタンについて---- */

.pagetop img {
  width: 50px;
  height: auto;
}

.pagetop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.pagetop img:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
	transform:scale(1.5);
	transition:0.3s;
  filter: drop-shadow(0px 0px 8px rgba(229, 129, 34, 1)); /* 追記 */
}





/* -----フッターのメニューについてだよ----- */

footer p {
  margin: 50px 0 100px 0;
}

footer {
  background-color: #f4cc71;
  border-radius: 50% 50% 0 0/50% 40% 0 0;
  color: #754b21;
  font-size: 0.8em;
  padding: 60px 0 10px 0;
  text-align: center;
  position: relative;
  bottom: 0;
  margin-top: 80px;
  background-image: url("../image/img_home/logo.png");
  background-repeat: no-repeat;
  background-position: left 60px top 180px;
  /* 左から60px、上から0pxに配置（.footer-rogoと同じ位置） */
  background-size: 60px auto;
}


footer ul {
  font-size: 0.7em;
  color: #754b21;
  list-style: none;
  padding: 0;
  margin: 30px 0 30px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  border-top: none;
  padding-top: 24px;
  /* 線とリストの間に余白を追加 */
}

footer ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 200px;
  /* 線の開始位置を右にずらす（例:40px） */
  width: calc(100% - 200px);
  /* 線の長さを調整 */
  height: 1px;
  background: #754b21;
}

footer ul li a {
  color: #754b21;
  text-decoration: none;
}

.footer-nav li {
  text-shadow: none;
}






/* ========================================
  スマホ対応（max-width:768px）
======================================== */

/* ロゴについて */
@media (max-width: 768px) {
  .logo img {
    width: 40px;
    top: 10px;
    left: 10px;
  }
}

/* フッターについて */
@media (max-width: 768px) {
  footer ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 30px 20px 60px 0;
    padding-left: 20px;
  }

  footer ul::before {
    left: 0;
    width: 100%;
  }

  footer {
    padding: 20px 20px 7px 20px;
    background-size: 10% auto;
    background-position: left 30px top 110px;
  }

  footer p {
    margin: 30px 0 15px 0;
  }
}

/* ページトップボタンについて */
@media (max-width: 768px) {
  .pagetop img {
    width: 30px;
  }

  .pagetop {
    bottom: 20px;
    right: 20px;
  }
}



/* ========================================
  追記　メニュー
  企業・法人の方はこちら・お問合せ
  の部分を普通のメニューに組み込んだため
  固定のものは非表示
======================================== */
.kigyo_ma {
  display: none;
}

/* 「お仕事探しはこちら」 */
.kyujin {
width: fit-content;
margin-left: auto; /* 左マージンを自動（親要素の残り幅）にする */
margin-top: 20px;
margin-right: 10px; 
}

/* お仕事探しはこちら」右寄せ用 */
.menu-kyujin-kakomi {
  width: 100%; /* 　親要素の幅全体を使う */
  position: fixed; /* 固定配置 */
  margin-top: 1em;
 /* top: 100px;
  left: 10px;
border: solid 1px red; /* 確認用 */
}


@media (max-width: 900px) {
  /* ナビ内のCTAはSPでは非表示（下固定に一本化） */
  .kyujin, .menu-kyujin-kakomi {
    display: none !important;
  }
}

