/*
Theme Name: Core Research
Theme URI: https://www.souzoku.co-res.com
Author: Core Research Co., Ltd.
Author URI: https://www.souzoku.co-res.com
Description: 株式会社コア・リサーチ 公式サイトテーマ
Version: 1.0.0
License: Private
Text Domain: core-research
*/

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

:root {
  --navy: #0D2340;
  --navy-mid: #1A3A5C;
  --teal: #0F6E56;
  --teal-light: #E1F5EE;
  --teal-mid: #1D9E75;
  --blue: #185FA5;
  --blue-light: #E6F1FB;
  --amber: #854F0B;
  --amber-light: #FAEEDA;
  --gray-100: #F5F4F2;
  --gray-200: #E8E6E2;
  --gray-400: #9A9590;
  --gray-600: #5F5E5A;
  --white: #FFFFFF;
  --text: #1A1A18;
  --text-muted: #5F5E5A;
  --text-light: #9A9590;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── NAV ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo { display: flex; align-items: baseline; gap: 10px; }
.logo-main { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; }
.logo-sub  { font-size: 10px; font-weight: 300; color: var(--text-light); letter-spacing: 0.1em; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--navy); }

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 20px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 4px;
  transition: background 0.2s;
  letter-spacing: 0.04em;
}
.nav-cta:hover { background: var(--navy-mid) !important; color: var(--white) !important; }

/* ─── HAMBURGER ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(15,110,86,0.18);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; right: 200px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(24,95,165,0.12);
  pointer-events: none;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--teal-mid);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--teal-mid);
}
.hero h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero h1 em { font-style: normal; color: var(--teal-mid); }
.hero-desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-hero-primary {
  font-size: 13px; font-weight: 500;
  padding: 13px 28px;
  background: var(--teal-mid); color: var(--white);
  border: none; border-radius: 4px; cursor: pointer;
  letter-spacing: 0.04em; transition: background 0.2s; display: inline-block;
}
.btn-hero-primary:hover { background: var(--teal); color: var(--white); }

.btn-hero-secondary {
  font-size: 13px; font-weight: 400;
  padding: 13px 28px;
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 4px;
  cursor: pointer; letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s; display: inline-block;
}
.btn-hero-secondary:hover { border-color: rgba(255,255,255,0.55); color: var(--white); }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badge {
  font-size: 11px; color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 12px; border-radius: 2px; letter-spacing: 0.04em;
}

/* ─── SECTIONS ─── */
.section { padding: 4.5rem 2.5rem; border-bottom: 1px solid var(--border); }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--teal);
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.section h2 {
  font-size: 22px; font-weight: 700;
  color: var(--navy); margin-bottom: 2rem; letter-spacing: 0.02em;
}
.section-lead {
  font-size: 14px; color: var(--text-muted);
  max-width: 600px; margin-bottom: 2.5rem; line-height: 1.85;
}

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.service-card:hover { background: var(--gray-100); }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-blue  { background: var(--blue-light);  color: var(--blue); }
.icon-teal  { background: var(--teal-light);  color: var(--teal); }
.icon-amber { background: var(--amber-light); color: var(--amber); }
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--navy); margin-bottom: 0.75rem; letter-spacing: 0.02em;
}
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.85; }
.service-tag {
  display: inline-block; font-size: 10px; font-weight: 500;
  padding: 3px 8px; border-radius: 2px; margin-top: 1rem; letter-spacing: 0.06em;
}
.tag-free { background: var(--teal-light); color: var(--teal); }
.tag-main { background: var(--blue-light);  color: var(--blue); }

/* ─── PROCESS ─── */
.section-gray { background: var(--gray-100); }
.process-steps { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.step-num-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-line {
  width: 1px; flex: 1;
  background: var(--border-strong);
  min-height: 32px; margin-top: 8px;
}
.process-step:last-child .step-line { display: none; }
.step-content h3 {
  font-size: 15px; font-weight: 700;
  color: var(--navy); margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
.step-content p { font-size: 13px; color: var(--text-muted); line-height: 1.85; }

/* ─── SPECIALISTS ─── */
.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 1.5rem;
}
.spec-card {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 1.25rem 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.spec-card:hover { border-color: var(--teal-mid); background: var(--teal-light); }
.spec-card svg { width: 20px; height: 20px; color: var(--teal); margin-bottom: 8px; }
.spec-card h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.spec-card p  { font-size: 12px; color: var(--text-muted); }
.specialist-note {
  font-size: 13px; color: var(--text-muted); line-height: 1.85;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--teal-mid);
  background: var(--teal-light);
  border-radius: 0 6px 6px 0;
}

/* ─── CEO ─── */
.ceo-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem; align-items: start;
  padding: 2rem; background: var(--gray-100); border-radius: 8px;
}
.ceo-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.04em; flex-shrink: 0;
}
.ceo-quote { font-size: 14px; color: var(--text); line-height: 1.95; margin-bottom: 0.75rem; }
.ceo-name  { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ─── MEDIA ─── */
.media-row { display: flex; gap: 12px; flex-wrap: wrap; }
.media-chip {
  font-size: 13px; font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 4px; color: var(--gray-600); letter-spacing: 0.03em;
}

/* ─── AREA ─── */
.area-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.area-pill {
  font-size: 13px; padding: 6px 16px; border-radius: 20px;
  background: var(--blue-light); color: var(--blue); font-weight: 500;
}

/* ─── CTA FOOTER ─── */
.cta-section {
  background: var(--navy); padding: 5rem 2.5rem;
  text-align: center; color: var(--white);
}
.cta-section h2 {
  font-size: 24px; font-weight: 700;
  margin-bottom: 0.75rem; letter-spacing: 0.02em; color: var(--white);
}
.cta-section p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 2rem; line-height: 1.85; }
.btn-cta {
  display: inline-block; font-size: 13px; font-weight: 500;
  padding: 14px 36px; background: var(--teal-mid);
  color: var(--white); border-radius: 4px;
  letter-spacing: 0.06em; transition: background 0.2s;
}
.btn-cta:hover { background: var(--teal); color: var(--white); }

/* ─── FOOTER ─── */
.site-footer {
  background: #081828; padding: 1.5rem 2.5rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.04em; }
.footer-nav  { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 11px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-nav a:hover { color: rgba(255,255,255,0.6); }

/* ─── PAGE / SINGULAR ─── */
.page-hero {
  background: var(--navy); color: var(--white);
  padding: 3.5rem 2.5rem 3rem;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; letter-spacing: 0.02em;
}
.page-content {
  max-width: 900px; margin: 0 auto;
  padding: 3rem 2.5rem;
  font-size: 15px; line-height: 1.85; color: var(--text);
}
.page-content h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 2rem 0 1rem; }
.page-content h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 1.5rem 0 0.75rem; }
.page-content p  { margin-bottom: 1.25rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content ul li { list-style: disc; margin-bottom: 0.4rem; }
.page-content ol li { list-style: decimal; margin-bottom: 0.4rem; }

/* ─── CONTACT FORM ─── */
.contact-section { padding: 3rem 2.5rem; }
.contact-inner { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--navy); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px;
  font-size: 14px; font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: 4px; background: var(--white);
  color: var(--text); transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--teal-mid);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-required { color: var(--teal); margin-left: 4px; }
.form-submit {
  font-size: 14px; font-weight: 500;
  padding: 13px 40px; background: var(--navy);
  color: var(--white); border: none; border-radius: 4px;
  cursor: pointer; letter-spacing: 0.06em; transition: background 0.2s;
}
.form-submit:hover { background: var(--navy-mid); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-inner { padding: 0 1.25rem; }
  .nav-menu { display: none; flex-direction: column; gap: 0; }
  .nav-menu.is-open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
  }
  .nav-menu a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 14px; }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .section { padding: 3rem 1.25rem; }
  .cta-section { padding: 3.5rem 1.25rem; }
  .site-footer { padding: 1.25rem; flex-direction: column; align-items: flex-start; }
  .ceo-block { grid-template-columns: 1fr; }
  .ceo-avatar { width: 56px; height: 56px; font-size: 14px; }
  .process-step { grid-template-columns: 44px 1fr; }
  .page-hero { padding: 2.5rem 1.25rem 2rem; }
  .page-content { padding: 2rem 1.25rem; }
  .contact-section { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
