/* =========================================================
   経営堂 新サイト 共通スタイル（案B：白ベース＋オレンジグラデ）
   ========================================================= */

:root {
  --orange:     #E8600A;
  --orange-lt:  #F5820D;
  --orange-dk:  #D4560A;
  --orange-bg:  #FFF5EE;
  --orange-pale:#FDE8D8;
  --dark:       #1A1209;
  --charcoal:   #3D2B1F;
  --warm-gray:  #8C7B6E;
  --border:     #E8D9CE;
  --white:      #FFFCFA;
  --grad:       linear-gradient(135deg, #D4560A 0%, #E8600A 45%, #F5820D 100%);
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.7;
}

img { max-width: 100%; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--border); padding: 0 2rem;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { font-family: 'Noto Serif JP', serif; font-size: 1.35rem; color: var(--dark); text-decoration: none; letter-spacing: 0.08em; display: flex; align-items: center; gap: 0.5rem; }
.logo-mark { width: 32px; height: 32px; background: var(--orange); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: white; font-weight: 700; }
.gnav { display: flex; gap: 2rem; align-items: center; }
.gnav a { color: var(--charcoal); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em; transition: color 0.2s; }
.gnav a:hover, .gnav a.active { color: var(--orange); }
.btn-consult { background: var(--orange); color: white !important; padding: 0.45rem 1.2rem; border-radius: 4px; font-weight: 700; font-size: 0.82rem !important; transition: background 0.2s, transform 0.1s; }
.btn-consult:hover { background: var(--orange-lt) !important; transform: translateY(-1px); }

/* ===== HERO（トップ） ===== */
.hero { background: var(--grad); padding: 5rem 2rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 20%, rgba(255,255,255,0.15) 0%, transparent 55%); }
.hero-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.92); color: var(--orange); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; padding: 0.25rem 0.75rem; border-radius: 2px; margin-bottom: 1.5rem; }
.hero h1 { font-family: 'Noto Serif JP', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: white; line-height: 1.4; margin-bottom: 1rem; text-shadow: 0 1px 8px rgba(120,45,0,0.18); }
.hero h1 span { color: #FFE9CF; border-bottom: 3px solid rgba(255,255,255,0.5); }
.hero p { color: rgba(255,248,240,0.9); font-size: 1rem; max-width: 500px; margin-bottom: 2.5rem; }

.search-box { background: white; border-radius: 8px; box-shadow: 0 12px 36px rgba(120,45,0,0.22); padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.search-field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 140px; }
.search-field label { font-size: 0.75rem; color: var(--warm-gray); letter-spacing: 0.05em; }
.search-field select, .search-field input { background: var(--white); border: 1px solid var(--border); color: var(--charcoal); padding: 0.6rem 0.85rem; border-radius: 4px; font-family: 'Noto Sans JP', sans-serif; font-size: 0.88rem; }
.btn-search { background: var(--orange); color: white; border: none; padding: 0.65rem 1.8rem; border-radius: 4px; font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap; transition: background 0.2s; font-family: 'Noto Sans JP', sans-serif; }
.btn-search:hover { background: var(--orange-lt); }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.stat { text-align: center; }
.stat-num { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; font-weight: 700; color: white; display: block; }
.stat-label { font-size: 0.75rem; color: rgba(255,248,240,0.85); }

/* ===== PAGE HEADER（下層） ===== */
.page-header { background: var(--grad); padding: 2.5rem 2rem; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 30%, rgba(255,255,255,0.15) 0%, transparent 55%); }
.page-header-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,248,240,0.75); font-size: 0.78rem; text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,248,240,0.6); font-size: 0.78rem; }
.page-header h1 { font-family: 'Noto Serif JP', serif; color: white; font-size: 1.5rem; }
.page-header p { color: rgba(255,248,240,0.9); font-size: 0.85rem; margin-top: 0.3rem; }

/* ===== SECTION（トップ用） ===== */
section.block { padding: 4rem 2rem; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; border-bottom: 2px solid var(--border); padding-bottom: 1rem; }
.section-head h2 { font-family: 'Noto Serif JP', serif; font-size: 1.4rem; color: var(--dark); }
.section-head .section-sub { font-size: 0.8rem; color: var(--warm-gray); }
.see-all { margin-left: auto; color: var(--orange); text-decoration: none; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; transition: opacity 0.2s; }
.see-all:hover { opacity: 0.75; }

.category-section { background: var(--orange-bg); }
.category-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.cat-tag { background: white; border: 1px solid var(--border); color: var(--charcoal); text-decoration: none; padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.82rem; transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem; }
.cat-tag:hover { background: var(--orange); color: white; border-color: var(--orange); }
.cat-tag .count { color: var(--warm-gray); font-size: 0.72rem; }
.cat-tag:hover .count { color: rgba(255,255,255,0.8); }

/* ===== カード（トップの新着） ===== */
.consultant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; text-decoration: none; display: block; color: inherit; }
.card:hover { box-shadow: 0 8px 24px rgba(232,96,10,0.12); transform: translateY(-2px); }
.card-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--orange-pale); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--orange); font-family: 'Noto Serif JP', serif; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-name-wrap { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.card-name { font-family: 'Noto Serif JP', serif; font-size: 1.05rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.card-career { font-size: 0.72rem; color: var(--warm-gray); background: var(--orange-bg); display: inline-block; padding: 0.2rem 0.6rem; border-radius: 2px; align-self: flex-start; }
.card-catch { font-size: 0.85rem; color: var(--charcoal); margin-bottom: 0.85rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.tag { font-size: 0.72rem; background: var(--orange-bg); color: var(--orange); padding: 0.2rem 0.55rem; border-radius: 3px; border: 1px solid var(--orange-pale); }
.tag.area { background: #F5F0EB; color: var(--warm-gray); border-color: var(--border); }
.card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.card-area { font-size: 0.75rem; color: var(--warm-gray); }

/* ===== 一覧ページ ===== */
.layout { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem; align-items: start; }
.sidebar { position: sticky; top: 80px; }
.filter-panel { background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.filter-panel-head { background: var(--grad); padding: 0.85rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.filter-panel-head h3 { color: white; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; }
.filter-reset { font-size: 0.72rem; color: rgba(255,248,240,0.85); text-decoration: underline; }
.filter-reset:hover { color: white; }
.filter-section { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-section h4 { font-size: 0.75rem; color: var(--warm-gray); letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.filter-options { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-option { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.82rem; }
.filter-option input[type="checkbox"] { accent-color: var(--orange); width: 14px; height: 14px; }
.filter-option .count { margin-left: auto; font-size: 0.72rem; color: var(--warm-gray); }
.filter-keyword { width: 100%; padding: 0.55rem 0.8rem; border: 1px solid var(--border); border-radius: 4px; font-family: 'Noto Sans JP', sans-serif; font-size: 0.85rem; color: var(--charcoal); background: var(--white); }
.filter-keyword:focus { outline: none; border-color: var(--orange); }
.btn-search-apply { width: 100%; padding: 0.7rem; background: var(--orange); color: white; border: none; border-radius: 4px; font-weight: 700; font-size: 0.88rem; cursor: pointer; font-family: 'Noto Sans JP', sans-serif; transition: background 0.2s; }
.btn-search-apply:hover { background: var(--orange-lt); }

.main-col { min-width: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.result-count { font-size: 0.85rem; color: var(--warm-gray); }
.result-count strong { color: var(--dark); font-size: 1rem; }

.consultant-list { display: flex; flex-direction: column; gap: 1rem; }
.c-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; display: grid; grid-template-columns: 72px 1fr auto; gap: 1.2rem; align-items: start; transition: box-shadow 0.2s, transform 0.15s; text-decoration: none; color: inherit; }
.c-card:hover { box-shadow: 0 6px 20px rgba(232,96,10,0.11); transform: translateY(-2px); border-color: var(--orange-pale); }
.c-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--orange); font-family: 'Noto Serif JP', serif; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.c-body { min-width: 0; }
.c-name-row { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.3rem; flex-wrap: wrap; }
.c-name { font-family: 'Noto Serif JP', serif; font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.c-career { font-size: 0.72rem; color: var(--warm-gray); background: var(--orange-bg); padding: 0.15rem 0.55rem; border-radius: 2px; }
.c-catch { font-size: 0.88rem; color: var(--charcoal); margin-bottom: 0.75rem; line-height: 1.6; }
.c-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.c-meta { display: flex; gap: 1.2rem; align-items: center; }
.c-area { font-size: 0.78rem; color: var(--warm-gray); }
.c-action { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-end; padding-top: 0.2rem; }
.btn-detail { background: var(--orange); color: white; padding: 0.5rem 1.2rem; border-radius: 4px; font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
.btn-detail:hover { background: var(--orange-lt); }
.btn-inquiry { background: white; color: var(--orange); padding: 0.5rem 1.2rem; border-radius: 4px; font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid var(--orange-pale); transition: background 0.2s; }
.btn-inquiry:hover { background: var(--orange-bg); }

.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn { min-width: 36px; height: 36px; padding: 0 0.5rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; text-decoration: none; border: 1px solid var(--border); color: var(--charcoal); transition: all 0.15s; }
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); border-color: var(--orange); color: white; font-weight: 700; }
.page-btn.dots { border: none; cursor: default; }
.no-result { text-align: center; padding: 4rem 2rem; color: var(--warm-gray); font-size: 0.9rem; }

/* ===== 詳細ページ ===== */
.profile-hero { display: flex; gap: 2rem; align-items: center; }
.profile-photo { width: 100px; height: 100px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--orange); font-family: 'Noto Serif JP', serif; font-weight: 700; flex-shrink: 0; border: 3px solid rgba(255,255,255,0.5); box-shadow: 0 4px 16px rgba(120,45,0,0.18); overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-career { font-size: 0.75rem; color: var(--orange); background: rgba(255,255,255,0.92); display: inline-block; padding: 0.2rem 0.7rem; border-radius: 2px; margin-bottom: 0.5rem; font-weight: 700; }
.profile-name { font-family: 'Noto Serif JP', serif; color: white; font-size: 1.9rem; font-weight: 700; margin-bottom: 0.4rem; text-shadow: 0 1px 8px rgba(120,45,0,0.18); }
.profile-catch { color: rgba(255,248,240,0.9); font-size: 0.88rem; }

.detail-layout { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 2rem; padding: 2.5rem 2rem; align-items: start; }
.section-block { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 1.8rem; margin-bottom: 1.5rem; }
.section-block h2 { font-family: 'Noto Serif JP', serif; font-size: 1rem; color: var(--dark); border-left: 3px solid var(--orange); padding-left: 0.75rem; margin-bottom: 1.2rem; }
.tag-group { margin-bottom: 1rem; }
.tag-group:last-child { margin-bottom: 0; }
.tag-group-label { font-size: 0.72rem; color: var(--warm-gray); margin-bottom: 0.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.profile-text { font-size: 0.9rem; line-height: 1.9; color: var(--charcoal); white-space: pre-line; overflow-wrap: break-word; }

.inquiry-box { background: var(--grad); border-radius: 8px; padding: 1.6rem; margin-bottom: 1rem; }
.inquiry-box h3 { font-family: 'Noto Serif JP', serif; color: white; font-size: 1rem; margin-bottom: 0.5rem; }
.inquiry-box p { color: rgba(255,248,240,0.9); font-size: 0.8rem; margin-bottom: 1.2rem; line-height: 1.7; }
.btn-inquiry-main { display: block; width: 100%; background: white; color: var(--orange); text-align: center; text-decoration: none; padding: 0.85rem; border-radius: 4px; font-weight: 700; font-size: 0.92rem; transition: background 0.2s; margin-bottom: 0.6rem; box-shadow: 0 4px 16px rgba(120,45,0,0.2); }
.btn-inquiry-main:hover { background: var(--orange-bg); }
.inquiry-note { font-size: 0.72rem; color: rgba(255,248,240,0.8); text-align: center; }

.info-box { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; margin-bottom: 1rem; }
.info-box h4 { font-size: 0.75rem; color: var(--warm-gray); letter-spacing: 0.06em; margin-bottom: 0.8rem; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.84rem; gap: 1rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--warm-gray); font-size: 0.78rem; white-space: nowrap; }
.info-value { color: var(--charcoal); font-weight: 500; text-align: right; overflow-wrap: anywhere; }

.related-box { background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.related-box-head { background: var(--orange-bg); padding: 0.75rem 1.2rem; font-size: 0.8rem; color: var(--warm-gray); font-weight: 700; letter-spacing: 0.04em; }
.related-list { padding: 0.5rem 0; }
.related-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.65rem 1.2rem; text-decoration: none; color: inherit; transition: background 0.15s; }
.related-item:hover { background: var(--orange-bg); }
.related-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange-pale); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--orange); font-family: 'Noto Serif JP', serif; font-weight: 700; overflow: hidden; }
.related-avatar img { width: 100%; height: 100%; object-fit: cover; }
.related-info { min-width: 0; }
.related-name { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.related-catch { font-size: 0.72rem; color: var(--warm-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== CTA ===== */
.cta-section { background: var(--grad); padding: 4rem 2rem; text-align: center; }
.cta-section h2 { font-family: 'Noto Serif JP', serif; color: white; font-size: 1.6rem; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,248,240,0.9); margin-bottom: 2rem; font-size: 0.9rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: white; color: var(--orange); text-decoration: none; padding: 0.85rem 2.2rem; border-radius: 4px; font-weight: 700; font-size: 0.95rem; transition: background 0.2s, transform 0.1s; box-shadow: 0 4px 16px rgba(120,45,0,0.2); display: inline-block; }
.btn-primary:hover { background: var(--orange-bg); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: white; text-decoration: none; padding: 0.85rem 2.2rem; border-radius: 4px; font-weight: 700; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.6); transition: border-color 0.2s, background 0.2s; display: inline-block; }
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.12); }

/* ===== FOOTER ===== */
.site-footer { background: var(--charcoal); padding: 3rem 2rem 1.5rem; color: #C8B9AF; font-size: 0.8rem; }
.footer-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: 'Noto Serif JP', serif; color: white; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-desc { color: #C8B9AF; line-height: 1.7; }
.footer-col h4 { color: #E8D9CE; font-size: 0.78rem; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.footer-col a { display: block; color: #C8B9AF; text-decoration: none; margin-bottom: 0.4rem; }
.footer-col a:hover { color: var(--orange-lt); }
.footer-copy { text-align: center; border-top: 1px solid #4E3A2C; padding-top: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .gnav { display: none; }
  .layout, .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .c-card { grid-template-columns: 56px 1fr; }
  .c-action { display: none; }
  .profile-hero { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .consultant-grid { grid-template-columns: 1fr; }
}
