@charset "UTF-8";

/* ===================================================
   調査官 プロフィールページ専用スタイル (profile.css)
   1カラムスタイル & 特大正方形アイコン表示
=================================================== */

/* ===================================================
   SWELLレイアウトリセット（1カラム完全全幅・中央寄せ化）
=================================================== */
#body_wrap,
#body_wrap #content,
#content.l-content,
.l-content,
.l-container,
.l-mainContent,
.l-article,
#main_content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  float: none !important;
}

/* --- 1カラムコンテナ --- */
.profile-page-main {
  width: 100%;
  max-width: 100%;
  background-color: #fbfbfb;
  min-height: calc(100vh - 80px);
  margin: 0 auto !important;
  padding: 0 !important;
}

.profile-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto !important;
  padding: 24px 16px 64px;
  box-sizing: border-box;
}

/* --- パンくずリスト --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: #4b5563;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-yamada);
}

.breadcrumbs .crumb-sep {
  color: #9ca3af;
  font-size: 10px;
}

.breadcrumbs .current {
  color: var(--text-dark);
  font-weight: 900;
}

/* ===================================================
   1. プロフィール・メインビジュアル (Hero Card)
=================================================== */
.profile-hero {
  background: #ffffff;
  border: 2.5px solid #000000;
  border-radius: 16px;
  box-shadow: 5px 5px 0 #000000;
  padding: 32px 24px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

/* カード上部の背景アクセント（山田カラーのストライプ装飾） */
.profile-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--color-yamada), #38bdf8);
}

.profile-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 正方形アイコン画像の特大表示 */
.profile-image-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 30px;
}

.profile-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid #000000;
  box-shadow: 6px 6px 0 #000000;
  display: block;
}

/* アメコミ調 傾いたネームタグ */
.profile-name-tag {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background-color: #ffffff;
  border: 3.5px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  border-radius: 10px;
  padding: 10px 32px;
  z-index: 5;
  white-space: nowrap;
}

.profile-name-tag h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin: 0;
}

/* 調査官バッジ & キャッチコピー */
.profile-hero-meta {
  margin-top: 28px;
  max-width: 740px;
}

.profile-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge-rank {
  background-color: var(--color-yamada);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0 #000000;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-sub {
  background-color: #fef08a;
  color: #854d0e;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid #000000;
  box-shadow: 2px 2px 0 #000000;
}

.profile-catchphrase {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 12px;
}

.profile-lead {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  font-weight: 500;
}

/* ===================================================
   2. 詳細プロフィール (スペック & パラメータ & メッセージ)
=================================================== */
.profile-section {
  margin-bottom: 40px;
}

.profile-sec-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #000000;
  position: relative;
}

.profile-sec-heading::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--color-yamada);
}

.profile-sec-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.profile-sec-title-wrap h2 {
  font-size: 19px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
}

.profile-sec-title-wrap span {
  font-size: 10px;
  font-weight: 900;
  color: var(--color-yamada);
  font-family: var(--font-family-en);
  letter-spacing: 0.5px;
  display: block;
}

/* --- スペックグリッド (2列カード) --- */
.profile-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.profile-spec-card {
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 3px 3px 0 #000000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-card-label {
  font-size: 11px;
  font-weight: 900;
  color: var(--color-yamada);
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-card-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
}

/* --- 評価傾向パラメータ (バーメーター) --- */
.profile-radar-box {
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 3px 3px 0 #000000;
  margin-bottom: 24px;
}

.radar-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.parameter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.param-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.param-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #374151;
}

.param-score {
  color: var(--color-yamada);
  font-family: var(--font-family-en);
  font-weight: 900;
}

.param-bar-bg {
  width: 100%;
  height: 10px;
  background-color: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d1d5db;
}

.param-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, var(--color-yamada));
  border-radius: 999px;
  transition: width 0.8s ease-in-out;
}

/* --- 調査官ポリシー/メッセージ (吹き出し風アメコミボックス) --- */
.profile-message-card {
  background: #fffbeb;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 4px 4px 0 #000000;
  position: relative;
}

.profile-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  color: #b45309;
  margin-bottom: 10px;
}

.profile-message-text {
  font-size: 14px;
  line-height: 1.8;
  color: #1f2937;
  font-weight: 600;
}

/* ===================================================
   3. 投稿記事一覧 (調査報告アーカイブ - トップページ共通カードグリッド)
=================================================== */
.profile-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

.profile-reports-grid .report-card {
  width: 100%;
  flex: none;
}

.no-reports-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  color: #6b7280;
  font-weight: 700;
  font-size: 14px;
  background: #ffffff;
  border: 1.5px dashed #d1d5db;
  border-radius: 12px;
}

.profile-articles-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.profile-article-card {
  display: flex;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #000000;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.profile-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 #000000;
}

/* 記事サムネイル */
.article-thumb-wrap {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #1a1a1a;
}

.article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.profile-article-card:hover .article-thumb {
  transform: scale(1.05);
}

/* エリアバッジ & NEWバッジ */
.article-area-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 38px;
  height: auto;
}

/* 記事本文コンテンツ */
.article-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #6b7280;
  margin-bottom: 6px;
}

.article-date {
  font-family: var(--font-family-en);
  font-weight: 600;
}

.article-rating {
  color: #f59e0b;
  font-size: 11px;
}

.article-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.profile-article-card:hover .article-title {
  color: var(--color-yamada);
}

.article-excerpt {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.read-more-text {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-yamada);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-article-card:hover .read-more-text {
  text-decoration: underline;
}

/* --- ページネーション --- */
.profile-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 2px solid #000000;
  background-color: #ffffff;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 2px 2px 0 #000000;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.page-btn.active {
  background-color: var(--color-yamada);
  color: #ffffff;
}

.page-btn:hover:not(.active) {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

/* ===================================================
   4. 他の調査官を見る (回遊セクション)
=================================================== */
.other-investigators-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px dashed #e5e7eb;
}

.other-inv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.other-inv-card {
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 2px 2px 0 #000000;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.other-inv-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #000000;
}

.other-inv-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1.5px solid #000000;
  object-fit: cover;
  flex-shrink: 0;
}

.other-inv-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.other-inv-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.other-inv-role {
  font-size: 10px;
  color: #6b7280;
  font-weight: 700;
  white-space: nowrap;
}

/* ===================================================
   レスポンシブ対応 (SP: max-width 768px)
=================================================== */
@media (max-width: 768px) {
  .profile-container {
    padding: 16px 12px 48px;
  }

  .profile-hero {
    padding: 20px 14px 24px;
  }

  /* SPでも正方形アイコンを画面幅いっぱい・特大で表示 */
  .profile-image-wrap {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .profile-name-tag {
    bottom: -12px;
    padding: 6px 18px;
  }

  .profile-name-tag h1 {
    font-size: 18px;
  }

  .profile-catchphrase {
    font-size: 15px;
  }

  .profile-lead {
    font-size: 13px;
  }

  /* スペック表 SP: 2列のままコンパクトに */
  .profile-spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .profile-spec-card {
    padding: 10px 12px;
  }

  .spec-card-label {
    font-size: 10px;
  }

  .spec-card-value {
    font-size: 13px;
  }

  /* 記事カード SP: 縦積みレイアウト */
  .profile-article-card {
    flex-direction: column;
  }

  .article-thumb-wrap {
    width: 100%;
    height: 180px;
  }

  .article-content {
    padding: 14px 14px 16px;
  }

  .article-title {
    font-size: 15px;
  }

  .article-excerpt {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  /* 他の調査官 SP: 2列グリッド */
  .other-inv-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .other-inv-thumb {
    width: 42px;
    height: 42px;
  }

  .other-inv-name {
    font-size: 11px;
  }
}
