/* 共通設定 */
.logo {
  display: flex;
  align-items: center;   /* ロゴと文字を縦方向中央に揃える */
  gap: 0.4em;            /* ロゴと文字の間隔 */
  font-size: 1.5em;
  font-weight: bold;
  color: #0077cc;
}

.logo img {
  height: 28px;   /* ロゴの高さを小さく調整 */
  width: auto;
  display: block;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9fafb;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0.5em 0;
}

/* コンテナ: 幅制限して中央寄せ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #0077cc;
}

header nav ul {
  display: flex;
  gap: 1.5em;
  list-style: none;
}

header .auth .btn {
  margin-left: 1em;
}

.btn {
  padding: 0.5em 1.2em;
  border-radius: 6px;
  border: 1px solid #0077cc;
  color: #0077cc;
  background: white;
  transition: 0.3s;
}

.btn:hover {
  background: #0077cc;
  color: white;
}

.btn.primary {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.btn.primary:hover {
  background: #218838;
}

/* ヒーロー */
.hero {
  background: linear-gradient(90deg, #e8f4ff, #f4fff8);
  padding: 3em 0;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  padding: 1em;
}

.hero-img {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

/* 機能 */
.features {
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 2em 0;
  background: white;
}

.feature {
  text-align: center;
  flex: 1;
  max-width: 250px;
}

.feature img {
  width: 50px;
  margin-bottom: 0.5em;
}

/* 人材カード */
.students {
  padding: 2em 0;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 250px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 1em;
}

.dashboard {
  display: flex;
  justify-content: center;   /* セクション全体を中央寄せ */
  align-items: flex-start;
  gap: 2em;                  /* 左右の間隔 */
  margin: 2em auto;          /* 中央寄せ */
  max-width: 1200px;         /* セクション全体の最大幅 */
}

.dashboard-left,
.dashboard-right {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;   /* ← 縦方向に並べる */
  align-items: center;      /* 中央寄せ */
}

.caption {
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  color: #333;
  writing-mode: horizontal-tb;  /* ← 強制的に横書きにする */
}

.dashboard img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* ステップ */
.steps {
  background: #f0f9ff;
  padding: 2em 0;
  text-align: center;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}

.step {
  background: white;
  border: 1px solid #0077cc;
  padding: 1em 2em;
  border-radius: 6px;
  font-weight: bold;
}

/* フッター */
footer {
  background: #0077cc;
  color: white;
  text-align: center;
  padding: 1.5em;
  margin-top: 2em;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .step-list {
    flex-direction: column;
  }
}

.faq-item {
  margin: 1.5em 0;
  padding: 1em;
  border-left: 4px solid #0077cc;
  background: #f9f9f9;
  border-radius: 4px;
}
.faq-item h3 {
  margin-top: 0;
  color: #0077cc;
}

.map {
  margin: 2em 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.company-info .row {
  display: flex;
}

.company-info .label {
  width: 100px;   /* ラベル部分を固定幅にする */
  font-weight: bold;
}

.company-info .value {
  flex: 1;        /* 内容部分を自動的に広げる */
}

#features .features-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
#features .feature {
  width: 25%;
  padding: 0 15px;
}

/* ================================
スマホ対応 (max-width: 768px)
================================ */
@media (max-width: 768px) {

  /* コンテナは左右に余白をつけて中央寄せ */
  .container {
    width: 100%;
    padding: 0 16px;
  }

  /* ヘッダーのレイアウト修正 */
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header .logo {
    margin-bottom: 10px;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 0;
  }

  /* ログイン・登録ボタンを縦並びにしてはみ出し防止 */
  header .auth {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  header .auth .btn {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
  }

  /* HEROセクション：画像と文字を縦並び */
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 22px;
    line-height: 1.4;
  }

  .hero-text p {
    font-size: 15px;
  }

  .hero img {
    width: 90%;
    height: auto;
    margin-top: 15px;
  }

  .hero .btn.primary {
    width: 100%;
    margin-top: 16px;
    padding: 14px 0;
    font-size: 16px;
  }

  /* 機能ハイライト（アイコンの上下配置） */
  .features {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .feature {
    width: 100%;
    text-align: center;
  }

  /* ダッシュボード画像をスマホ幅に */
  .dashboard {
    flex-direction: column;
    gap: 30px;
  }

  .dashboard img {
    width: 100%;
    height: auto;
  }

  /* ステップを縦に並べる */
  .step-list {
    flex-direction: column;
    gap: 10px;
  }

  .step {
    width: 100%;
    padding: 12px;
  }

}

/* ボタンの親（2つ並んでいる部分） */
.hero-buttons,
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ボタンそのもの */
.btn {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Primary ボタン */
.btn.primary {
  background: #2563eb;
  color: white;
}

/* スマホでは縦並びにする */
@media (max-width: 600px) {
  .hero-buttons,
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}
/* ===== 候補者サンプルセクション ===== */

.candidate-section {
  padding: 3rem 1rem;
  background: #f9fafb;
}

.candidate-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.candidate-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.candidate-section-lead {
  text-align: center;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* カード本体 */

.candidate-card {
  display: flex !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  align-items: flex-start !important;
  gap: 0.9rem !important;
}

.candidate-photo {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}

.candidate-main {
  flex: 1;
  min-width: 0;
}

.candidate-basic {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.candidate-age {
  font-weight: 600;
  font-size: 0.95rem;
}

.candidate-job {
  font-size: 0.9rem;
  color: #4b5563;
}

.candidate-qual {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.candidate-eval {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #374151;
}

/* スマホ調整 */

@media (max-width: 640px) {
  .candidate-card {
    padding: 0.85rem;
  }
  .candidate-section {
    padding: 2.5rem 0.75rem;
  }
}
