/******************************

 service.html用のスタイル

******************************/

/* 全体共通の余白調整 */
.service-section {
  padding-inline: 20px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-section-maintitle {
  margin: 30px 0;
  /* 画面幅に応じてフォントサイズを滑らかに調整 */
  font-size: clamp(26px, 1rem + 3vw, 34px);
  letter-spacing: 0.03em;
  color: #0fa5b2;
}

/* セクション見出し */
.service-section-title {
  font-size: 20px;
  font-weight: bold;
  color: #585453;
}

/* 1. ミッションセクション */
.mission-box {
  max-width: 630px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}
.mission-title {
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN W3", sans-serif;
  color: #0099ab;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 30px;
}
.mission-text {
  max-width: 860px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}
.scheme-img {
  max-width: 80%;
  height: auto;
}

/* 3. 取り扱い媒体セクション */
.media-box {
  background-color: #e2eff1;
  padding: 40px 20px;
}
.media-lead {
  text-align: center;
  margin-top: 16px;
}

.media-lists {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.media-list-wrapper {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px 12px;
  margin-top: 20px;
}
.media-list {
  text-align: left;
}

.media-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}
.media-list li::before {
  content: "\30FB"; /* 文字化け対策としてエスケープシーケンスに変更 */
  position: absolute;
  left: 0;
}
.media-list li span {
}
/* 注意書きとアイコンを横並びにするための親要素 */
.media-notes {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* アイコンを下のラインに合わせる */
}

/* 左側のテキストエリア */
.notes-text {
  width: 80%; /* テキストがアイコンを押し出さないように幅を制限 */
}

.notes-text p.kome {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  text-align: left;
  margin: 0 0 5px 0; /* 下に少しだけ余白 */
  text-indent: -1em; /* 既存のインデント流用 */
  padding-left: 1em; /* ※マークのズレ防止 */
}

.notes-text p.kome:last-child {
  margin-bottom: 0;
}

/* 右側のアイコンエリア */
.notes-icon {
  width: 112px;
  text-align: right;
}

.notes-icon img {
  max-width: 112px;
  width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: bottom;
}

/* ==========================================================================
   6. ウィットが提供するサービス セクション (.service-list)
   ========================================================================== */

/* セクション全体の背景と余白（スマホのデフォルト） */
.service-list {
  background-color: #f2f2f2;
  padding: 40px 20px;
  border-radius: 8px;
  box-sizing: border-box;
}

/* グリッドレイアウト：スマホサイズでは1列（縦並び） */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

/* 白いサービスカードの基本設定 */
.service-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px 25px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* カードの見出し */
.service-card h4 {
  color: #0099ab;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* カードの説明文 */
.service-card p {
  margin-bottom: 20px;
  flex-grow: 1; /* テキスト量がバラバラでもボタンの位置を下辺に揃える */
}

/* 詳細を見る リンクボタン */
.btn-detail {
  color: #0099ab !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s;
}

/* 外部リンク（別窓）アイコンのSVG再現 */
.btn-detail::after {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099ab' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.btn-detail:hover {
  opacity: 0.7;
}

/* 右下のイラストエリア（スマホ） */
.service-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

.service-illustration img {
  max-width: 50%; /* スマホは少し控えめなサイズに調整 */
  height: auto;
  display: block;
}

/* -------------------------------------------
   PCレイアウト用のメディアクエリ切り替え
   （既存の構成ルールに合わせて設計）
   ------------------------------------------- */
@media screen and (min-width: 768px) {
  .service-list {
    padding: 50px 40px; /* PC用のゆったりとした余白 */
  }

  /* PC環境では綺麗に2カラム（2列）へ切り替え */
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 25px;
    margin-top: 40px;
  }

  .service-card {
    padding: 35px 30px;
  }

  .service-card h4 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .btn-detail {
    font-size: 14px;
  }

  /* イラストをPCデザイン通りに右下カードと高さを揃えて密着させる */
  .service-illustration {
    display: flex;

    /* ★ここがポイント：セル内の配置をコントロール★ */
    justify-content: flex-end; /* 【横方向】を「右寄せ」にする */
    align-items: flex-end; /* 【縦方向】を「下寄せ」にする */

    height: 100%; /* マス全体の高さを確保して下寄せを有効にする */
    box-sizing: border-box;
  }

  .service-illustration img {
    max-width: 224px;
    height: auto;
    display: block;
  }
}

/* 4. お仕事の流れセクション */
.service-flow {
  background-color: #f2f2f2;
  padding: 40px;
}
.flow-container {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.flow-item {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: start;
}

.flow-item h4 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: #0099ab;
}

.flow-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.flow-text {
}
.flow-text p {
  line-height: 1.6;
  text-align: left;
}
.flow-img {
  width: 90%;
  height: auto;
  flex-shrink: 0;
}
.flow-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   5. 先輩からの一言＆募集中の職種セクション (.service-voice)
   ========================================================================== */

/* 【基本設定：スマホサイズ（モバイルファースト）】 */
.service-voice {
  border: 2px solid #0099ab; /* 外枠のターコイズ線 */
  border-radius: 8px;
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 40px;
}

/* 上部：一言バナー全体 */
.voice-banner {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  gap: 15px;
  margin-bottom: 25px;
}

.voice-left {
  text-align: center;
}

.voice-left h4 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.voice-avatar-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.voice-avatar-container img {
  width: 160px;
  min-width: 160px;
  height: auto;
  display: block;
}

.voice-right {
  display: flex;
  align-items: center;
}

.voice-right p {
  text-align: justify;
  margin: 0;
}

/* 下部：薄グレーの職種エリア */
.voice-jobs-container {
  background-color: #f2f2f2; /* 薄グレー背景 */
  padding: 20px 15px;
  border-radius: 4px;
  text-align: center;
}

.voice-jobs-container h3 {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

/* 職種ボタンの配置 */
.voice-jobs-grid {
  display: flex;
  flex-direction: column; /* スマホではボタンを縦に並べる */
  gap: 10px;
}

.voice-job-btn {
  display: block;
  background-color: #0099ab;
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  border-radius: 2px;
  text-align: center;
  box-sizing: border-box;
  transition: opacity 0.3s;
}

.voice-job-btn:hover {
  opacity: 0.8;
}

/* -------------------------------------------
   PCレイアウト用のメディアクエリ切り替え
   ------------------------------------------- */
@media screen and (min-width: 768px) {
  .media-list-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .service-voice {
    padding: 30px; /* PC用に余白を少し広げる */
  }

  .flow-box {
    flex-direction: row-reverse; /* デフォルトで画像が右に来るように変更 */
    gap: 40px;
  }
  .flow-reverse {
    flex-direction: row; /* .flow-reverse適用時に画像が左に来るように変更 */
  }
  .flow-img {
    width: 260px;
    height: auto;
    flex-shrink: 0;
  }

  /* 上部を横並びに */
  .voice-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  .voice-left {
    width: 220px;
    border-right: 1px solid #ddd; /* 左エリアと右エリアの区切り線 */
    padding-right: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .voice-left h4 {
    font-size: 18px;
  }

  .voice-right {
    padding-left: 30px;
    width: calc(100% - 220px);
    box-sizing: border-box;
  }

  .voice-right p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* 下部：募集職種エリアのPCレイアウト */
  .voice-jobs-container {
    padding: 30px;
  }

  .voice-jobs-container h3 {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* ボタンを画像通り3列（下段2列）のGridで綺麗に配置 */
  .voice-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 均等に3列 */
    gap: 15px 20px;
    max-width: 800px;
    margin: 0 auto;
  }

  .voice-job-btn {
    padding: 6px 8px;
  }
}
