/*
Theme Name: Talent System
Theme URI: http://localhost/talentsystem/
Author: Talent System
Description: タレントシステム コーポレートサイト カスタムテーマ
Version: 1.0.0
*/

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========================================
   Variables
======================================== */
:root {
  --teal:       #2ec4c4;
  --teal-light: #e6f9f9;
  --teal-pale:  #f0fafb;
  --red:        #c0392b;
  --red-dark:   #a93226;
  --text:       #333333;
  --text-light: #666666;
  --white:      #ffffff;
  --max-w:      1200px;
}

/* ========================================
   Utility
======================================== */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.section-title span {
  color: var(--teal);
}

.section-en {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* ========================================
   Header
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.header-nav { display: flex; align-items: center; gap: 20px; }

.header-nav a { transition: opacity 0.2s; }

.header-nav-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.header-nav-item:hover { opacity: 0.7; }

.header-nav-en {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}

.header-nav-ja {
  font-size: 0.58rem;
  color: var(--text-light);
}

.btn-entry {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 開いた状態: 2本線 → X */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ========================================
   Hero (FV)
======================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: relative;
  line-height: 0;
}

.hero-bg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes hero-fadein {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text {
  position: absolute;
  height: auto;
  pointer-events: none;
  opacity: 0;
  animation: hero-fadein 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 各レイヤーの位置・サイズ（元カンバス 2880×1662 基準） */
.hero-text--engineer {
  width: 17.4%;
  left: 32.5%;
  top: 13.5%;
  animation-delay: 0.3s;
}
.hero-text--yourlife {
  width: 16.4%;
  left: 44%;
  top: 18%;
  animation-delay: 0.6s;
}
.hero-text--title01 {
  width: 64.8%;   /* 1866px / 2880 */
  left: 28.5%;    /* 821px / 2880 */
  top: 36%;       /* 598px / 1662 */
  animation-delay: 1.0s;
}
.hero-text--title02 {
  width: 79.6%;
  left: 21%;
  top: 54%;
  animation-delay: 1.4s;
}

.hero-bnrs {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.hero-bnrs a { display: block; }
.hero-bnrs img {
  width: 280px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-bnrs a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

/* ========================================
   Worries (お悩み)
======================================== */
.worries {
  position: relative;
  padding: 80px 0 0;
  background: #dde8ea;
}

.worries-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d96070;
}
.worries-dot--tl { top: 40px; left: 60px; }
.worries-dot--br { bottom: 80px; right: 60px; }

.worries-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 900;
  color: #c0392b;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.worries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.worry-card {
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: 14px;
  padding: 32px 28px;
}

.worry-card p {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.75;
}

.worries-bottom {
  position: relative;
  height: 160px;
  margin-top: 48px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.worries-illust {
  position: absolute;
  left: 40px;
  bottom: -60px;
  width: 130px;
  height: auto;
  display: block;
  z-index: 5;
}

.worries-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-top: 52px solid var(--teal);
}

/* ========================================
   About & Features (combined)
======================================== */
.af-section {
  background: #88c8ca;
  padding-bottom: 0;
}

.af-lead {
  text-align: center;
  padding: 72px 40px 48px;
}

.af-lead-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.af-lead-main {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.8;
}

.af-banner {
  background: #e6bf22;
  text-align: center;
  padding: 18px 40px;
  max-width: 1000px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.af-banner span {
  font-size: clamp(1.375rem, 3.5vw, 2.125rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.af-block {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}

.af-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.af-block--reverse .af-block-inner { direction: rtl; }
.af-block--reverse .af-block-inner > * { direction: ltr; }

.af-title {
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  font-weight: 900;
  color: #c85a68;
  line-height: 1.6;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.af-bullet {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e07080;
  flex-shrink: 0;
  margin-top: 6px;
}

.af-desc {
  font-size: 0.9375rem;
  color: #1a3a3a;
  line-height: 2;
}

.af-block-photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.af-block-photo::before,
.af-block-photo::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #88c8ca;
  z-index: 1;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.af-block-photo::before { left: 0; }
.af-block-photo::after  { right: 0; }

.af-block-photo.is-visible::before { transform: translateX(-100%); }
.af-block-photo.is-visible::after  { transform: translateX(100%); }

.af-block-photo img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.af-illust {
  position: absolute;
  pointer-events: none;
}

@keyframes float-money {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-14px); }
}

@keyframes float-books {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.af-illust--money {
  width: 210px;
  bottom: -10px;
  left: 45%;
  animation: float-money 3.2s ease-in-out infinite;
}

.af-illust--books {
  width: 170px;
  bottom: 10px;
  right: max(60px, calc((100vw - var(--max-w)) / 2 + 40px));
  animation: float-books 3.2s ease-in-out infinite 0.8s;
}

@keyframes dot-twinkle {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.1; }
}

.af-dot {
  position: absolute;
  width: var(--dot-s, 12px);
  height: var(--dot-s, 12px);
  border-radius: 50%;
  background: var(--dot-c);
  pointer-events: none;
  animation: dot-twinkle var(--dot-dur, 3s) ease-in-out infinite var(--dot-delay, 0s);
}

/* ========================================
   Commitment (Scrolling Marquee)
======================================== */
.commitment {
  position: relative;
  background: #88c8ca;
  padding: 48px 0 64px;
  overflow: hidden;
}

.commitment-illust {
  position: absolute;
  bottom: 0;
  left: max(40px, calc((100vw - var(--max-w)) / 2 + 40px));
  width: 110px;
  height: auto;
  z-index: 2;
}

.commitment-marquee {
  overflow: hidden;
}

.commitment-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.commitment-track p {
  font-family: 'Figtree', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
  padding-right: 100vw;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========================================
   Recruit (採用情報)
======================================== */
.recruit {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background: var(--red);
}

.recruit-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: left center;
}

.recruit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(185, 25, 40, 0.45) 0%,
    rgba(185, 25, 40, 0.82) 38%,
    rgba(185, 25, 40, 1.00) 62%
  );
  z-index: 1;
}

.recruit-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.recruit-heading { margin-bottom: 56px; }

.recruit-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.recruit-sub {
  font-family: 'Figtree', sans-serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.375rem);
  color: rgba(255,255,255,0.9);
}

.recruit-group { margin-bottom: 40px; }

.recruit-group-label {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.recruit-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.recruit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-radius: 100px;
  padding: 12px 12px 12px 36px;
  min-width: 300px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.recruit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.recruit-btn-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #222;
}

.recruit-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.recruit-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ========================================
   Note Section
======================================== */
.note-section {
  padding: 44px 0 48px;
  background: linear-gradient(to right, #ffffff 0%, #8bcfd2 40%);
}

.note-section-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
}

/* Left: logo */
.note-section-left {
  flex-shrink: 0;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}


.note-section-logo { display: inline-block; transition: opacity 0.2s; }
.note-section-logo:hover { opacity: 0.75; }
.note-section-logo img { width: 100%; height: auto; display: block; }

.note-section-label {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  text-align: right;
  width: 100%;
}

/* Right: cards + more */
.note-section-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards */
.note-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.note-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.note-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.note-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d0e9ea;
  overflow: hidden;
}
.note-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.note-card-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.note-card-date {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: 'Figtree', sans-serif;
}

.note-card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* More link */
.note-section-more {
  display: flex;
  justify-content: flex-end;
}

.note-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.note-more-link:hover { color: var(--teal); border-color: var(--teal); }

/* ========================================
   Footer
======================================== */
.site-footer {
  background: #8b9dac;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.footer-main { padding: 64px 0 48px; }

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

/* Left column */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
  flex: 1;
  min-width: 0;
}

.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Nav */
.footer-nav {
  display: flex;
  gap: 28px 40px;
  flex-wrap: wrap;
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-nav-item:hover { opacity: 0.75; }

.footer-nav-en {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer-nav-ja {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}

/* SNS banner */
.footer-sns-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 100px;
  padding: 14px 28px;
  width: fit-content;
  max-width: 100%;
}

.footer-sns-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.footer-sns-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.footer-sns-link:hover { opacity: 0.7; }
.footer-sns-link img { display: block; }

/* Right illustration */
.footer-right {
  flex-shrink: 0;
  width: clamp(260px, 30vw, 420px);
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

.footer-illust {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -20px;
}

/* Copyright bar */
.footer-copy-bar {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-align: right;
}

/* ========================================
   Mobile Nav Drawer
======================================== */
.sp-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: #fff;
  z-index: 99;
  padding: 72px 0 40px;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.sp-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sp-nav a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 18px 24px;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text);
}
.sp-nav a:last-child { border: none; }
.sp-nav .btn-entry {
  margin-top: 8px;
  width: fit-content;
  min-width: 180px;
  align-self: center;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
  .inner { padding: 0 24px; }
  .header-inner { padding: 0 24px; }

  .af-block-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero-bnrs {
    position: relative;
    bottom: auto;
    right: auto;
    flex-direction: row;
    justify-content: center;
    padding: 12px 16px;
    gap: 10px;
  }
  .hero-bnrs a { flex: 1; }
  .hero-bnrs img { width: 100%; border-radius: 6px; }

  .worries-grid { grid-template-columns: 1fr; gap: 16px; }
  .worries-bottom { height: 120px; }
  .worries-illust { width: 120px; left: 20px; }
  .worries-dot--tl { left: 20px; }
  .worries-dot--br { right: 20px; }

  .af-lead { padding: 48px 20px 32px; }

  .af-block-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    direction: ltr !important;
  }

  /* SP: 全ブロック「画像 → タイトル → 本文」順に統一 */
  .af-block-photo { order: -1; }

  /* Block 01・03（右端に埋もれるデザイン） */
  .af-section > .af-block:nth-child(3) .af-block-photo,
  .af-section > .af-block:nth-child(5) .af-block-photo {
    margin-right: -32px;
    border-radius: 16px 0 0 16px;
  }

  /* Block 02（左端に埋もれるデザイン） */
  .af-section > .af-block:nth-child(4) .af-block-photo {
    margin-left: -32px;
    border-radius: 0 16px 16px 0;
  }

  .af-block { overflow: visible; }
  .af-illust--money { width: 120px; left: 20%; bottom: -20px; }
  .af-illust--books { width: 120px; right: 20px; bottom: -30px; }

  .commitment { padding-top: 120px; }
  .commitment-illust { width: 80px; left: 16px; }
  .commitment-track p { font-size: clamp(2rem, 8vw, 3.5rem); }

  .recruit-btn { min-width: 260px; padding: 10px 10px 10px 24px; }
  .recruit-btn-text { font-size: 0.9375rem; }

  /* SP: hero-text を表示してSP画像に合わせた仮配置 */
  .hero-text--engineer {
    width: 32%;
    left: 43%;
    top: 83%;
  }
  .hero-text--yourlife {
    width: 30%;
    left: 66%;
    top: 88%;
  }
  .hero-text--title01 {
    width: 140%;
    max-width: 130%;
    left: 55%;
    margin-left: -65%;
    top: 21%;
  }
  .hero-text--title02 {
    width: 140%;
    max-width: 140%;
    left: 50%;
    margin-left: -70%;
    top: 35%;
  }

  .note-section-inner { flex-direction: column; gap: 24px; }
  .note-section-left { width: auto; }
  .note-section-logo img { height: 40px; width: auto; }
  .note-section-right { width: 100%; }
  .note-cards {
    display: flex;
    grid-template-columns: unset;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding: 4px 11% 24px;
    margin: 0 -20px;
  }
  .note-cards::-webkit-scrollbar { display: none; }
  .note-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-right { width: 100%; max-width: 280px; align-self: center; }
  .footer-illust { margin-top: 0; }
  .footer-nav { gap: 16px 24px; }
  .footer-sns-banner { width: 100%; flex-wrap: wrap; gap: 12px; padding: 12px 20px; justify-content: center; }
  .footer-copy { text-align: center; }

  .inner { padding: 0 20px; }
}
