/* =========================================================
   マーケティング部 メンバー一覧
   デザインhandoffに準拠
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #2c3142;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #eef0f4;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #2c3142;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.header-nav a {
  padding: 8px 0;
  color: #6b7180;
  transition: color .15s;
}
.header-nav a:hover { color: #2c3142; }
.header-nav a.active {
  color: #ff6b1a;
  border-bottom: 3px solid #ff6b1a;
  padding-bottom: 5px;
}

/* search input in header */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f5f9;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  height: 38px;
  transition: border-color .15s, background .15s;
}
.search-wrap:focus-within {
  background: #ffffff;
  border-color: #ff6b1a;
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.12);
}
.search-wrap .search-icon {
  display: inline-flex;
  align-items: center;
  color: #8b91a3;
}
.search-wrap input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  width: 180px;
  color: #2c3142;
}
.search-wrap input::placeholder { color: #b3b8c4; }
.search-wrap input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 40px;
  position: relative;
}
.breadcrumb {
  color: #8b91a3;
  font-size: 13px;
  margin-bottom: 22px;
}
.breadcrumb a { color: #8b91a3; }
.breadcrumb .sep { margin: 0 8px; color: #c4c8d3; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.hero-title .accent {
  color: #ff6b1a;
  font-size: 44px;
}
/* スマホ専用の改行（デフォルトでは非表示） */
.hero-title .mobile-only {
  display: none;
}
.hero-lead {
  color: #4a5063;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-points {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;          /* 横一列に整列（折り返さない） */
  align-items: center;
}
.point {
  display: flex;
  align-items: center;
  gap: 12px;
}
.point-text { line-height: 1.45; }
.point-title {
  font-size: 15.6px;          /* 13px × 1.2 */
  font-weight: 700;
  color: #2c3142;
  margin-bottom: 2px;
  white-space: nowrap;        /* タイトル内で改行しない */
}
.point-title .x {
  color: #ff6b1a;
  margin: 0 4px;
  font-weight: 700;
}
.point-sub {
  font-size: 13.2px;          /* 11px × 1.2 */
  color: #8b91a3;
  white-space: nowrap;        /* サブテキスト内で改行しない */
}

/* hero illustration */
.hero-art {
  position: relative;
  aspect-ratio: 1.05 / 1;
  min-height: 360px;
}
.hero-art .blob {
  position: absolute;
  pointer-events: none;
}
.hero-art .blob-pink {
  width: 86%;
  top: 8%;
  right: -4%;
}
.hero-art .blob-yellow {
  width: 26%;
  bottom: 8%;
  left: 4%;
  opacity: 0.85;
}
.hero-art .pattern-dots-yellow {
  position: absolute;
  width: 18%;
  top: 6%;
  right: 4%;
}
.hero-art .pattern-wave-pink {
  position: absolute;
  width: 22%;
  bottom: 10%;
  right: 16%;
  opacity: 0.85;
}
.hero-art .pattern-stars {
  position: absolute;
  width: 14%;
  top: 36%;
  left: 8%;
}
.hero-art .pattern-arrow {
  position: absolute;
  width: 14%;
  top: 14%;
  left: 32%;
  opacity: 0.7;
}

/* ---------- HERO 装飾アニメーション ---------- */
/* 全要素に共通：transform-origin を中央に揃えて、位置がズレないようにする */
.hero-art .blob,
.hero-art .pattern-dots-yellow,
.hero-art .pattern-wave-pink,
.hero-art .pattern-stars,
.hero-art .pattern-arrow {
  transform-origin: center;
  will-change: transform, opacity;
}

/* === ブロブ：呼吸＋ゆっくり回転で生命感 === */
@keyframes hero-pulse-scale {
  0%, 100% { transform: scale(1)    rotate(0deg); }
  50%      { transform: scale(1.12) rotate(-4deg); }
}
/* === 上下浮遊（縦方向） === */
@keyframes hero-float-y {
  0%, 100% { transform: translateY(0)     rotate(0deg); }
  50%      { transform: translateY(-24px) rotate(6deg); }
}
/* === 斜め浮遊（縦＋横の合わせ技で生き生きと） === */
@keyframes hero-float-xy {
  0%, 100% { transform: translate(0, 0)        rotate(0deg); }
  25%      { transform: translate(14px, -8px)  rotate(4deg); }
  50%      { transform: translate(20px, 6px)   rotate(0deg); }
  75%      { transform: translate(8px, 12px)   rotate(-3deg); }
}
/* === 360°回転 === */
@keyframes hero-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* === キラキラ瞬き：透明度＋拡大を強めに === */
@keyframes hero-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.3)  rotate(15deg); }
}
/* === 矢印：上下＋左右をミックス === */
@keyframes hero-arrow-bob {
  0%, 100% { transform: translate(0, 0)         rotate(0deg); }
  50%      { transform: translate(-10px, -22px) rotate(-8deg); }
}

/* 各要素にアニメーション割当（時間をバラけさせて単調にしない） */
.hero-art .blob-pink           { animation: hero-pulse-scale 7s   ease-in-out infinite; }
.hero-art .blob-yellow         { animation: hero-float-y     5s   ease-in-out infinite; }
.hero-art .pattern-dots-yellow { animation: hero-spin-slow  18s   linear      infinite; }
.hero-art .pattern-wave-pink   { animation: hero-float-xy    5s   ease-in-out infinite; }
.hero-art .pattern-stars       { animation: hero-twinkle     2s   ease-in-out infinite; }
.hero-art .pattern-arrow       { animation: hero-arrow-bob   3s   ease-in-out infinite 0.4s; }

/* モーション過敏な人向けに無効化（OS/ブラウザ設定を尊重） */
@media (prefers-reduced-motion: reduce) {
  .hero-art .blob-pink,
  .hero-art .blob-yellow,
  .hero-art .pattern-dots-yellow,
  .hero-art .pattern-wave-pink,
  .hero-art .pattern-stars,
  .hero-art .pattern-arrow {
    animation: none;
  }
}
/* イラスト画像を直接 hero-art に配置（コンテナ無しでエッジ artefact を回避） */
.hero-photo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0); /* GPU合成レイヤを明示 */
  width: 90%;
  max-width: 90%;
  height: auto;
  background: transparent;
  border: 0;
  outline: 0;
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* hero-art 内の全画像にエッジ artefact 防止 */
.hero-art img {
  border: 0;
  outline: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}

/* ---------- FILTER BAR ---------- */
.filter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px 12px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #5a6072;
  background: #ffffff;
  border: 1px solid #e3e6ed;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover {
  border-color: #ff6b1a;
  color: #ff6b1a;
}
.filter-btn.active {
  color: #ffffff;
  background: linear-gradient(180deg, #ff7a2f 0%, #ff5a0a 100%);
  border-color: transparent;
  box-shadow: 0 6px 14px -6px rgba(255,107,26,0.55);
  font-weight: 700;
}
.filter-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f3f5f9;
  color: #4a5063;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- MEMBER GRID ---------- */
.members {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #ffffff;
  border: 1px solid #ebeef3;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -18px rgba(35, 42, 60, 0.18);
}
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}
.card-photo img.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-photo .photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7a2f 0%, #ff5a0a 100%);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 64px;
  height: 64px;
}
.card-badge img { width: 100%; height: 100%; object-fit: contain; }
.card-badge .badge-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ff6b1a;
  color: #ff6b1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

/* タグ群と会員種別バッジを横並びに */
.card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  flex: 1;
}
.card-type {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef0f4;
  color: #4a5063;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 名前 + 会社名 */
.card-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #2c3142;
  line-height: 1.3;
}
.card-company {
  font-size: 12px;
  color: #8b91a3;
  margin: 0;
  line-height: 1.4;
}

/* サービス内容（1〜2行で省略） */
.card-service {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: #f9fafc;
  border-radius: 8px;
}
.card-service-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: #2c3142;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-service-desc {
  font-size: 12px;
  color: #6b7180;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 価格は目立つオレンジで */
.card-price {
  font-size: 16px;
  font-weight: 800;
  color: #ff6b1a;
  margin: 0;
  letter-spacing: 0.01em;
}

/* 自己紹介スニペット */
.card-snippet {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-snippet-label,
.card-cases-label {
  font-size: 11px;
  font-weight: 700;
  color: #8b91a3;
  letter-spacing: 0.05em;
}
.card-snippet-body {
  font-size: 12px;
  color: #4a5063;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 実績は強調枠で */
.card-cases {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: #fffbf2;
  border-left: 3px solid #fbbf24;
  border-radius: 4px;
}
.card-cases-body {
  font-size: 12px;
  color: #4a5063;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA は常にカード下端に押し付け */
.card-cta {
  margin-top: auto;
}
/* タグの共通スタイル（カードでもモーダルでも使用） */
.tag-text {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  /* デフォルト（カテゴリ未分類）— ニュートラルなグレー */
  background: #eef0f4;
  color: #4a5063;
}

/* ---------- カテゴリ別カラー（.tag-text と同じ詳細度なので、後勝ちで上書き） ---------- */
.tag-text.tag-sns    { background: #fce8f1; color: #b91c5c; }   /* SNS運用      — ピンク */
.tag-text.tag-web    { background: #e3eefd; color: #1d4ed8; }   /* Web制作      — ブルー */
.tag-text.tag-seo    { background: #dff5e7; color: #15803d; }   /* SEO         — グリーン */
.tag-text.tag-movie  { background: #ede4fa; color: #6d28d9; }   /* 動画        — パープル */
.tag-text.tag-ad     { background: #fde2dd; color: #b91c1c; }   /* 広告運用     — レッド */
.tag-text.tag-design { background: #fdf0d4; color: #a16207; }   /* デザイン     — アンバー */
.tag-text.tag-ai     { background: #d6f1ec; color: #0f766e; }   /* AI活用      — ティール */
.tag-text.tag-consul { background: #fff3ec; color: #c44a18; }   /* コンサル     — オレンジ */
.tag-text.tag-other  { background: #eef0f4; color: #4a5063; }   /* その他      — グレー */
.card-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #2c3142;
}
.card-role {
  font-size: 12px;
  color: #8b91a3;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 13px;
  color: #4a5063;
  line-height: 1.75;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid #ff6b1a;
  color: #ff6b1a;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  cursor: pointer;
  transition: all .15s;
  gap: 8px;
}
.card-cta:hover {
  background: #ff6b1a;
  color: #ffffff;
}
.card-cta .arrow { font-weight: 400; }

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 42, 60, 0.55);
}
.modal-dialog {
  position: relative;
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  font-size: 22px;
  cursor: pointer;
  z-index: 1;
}
.modal-close:hover { background: rgba(0,0,0,0.12); }
.modal-body { padding: 32px; }
.modal-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.modal-head .modal-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2f7;
  flex-shrink: 0;
}
.modal-head .modal-photo img,
.modal-head .modal-photo .photo-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-head .modal-photo .photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff7a2f 0%, #ff5a0a 100%);
}
.modal-name {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
}
.modal-role {
  color: #8b91a3;
  font-size: 13px;
  margin-top: 2px;
}
.modal-company {
  color: #4a5063;
  font-size: 14px;
  margin-top: 4px;
}
.detail-section {
  margin-top: 22px;
}
.detail-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: #8b91a3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.detail-section p { margin: 0; }
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* モーダル内のタグの細部調整（共通の .detail-tags .tag-text は上で統一済み） */
.contact-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 16px;
  font-size: 14px;
}
.contact-list dt {
  color: #8b91a3;
  font-weight: 500;
}
.contact-list dd {
  margin: 0;
  word-break: break-all;
}
.contact-list a {
  color: #ff6b1a;
  text-decoration: underline;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid #eef0f4;
  padding: 28px 32px;
  text-align: center;
  color: #8b91a3;
  font-size: 12px;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: #8b91a3;
}
.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 30px; }
  .hero-title .accent { font-size: 36px; }
}
@media (max-width: 640px) {
  .member-grid { grid-template-columns: 1fr; }

  /* ヘッダーを縦積み：ロゴ → ナビ + 検索 */
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }
  .logo {
    justify-content: center;     /* ロゴを中央に */
  }
  .logo img {
    height: 36px;
  }
  .logo-text {
    font-size: 18px;
  }
  .header-nav {
    width: 100%;
    gap: 12px;
    font-size: 14px;
    justify-content: flex-start;
  }
  .header-nav a {
    flex-shrink: 0;              /* メンバー一覧の文字が折れないように */
  }
  .search-wrap {
    flex: 1;                     /* 残り幅をいっぱい使う */
    padding: 4px 12px;
    height: 36px;
    min-width: 0;
  }
  .search-wrap input {
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }

  .hero-points { flex-wrap: wrap; gap: 16px; }   /* 狭い画面では折り返し可 */

  /* スマホ専用の改行を有効化（hero-title 内の <br class="mobile-only">） */
  .hero-title .mobile-only { display: inline; }
  .hero { padding: 20px 20px 32px; }
  .filter-section, .members { padding-left: 20px; padding-right: 20px; }
  .filter-count { margin-left: 0; }
  .modal-dialog { margin: 0; border-radius: 0; max-height: 100vh; min-height: 100vh; }
  .modal-body { padding: 24px 20px; }
  .modal-head { flex-direction: column; align-items: flex-start; }

  /* スクロールしても閉じるボタンを画面右上に固定（スマホのみ） */
  .modal-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 110;
    /* 視認性UP：白背景＋軽い影でコンテンツに溶けないように */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
}
