/**
 * Profile v2 スタイル
 * プロフィールページ専用 CSS（他ページには読み込まれません）
 *
 * カラーテーマ：長ネギ緑系
 *   Primary  : #4B9B69
 *   Deep     : #2D6B45
 *   Light    : #7BC49A
 *   Accent   : #88C057
 *   Tint bg  : #EAF6EF
 *
 * @package SaiyaLog
 * @since 2.1.1
 */

/* ===== ラッパー ===== */
.ns-profile-wrap {
  padding: 0 0 40px;
}
.ns-profile * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.ns-profile {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 0 40px;
}

/* ===== ヒーローカード ===== */
.ns-hero {
  background: linear-gradient(135deg, #5BAD7A 0%, #2D6B45 100%);
  border-radius: 16px;
  padding: 32px 20px 28px;
  text-align: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.ns-hero::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.ns-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.ns-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 32px;
  color: #fff;
  font-weight: 500;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.ns-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.ns-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.ns-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}
.ns-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.ns-tag {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
}

/* ===== セクション共通 ===== */
.ns-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 12px;
}
.ns-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== いいねボタン ===== */
.ns-like-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 22px 16px;
  margin-bottom: 12px;
  text-align: center;
}
.ns-like-count {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #4B9B69, #2D6B45);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ns-like-label {
  font-size: 11px;
  color: #bbb;
  margin-bottom: 18px;
  display: block;
}
.ns-like-btn {
  background: linear-gradient(135deg, #4B9B69, #2D6B45);
  border: none;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  box-shadow: 0 4px 16px rgba(45,107,69,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: box-shadow 0.2s;
}
.ns-like-btn:active { transform: scale(0.95); }
.ns-like-btn.ns-popped { animation: ns-pop 0.35s ease; }
@keyframes ns-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  70%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}

/* ===== マッチ度バー ===== */
.ns-match-row { margin-bottom: 12px; }
.ns-match-row:last-child { margin-bottom: 0; }
.ns-match-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.ns-match-label-row span   { font-size: 13px; color: #555; }
.ns-match-label-row strong { font-size: 13px; font-weight: 600; color: #222; }
.ns-bar-bg   { background: #f0f0f0; border-radius: 20px; height: 8px; overflow: hidden; }
.ns-bar-fill { height: 8px; border-radius: 20px; transition: width 1s ease; width: 0; }

/* ===== 相性診断クイズ ===== */
.ns-quiz-step { display: none; }
.ns-quiz-step.ns-active { display: block; }
.ns-quiz-q {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 14px;
  line-height: 1.5;
}
.ns-quiz-progress { font-size: 11px; color: #bbb; margin-bottom: 10px; }
.ns-quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-quiz-opt {
  flex: 1;
  min-width: 80px;
  background: #f7f7f9;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 11px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}
.ns-quiz-opt:hover    { background: #EAF6EF; border-color: #4B9B69; }
.ns-quiz-opt.selected { background: #4B9B69; border-color: #4B9B69; color: #fff; }
.ns-quiz-comment {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.2s;
  font-size: 13px;
  color: #2D6B45;
  text-align: center;
  font-weight: 500;
}
.ns-quiz-comment.ns-quiz-comment--show {
  max-height: 60px;
  opacity: 1;
  padding: 10px 8px 0;
}
.ns-quiz-result { display: none; text-align: center; }
.ns-quiz-result.ns-active { display: block; }
.ns-quiz-result-pct {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #4B9B69, #2D6B45);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ns-quiz-result-label { font-size: 12px; color: #999; margin-bottom: 14px; }
.ns-quiz-result-bar-bg {
  background: #f0f0f0;
  border-radius: 20px;
  height: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.ns-quiz-result-bar {
  height: 8px;
  border-radius: 20px;
  background: linear-gradient(90deg, #4B9B69, #2D6B45);
  transition: width 1s ease;
  width: 0;
}
.ns-quiz-result-msg {
  background: linear-gradient(135deg, #4B9B69 0%, #2D6B45 100%);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.ns-quiz-retry {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== 経歴リスト ===== */
.ns-career-list  { display: flex; flex-direction: column; gap: 14px; }
.ns-career-item  { display: flex; align-items: flex-start; gap: 12px; }
.ns-career-dot   {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.ns-career-title { font-size: 13px; font-weight: 600; color: #222; margin-bottom: 2px; }
.ns-career-desc  { font-size: 12px; color: #888; line-height: 1.5; }

/* ===== タイムライン ===== */
.ns-timeline {
  position: relative;
  padding-left: 26px;
}
.ns-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, #4B9B69, #7BC49A, #2D6B45, #88C057);
  border-radius: 2px;
}
.ns-tl-item {
  position: relative;
  margin-bottom: 22px;
  animation: ns-tl-in 0.5s ease both;
}
.ns-tl-item:last-child { margin-bottom: 0; }
@keyframes ns-tl-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ns-tl-dot {
  position: absolute;
  left: -22px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.ns-tl-year {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 3px;
  display: inline-block;
}
.ns-tl-bike  { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 3px; }
.ns-tl-note  { font-size: 12px; color: #888; }
.ns-tl-current {
  display: inline-block;
  background: #4B9B69;
  color: #fff;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}
.ns-tl-dream {
  background: #f0faf5;
  border: 1px solid #b8ddc8;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
}
.ns-tl-dream p { font-size: 12px; color: #2D6B45; }

/* ===== 好きなこと マーキー ===== */
.ns-hobby-marquee-wrap {
  overflow: hidden;
  padding: 4px 0 12px;
  margin: 0 -4px;
}
.ns-hobby-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: ns-marquee 18s linear infinite;
}
.ns-hobby-track:hover { animation-play-state: paused; }
@keyframes ns-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ns-hobby-card-m {
  min-width: 110px;
  height: 120px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  cursor: default;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  flex-shrink: 0;
}
.ns-hobby-card-m .icon { font-size: 32px; margin-bottom: 8px; display: block; }
.ns-hobby-card-m .name { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.3; }

/* ===== フリップカード ===== */
.ns-flip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ns-flip-card { perspective: 800px; height: 145px; cursor: pointer; }
.ns-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.ns-flip-card.flipped .ns-flip-inner { transform: rotateY(180deg); }
.ns-flip-front,
.ns-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}
.ns-flip-front { background: #f7f7f9; border: 1.5px solid #e8e8e8; }
.ns-flip-back  { transform: rotateY(180deg); color: #fff; }
.ns-flip-front-emoji { font-size: 28px; margin-bottom: 7px; }
.ns-flip-front-q     { font-size: 11px; color: #555; font-weight: 600; line-height: 1.4; }
.ns-flip-front-hint  { font-size: 10px; color: #ccc; margin-top: 5px; }
.ns-flip-back-emoji  { font-size: 20px; margin-bottom: 6px; }
.ns-flip-back-title  { font-size: 14px; font-weight: 800; margin-bottom: 5px; line-height: 1.2; }
.ns-flip-back-text   { font-size: 11px; font-weight: 500; line-height: 1.55; opacity: 0.9; }

/* ===== 引き出しドロワー ===== */
.ns-drawer {
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.ns-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, #4B9B69, #2D6B45);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}
.ns-drawer-header.ns-drawer-faq-header {
  background: linear-gradient(135deg, #2D6B45, #7BC49A);
}
.ns-drawer-arrow {
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
  display: inline-block;
}
.ns-drawer.ns-open .ns-drawer-arrow { transform: rotate(180deg); }
.ns-drawer-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-radius: 0 0 14px 14px;
}
.ns-drawer.ns-open .ns-drawer-body { max-height: 900px; }
.ns-drawer-inner { padding: 16px; }

/* ===== FAQ ===== */
.ns-faq-item { border-bottom: 1px solid #f0f0f0; }
.ns-faq-item:last-child { border-bottom: none; }
.ns-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  gap: 8px;
  border-left: 3px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  transition: border-color 0.2s;
}
.ns-faq-q:hover { border-left-color: currentColor; }
.ns-faq-arrow {
  font-size: 11px;
  color: #bbb;
  flex-shrink: 0;
  transition: transform 0.3s;
  display: inline-block;
}
.ns-faq-item.open .ns-faq-arrow { transform: rotate(180deg); }
.ns-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s;
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-4px);
}
.ns-faq-item.open .ns-faq-a {
  max-height: 240px;
  padding-bottom: 14px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.35s ease, opacity 0.25s 0.05s, padding 0.2s;
}
.ns-faq-bubble {
  background: #f7f7f9;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  display: block;
  line-height: 1.7;
}

/* ===== アプローチ欄 ===== */
.ns-approach-section {
  background: linear-gradient(135deg, #f0faf5 0%, #e6f7ee 100%);
  border: 1px solid #c0e0cc;
}
.ns-approach-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
  text-align: center;
}
.ns-approach-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ns-starter-btn {
  flex: 1;
  min-width: calc(50% - 4px);
  border: 1.5px solid #b8d8c4;
  border-radius: 10px;
  padding: 11px 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-align: center;
  transition: all 0.2s;
  user-select: none;
  line-height: 1.4;
}
.ns-starter-btn:hover {
  border-color: #4B9B69;
  color: #4B9B69;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(75,155,105,0.2);
}
.ns-starter-btn.selected {
  background: linear-gradient(135deg, #4B9B69, #2D6B45);
  border-color: transparent;
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 3px 12px rgba(75,155,105,0.35);
}
.ns-approach-input {
  width: 100%;
  border: 1.5px solid #c0d8ca;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  background: #fff;
  resize: none;
  height: 76px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.ns-approach-input:focus { border-color: #4B9B69; }
.ns-approach-counter {
  text-align: right;
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
  margin-bottom: 14px;
}
.ns-approach-send-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4B9B69, #2D6B45);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(45,107,69,0.35);
  transition: transform 0.1s, box-shadow 0.1s;
  user-select: none;
}
.ns-approach-send-btn:active  { transform: scale(0.97); box-shadow: 0 2px 8px rgba(45,107,69,0.2); }
.ns-approach-send-btn:disabled { background: #ccc; box-shadow: none; cursor: default; }
.ns-approach-done {
  display: none;
  text-align: center;
  margin-top: 16px;
  position: relative;
}
.ns-approach-done-msg {
  font-size: 15px;
  font-weight: 700;
  color: #2D6B45;
  line-height: 1.7;
  animation: ns-fadein 0.5s ease;
}
@keyframes ns-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ns-approach-hearts-wrap {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ns-heart-drop {
  position: absolute;
  font-size: 22px;
  animation: ns-heartfall 1.2s ease forwards;
}
@keyframes ns-heartfall {
  0%   { transform: translateY(-10px) scale(0.4); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translateY(70px) scale(1.3); opacity: 0; }
}

/* ===== ライブ告知リンクカード ===== */
.ns-live-link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a1535 0%, #2d1f52 60%, #3a1a3a 100%);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(26,21,53,0.25);
}
.ns-live-link-card:hover { opacity: 0.92; transform: translateY(-1px); }
.ns-live-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.ns-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63333;
  animation: ns-pulse 1.5s infinite;
}
@keyframes ns-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}
.ns-live-link-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.ns-live-link-arrow {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ===== SNSボタン ===== */
.ns-sns-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ns-sns-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.ns-sns-btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.ns-sns-btn:active { transform: scale(0.97); }
.ns-sns-icon { font-size: 16px; display: block; margin-bottom: 4px; }
.ns-x  { background: #1a1a1a; color: #f0f0f0; }
.ns-yt { background: #e63333; color: #fff5f5; }
.ns-dc { background: #5865F2; color: #fff; }
.ns-tw { background: #6c63cc; color: #f0efff; }

/* ===== 現在日時（左下固定） ===== */
.ns-datetime {
  position: fixed;
  bottom: 12px;
  left: 14px;
  font-size: 11px;
  color: rgba(30, 80, 50, 0.28);
  font-family: monospace;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* ===== レスポンシブ調整 ===== */
@media (max-width: 680px) {
  .ns-profile {
    padding-left: 12px;
    padding-right: 12px;
  }
}
