@charset "UTF-8";

/* ==========================================================================
   統合ヘッダー・追従ギミック ＆ 1000pxハンバーガーメニュー制御スタイルシート (navi.css)
   ========================================================================== */

/* --- 1. 統合固定ヘッダーの基本レイアウト --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 1000;
  transition:
    transform 0.4s ease,
    padding 0.4s ease,
    background-color 0.4s ease,
    box-shadow 0.4s ease;
  padding: 20px 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

header.is-scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.97);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 81, 62, 0.06);
}

header .header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.header-logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1002; /* メニュー展開時より前面に配置 */
}

.header-logo-area img {
  margin-right: 12px;
}

.header-title h1 {
  font-size: 1.2rem;
  color: #38513e;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.header-title span {
  font-size: 0.72rem;
  display: block;
  color: #607c68;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

/* ==========================================
   PCヘッダーナビ
   ========================================== */

.header-nav {
  flex-grow: 1;
  margin: 0 35px;
}

.header-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 48px;

  list-style: none;
  padding: 0;
  margin: 0;
}

/* li */
.header-nav li {
  margin: 0;
}

/* リンク */
.header-nav a {
  position: relative;

  display: inline-block;

  color: #38513e !important;

  font-size: 1rem;
  font-weight: 700;

  letter-spacing: 0.08em;

  text-decoration: none;

  transition: color 0.35s ease;
}

/* hover下線 */
.header-nav a::after {
  position: absolute;
  content: "";

  left: 0;
  bottom: -4px;

  width: 0;
  height: 2px;

  background: #5da11e;

  transition: width 0.35s ease;
}

/* hover */
.header-nav a:hover {
  color: #5da11e !important;
}

.header-nav a:hover::after {
  width: 100%;
}

/* ==========================================
   タブレット
   ========================================== */

@media (max-width: 1340px) {

  .header-nav ul {
    gap: 32px;
  }

  .header-nav a {
    font-size: 0.92rem;
  }

}
/* --- 3. 電話番号エリア（PC用） --- */
.header-phone {
  flex-shrink: 0;
  z-index: 1002;
}

.header-phone a {
  background-color: #ffffff;
  border: 1px solid #38513e;
  color: #38513e;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
  font-family: sans-serif;
  font-weight: 500;
  transition: all 0.25s ease;
}

.header-phone a:hover {
  background-color: #38513e;
  color: #ffffff !important;
}

/* ハンバーガーメニュー制御用パーツ（PCでは完全非表示） */
.menu-checkbox,
.menu-btn {
  display: none;
}

main {
  margin-top: 0;
}

/* --- 4. 1000px以下のレスポンシブ・ハンバーガー切り替え設計 --- */
@media screen and (max-width: 1000px) {
  /* 電話番号はヘッダー内でのバッティングを防ぐため非表示（スマホ追従バーがあるため安全） */
  .header-phone {
    display: none;
  }

  /* ハンバーガートリガー用チェックボックス */
  .menu-checkbox {
    display: none;
  }

  /* 千歳緑（#38513e）の極細線で設えた上品な三本線アイコン */
  .menu-btn {
    display: block;
    position: relative;
    width: 26px;
    height: 20px;
    cursor: pointer;
    z-index: 1002; /* 常に一番手前に配置 */
    margin-left: auto;
  }

  .menu-btn span {
    display: block;
    position: absolute;
    width: 100%;
    height: 1px; /* 極細にして品格を維持 */
    background-color: #38513e;
    border-radius: 1px;
    transition: all 0.35s ease;
  }

  .menu-btn span:nth-child(1) {
    top: 0;
  }
  .menu-btn span:nth-child(2) {
    top: 9px;
  }
  .menu-btn span:nth-child(3) {
    top: 18px;
  }

  /* チェックが入ったら三本線が美しいクロス（×）に変形 */
  .menu-checkbox:checked ~ .menu-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-checkbox:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .menu-checkbox:checked ~ .menu-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* ナビゲーションを全画面ドロップダウンに変形 */
  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 0;
    padding: 100px 0 40px 0; /* ヘッダーのロゴと被らないよう上部にマージン */
    transform: translateY(-100%); /* 通常時は上に隠す */
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.4s ease,
      opacity 0.3s ease;
    z-index: 1001;
  }

  /* チェックが入ったら上からスライドダウン */
  .menu-checkbox:checked ~ .header-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .header-nav li {
    margin: 14px 0;
    width: 100%;
    text-align: center;
  }

  .header-nav a {
    font-size: 1.1rem;
    padding: 10px 0;
    display: inline-block;
    letter-spacing: 0.1em;
  }

  .header-nav a::after {
    display: none; /* モバイル時は下線アニメーションをカット */
  }
}

/* --- 5. 上に戻るボタン --- */
.pagetop-btn {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 46px;
  height: 46px;
  background-color: rgba(56, 81, 62, 0.85);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 998;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.pagetop-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagetop-btn:hover {
  background-color: rgba(56, 81, 62, 1);
}

/* --- 6. 右側追従バナー ＆ レスポンシブ固定バー（透過PNG・浮遊対応版） --- */
@media screen and (min-width: 768px) {
  .side-recruit-banner {
    position: fixed;
    right: 25px; /* 画面右端からの余白 */
    top: 170px; /* 画面上部からの位置 */
    z-index: 999;

    /* ===================================================
       【サイズ指定】ここの数値を変更すると、バナー全体の大きさを自由に変えられます
       =================================================== */
    width: 280px;

    /* 四角い背景、枠線、パディング、従来の影をすべて完全にリセット */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: center;

    will-change: transform;

    transition:
      transform 0.9s cubic-bezier(0.22, 1.4, 0.36, 1),
      opacity 0.4s ease;

    transform: translateY(0);
  }

  .banner-float {
    animation: floatingBanner 3.8s ease-in-out infinite;
  }

  /* バナー画像そのものの設定 */
  .side-recruit-banner .banner-image {
    width: 100%;
    height: auto;
    display: block;

    /* 【透過PNG専用】画像の形（ハートや文字の輪郭）に沿って綺麗に影を落とす高級仕様 */
    filter: drop-shadow(0 6px 12px rgba(56, 81, 62, 0.18));
  }

  /* マウスを乗せた（ホバー）時の滑らかな反応 */
  .side-recruit-banner a {
    display: block;
    transition: transform 0.2s ease;
  }

  .side-recruit-banner a:hover {
    transform: scale(1.04); /* マウスが乗るとほんの少しだけ手前に大きく */
  }

  .mobile-fixed-footer {
    display: none;
  }
}

/* フワフワ動く上下アニメーションの動きの定義 */
@keyframes floatingBanner {
  0%,
  100% {
    transform: translateY(0px) rotate(-0.4deg);
  }

  50% {
    transform: translateY(-10px) rotate(0.4deg);
  }
}

/* --- 7. スマートフォン画面用微調整（767px以下） --- */
@media screen and (max-width: 767px) {
  .side-recruit-banner {
    display: none !important;
  }

  header {
    padding: 14px 0;
  }
  header.is-scrolled {
    padding: 14px 0;
    transform: translateY(0);
  }

  .hero-container-inner {
    padding-top: 85px;
  }

  .mobile-fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    z-index: 999;
    padding: 12px 10px;
  }

  .mobile-fixed-footer a {
    flex: 1;
    margin: 0 6px;
    text-align: center;
    padding: 11px 0;
    border-radius: 25px;
    font-size: 0.88rem;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.03em;
  }

  .btn-fixed-tel {
    background-color: #ffffff;
    border: 1px solid #38513e;
    color: #38513e !important;
    font-family: sans-serif;
  }

  .btn-fixed-action {
    background: linear-gradient(135deg, #607c68, #38513e);
    color: #ffffff !important;
  }

  .pagetop-btn {
    bottom: 85px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
