/* ============================================================
   TechBridge — フリーランスITエンジニア マッチングLP
   ============================================================ */

:root {
  --navy: #1A2B4A;
  --deep-navy: #0F1B33;
  --mid-navy: #243756;
  --offwhite: #F5F0E8;
  --white: #ffffff;
  --charcoal: #2D2D2D;
  --gold: #C8913A;
  --gold-rgb: 200, 145, 58;
  --font-serif: "DM Serif Display", serif;
  --font-sans: "Noto Sans JP", sans-serif;
  --font-mono: "DM Mono", monospace;
  --container: 1200px;
}

/* リセット */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); font-weight: 400; color: var(--charcoal); line-height: 1.8; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* コンテナ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }

/* セクション共通 */
.section-header { text-align: center; margin-bottom: 64px; }
.title-accent { display: block; font-family: var(--font-serif); font-style: italic; font-size: 13px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.title-accent.accent-gold { color: var(--gold); }
.section-title { font-family: var(--font-sans); font-size: 30px; font-weight: 700; color: var(--charcoal); line-height: 1.4; }
.section-title.light { color: var(--offwhite); }

/* ボタン */
.btn-primary { display: inline-block; background: var(--gold); color: #fff; font-family: var(--font-sans); font-size: 16px; font-weight: 700; padding: 16px 40px; border-radius: 4px; box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.4); transition: transform 0.25s, box-shadow 0.25s; white-space: nowrap; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(var(--gold-rgb), 0.5); }
.btn-ghost { display: inline-block; background: transparent; color: var(--offwhite); font-family: var(--font-sans); font-size: 16px; font-weight: 700; padding: 15px 40px; border-radius: 4px; border: 2px solid var(--offwhite); transition: background 0.25s; white-space: nowrap; }
.btn-ghost:hover { background: rgba(245, 240, 232, 0.1); }
.btn-ghost-gold { display: inline-block; background: transparent; color: var(--gold); font-family: var(--font-sans); font-size: 16px; font-weight: 700; padding: 15px 48px; border-radius: 4px; border: 2px solid var(--gold); transition: background 0.25s; }
.btn-ghost-gold:hover { background: rgba(var(--gold-rgb), 0.08); }

/* ============================================================
   注記バー
   ============================================================ */
.notice-bar { background: var(--deep-navy); color: rgba(245, 240, 232, 0.7); font-size: 11px; text-align: center; padding: 7px 16px; letter-spacing: 0.03em; }

/* ============================================================
   ヘッダー
   ============================================================ */
.header { background: rgba(26, 43, 74, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(245, 240, 232, 0.08); }
.header-inner { display: flex; align-items: center; gap: 40px; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: var(--font-serif); font-size: 26px; color: var(--offwhite); letter-spacing: 0.02em; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.header-nav a { font-size: 14px; color: rgba(245, 240, 232, 0.85); transition: color 0.2s; white-space: nowrap; }
.header-nav a:hover { color: var(--gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--offwhite); transition: transform 0.3s, opacity 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.header-btn { display: inline-block; background: var(--gold); color: #fff; font-size: 14px; font-weight: 700; padding: 10px 24px; border-radius: 4px; flex-shrink: 0; transition: opacity 0.2s; }
.header-btn:hover { opacity: 0.9; }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15, 27, 51, 0.75) 0%, rgba(26, 43, 74, 0.65) 50%, rgba(15, 27, 51, 0.8) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 100px 24px 80px; max-width: 800px; }
.hero-title { font-family: var(--font-sans); font-size: clamp(28px, 4.5vw, 52px); font-weight: 700; line-height: 1.4; margin-bottom: 28px; }
.hero-sub { font-size: 17px; line-height: 1.9; color: rgba(245, 240, 232, 0.9); margin-bottom: 48px; }
.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.portfolio-notice { font-size: 11px; opacity: 0.55; padding: 8px 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; display: inline-block; }

/* ============================================================
   数字で見る実績
   ============================================================ */
.track-record { background: var(--white); padding: 96px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat-item { text-align: center; padding: 32px 16px; border-left: 1px solid rgba(26, 43, 74, 0.1); }
.stat-item:first-child { border-left: none; }
.stat-number { font-family: var(--font-mono); font-size: clamp(28px, 3vw, 40px); font-weight: 500; color: var(--navy); line-height: 1.2; margin-bottom: 8px; }
.stat-unit { font-family: var(--font-sans); font-size: 16px; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 13px; color: #777; letter-spacing: 0.03em; }

/* ============================================================
   選ばれる3つの理由
   ============================================================ */
.features { background: var(--offwhite); padding: 120px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); transition: transform 0.3s; }
.card:hover { transform: translateY(-4px); }
.card-img-wrap { overflow: hidden; height: 220px; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img-wrap img { transform: scale(1.03); }
.card-body { padding: 28px 28px 32px; }
.card-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.5; }
.card-text { font-size: 14px; color: #555; line-height: 1.85; }

/* ============================================================
   案件の一例
   ============================================================ */
.projects { background: var(--navy); padding: 120px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.project-card { background: var(--mid-navy); border: 1px solid rgba(var(--gold-rgb), 0.2); border-radius: 8px; padding: 32px 28px; transition: border-color 0.3s, transform 0.3s; }
.project-card:hover { border-color: rgba(var(--gold-rgb), 0.6); transform: translateY(-3px); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.skill-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--gold); background: rgba(var(--gold-rgb), 0.1); padding: 4px 12px; border-radius: 3px; }
.project-meta { margin-bottom: 16px; }
.project-type { font-size: 13px; color: rgba(245, 240, 232, 0.6); }
.project-price { font-family: var(--font-mono); font-size: 28px; font-weight: 500; color: var(--offwhite); margin-bottom: 8px; }
.price-unit { font-size: 14px; font-family: var(--font-sans); color: rgba(245, 240, 232, 0.7); }
.project-industry { font-size: 13px; color: rgba(245, 240, 232, 0.55); }
.projects-cta { text-align: center; }

/* ============================================================
   利用の流れ
   ============================================================ */
.how-it-works { background: var(--white); padding: 120px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; }
.step-number { font-family: var(--font-mono); font-size: 48px; font-weight: 500; color: rgba(26, 43, 74, 0.12); line-height: 1; margin-bottom: 20px; }
.step-img-wrap { border-radius: 8px; overflow: hidden; margin-bottom: 24px; height: 200px; }
.step-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.step-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-text { font-size: 14px; color: #666; line-height: 1.8; }

/* ============================================================
   お客様の声
   ============================================================ */
.voices { background: var(--offwhite); padding: 120px 0; }
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.voice-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); }
.voice-img-wrap { height: 200px; overflow: hidden; }
.voice-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.voice-body { padding: 24px 24px 28px; }
.voice-attr { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 14px; line-height: 1.6; }
.voice-comment { font-size: 14px; color: #555; line-height: 1.9; font-style: normal; border-left: 3px solid var(--gold); padding-left: 16px; border: none; margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--white); padding: 120px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(26, 43, 74, 0.1); }
.faq-item:first-child { border-top: 1px solid rgba(26, 43, 74, 0.1); }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 22px 4px; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--navy); list-style: none; transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 24px; font-weight: 300; color: var(--gold); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-q { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--gold); background: rgba(var(--gold-rgb), 0.1); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; flex-shrink: 0; }
.faq-answer { padding: 0 4px 24px 44px; }
.faq-answer p { font-size: 15px; color: #555; line-height: 1.9; }

/* ============================================================
   最終CTA
   ============================================================ */
.cta-section { position: relative; padding: 120px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15, 27, 51, 0.82) 0%, rgba(26, 43, 74, 0.72) 100%); }
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-title { font-family: var(--font-sans); font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; color: var(--offwhite); line-height: 1.4; margin: 12px 0 20px; }
.cta-sub { font-size: 16px; color: rgba(245, 240, 232, 0.8); margin-bottom: 48px; line-height: 1.8; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   フッター
   ============================================================ */
.footer { background: var(--deep-navy); color: var(--offwhite); padding: 64px 0 40px; text-align: center; }
.footer-logo { font-family: var(--font-serif); font-size: 32px; color: var(--offwhite); margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: rgba(245, 240, 232, 0.6); margin-bottom: 32px; letter-spacing: 0.05em; }
.footer-nav { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-nav a { font-size: 14px; color: rgba(245, 240, 232, 0.7); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.portfolio-notice-footer { font-size: 12px; color: var(--gold); padding: 10px 20px; border: 1px solid rgba(var(--gold-rgb), 0.2); border-radius: 4px; background: rgba(var(--gold-rgb), 0.05); margin-bottom: 20px; display: inline-block; }
.copyright { font-size: 12px; color: rgba(245, 240, 232, 0.4); }

/* スクロールアンカー */
[id] { scroll-margin-top: 80px; }

/* ============================================================
   レスポンシブ: 768px
   ============================================================ */
@media (max-width: 768px) {
  .header-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15, 27, 51, 0.98); backdrop-filter: blur(12px); flex-direction: column; gap: 0; padding: 0; border-bottom: 1px solid rgba(245, 240, 232, 0.1); }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 16px 24px; border-bottom: 1px solid rgba(245, 240, 232, 0.06); width: 100%; }
  .hamburger { display: flex; }
  .header-btn { display: none; }
  .container { padding: 0 24px; }
  .hero { min-height: 100svh; }
  .hero-title { font-size: 28px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 85%; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-left: none; border-bottom: 1px solid rgba(26, 43, 74, 0.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(26, 43, 74, 0.1); }
  .features-grid, .projects-grid, .steps-grid, .voices-grid { grid-template-columns: 1fr; }
  .features, .projects, .how-it-works, .voices, .faq, .track-record { padding: 72px 0; }
  .section-title { font-size: 22px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn-primary, .cta-btns .btn-ghost { width: 85%; text-align: center; }
  .cta-section { padding: 80px 0; }
}

/* ============================================================
   レスポンシブ: 480px
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 90%; padding: 15px 24px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; }
  .cta-btns .btn-primary, .cta-btns .btn-ghost { width: 90%; }
  .section-title { font-size: 20px; }
  .features, .projects, .how-it-works, .voices, .faq, .track-record { padding: 56px 0; }
  .cta-section { padding: 64px 0; }
  .project-card { padding: 24px 20px; }
  .project-price { font-size: 24px; }
}
