/* ============================================
   page-recruit.css
   採用トップ（page-recruit.php）専用スタイル
   ============================================ */

/* ========================================
   ヒーロー
   ======================================== */

.recruit-hero {
  background-color: #fff;
  overflow: hidden;
  padding: 0 !important;
}

.recruit-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.recruit-hero-left {
  display: flex;
  align-items: center;
  gap: clamp(30px, 8vw, 100px);
}

.hero-deco-images {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 7vw, 100px);
  flex-shrink: 0;
}

.hero-deco-img {
  width: clamp(40px, 15vw, 207px);
  height: auto;
  display: block;
}

.recruit-hero-catch {
  display: flex;
  gap: clamp(8px, 1.5vw, 16px);
  flex-direction: row-reverse;
  margin-left: auto;
}

.catch-line {
  font-size: clamp(26px, 2.0vw, 44px);
  font-weight: bold;
  line-height: 1.4;
  color: #222;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

.recruit-hero-right {
  flex: 1;
  min-width: 0;
}

.recruit-hero-photo {
  width: 90%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-left: auto;
}

/* ========================================
   フィロソフィー
   ======================================== */

.recruit-philosophy {
  padding: 80px 0;
  background-color: #fff;
}

.recruit-philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-heading {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.8;
  margin-bottom: 28px;
  color: #222;
}

.philosophy-body {
  font-size: 14px;
  color: #555;
  line-height: 2;
}

.philosophy-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
}

.philosophy-diagram-img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ========================================
   ナビカード
   ======================================== */

.recruit-nav {
  padding: 60px 0 80px;
  background-color: #fff;
}

.recruit-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.recruit-nav-card {
  position: relative;
  display: block;
  width: calc(33.333% - 28px);
  max-width: 300px;
  min-width: 0;
  text-decoration: none;
}

.recruit-nav-img-wrap {
  overflow: visible;
}

.recruit-nav-photo {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.recruit-nav-card:hover .recruit-nav-photo {
  transform: scale(1.05);
}

.recruit-nav-label {
  position: absolute;
  bottom: -9px;
  right: -1px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.5;
}

.recruit-nav-label--orange { background-color: #f57960; }
.recruit-nav-label--green  { background-color: #66bb6a; }
.recruit-nav-label--teal   { background-color: #26a69a; }

/* ========================================
   先生の1日バナー
   ======================================== */

.teacher-banner {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.teacher-banner-inner {
  max-width: 100%;
  margin: 0 auto;
}

.teacher-banner-photo-wrap {
  width: 100%;
}

.teacher-banner-photo {
  height: auto;
  margin: auto;
  display: block;
}

/* ========================================
   エントリーの流れ
   ======================================== */

.recruit-flow {
  padding: 80px 0;
}

.recruit-flow-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.recruit-flow-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 50px;
  color: #222;
}

.recruit-flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.flow-step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flow-step-icon--orange {
  background-color: #f57960;
}

.flow-step-img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.flow-step-label {
  font-size: 13px;
  font-weight: bold;
  color: #444;
}

.flow-arrow {
  font-size: 32px;
  color: #bbb;
  line-height: 1;
  margin-top: -28px;
  flex-shrink: 0;
}

/* ========================================
   よくある質問
   ======================================== */

.recruit-faq {
  background-color: #fafaee;
  padding: 80px 0 100px;
}

.recruit-faq-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}

.faq-box {
  background-color: #fff;
  border-radius: 20px;
  padding: 48px 48px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.recruit-faq-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

.faq-list {
  border-top: 1px solid #eee;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  color: #333;
  gap: 20px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-q-text {
  flex: 1;
}

.faq-icon {
  font-size: 24px;
  color: #f57960;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  font-weight: 300;
}

details[open] > .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
}

/* ========================================
   お知らせ
   ======================================== */

.news {
  padding: 80px 0;
  background-color: #fff;
}

.news-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 60px;
}

.news-left {
  width: 180px;
  flex-shrink: 0;
}

.news-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #222;
}

.news-btn {
  display: inline-block;
  background: #f57960;
  color: #fff;
  padding: 10px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
}

.news-right {
  flex: 1;
  border-top: 1px solid #ddd;
}

.news-item {
  display: flex;
  gap: 30px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.news-date {
  width: 110px;
  flex-shrink: 0;
  font-size: 14px;
  color: #999;
}

.news-text {
  font-size: 14px;
  color: #333;
}

.news-text a {
  color: #333;
  text-decoration: none;
}

.news-text a:hover {
  text-decoration: underline;
}

.news-empty {
  padding: 20px 0;
  font-size: 14px;
  color: #999;
}

/* ========================================
   エントリーCTA
   ======================================== */

.entry {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-deco {
  flex: 1 1 0;
  min-width: 0;
  display: block;
}

.entry-deco img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 16px;
}

.entry-text {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
  line-height: 1.7;
  color: #222;
}

.entry-btn {
  display: inline-block;
  background: #f57960;
  color: #fff;
  padding: 14px 60px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

/* ========================================
   先生の1日 モーダル
   ======================================== */

.teacher-day-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.teacher-day-modal-overlay.is-open {
  display: flex;
}

.teacher-day-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.teacher-day-modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  flex-shrink: 0;
}

.teacher-day-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.teacher-day-modal-close {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.teacher-day-modal-close:hover {
  background: rgba(0, 0, 0, 0.3);
}

.teacher-day-modal-close::before,
.teacher-day-modal-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.teacher-day-modal-close::before { transform: rotate(45deg); }
.teacher-day-modal-close::after  { transform: rotate(-45deg); }

.teacher-day-modal .flow-background {
  border-radius: 0;
  background-color: #fff;
}

/* ========================================
   レスポンシブ (max-width: 960px) — ナビカードのみ
   ======================================== */

@media screen and (max-width: 960px) {
  .recruit-nav-inner {
    gap: 20px;
    padding: 0 20px;
  }
}

/* ========================================
   レスポンシブ (max-width: 767px) — ヒーロー SP 非表示
   ======================================== */

@media screen and (max-width: 767px) {
  .hero-deco-images,
  .recruit-hero-catch {
    display: none;
  }

  .recruit-hero-inner {
    padding: 0;
    gap: 0;
  }

  .recruit-hero-right {
    width: 100%;
  }

  .recruit-hero-photo {
    border-radius: 0;
    width: 100%;
    display: block;
  }
}

/* ========================================
   レスポンシブ (max-width: 768px)
   ======================================== */

@media screen and (max-width: 768px) {

  /* ヒーロー */
  .recruit-hero-inner {
    flex-direction: column;
    gap: 16px;
  }

  /* フィロソフィー */
  .recruit-philosophy {
    padding: 30px 0;
  }

  .recruit-philosophy-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 40px;
  }

  .philosophy-heading {
    font-size: 27px;
    text-align: center;
  }

  .philosophy-diagram-img {
    max-width: 300px;
  }

  /* ナビカード */
  .recruit-nav {
    padding: 40px 0 60px;
  }

  .recruit-nav-inner {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 60px;
  }

  .recruit-nav-card {
    width: 260px;
    max-width: 260px;
  }

  .recruit-nav-label {
    width: 116px;
    height: 116px;
    font-size: 14px;
  }

  /* エントリーの流れ */
  .recruit-flow {
    padding: 60px 0;
  }

  .recruit-flow-inner {
    padding: 0 20px;
  }

  .recruit-flow-title {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .recruit-flow-steps {
    flex-direction: column;
    gap: 8px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin-top: 0;
    font-size: 24px;
  }

  /* FAQ */
  .recruit-faq {
    padding: 60px 0 80px;
  }

  .recruit-faq-inner {
    padding: 0 20px;
  }

  .faq-box {
    padding: 32px 24px 20px;
  }

  .recruit-faq-title {
    font-size: 22px;
  }

  .faq-question {
    font-size: 14px;
    padding: 16px 0;
  }

  /* お知らせ */
  .news {
    padding: 60px 0;
  }

  .news-inner {
    flex-direction: column;
    padding: 0 20px;
    gap: 30px;
  }

  .news-left {
    width: 100%;
    text-align: center;
  }

  .news-item {
    flex-direction: column;
    gap: 4px;
  }

  .news-date {
    width: 100%;
  }

  /* エントリーCTA */
  .entry {
    padding: 40px 0;
  }

  .entry-deco {
    max-width: 100px;
  }

  .entry-content {
    padding: 0 8px;
  }

  .entry-text {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .entry-btn {
    padding: 12px 32px;
    font-size: 14px;
  }

  .entry-image {
    height: 120px;
  }
}
