/* =====================================================
   adviser-detail ページ独自スタイル
   クラス名: .p-adviser-detail2025__*
   ===================================================== */

/* ── 個ページ用 ── */
@supports (background: url("../img/page-header-adviser.webp")) {
  .page__head.adviser {
    background: url(../img/page-header-adviser.webp) no-repeat left top;
    background-size: cover;
  }
}
.page__head.adviser.detail {
  padding: 20px 0;
}

/* ── ヒーローエリア ── */
.p-adviser-detail2025__hero {
  position: relative;
  overflow: hidden;
  background: #111;
}
.p-adviser-detail2025__hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(100%);
  opacity: .75;
}
.p-adviser-detail2025__hero-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  text-align: right;
  max-width: 55%;
  padding: 8px 12px;
  background: rgba(0,0,0,.35);
}
.p-adviser-detail2025__hero-copy:empty {
  display: none;
}
.p-adviser-detail2025__hero-catch {
  display: inline-block;
  font-size: clamp(14px, 3vw, 32px);
  font-weight: 700;
  color: #FFD700;
  line-height: 1.4;
  letter-spacing: .04em;
  text-shadow: 2px 2px 0 rgba(0,0,0,.4);
}

/* ── プロフィールエリア ── */
.p-adviser-detail2025__profile-area {
  background: #fff;
  padding: 48px 0 56px;
}
.p-adviser-detail2025__profile-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 30px;
}
.p-adviser-detail2025__profile-head {
  border-left: 4px solid #FFD700;
  padding-left: 20px;
  margin-bottom: 32px;
}
.p-adviser-detail2025__dept {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.p-adviser-detail2025__name {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.p-adviser-detail2025__exp {
  font-size: 16px;
  color: #555;
}
.p-adviser-detail2025__exp strong { color: #1a1a1a; font-weight: 700; }
.p-adviser-detail2025__hero-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFD700;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 40px;
  margin-bottom: 36px;
}
.p-adviser-detail2025__hero-cv:hover { opacity: .85; text-decoration: none; color: #1a1a1a; }
.p-adviser-detail2025__profile-text {
  font-size: 16px;
  line-height: 2.1;
  color: #333;
}

/* ── セクション共通 ── */
.p-adviser-detail2025__sec {
  padding: 56px 0;
}
.p-adviser-detail2025__sec--gray {
  background: #f5f5f5;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.p-adviser-detail2025__sec-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 30px;
}
.p-adviser-detail2025__sec-head {
  margin-bottom: 32px;
}
.p-adviser-detail2025__sec-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.p-adviser-detail2025__sec-ja {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  position: relative;
  padding-bottom: 14px;
}
.p-adviser-detail2025__sec-ja::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 3px;
  background: #FFD700;
}

/* ── 転職支援実績 ── */
.p-adviser-detail2025__results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-adviser-detail2025__result {
  background: #fff;
  border: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: 40px 1fr 40px 1fr;
  overflow: hidden;
}
.p-adviser-detail2025__result-num {
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.p-adviser-detail2025__result-cell {
  padding: 16px 20px;
}
.p-adviser-detail2025__result-arrow {
  background: #f0f0f0;
  border-left: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #FFD100;
  font-weight: 700;
}
.p-adviser-detail2025__result-to {
  padding: 16px 20px;
  border-left: 1px solid #e0e0e0;
  background: #fafafa;
}
.p-adviser-detail2025__result-meta { font-size: 14px; color: #999; margin-bottom: 3px; }
.p-adviser-detail2025__result-job { font-size: 16px; font-weight: 700; color: #1a1a1a; line-height: 1.5; margin-bottom: 3px; }
.p-adviser-detail2025__result-salary { font-size: 14px; color: #666; }
.p-adviser-detail2025__result-salary-up { font-size: 14px; color: #1a6e3a; font-weight: 700; }
.p-adviser-detail2025__result-up { font-size: 14px; color: #1a6e3a; margin-left: 4px; font-weight: 700; }

/* ── ご紹介可能企業 ── */
.p-adviser-detail2025__companies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border: 1px solid #e0e0e0;
}
.p-adviser-detail2025__company {
  background: #fff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 110px;
}
.p-adviser-detail2025__company-logo {
  width: 100%;
  max-width: 180px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-adviser-detail2025__company-logo img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  display: block;
}
/* 画像が読み込めない（src未設定・null）場合 */
.p-adviser-detail2025__company-logo img[src=""],
.p-adviser-detail2025__company-logo img:not([src]) {
  display: none;
}
.p-adviser-detail2025__company-logo:has(img[src=""]),
.p-adviser-detail2025__company-logo:has(img:not([src])) {
  background: #f0f0f0;
  border-radius: 4px;
}
.p-adviser-detail2025__company-logo:has(img[src=""])::after,
.p-adviser-detail2025__company-logo:has(img:not([src]))::after {
  content: 'No Image';
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  letter-spacing: .05em;
}
.p-adviser-detail2025__company-name {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* ── Q&A ── */
.p-adviser-detail2025__qa {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.p-adviser-detail2025__qa-item {
  padding: 36px 0;
  border-bottom: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.p-adviser-detail2025__qa-item:first-child { padding-top: 0; }
.p-adviser-detail2025__qa-item:last-child { border-bottom: none; padding-bottom: 0; }
.p-adviser-detail2025__qa-q {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.6;
}
.p-adviser-detail2025__qa-a {
  font-size: 16px;
  line-height: 2.1;
  color: #444;
}
.p-adviser-detail2025__qa-a em {
  font-style: normal;
  font-weight: 700;
  color: #1a1a1a;
  background: linear-gradient(transparent 65%, rgba(255,215,0,.4) 65%);
}

/* ── 途中CVインサート ── */
.p-adviser-detail2025__cv-inline {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 44px 40px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.p-adviser-detail2025__cv-inline-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.p-adviser-detail2025__cv-inline-lead { font-size: 16px; line-height: 2; margin-bottom: 22px; }
.p-adviser-detail2025__cv-inline-btn {
  display: inline-block;
  background: #FFD700;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 40px;
}
.p-adviser-detail2025__cv-inline-btn:hover { opacity: .9; text-decoration: none; color: #1a1a1a; }
.p-adviser-detail2025__cv-inline-note { font-size: 16px; margin-top: 10px; }

/* ── 他のアドバイザー：スライダー ── */
.p-adviser-detail2025__others-wrap {
  position: relative;
  overflow: visible;    /* ← 矢印が切れないよう必須 */
  /* padding なし：カードをsec-innerフルワイドに */
}
/* slick初期化前に縦積みにならないよう */
.p-adviser-detail2025__others-slider {
  opacity: 0;
  transition: opacity .3s;
}
.p-adviser-detail2025__others-slider.slick-initialized {
  opacity: 1;
}
.p-adviser-detail2025__other-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s;
  margin: 0 8px;
}
.p-adviser-detail2025__other-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.p-adviser-detail2025__other-photo {
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #111;
}
.p-adviser-detail2025__other-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: grayscale(100%);
  transition: filter .3s;
}
.p-adviser-detail2025__other-card:hover .p-adviser-detail2025__other-photo img { filter: grayscale(40%); }
.p-adviser-detail2025__other-body { padding: 14px 16px; }
.p-adviser-detail2025__other-dept { font-size: 11px; color: #888; margin-bottom: 4px; line-height: 1.5; }
.p-adviser-detail2025__other-name { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; }
.p-adviser-detail2025__other-link {
  font-size: 12px; font-weight: 700; color: #1a1a1a;
  display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 1px solid #1a1a1a;
}
.p-adviser-detail2025__other-link::after {
  content: '';
  display: inline-block; width: 8px; height: 8px;
  border-top: 2px solid #1a1a1a; border-right: 2px solid #1a1a1a;
  transform: rotate(45deg);
}

/* slick 矢印 */
.p-adviser-detail2025__others-wrap .slick-prev,
.p-adviser-detail2025__others-wrap .slick-next {
  width: 40px;
  height: 40px;
  background: #1a1a1a !important;
  border-radius: 50%;
  z-index: 10;
  top: 34%;
  transform: translateY(-50%);
  opacity: 1 !important;
}
.p-adviser-detail2025__others-wrap .slick-prev:hover,
.p-adviser-detail2025__others-wrap .slick-next:hover {
  background: #1a1a1a !important;
  opacity: 1 !important;
}
.p-adviser-detail2025__others-wrap .slick-prev:focus,
.p-adviser-detail2025__others-wrap .slick-next:focus {
  background: #1a1a1a !important;
  opacity: 1 !important;
}
.p-adviser-detail2025__others-wrap .slick-prev { left: 8px; }
.p-adviser-detail2025__others-wrap .slick-next { right: 8px; }
.p-adviser-detail2025__others-wrap .slick-prev::before,
.p-adviser-detail2025__others-wrap .slick-next::before {
  font-size: 18px; color: #FFD700 !important; opacity: 1 !important;
}
.p-adviser-detail2025__others-wrap .slick-prev:hover,
.p-adviser-detail2025__others-wrap .slick-next:hover {
  background: #1a1a1a !important;
  opacity: 1 !important;
}
.p-adviser-detail2025__others-wrap .slick-prev:hover::before,
.p-adviser-detail2025__others-wrap .slick-next:hover::before {
  color: #FFD700 !important;
  opacity: 1 !important;
}

/* slick dots */
.p-adviser-detail2025__others-wrap .slick-dots {
  bottom: -32px;
}
.p-adviser-detail2025__others-wrap .slick-dots li button::before {
  font-size: 8px; color: #ccc; opacity: 1;
}
.p-adviser-detail2025__others-wrap .slick-dots li.slick-active button::before {
  color: #FFD700; opacity: 1;
}

/* ── 表紙に戻るリンク ── */
.p-adviser-detail2025__back {
  text-align: center;
}
.p-adviser-detail2025__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
}
.p-adviser-detail2025__back-link::before {
  content: '';
  display: inline-block; width: 10px; height: 10px;
  border-top: 2px solid #1a1a1a; border-left: 2px solid #1a1a1a;
  transform: rotate(-45deg);
}

/* ── フッターCV ── */
.p-adviser-detail2025__footer-cv {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 64px 30px;
}
.p-adviser-detail2025__footer-cv-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.p-adviser-detail2025__footer-cv-lead { font-size: 14px; color: rgba(255,255,255,.65); line-height: 2; margin-bottom: 28px; }
.p-adviser-detail2025__footer-cv-btn {
  display: inline-block;
  background: #FFD700;
  color: #1a1a1a;
  font-size: 15px; font-weight: 700;
  padding: 16px 40px;
  border-radius: 40px;
}
.p-adviser-detail2025__footer-cv-btn:hover { opacity: .9; text-decoration: none; color: #1a1a1a; }
.p-adviser-detail2025__footer-cv-note { font-size: 12px; color: rgba(255,255,255,.3); margin-top: 12px; }

/* ===== SP ===== */
@media (max-width: 768px) {
  .p-adviser-detail2025__hero { width: 100%; }
  .p-adviser-detail2025__hero-img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .p-adviser-detail2025__profile-inner { padding: 0 16px; }
  .p-adviser-detail2025__sec-inner { padding: 0 16px; }
  .p-adviser-detail2025__result { grid-template-columns: 32px 1fr; }
  .p-adviser-detail2025__result-arrow { display: none; }
  .p-adviser-detail2025__result-to { border-left: none; border-top: 1px solid #e0e0e0; grid-column: 2; }
  .p-adviser-detail2025__companies { grid-template-columns: repeat(2, 1fr); }
  .p-adviser-detail2025__qa-item { grid-template-columns: 1fr; gap: 12px; }
  /* SP: カード幅を広げて矢印を外側に */
  .p-adviser-detail2025__others-wrap {
    padding: 0 28px;
  }
  .p-adviser-detail2025__others-wrap .slick-prev,
  .p-adviser-detail2025__others-wrap .slick-next {
    top: 40%;
  }
  .p-adviser-detail2025__others-wrap .slick-prev { left: 0; }
  .p-adviser-detail2025__others-wrap .slick-next { right: 0; }
  .p-adviser-detail2025__others-slider { padding-bottom: 40px; }
  .p-adviser-detail2025__cv-inline { padding: 36px 20px; }
  .p-adviser-detail2025__footer-cv { padding: 44px 20px; }
}


/* sec__eizoshigoto 下余白を他ページに合わせる */
.sec__eizoshigoto {
  margin-bottom: 0px;
}

/* ── 余白調整 ── */
/* CVインサート直後のご紹介可能企業セクション：上padding縮小 */
.p-adviser-detail2025__cv-inline + .p-adviser-detail2025__sec {
  padding-top: 32px;
}
/* 他のアドバイザースライダーセクション：content__wrap外に出てもoverflowで矢印が切れないよう対策 */
.p-adviser-detail2025__sec--others {
  overflow: visible;
}
/* SP：矢印をカード内側に配置（切れない位置） */
@media (max-width: 768px) {
  .p-adviser-detail2025__others-wrap {
    padding: 0;
  }
  .p-adviser-detail2025__others-wrap .slick-prev,
  .p-adviser-detail2025__others-wrap .slick-next {
    top: 30%;
    width: 32px;
    height: 32px;
  }
  .p-adviser-detail2025__others-wrap .slick-prev { left: 4px; }
  .p-adviser-detail2025__others-wrap .slick-next { right: 4px; }
}
