/* =====================================================
   index.css — トップページ専用スタイル
   style.css の後に読み込んでください
===================================================== */

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  /* border-radius: 0 0 50% 50% / 0 0 40px 40px; */
}
@media (min-width: 768px) {
  .hero { height: 400px; /* border-radius: 0 0 50% 50% / 0 0 80px 80px; */ }
}
@media (min-width: 992px) {
  .hero { height: max(40vh,440px); /* border-radius: 0 0 50% 50% / 0 0 120px 120px; */ }
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #f0f7ef;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
  animation: heroZoomIn 5s linear forwards;
}
.hero-slide.leaving {
  opacity: 0;
  transform: scale(1.039);
  z-index: 0;
  transition: opacity 1.5s ease-in-out;
  animation: heroZoomIn2 5s linear forwards;
}

@keyframes heroZoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.039);
  }
}

@keyframes heroZoomIn2 {
  from {
    transform: scale(1.039);
  }
  to {
    transform: scale(1.06);
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 5;
}
.hero-text {
  color: var(--color-green);
  font-size: clamp(18px, 3vw, 35px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.85);
  padding: 15px 35px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.hero-text em {
  font-style: normal;
  color: var(--color-orange);
  font-size: 1.2em;
}

/* =====================================================
   RECRUIT BANNER
===================================================== */
.recruit-bar {
  padding: 0 16px;
  margin-top: -30px; /* ヒーローのカーブに少し重ねる */
  position: relative;
  z-index: 10;
}
.recruit-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 3px solid var(--color-orange);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(244, 162, 97, 0.15);
  max-width: 900px;
  margin: 0 auto;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
}
.recruit-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(244, 162, 97, 0.25);
  border-color: var(--color-green);
}
.recruit-inner:hover .recruit-label {
  background: var(--color-green);
}
.recruit-inner:hover .recruit-arrow {
  color: var(--color-green);
  transform: translateX(4px);
}
.recruit-label {
  background: var(--color-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.3s ease;
}
.recruit-text {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}
.recruit-arrow {
  color: var(--color-orange);
  font-size: 24px;
  font-weight: 900;
  transition: all 0.3s ease;
  display: inline-block;
}

@media (max-width: 991px) {
  .recruit-inner {
    flex-direction: column;
    border-radius: var(--radius-md);
    text-align: center;
    padding: 16px 20px;
  }
  .recruit-arrow{
    display: none;
  }
}
/* =====================================================
   SECTION HEADING（トップページ用）
===================================================== */
.section-heading {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 48px;
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.section-heading::before,
.section-heading::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--color-orange);
  border-radius: 50%;
}
@media (min-width: 768px) {
  .section-heading { font-size: 36px; margin-bottom: 64px; }
}

/* =====================================================
   目的から探す
===================================================== */
.purpose-section {
  padding: 64px 0 80px;
  background: var(--color-bg-base);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 576px) { .purpose-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .purpose-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.purpose-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(106, 183, 90, 0.08);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.purpose-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-green);
  box-shadow: 0 12px 32px rgba(106, 183, 90, 0.15);
}

.purpose-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-section);
  transition: background 0.3s ease;
}
.purpose-card:hover .purpose-icon {
  background: var(--color-green);
}

.purpose-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-green);
  transition: fill 0.3s;
}
.purpose-card:hover .purpose-icon svg {
  fill: #fff;
}

.purpose-label {
  flex: 1;
  line-height: 1.4;
}
.purpose-arrow {
  display: block;
  font-size: 20px;
  color: var(--color-border);
  transition: color 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.purpose-card:hover .purpose-arrow {
  color: var(--color-green);
  transform: translateX(3px);
}

/* =====================================================
   新着情報 (News)
===================================================== */
.news-section {
  padding: 100px 0;
  background: var(--color-bg-section);
  /* border-radius: 80px; */
  margin: 0;
}
@media (min-width: 768px) {
  .news-section { padding: 120px 0; /* border-radius: 120px; */ }
}

/* PICK UP */
.pickup-box {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 64px;
  box-shadow: 0 16px 48px rgba(106, 183, 90, 0.1);
  border: 4px solid var(--color-orange);
}
.pickup-header {
  background: var(--color-orange);
  padding: 16px 32px;
  text-align: center;
}
.pickup-header h3 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
}
.pickup-header h3::before { content: none; }

.pickup-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 2px dashed rgba(244, 162, 97, 0.3);
}
.pickup-item:last-child { border-bottom: none; }
.pickup-item:hover { background: #fffcf9; }
@media (min-width: 576px) {
  .pickup-item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
  }
  .pickup-item:hover { padding-left: 40px; }
}

.pickup-item .pickup-item-arrow {
  margin-left: auto;
  color: var(--color-orange);
  font-size: 24px;
  font-weight: 900;
}

.pickup-date {
  color: var(--color-text-light);
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
}
.pickup-title { flex: 1; min-width: 0; font-weight: 700; font-size: 17px; }

/* Badges */
.pickup-badge {
  font-size: 12px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid currentColor;
  background: #fff;
}
.badge-notice  { color: var(--color-red); }
.badge-info    { color: #0288D1; }
.badge-magazine{ color: var(--color-green); }
.badge-job     { color: #8E24AA; }
.badge-part,
.badge-job-part { color: var(--color-orange); }
.badge-regular,
.badge-full,
.badge-job-full { color: var(--color-green); }

/* Tabs */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}
.tab-btn {
  background: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-light);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}
.tab-btn:hover { color: var(--color-green); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.tab-btn.active {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(106, 183, 90, 0.4);
}

/* News list */
.news-list {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  box-shadow: 0 12px 32px rgba(106, 183, 90, 0.15);
}
.news-list-wrapper{
  max-height: 400px;
  overflow-y: auto;
}
.news-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border-bottom: 2px solid var(--color-bg-section);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--color-bg-section); border-radius: 16px; }
@media (min-width: 576px) {
  .news-item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 24px;
  }
}

.news-date {
  color: var(--color-text-light);
  font-family: monospace;
  font-weight: 700;
  font-size: 15px;
}
.news-title { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; }

/* =====================================================
   刊行物セクション
===================================================== */
.publications-section {
  padding: 100px 0;
  background: var(--color-bg-base);
}

.publications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .publications-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
@media (min-width: 992px) {
  .publications-grid {
    gap: 32px;
  }
}

.pub-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(106, 183, 90, 0.15);
  border: 4px solid var(--color-bg-section);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pub-card:hover { transform: translateY(-10px) rotate(-1deg); border-color: var(--color-green); }

.pub-img {
  width: 100%;
  aspect-ratio: 1.414;
  object-fit: cover;
  background: var(--color-bg-section);
  border-bottom: 4px solid var(--color-bg-section);
}
.pub-card:hover .pub-img { border-color: var(--color-green); }

.pub-info {
  padding: 24px;
  text-align: center;
}
.pub-title {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-green);
}
.pub-link {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 700;
  display: inline-block;
  background: var(--color-bg-section);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
