/* ================================================================
   index.css — TOPページ（index.php）専用
================================================================ */

/* ----------------------------------------------------------------
   Hero + 拠点紹介 共通背景
---------------------------------------------------------------- */
.hero-branches-bg {
  position: relative;
  background:
    radial-gradient(circle at 8% 32%, rgba(201,162,39,.16), transparent 38%),
    radial-gradient(ellipse 60% 40% at 92% 12%, rgba(255,255,255,.6), transparent 50%),
    radial-gradient(circle at 63% 72%, rgba(201,162,39,.11), transparent 40%),
    radial-gradient(ellipse 50% 70% at 28% 88%, rgba(232,213,154,.28), transparent 42%),
    radial-gradient(circle at 47% 38%, rgba(255,255,255,.32), transparent 58%),
    radial-gradient(circle at 82% 58%, rgba(201,162,39,.14), transparent 33%),
    radial-gradient(ellipse 45% 30% at 18% 4%, rgba(255,255,255,.46), transparent 45%),
    radial-gradient(circle at 5% 85%, rgba(201,162,39,.09), transparent 30%),
    #f1f2f1;
}

/* ----------------------------------------------------------------
   Hero セクション
---------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 56px 6%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* 左：キャッチコピー */
.hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--gold-dark);
  margin-bottom: 36px;
  font-family: 'Noto Sans JP', sans-serif;
}

.hero h1 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.8vw, 36px);
  color: var(--navy);
  font-weight: 300;
  letter-spacing: .06em;
  margin: 0 0 22px;
  line-height: 1.6;
}

/* テキストが1行ずつ下からフェードイン */
.hero h1 span {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 1.5s ease-out forwards;
}

.hero h1 span:nth-child(1) { animation-delay: 0s; }
.hero h1 span:nth-child(2) { animation-delay: 1.6s; }
.hero h1 span:nth-child(3) { animation-delay: 3.2s; }

.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 38px;
  border: none;
}

.hero-desc {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  color: var(--text-mid);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 2.4;
  margin: 0;
  opacity: 0;
  animation: heroFadeIn 1.1s ease-out forwards;
  animation-delay: 4.6s;
}

@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* 右：求人ナビボタン */
.hero-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-nav-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 10px;
  padding: 26px 28px;
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* 左端のゴールドライン */
.hero-nav-btn::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #bdac1e;
}

.hero-nav-btn:hover {
  background: rgba(201,162,39,.08);
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.hero-nav-btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-nav-btn-icon svg { width: 100%; height: 100%; }

.hero-nav-btn-body { flex: 1; }

.hero-nav-btn-en {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold-dark);
  opacity: .8;
  display: block;
  margin-bottom: 3px;
}

.hero-nav-btn-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: .2em;
}

.hero-nav-btn-arrow {
  color: var(--gold);
  font-size: 18px;
  opacity: .7;
  flex-shrink: 0;
}

/* SCROLLインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(26,39,68,.35);
  font-size: 10px;
  letter-spacing: .18em;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(26,39,68,.35), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----------------------------------------------------------------
   拠点紹介 セクション
---------------------------------------------------------------- */
.section { padding: 88px 6%; }

.section-inner { position: relative; z-index: 1; }

.section-label {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--navy);
  font-weight: 300;
  letter-spacing: .06em;
  margin: 0 0 12px;
  line-height: 1.35;
}

.section-title-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 0 0 40px;
}

.branches-intro-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

.branches-intro-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2;
  margin: 0;
}

.branches-intro-banner {
  background: #fff;
  border: 1px solid rgba(201,162,39,.35);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 56px 46px;
  max-width: 640px;
  margin: 0 100px 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 斜線パターン背景 */
.branches-intro-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 64px,
    rgba(201,162,39,.05) 64px, rgba(201,162,39,.05) 65px
  );
  pointer-events: none;
}

.branches-intro-banner-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  position: relative;
}

.branches-intro-banner-icon svg { width: 100%; height: 100%; }

.branches-intro-banner-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: .2em;
  margin: 0 0 10px;
  position: relative;
}

.branches-intro-banner-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
  margin: 0 0 26px;
  position: relative;
}

.btn-branches-intro {
  font-family: 'Noto Serif JP', serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #bdac1e;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .05em;
  text-decoration: none;
  transition: var(--ease);
  position: relative;
}

.btn-branches-intro:hover {
  background: #d4ad2e;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26,39,68,.2);
}

/* ----------------------------------------------------------------
   スクロールアニメーション
---------------------------------------------------------------- */
.js-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.js-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}

.js-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.js-fade.is-visible,
.js-fade-left.is-visible,
.js-fade-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

.js-delay-1 { transition-delay: .1s; }
.js-delay-2 { transition-delay: .2s; }
.js-delay-3 { transition-delay: .3s; }
.js-delay-4 { transition-delay: .4s; }
.js-delay-5 { transition-delay: .5s; }

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-rule { margin: 0 auto 24px; }
  .hero-nav-btn::before { display: none; }
  .hero-nav-btn:hover { transform: translateY(-2px); }

  .branches-intro-layout { grid-template-columns: 1fr; gap: 32px; }
  .branches-intro-banner { margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 16px; }
  .hero-nav-btn-ja { font-size: 14px; }
  .hero-nav-btn { padding: 16px 18px; gap: 12px; }

  .section { padding: 56px 16px; }
  .branches-intro-banner { padding: 36px 24px; }
}
