/* ==========================================================================
   SaaSMatch - ページ固有スタイル
   ファイル: assets/css/pages.css
   概要:     各ページ固有のスタイルを定義します。
             共通スタイルは common.css を参照してください。
   ========================================================================== */


/* ==========================================================================
   INDEX PAGE — トップページ
   ========================================================================== */

/* --- ヒーローセクション --- */
.hero-section {
  background: linear-gradient(150deg, #fff8f0 0%, #fef0e4 40%, #fde8f0 75%, #fef4d8 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(244, 115, 42, 0.15);
}

/* ヒーローの背景グロー */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 55% at 85% 15%, rgba(244, 115, 42, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 15% 85%, rgba(240, 68, 122, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 55% 95%, rgba(249, 200, 50, 0.15) 0%, transparent 50%);
}

/* アイキャッチバッジ（ヒーロー内） */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(244, 115, 42, 0.25);
  border-radius: 30px;
  padding: 4px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hj-orange);
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

/* ヒーロー メインコピー */
.hero-title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--hj-navy);
  margin-bottom: 18px;
}

/* ヒーロー サブコピー */
.hero-sub {
  font-size: 0.93rem;
  color: var(--hj-muted);
  line-height: 1.9;
  max-width: 440px;
  margin-bottom: 32px;
}

/* ヒーローイラスト（SVGコンテナ） */
.hero-illus {
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 16px 40px rgba(244, 115, 42, 0.3));
}

.hero-illus svg {
  max-width: 380px;
  width: 100%;
}


/* ==========================================================================
   DIAGNOSIS PAGE — 無料診断
   ========================================================================== */

/* --- ウィザードタブナビ --- */
.wiz-step-tab {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--hj-border);
  padding-bottom: 0;
}

/* タブ単体 */
.wiz-tab {
  flex: 1;
  min-width: 70px;
  padding: 10px 6px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--hj-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;  /* border-bottom と重ねて下線を上書き */
  white-space: nowrap;
}

/* アクティブタブ */
.wiz-tab.active {
  color: var(--hj-orange);
  border-bottom-color: var(--hj-orange);
}

/* 完了済みタブ */
.wiz-tab.done {
  color: var(--hj-green);
  border-bottom-color: var(--hj-green);
}

/* --- ウィザードパネル --- */
.wiz-panel {
  display: none;
  animation: hjFade 0.3s ease forwards;
}

.wiz-panel.active {
  display: block;
}

/* --- 選択肢（チェックボックス風ボタン） --- */
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.choice {
  border: 1.5px solid var(--hj-border);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  background: #ffffff;
  font-family: inherit;
  color: var(--hj-text);
  line-height: 1.4;
}

/* 選択・ホバー状態 */
.choice:hover,
.choice.selected {
  border-color: var(--hj-orange);
  background: rgba(244, 115, 42, 0.07);
  color: var(--hj-orange);
}

/* --- 送信完了メッセージ --- */
.diagnosis-done {
  text-align: center;
  padding: 60px 20px;
}

.diagnosis-done-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}


/* ==========================================================================
   TIPS PAGE — お役立ち情報
   ========================================================================== */

/* --- チェックリストカード（番号付き） --- */
.tips-check-card {
  background: #ffffff;
  border-radius: var(--hj-radius-lg);
  border: 1.5px solid var(--hj-border);
  padding: 22px;
  height: 100%;
  box-shadow: var(--hj-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tips-check-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hj-shadow-lg);
}

/* 番号バッジ */
.tips-num-badge {
  background: var(--hj-grad);
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* --- 失敗パターンカード（左ボーダー付き） --- */
.tips-caution-card {
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  margin-bottom: 4px;
}

.tips-caution-card.orange {
  border-left: 3px solid var(--hj-orange);
  background: rgba(244, 115, 42, 0.05);
}

.tips-caution-card.pink {
  border-left: 3px solid var(--hj-pink);
  background: rgba(240, 68, 122, 0.05);
}

/* --- まとめボックス --- */
.tips-summary-box {
  background: rgba(244, 115, 42, 0.06);
  border-left: 4px solid var(--hj-orange);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-top: 28px;
  font-size: 0.83rem;
  color: var(--hj-muted);
  line-height: 1.8;
}

/* セクション区切り（記事間） */
.tips-section-divider {
  border: none;
  border-top: 6px solid var(--hj-warm);
  margin: 0;
}


/* ==========================================================================
   SAAS PAGE — SaaS一覧・検索
   ========================================================================== */

/* 検索結果なしメッセージ */
.saas-no-result {
  text-align: center;
  padding: 48px 20px;
  color: var(--hj-muted);
}

.saas-no-result p {
  font-size: 1rem;
  margin-bottom: 20px;
}


/* ==========================================================================
   FAQ PAGE — よくある質問
   ========================================================================== */

/* FAQ カテゴリラベル（セクション内） */
.faq-category-label {
  font-family: "Unbounded", sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  background: var(--hj-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 36px;
  display: inline-block;
}

/* FAQ ページ全体の区切り */
.faq-divider {
  border: none;
  border-top: 1px solid var(--hj-border);
  margin: 36px 0 28px;
}


/* ==========================================================================
   CONTACT PAGE — 無料相談
   ========================================================================== */

/* サイドバー：こんな方にリスト */
.contact-list {
  list-style: none;
  padding: 0;
  font-size: 0.83rem;
  color: var(--hj-muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* アクセントマーク */
.contact-list-icon {
  color: var(--hj-orange);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 実績数値（サイドバー内） */
.contact-stat-num {
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: var(--hj-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ==========================================================================
   VENDOR PAGE — SaaS企業登録
   ========================================================================== */

/* 登録フローのステップリスト */
.vendor-flow-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 0.83rem;
  color: var(--hj-muted);
}

.vendor-flow-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* ステップ番号バッジ */
.vendor-flow-badge {
  background: var(--hj-grad);
  color: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   受付確認パネル（diagnosis.html / step_confirm）
   -------------------------------------------------------------------------- */

/* 再送信ボタン */
.resend-confirm-btn {
  font-size: 0.78rem;
  color: var(--hj-orange);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.15s;
}
.resend-confirm-btn:hover  { color: var(--hj-pink); }
.resend-confirm-btn:disabled {
  color: var(--hj-muted);
  text-decoration: none;
  cursor: not-allowed;
}

/* 受付番号入力欄：フォーカス時のオレンジ枠 */
#confirm-code:focus {
  border-color: var(--hj-orange);
  box-shadow: 0 0 0 3px rgba(244, 115, 42, 0.12);
  outline: none;
}

/* ステータステキスト色 */
#confirm-status.success { color: #2a9a72; }
#confirm-status.error   { color: #e74c3c; }

/* --------------------------------------------------------------------------
   主な機能から探す：2段階アコーディオン（saas.html）
   -------------------------------------------------------------------------- */

/* 大カテゴリ全体のラッパー */
#featureCategoryWrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

/* 大カテゴリボタン */
.feat-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: #ffffff;
  border: 1.5px solid var(--hj-border);
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--hj-navy);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--hj-transition), background var(--hj-transition);
}

.feat-cat-btn:hover {
  border-color: var(--hj-orange);
  background: rgba(244, 115, 42, 0.04);
  color: var(--hj-orange);
}

/* 展開中のボタン */
.feat-cat-btn[aria-expanded="true"] {
  border-color: var(--hj-orange);
  background: rgba(244, 115, 42, 0.05);
  color: var(--hj-orange);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* シェブロンアイコン */
.feat-cat-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.feat-cat-btn[aria-expanded="true"] .feat-cat-icon {
  transform: rotate(180deg);
}

/* 小カテゴリの展開エリア */
.feat-cat-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: #fafaf8;
  border: 1.5px solid var(--hj-orange);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  animation: featSubOpen 0.18s ease;
}

@keyframes featSubOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   小カテゴリタグ：選択済みスタイル（saas.html）
   -------------------------------------------------------------------------- */

.feat-cat-sub .hj-tag.tag-selected,
.feat-sub-tag.tag-selected {
  background: var(--hj-orange);
  color: #ffffff;
  border-color: var(--hj-orange);
  font-weight: 700;
}

.feat-cat-sub .hj-tag.tag-selected:hover,
.feat-sub-tag.tag-selected:hover {
  opacity: 0.85;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   SaaS一覧ページ：コンパクトヒーロー（saas.html）
   他ページの .hj-page-hero には影響しない
   -------------------------------------------------------------------------- */

.hj-page-hero--compact {
  padding: 14px 0;
}

/* --------------------------------------------------------------------------
   ページヒーロー：中コンパクト版（diagnosis / tips / faq / contact / vendor）
   .hj-page-hero--mid を追加するだけで適用。他ページに影響なし。
   -------------------------------------------------------------------------- */

.hj-page-hero--mid {
  padding: 28px 0 24px;
}

.hj-page-hero--mid .hj-page-eyebrow {
  margin-bottom: 8px;
}

.hj-page-hero--mid h1 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  margin-bottom: 8px;
}

.hj-page-hero--mid p {
  font-size: 0.82rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   主な機能から探す：大カテゴリピル＋小カテゴリパネル（saas.html 新UI）
   -------------------------------------------------------------------------- */

/* 大カテゴリボタン群：横スクロール可能な1行 */
.feat-cat-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* 大カテゴリボタン（ピル型） */
.feat-cat-pill {
  padding: 6px 14px;
  background: #ffffff;
  border: 1.5px solid var(--hj-border);
  border-radius: var(--hj-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hj-muted);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.feat-cat-pill:hover {
  border-color: var(--hj-orange);
  color: var(--hj-orange);
  background: rgba(244, 115, 42, 0.04);
}

/* 選択中の大カテゴリ */
.feat-cat-pill.active {
  background: var(--hj-grad);
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
}

/* 小カテゴリ展開パネル */
.feat-sub-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  margin-top: 8px;
  background: #fafaf8;
  border: 1.5px solid rgba(244, 115, 42, 0.25);
  border-radius: 12px;
  animation: featSubOpen 0.15s ease;
}

/* --------------------------------------------------------------------------
   掲載SaaS募集中バナー（index.html）
   -------------------------------------------------------------------------- */

.saas-recruit-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(244,115,42,.08) 0%, rgba(240,68,122,.06) 100%);
  border: 1.5px solid rgba(244,115,42,.3);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--hj-transition), border-color var(--hj-transition);
}

.saas-recruit-banner:hover {
  box-shadow: 0 4px 20px rgba(244,115,42,.15);
  border-color: var(--hj-orange);
  color: inherit;
}

.saas-recruit-icon { font-size: 1.4rem; flex-shrink: 0; }

.saas-recruit-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.saas-recruit-text strong {
  font-size: .88rem;
  color: var(--hj-orange);
  font-weight: 700;
}

.saas-recruit-text span {
  font-size: .78rem;
  color: var(--hj-muted);
  line-height: 1.5;
}

.saas-recruit-arrow {
  font-size: .78rem;
  font-weight: 700;
  color: var(--hj-orange);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .saas-recruit-arrow { display: none; }
}
