/* ========================================
   ANIMATIONS
   ======================================== */

/* アニメーション対象の初期状態 */
.animate-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* アニメーション実行状態 */
.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* カードのstaggered animation（順番に表示） */
.story-card:nth-child(1).animate-target {
  transition-delay: 0s;
}
.story-card:nth-child(2).animate-target {
  transition-delay: 0.1s;
}
.story-card:nth-child(3).animate-target {
  transition-delay: 0.2s;
}

.app-feature-card:nth-child(1).animate-target {
  transition-delay: 0s;
}
.app-feature-card:nth-child(2).animate-target {
  transition-delay: 0.15s;
}
.app-feature-card:nth-child(3).animate-target {
  transition-delay: 0.3s;
}

.benefit-card:nth-child(1).animate-target {
  transition-delay: 0s;
}
.benefit-card:nth-child(2).animate-target {
  transition-delay: 0.15s;
}
.benefit-card:nth-child(3).animate-target {
  transition-delay: 0.3s;
}

.job-card:nth-child(1).animate-target {
  transition-delay: 0s;
}
.job-card:nth-child(2).animate-target {
  transition-delay: 0.1s;
}
.job-card:nth-child(3).animate-target {
  transition-delay: 0.2s;
}
.job-card:nth-child(4).animate-target {
  transition-delay: 0s;
}
.job-card:nth-child(5).animate-target {
  transition-delay: 0.1s;
}
.job-card:nth-child(6).animate-target {
  transition-delay: 0.2s;
}

.stat-item:nth-child(1).animate-target {
  transition-delay: 0s;
}
.stat-item:nth-child(2).animate-target {
  transition-delay: 0.1s;
}
.stat-item:nth-child(3).animate-target {
  transition-delay: 0.2s;
}
.stat-item:nth-child(4).animate-target {
  transition-delay: 0.3s;
}

/* モーション削減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .animate-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   BASE STYLES
   ======================================== */

/* ========== CSS変数（カラーパレット） ========== */
:root {
  /* メインカラー */
  --color-cream: #FFFBEF;
  --color-peach: #FFF5E8;
  
  /* アクセントカラー */
  --color-orange: #F7A226;
  --color-orange-light: #F7A226;
  --color-orange-dark: #EB6100;
  
  /* ニュートラルカラー */
  --color-white: #FFFFFF;
  --color-gray-light: #F5F5F5;
  --color-gray-medium: #999999;
  --color-gray-dark: #666666;
  --color-black: #000000;
  
  /* サブカラー */
  --color-border: #FFE3C1;
  
  /* シャドウ */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* トランジション */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* ========== リセット & ベーススタイル ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-gray-dark);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 明朝体を適用 */
h1, h2, h3, .font-serif-jp {
  font-family: 'Noto Serif JP', serif;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

/* ========== コンテナ ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* px-4は全画面サイズで1remのまま */

/* ========== ヘッダー ========== */
.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .logo {
    height: 3rem;
  }
}

.header-subtitle {
  color: var(--color-gray-dark);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ========== ヒーローセクション ========== */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 90vh;
    align-items: center;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) saturate(1.3) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 2rem;
  }
}

.hero-text-wrapper {
  max-width: 42rem;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
}

.hero-title {
  margin-bottom: 1rem;
  color: var(--color-white);
  line-height: 1.2;
  font-size: 1.875rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 300px;
}

@media (min-width: 640px) {
  .hero-cta-buttons {
    flex-direction: row;
    gap: 1rem;
    max-width: none;
  }
}

.store-button {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.store-button:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.store-badge-image {
  height: 44px;
  width: auto;
  display: block;
}

@media (min-width: 640px) {
  .store-badge-image {
    height: 48px;
  }
}

@media (min-width: 768px) {
  .store-badge-image {
    height: 54px;
  }
}

/* ========== セクション共通スタイル ========== */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.bg-white {
  background-color: var(--color-white);
}

.bg-cream {
  background-color: var(--color-cream);
}

.bg-peach {
  background-color: var(--color-peach);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  line-height: 1.4;
  color: #333333;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-divider {
  width: 4rem;
  height: 3px;
  background: linear-gradient(to right, var(--color-orange-light), var(--color-orange-dark));
  margin: 0 auto 1.5rem;
  border-radius: 9999px;
}

.section-description-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.section-description {
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.section-description.large {
  font-size: 1.125rem;
  font-weight: 500;
}

.section-description.centered {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 1rem;
}

.mobile-only {
  display: inline;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}

/* ========== ブランドストーリーセクション ========== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.story-card {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.story-image-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.story-card:hover .story-image {
  transform: scale(1.05);
}

/* ========== サービス紹介セクション ========== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.service-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.service-header .section-divider {
  margin: 0 0 1.5rem 0;
}

.service-text {
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-gray-dark);
  font-weight: 500;
}

.feature-icon {
  color: var(--color-orange-dark);
  flex-shrink: 0;
}

.service-image-wrapper {
  position: relative;
}

.service-image-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-image-wrapper:hover .service-image {
  transform: scale(1.05);
}

/* ========== アプリ機能セクション ========== */
.app-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .app-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.app-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-feature-image-wrapper {
  width: 100%;
  max-width: 320px;
  margin-bottom: 2rem;
}

.app-feature-image {
  width: 100%;
  height: auto;
  display: block;
}

.app-feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-gray-dark);
}

.app-feature-description {
  color: var(--color-gray-dark);
  line-height: 1.7;
  max-width: 360px;
}

/* ========== スキジョブの特徴セクション ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.benefit-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.benefit-image-wrapper {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.benefit-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.benefit-title {
  color: var(--color-orange-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: center;
}

.benefit-description {
  color: var(--color-gray-dark);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.benefit-testimonial {
  margin-top: auto;
  padding: 1rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  color: var(--color-gray-dark);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.testimonial-author {
  color: var(--color-gray-medium);
  font-size: 0.8rem;
}

/* ========== 求人事例セクション ========== */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .jobs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.job-card {
  background-color: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.job-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.job-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.job-card:hover .job-image {
  transform: scale(1.05);
}

.job-content {
  padding: 1.25rem;
}

.job-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.job-badge {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-gray-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.job-badge-area {
  background-color: var(--color-orange-dark);
  color: var(--color-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.job-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--color-gray-dark);
  min-height: 3rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.job-category {
  color: var(--color-gray-medium);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.job-salary {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-orange-dark);
  text-align: right;
}

/* ========== 信頼セクション ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-orange-dark);
  margin-bottom: 0.5rem;
  font-family: 'Noto Serif JP', serif;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

.stat-label {
  color: var(--color-gray-dark);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .stat-label {
    font-size: 1rem;
  }
}

/* ========== CTAセクション ========== */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.cta-content {
  max-width: 36rem;
  order: 2;
}

@media (min-width: 768px) {
  .cta-content {
    order: 1;
  }
}

.cta-label {
  color: var(--color-orange-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.cta-title {
  font-size: 1.875rem;
  line-height: 1.3;
  color: var(--color-gray-dark);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-text {
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .cta-buttons {
    display: flex;
    flex-direction: row;
  }
}

.cta-note {
  color: var(--color-gray-medium);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.cta-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  order: 1;
}

@media (min-width: 768px) {
  .cta-image-wrapper {
    order: 2;
  }
}

.cta-image-container {
  max-width: 100%;
  width: 100%;
}

@media (min-width: 768px) {
  .cta-image-container {
    max-width: 32rem;
  }
}

.cta-image {
  width: 100%;
  height: auto;
}

/* ========== フッター ========== */
.footer {
  background-color: var(--color-cream);
  color: var(--color-gray-dark);
  padding: 3rem 0 0;
}

.footer-logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin: 0 auto 0.5rem;
}

.footer-tagline {
  color: var(--color-gray-dark);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }
}

.footer-link {
  color: var(--color-gray-dark);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-orange-dark);
  opacity: 1;
}

.footer-link-image {
  display: inline-block;
}

.line-button {
  height: 2.5rem;
  width: auto;
}

.footer-copyright {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--color-cream);
  margin: 0 -1rem;
}

@media (min-width: 768px) {
  .footer-copyright {
    margin: 0 calc(-50vw + 50%);
  }
}

.footer-copyright p {
  color: var(--color-gray-medium);
  font-size: 0.875rem;
}

/* ========== 固定CTAバー（モバイル） ========== */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  z-index: 50;
  transform: translateY(0);
  transition: transform var(--transition-normal);
}

.fixed-cta.hidden {
  transform: translateY(100%);
}

@media (min-width: 768px) {
  .fixed-cta {
    display: none;
  }
}

.fixed-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.fixed-cta-text {
  flex: 1;
}

.fixed-cta-title {
  font-weight: 600;
  color: var(--color-gray-dark);
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.fixed-cta-subtitle {
  color: var(--color-orange-dark);
  font-size: 0.75rem;
}

.fixed-cta-buttons {
  display: flex;
  gap: 0.5rem;
}

.fixed-cta-button {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.fixed-cta-button:hover {
  transform: scale(1.05);
  opacity: 1;
}

.fixed-cta-badge-image {
  height: 40px;
  width: auto;
  display: block;
}