@charset "UTF-8";

/* ヒーロー */
.hero {
  background: url(../images/mv/apply_hero.webp) no-repeat center;
  background-size: cover;
}

.hero hgroup {
  align-items: center;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 80%;
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* フロー */
.apply-flow {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.flow-step {
  margin-bottom: 2rem;
}

.flow-step-title {
  font-size: 1.5rem;
  color: #005b96;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.flow-separator {
  border: none;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
}

.flow-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.flow-image {
  width: 250px; /* 画像ボックス幅を固定 */
  flex-shrink: 0;
}

.flow-image img {
  width: 100%;
  height: 150px; /* 高さ統一 */
  object-fit: contain;
}

.flow-text {
  flex: 1;
}

@media (max-width: 768px) {
  .flow-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-image {
    width: 100%; /* スマホでは幅いっぱい */
  }

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

/* 持ち物・試験日程・選考内容 セクション */
.apply-details {
  background: #f9f9f9;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.apply-details h3 {
  font-size: 1.4rem;
  color: #347188;
  margin-bottom: 1rem;
  border-bottom: 2px solid #4a8ca4;
  padding-bottom: 0.5rem;
}

.apply-details p {
  margin: 0.5rem 0;
  line-height: 1.8;
}

/* FAQ セクション */
.faq-section {
  background: #f9f9f9;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-section h3 {
  font-size: 1.4rem;
  color: #347188;
  margin-bottom: 1rem;
  border-bottom: 2px solid #4a8ca4;
  padding-bottom: 0.5rem;
}

.faq-section ul {
  list-style: none;
  padding: 0;
}

.faq-section li {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #ccc;
}

.faq-section li:last-child {
  border-bottom: none;
}

.apply-cta:has(h3) {
  padding: .75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem 0;
  margin: 1.5rem 0;
  background: #f5f5f5;
  a {
    align-self: stretch;
    text-align: center;
  }
}