@charset "utf-8";
/* --- 基本設定 --- */
:root {
  --primary-orange: #f05a22;
  --text-color: #333;
  --bg-color: #f7f7f7;
  --footer-bg: #2b2b2b;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--bg-color);
  background-image: url(../images/jgroup/nami.svg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-repeat: no-repeat;
  background-size: 110% 30vh;
}

@media (min-width: 769px) {
  body {
    background-size: 110% 60vh;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- ヘッダー --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: transparent;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 10;
  position: fixed;
  background: #fff;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ハンバーガーボタン */
.hamburger {
  width: 50px;
  height: 50px;
  background-color: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  z-index: 100;
  transition: all 0.3s;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: white;
  transition: 0.3s;
}

/* --- ナビゲーションオーバーレイ --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-orange);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 80px 40px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  overflow-y: auto;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: white;
  top: 50%;
  left: 0;
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

.nav-list {
  list-style: none;
  margin-top: 20px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.nav-list li {
  margin-bottom: 20px;
}

.nav-list a {
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: block;
}

.nav-buttons {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.nav-btn {
  background-color: white;
  color: var(--primary-orange);
  padding: 15px;
  border-radius: 50px;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  width: 25px;
  display: flex;
}

.nav-icon svg path {
  fill: var(--primary-orange);
  /* ここで色を指定 */
  transition: fill 0.3s ease;
}

main {
  background:
    radial-gradient(1200px 500px at 50% 0%, transparent, transparent 70%),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.03) 0 2px,
      transparent 2px 12px
    );
}

main > svg {
  position: absolute;
  height: 28vh !important;
}

@media (min-width: 769px) {
  main > svg {
    position: absolute;
    height: 58vh !important;
  }
}

/* --- メインビジュアル --- */
.hero {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === イラストレーション合成部分のCSS設定 === */
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 1280px;
  /* PCでの最大幅 */
  margin: 0 auto 40px;
  /* アスペクト比を維持する設定。
               背景画像の比率に合わせて調整してください。ここでは仮に 4:3 としています。 */
  aspect-ratio: 4 / 3.2;
}

/* 各パーツ共通設定 */
.illus-part {
  position: absolute;
  display: block;
  /* z-indexで重なり順を指定 */
}

/* 背景ベース画像 (image_4.png) */
.illus-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 枠内に収める */
  top: 0;
  left: 0;
  z-index: 1;
  /* 最背面 */
}

/* 各パーツの位置調整 (※実際の位置に合わせて%値を調整してください) */
/* jplan (image_5.png) - 左上 */
.illus-jplan {
  width: 18.5%;
  top: 14%;
  left: 20%;
  z-index: 5;
}

/* jsquare (image_3.png) - 中央上 */
.illus-jsquare {
  width: 22%;
  top: 11.7%;
  left: 41%;
  z-index: 4;
}

/* recruitment (image_10.png) - 右上 */
.illus-recruit {
  width: 30%;
  top: 19%;
  right: 7%;
  z-index: 5;
}

/* Human (image_6.png) - 左中 */
.illus-human {
  width: 27.5%;
  top: 30%;
  left: 11%;
  z-index: 5;
}

/* SUPPORT (image_6.png) - 左中 */
.illus-support {
  width: 25%;
  top: 42%;
  left: 14%;
  z-index: 6;
}

/* Clinic (image_9.png) - 右下 */
.illus-clinic {
  width: 20%;
  bottom: 26%;
  right: 11%;
  z-index: 5;
}

/* fence & art (image_7.png) - 下中央 */
.illus-fence {
  width: 34%;
  bottom: 5%;
  left: 48%;
  z-index: 7;
}

/* pop up space (image_7.png) - 下中央 */
.illus-popupspace {
  width: 30%;
  bottom: 3.8%;
  left: 8%;
  z-index: 7;
}

/* =========================================
   強化版：ふわふわアニメーション設定
   ========================================= */

/* --- 1. アニメーションの定義（動きのパターン集） --- */

/* パターンA: 標準的な上下 + わずかな傾き (例: 呼吸するような動き) */
@keyframes float-vertical-tilt {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    /* 上に移動しつつ、少し右に傾く */
    transform: translateY(-15px) rotate(2deg);
  }
}

/* パターンB: 横揺れメイン */
@keyframes float-horizontal {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    /* 右に移動しつつ、少し下に沈む */
    transform: translateX(15px);
  }
}

/* パターンC: カタカタ揺らす */
@keyframes katakata {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(0, 0) rotate(-3deg);
  }

  20% {
    transform: translate(0, -1px) rotate(0deg);
  }

  30% {
    transform: translate(0, -1px) rotate(3deg);
  }

  40% {
    transform: translate(1px, 0) rotate(-2deg);
  }

  50% {
    transform: translate(0, 1px) rotate(0deg);
  }

  60% {
    transform: translate(0, 0) rotate(3deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* --- 2. 共通設定 --- */
.illus-part:not(.illus-bg) {
  display: block;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  transition: z-index 0.2s;
}

/* --- 3. ホバー時の切り替え（ここが重要） --- */
.hero-illustration a:hover {
  /* 通常時のアニメーションを解除し、カタカタを適用 */
  animation: katakata 1s linear infinite !important;
  z-index: 100;
  /* ホバーしたパーツを一番上に */
}

/* 3. 各パーツごとの設定（ここが重要！） */
/* 秒数(duration)と開始遅延(delay)をバラバラにして、自然なランダム感を出す */

/* jplan: ゆっくり動く */
.illus-jplan {
  animation-name: float-vertical-tilt;
  animation-duration: 5s;
  animation-delay: 0s;
}

/* jsquare: 少し早め、遅れて動き出す */
.illus-jsquare {
  animation-name: float-horizontal;
  animation-duration: 5s;
  animation-delay: 0.5s;
}

/* recruit: 大きくゆっくり */
.illus-recruit {
  animation-name: float-vertical-tilt;
  animation-duration: 5s;
  animation-delay: 1s;
}

/* humant: 少し早め、遅れて動き出す
		.illus-human {
			animation-name: float-vertical-tilt;
			animation-duration: 5.5s;
			animation-delay: 2s;
		} */

/* support: 標準的、逆位相っぽく見せるために遅延を大きく */
.illus-support {
  animation-name: float-horizontal;
  animation-duration: 6.5s;
  animation-delay: 2s;
}

/* clinic: 早め */
.illus-clinic {
  animation-name: float-horizontal;
  animation-duration: 6.5s;
  animation-delay: 1.5s;
}

/* fence: どっしりと */
.illus-fence {
  animation-name: float-vertical-tilt;
  animation-duration: 4s;
  animation-delay: 0.2s;
}

/* popupspace: どっしりと */
.illus-popupspace {
  animation-name: float-horizontal;
  animation-duration: 5s;
  animation-delay: 2s;
}

/* --- 4. スマホ時の調整（動きを控えめに） --- */
@media (max-width: 768px) {
  /* 全体的に移動距離と回転角度を小さく上書き */
  @keyframes float-vertical-tilt {
    50% {
      transform: translateY(-8px) rotate(1deg);
    }
  }

  @keyframes float-horizontal {
    50% {
      transform: translateX(8px);
    }
  }

  @keyframes moveX {
    50% {
      transform: translateX(-5px);
    }
  }

  @keyframes moveY {
    50% {
      transform: translateY(-8px);
    }
  }
}

/* ========================================= */

.hero-text h1 {
  font-size: min(4.5vw, 50px);
  margin-bottom: 10px;
}

.hero-text p {
  color: var(--primary-orange);
  font-size: 14px;
  font-weight: bold;
}

/* --- SERVICE セクション --- */
.service-section {
  padding-bottom: 80px;
}

.service-container {
  background-color: var(--white);
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 40px;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.section-title {
  text-align: center;
  color: var(--primary-orange);
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 36px;
  letter-spacing: 2px;
}

.section-title span {
  font-size: 14px;
  display: block;
  margin-top: -5px;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-item {
  width: calc(25% - 30px);
  position: relative;
  background: #fcf4f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  box-shadow: 3px 3px 15px 0px rgba(0, 0, 0, 0.15);
}

.service-logo {
  width: 80%;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}

.service-desc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(60, 60, 60, 0.9);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* --- リクルート --- */
.recruit-section {
  background: var(--white);
  width: 100%;
  padding: 50px 20px;
}

.recruit-banner {
  max-width: 700px;
  margin: 0 auto;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 32px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.recruit-banner p,
.recruit-banner h2 {
  text-align: center;
  font-size: 16px;
  line-height: 1.2;
}

.recruit-title {
  margin-bottom: 20px;
}

.recruit-banner h2 span {
  font-size: 32px;
  font-weight: bold;
}

/* 背景用の疑似要素 */
.recruit-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/jgroup/DSCF1136-111-83b442e5.png");
  background-color: rgba(128, 128, 128, 0.6);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
  /* アニメーション */
  z-index: 0;
}

/* ホバー時に背景だけ拡大 */
.recruit-banner:hover::before {
  transform: scale(1.1);
}

/* コンテンツを前面に */
.recruit-banner > div {
  position: relative;
  z-index: 1;
}

/* --- リピートテキスト --- */

.marquee {
  background: var(--white);
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  font-size: 150px;
  font-weight: bold;
  line-height: 1.3;
  color: #fcece6;
  display: inline-block;
  padding-right: 50px;
  /* テキスト間のスペース */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* コンテンツの半分だけ移動 */
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* コンテンツの半分だけ移動 */
  }
}

/* --- フッター --- */
footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 60px 20px 20px;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 20px auto;
  max-width: 200px;
}

.footer-address {
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.footer-address a:hover {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 60px;
  text-align: left;
  font-size: 16px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a:hover {
  opacity: 0.7;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 10px;
}
.social-icon img {
  width: 20px;
}

.copyright {
  font-size: 12px;
  color: #888;
}

.icon-svg {
  width: 15px;
  display: inline-block;
  vertical-align: middle;
}

/* =========================================
           PC (Desktop) ホバーエフェクト
========================================= */
@media (min-width: 769px) {
  .service-item:hover .service-desc {
    opacity: 1;
    pointer-events: auto;
  }
  .pc-none {
    display: none;
  }
}
/* =========================================
          tab レスポンシブ対応
========================================= */
@media (min-width: 769px) and (max-width: 960px) {
  .service-item {
    width: calc(33.33% - 30px);
  }
}

/* =========================================
           SP (Mobile) レスポンシブ対応
========================================= */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-text h1 {
    font-size: 8vw;
    padding: 0 10px;
  }

  /* Service Container */
  .service-container {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .service-grid {
    justify-content: space-between;
    gap: 20px;
  }

  .service-item {
    width: calc(50% - 10px);
    aspect-ratio: auto;
    background: #fcf4f0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    box-shadow: 1px 1px 10px 0px rgba(0, 0, 0, 0.15);
  }

  .service-logo {
    width: 100%;
    margin-bottom: 15px;
    align-self: center;
    background: #ffff;
    height: 120px;
    padding: 5px;
  }

  .service-desc {
    position: static;
    background-color: transparent;
    color: var(--text-color);
    opacity: 1;
    padding: 0;
    height: auto;
    font-size: 14px;
    display: block;
  }

  .recruit-banner {
    height: 180px;
  }
  .marquee-content span {
    font-size: 60px;
  }

  /* フッター */
  .footer-links {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-col {
    gap: 15px;
  }

  .bg-text-decoration {
    font-size: 30px;
  }
}
