* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center; /* 水平方向に中央配置 */ 
    
}

header {
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    text-align: right;
}

nav ul li {
    margin-left: 1rem;    
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

main {
    width: 100%;                /* メインコンテンツを幅100%に設定 */
    display: flex;              /* フレックスボックスを使用 */
    flex-direction: column;     /* 垂直方向に要素を配置 */
    align-items: center;        /* 水平方向に中央配置 */
}

.content {    
    max-width: 1000px; /* セクションの幅 */
    width: 100%;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* 軽い影をつけて立体感を演出 */
    border-radius: 8px;
    text-align: center;
}

.content-form {    
    max-width: 600px; /* セクションの幅 */
    width: 100%;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* 軽い影をつけて立体感を演出 */
    border-radius: 8px;
    background-color: #f9f9f9; /* 背景色（お好みで変更） */   
    text-align: center;
}

.hero {
    background-image: url('image/recruitment-6838250_1920.png'); /* ここは適当な背景画像を指定してください */
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-sub {
    background-image: url('image/recruitment-6838250_1920.png'); /* ここは適当な背景画像を指定してください */
    background-size: cover;
    background-position: center;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.hero-text h1 {
    
    font-size: 2.5rem;
    color: #740909;
    margin-bottom: 1rem;
    background-color: #fff; 
    padding: 0.5rem; /* 背景が文字を囲むように余白を追加 */
}

.hero-text p {
    
    font-size: 20px;
    color: #740909;
    background-color: #fff; 
    padding: 0.5rem; /* 背景が文字を囲むように余白を追加 */
}






.exam-options a {
    display: inline-block;
    background-color: #ff9900;    
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    margin: 1rem;
    border-radius: 5px;
    font-size: 1.8rem;
    transition: background-color 0.3s;
}

.exam-options a:hover {
    background-color: #e68a00;
    transform: translateY(-4px);
}

footer {
    background-color: #232f3e;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

footer p {
    
    color: #fff;
    margin-top: auto;
}

/* 見出しの装飾 */
h2 {
    font-family: 'Arial', sans-serif;
    font-size: 1.8em;
    color: #740909;    
    border-bottom: 3px solid #f09618;
    padding-bottom: 5px;
    margin-bottom: 20px;
}


/* リストの装飾 */
ul.main {
    list-style-type: none; /* デフォルトの箇条書きマークを削除 */
    padding: 0;
}

ul.main li {
    background: #fbfbe9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    text-align: left;
}

ul.main li:hover {
    
    background: #f8f7cc;
}



/* リスト内の強調テキスト（太字） */
ul.main li strong {
    font-weight: bold;
    color: #0056b3;
    
}

ul.main2 {
    list-style: none; /* デフォルトのリストマークを削除 */
    font-size: 20px; /* フォントサイズを20ピクセルに設定 */
    padding: 0; /* 不要な余白を削除 */
}

ul.main2 li {
    display: flex; /* アイテムを横並びに配置 */
    align-items: center; /* アイコンと文字を縦中央揃え */
    gap: 5px; /* 星と文字の間にスペースを設定 */
}

ul.main2 li::before {
    content: '★'; /* 星マークを設定 */
    color: gold; /* 星の色をゴールドに設定 */
    font-size: 1em; /* 親要素のフォントサイズに合わせる */
}


label {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 1rem;
    display: block;
    text-align: left;
}
input[type="email"],
input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fafafa;
}
button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    color: #ffffff;
    background-color: #ff9900;  
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #e68a00;
}
p {
    margin-top: 1.5rem;
    
    color: #000;
}
a {
    color: #4a90e2;
    text-decoration: none;
}

.red-bold {
    color: red;         /* 赤色 */
    font-weight: bold;  /* 太字 */
}

/* リストアイテム全体 */
.icon-item {
    display: flex; /* 横並び配置 */
    align-items: flex-start; /* 上部揃え */
    margin-bottom: 20px; /* 下部余白 */
  }
  
  /* アイコンのスタイル */
  .icon {
    width: 100px; /* 幅を固定 */
    height: 100px; /* 高さを固定 */
    margin-right: 15px; /* アイコンとテキストの間に余白 */
  }
  
  /* テキスト全体のスタイル */
  .text-content {
    max-width: 600px; /* テキストの最大幅を指定 */
  }
  
  /* タイトルのスタイル */
  .title {
    font-size: 28px; /* タイトルの文字サイズを大きく */
    font-weight: bold; /* 太字 */
    margin-bottom: 8px; /* タイトルと説明文の間に余白 */
  }
  
  /* 説明文のスタイル */
  .text-content p {
    font-size: 20px; /* 説明文の文字サイズ */
    line-height: 1.6; /* 行間を少し広げる */
    margin: 0; /* デフォルトの余白を削除 */
  }

  p {
    font-size: 20px; /* お好みのサイズに調整 */
    }


.card-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6列に設定 */
    gap: 20px; /* カード間の余白 */
    margin: 20px 0; /* 上下の余白 */
    padding: 10px; /* 全体の余白 */
}

.card-container3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列に設定 */
    gap: 20px; /* カード間の余白 */
    margin: 20px 0; /* 上下の余白 */
    padding: 10px; /* 全体の余白 */
}

.card {
    background-color: #f9f9f9; /* 背景色 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 軽い影 */
    border-radius: 8px; /* 角丸 */
    overflow: hidden; /* 画像がカード外に飛び出ないように */
    text-align: center; /* 中央寄せ */
    padding: 10px; /* 内側の余白 */
}

.card img {
    width: 100%; /* カード幅いっぱいに表示 */
    height: auto; /* アスペクト比を維持 */
}

.card-title {
    font-size: 1.2rem; /* タイトルの文字サイズ */
    margin: 10px 0; /* タイトルと説明文の間の余白 */
    color: #333;
}

.card-description {
    font-size: 0.9rem; /* 説明文の文字サイズ */
    color: #666;
    margin: 5px 0; /* 上下の余白 */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
  }
  
  thead {
    background-color: #ff7f00;
    color: white;
    text-align: left;
  }
  
  thead th {
    padding: 12px;
  }
  
  tbody tr:nth-child(even) {
    background-color: #ffe5cc;
  }
  
  tbody tr:hover {
    background-color: #ffaf66;
    transition: 0.3s;
  }
  
  tbody td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
  }
  
  @media (max-width: 768px) {
    table {
      font-size: 14px;
    }
    thead {
      display: none;
    }
    tbody tr {
      display: block;
      margin-bottom: 10px;
      border: 1px solid #ff7f00;
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    tbody td {
      display: block;
      text-align: right;
      padding-left: 50%;
      position: relative;
    }
    tbody td::before {
      content: attr(data-label);
      position: absolute;
      left: 10px;
      font-weight: bold;
      color: #ff7f00;
      text-align: left;
    }
  }
  
