@charset "utf-8";

/* ============================================================================
 * File: assets/css/top.css
 * Role: トップページ専用スタイル（ヒーロー・セクション・カードUI）
 * ========================================================================== */

/* =====================================================
 * 1. ヒーローセクション
 * ===================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: url("../../assets/img/hero.jpg") center / cover no-repeat;
}

/* オーバーレイ（画像の上に薄い暗幕） */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none !important;
  z-index: 1;
}

/* キャッチコピー */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 40px 80px;
  max-width: 1200px;
}

.hero__catch-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 0, 0, 0.4);
}

.hero__catch-main {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 0, 0, 0.4);
}

.hero__catch-accent {
  color: var(--theme-accent);
  font-size: 1.2em;
  display: inline-block; /* インラインブロックにして変形可能に */
}

/* アニメーション定義 */
@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.text-anim {
  opacity: 0;
  animation: heroTextReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.5s;
}

.delay-3 {
  animation-delay: 0.9s; /* 0.5s + 0.4s */
}

.hero-line {
  display: block;
}

/* =====================================================
 * 2. 共通セクション
 * ===================================================== */

.section {
  padding: 80px 0;
}

.section--message {
  background: var(--color-white);
}

.section--jobs {
  background: var(--color-bg-light);
}

.section--interview {
  background: var(--color-white);
}

/* --- セクションタイトル --- */
.section__title {
  text-align: center;
  margin-bottom: 40px;
}

.section__title-en {
  display: block;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-accent);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.section__title-jp {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

/* --- セクションリード文 --- */
.section__lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

/* --- メッセージ本文 --- */
.message__text {
  text-align: center;
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--color-text);
}

/* --- プレースホルダー（データなし） --- */
.jobs-placeholder,
.interview-placeholder {
  text-align: center;
  padding: 60px 20px;
  background: var(--color-white);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* --- セクション背景（追加分） --- */
.section--blog {
  background: var(--color-bg-light);
}

.section--faq {
  background: var(--color-white);
}

.section--brands {
  background: var(--color-bg-light);
}

/* =====================================================
 * 3. 求人カード
 * ===================================================== */

.job-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.job-card {
  display: block; /* 追加 */
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.job-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--theme-bg-dark);
}

.job-card__thumb--noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme-bg-dark), #2a3f5f);
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.job-card__body {
  padding: 20px;
}

.job-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.job-card__tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--theme-accent);
  color: var(--color-white);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.job-card__location {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.job-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card__salary {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--theme-accent);
  margin-bottom: 4px;
}

.job-card__occupation {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* =====================================================
 * 4. インタビューカード
 * ===================================================== */

.interview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.interview-card {
  display: block;
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
}

.interview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.interview-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--theme-bg-dark);
}

.interview-card__thumb--noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme-bg-dark), #2a3f5f);
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.interview-card__body {
  padding: 20px;
}

.interview-card__profile {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.interview-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.interview-card__position {
  font-size: 0.75rem;
  color: var(--color-text-light);
  background: var(--color-bg-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.interview-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.interview-card__entry {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* =====================================================
 * 5. ブログカード
 * ===================================================== */

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: block; /* 追加 */
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__thumb-dummy {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--theme-bg-dark), #2a3f5f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.blog-card__body {
  padding: 20px;
}

.blog-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--theme-accent);
  background: rgba(var(--theme-accent-rgb), 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.blog-card__date {
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  display: block;
}

.blog-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.5;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
 * 6. FAQアコーディオン
 * ===================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 50px 20px 0; /* 右側にスペース */
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  list-style: none;
  transition: color var(--transition-base);
  position: relative; /* アイコン用 */
}

/* 開閉アイコン */
.faq-item__question::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--theme-accent);
  font-weight: 400;
  transition: transform 0.3s;
}

.faq-item.is-open .faq-item__question::after {
  transform: translateY(-50%) rotate(45deg);
}

/* デフォルトの三角アイコンを消す */
.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question:hover {
  color: var(--theme-accent);
}

.faq-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-accent);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
}

.faq-item__icon--a {
  background: var(--color-bg-light);
  color: var(--theme-accent);
}

.faq-item__answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-out;
}

.faq-item__answer-inner {
  display: flex;
  gap: 16px;
  padding: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* =====================================================
 * 7. 「もっと見る」ボタン
 * ===================================================== */

.section__more {
  text-align: center;
  margin-top: 40px;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  border: 2px solid var(--theme-accent);
  border-radius: 35px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-accent);
  background: transparent;
  transition: all var(--transition-base);
  letter-spacing: 0.05em;
}

.btn-more:hover {
  background: var(--theme-accent);
  color: var(--color-white);
}

.btn-more__arrow {
  transition: transform var(--transition-base);
}

.btn-more:hover .btn-more__arrow {
  transform: translateX(4px);
}

/* =====================================================
 * 8. CTAセクション（お問い合わせ導線）
 * ===================================================== */

.section--cta {
  background: linear-gradient(135deg, var(--theme-bg-dark) 0%, #1e293b 100%);
  padding: 80px 0;
}

.cta-box {
  text-align: center;
  color: var(--color-white);
}

.cta-box__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.cta-box__text {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 30px;
}

.cta-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 50px;
  background: var(--theme-accent);
  color: var(--color-white);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(var(--theme-accent-rgb), 0.4);
}

.cta-box__btn:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--theme-accent-rgb), 0.5);
}

/* =====================================================
 * 9. レスポンシブ（768px以下）
 * ===================================================== */

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    align-items: flex-end;
    background-position: center;
  }

  .hero__content {
    padding: 0 24px 130px; /* 下部バー考慮で大きく取る */
  }

  .hero__catch-sub {
    font-size: 1rem;
  }

  .hero__catch-main {
    font-size: 1.8rem;
  }

  .section {
    padding: 60px 0;
  }

  .section__title-en {
    font-size: 1.6rem;
  }

  .message__text {
    font-size: 0.95rem;
    line-height: 2;
  }

  .message__text br {
    display: none;
  }

  /* 求人カード：1列（PC版と同じカードデザイン） */
  .job-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .job-card {
    display: block;
  }

  .job-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .job-card__body {
    padding: 16px 20px;
  }

  .job-card__meta {
    margin-bottom: 8px;
  }

  /* インタビューカード：1列 */
  .interview-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .interview-card {
    display: flex;
    flex-direction: row;
  }

  .interview-card__thumb {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1;
  }

  .interview-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* ブログカード：1列化 */
  .blog-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card {
    display: flex;
    flex-direction: row;
  }

  .blog-card__thumb {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1;
  }

  .blog-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .blog-card__excerpt {
    display: none;
  }

  /* ブランド一覧ではスマホでも説明文を表示する */
  #brands .blog-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    font-size: 0.75rem;
  }

  /* FAQ */
  .faq-item__question {
    font-size: 0.88rem;
    gap: 12px;
  }

  /* CTA */
  .cta-box__title {
    font-size: 1.3rem;
  }

  .cta-box__text br {
    display: none;
  }

  .section--cta {
    padding: 60px 0;
  }
}

/* タブレット中間サイズ */
@media (min-width: 769px) and (max-width: 1024px) {
  .job-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .interview-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
