/* ============================================================
   Effect Partners — Global Stylesheet v2
   Design: Editorial / Consulting — PKSHA-inspired
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Inter:wght@400;500;700&display=swap');

/* ── Variables ── */
:root {
  --black:      #182030;   /* ダークネイビー（純黒でなく青みがかった深色） */
  --gray-900:   #253044;
  --gray-600:   #5c6880;
  --gray-400:   #8f9aad;
  --gray-200:   #dde1e8;
  --gray-100:   #f4f5f7;   /* 少し青みがかったオフホワイト */
  --white:      #fafbfc;   /* 純白より少し落ち着いた白 */
  --accent:     #182030;
  --font-en:    'Inter', sans-serif;
  --font-ja:    'Noto Sans JP', sans-serif;
  --transition: .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 88%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Section spacing ── */
section { padding: 120px 0; }
.section-dark {
  background: linear-gradient(160deg, #1e2d45 0%, #182030 100%);
  color: var(--white);
}
.section-light { background: var(--gray-100); }

/* ── Section label (English, small caps) ── */
.section-label {
  font-family: var(--font-en);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.section-dark .section-label { color: rgba(255,255,255,.4); }

/* ── Section number ── */
.section-num {
  font-family: var(--font-en);
  font-size: .75rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.section-dark .section-num { color: rgba(255,255,255,.3); }

/* ── Headings ── */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}
.section-lead {
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.9;
  max-width: 600px;
}
.section-dark .section-lead { color: rgba(255,255,255,.55); }

/* ── Horizontal rule ── */
.rule {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}
.rule-dark { border-color: rgba(255,255,255,.1); }

/* ── Text link ── */
.text-link {
  font-family: var(--font-en);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}
.text-link:hover { opacity: .5; }
.text-link::after { content: '→'; font-size: .75rem; }
.text-link-light {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.text-link-light:hover { opacity: .6; }

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-ja);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1.5px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover { background: var(--gray-900); }
.btn-outline {
  background: transparent;
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}
.btn-light:hover { background: var(--gray-100); }
.btn-outline-light {
  border-color: rgba(255,255,255,.5);
  background: transparent;
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
}
.site-header.scrolled {
  background: rgba(24,32,48,.98);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-family: var(--font-en);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--white); }
.nav-cta {
  font-family: var(--font-ja) !important;
  font-size: .8125rem !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,.35);
  padding: 8px 18px;
}
.nav-cta:hover { border-color: var(--white) !important; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; outline: none; -webkit-appearance: none; }
.hamburger span { width: 22px; height: 1.5px; background: var(--white); display: block; transition: var(--transition); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #1e2d45 0%, #182030 60%, #111827 100%);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  width: 88%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 0 96px;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .85;
}
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(1.5rem, 3vw, 2.375rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero-title .sub {
  display: block;
  font-size: clamp(.8125rem, 1.2vw, .9375rem);
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,.45);
  margin-top: 14px;
  line-height: 1.7;
}
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 8px;
}
.hero-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; padding: 100px 0 72px; }
  .hero-visual { display: none; }
}

/* ── About ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.steps {
  display: flex;
  flex-direction: column;
}
.step-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}
.step-row:first-child { border-top: 1px solid var(--gray-200); }
.step-row-num {
  font-family: var(--font-en);
  font-size: .75rem;
  font-weight: 500;
  color: var(--gray-400);
  padding-top: 4px;
}
.step-row-title {
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: 8px;
}
.step-row-desc {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ── Service page grid ── */
.service-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-200);
  margin-top: 0;
}
.service-page-card {
  background: var(--white);
  padding: 48px 40px;
}
.service-page-num {
  font-family: var(--font-en);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .15em;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.service-page-label {
  font-family: var(--font-en);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.service-page-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}
.service-page-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.service-page-bullets li {
  font-size: .8125rem;
  color: var(--gray-600);
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
}
.service-page-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-400);
  font-size: .7rem;
}
@media (max-width: 768px) {
  .service-page-grid { grid-template-columns: 1fr; }
  .service-page-card { padding: 36px 24px; }
}

/* ── Service (dark) ── */
.service-list {
  margin-top: 64px;
}
.service-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: var(--transition);
}
.service-item:first-child { border-top: 1px solid rgba(255,255,255,.1); }
.service-item:hover .service-item-arrow { transform: translateX(4px); }
.service-item-title {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--white);
  margin-bottom: 8px;
}
.service-item-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  max-width: 560px;
}
.service-item-arrow {
  font-family: var(--font-en);
  font-size: .875rem;
  color: rgba(255,255,255,.3);
  transition: transform var(--transition);
}

/* ── Works ── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  margin-top: 64px;
}
.work-card {
  background: var(--white);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--transition);
}
.work-card:hover { background: var(--gray-100); }
.work-tag {
  font-family: var(--font-en);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.work-title {
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--black);
  flex: 1;
}
.work-link {
  font-family: var(--font-en);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--gray-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.work-card:hover .work-link { color: var(--black); }
.work-link::after { content: '→'; }

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  margin-top: 64px;
}
.team-card {
  background: var(--white);
  padding: 36px 24px;
}
.team-meta {
  font-family: var(--font-en);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--gray-400);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.team-role {
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: 16px;
  line-height: 1.4;
}
.team-desc {
  font-size: .8125rem;
  color: var(--gray-600);
  line-height: 1.8;
}
.team-skills {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-skill {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  padding: 3px 8px;
}

/* ── FAQ ── */
.faq-list {
  margin-top: 64px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
  align-items: start;
}
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:nth-child(1),
.faq-item:nth-child(2) { border-top: 1px solid var(--gray-200); }
@media (max-width: 768px) {
  .faq-list { grid-template-columns: 1fr; }
  .faq-item:nth-child(2) { border-top: none; }
}
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-weight: 700;
  font-size: .9375rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--black);
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gray-600); }
.faq-icon {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gray-400);
  width: 24px;
  text-align: center;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.85;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 24px; }

/* ── CTA ── */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(160deg, #253044 0%, #182030 100%);
}
.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}
.cta-sub {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
}
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  background: #111827;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 64px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  line-height: 1.8;
}
.footer-col h4 {
  font-family: var(--font-en);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px;
  font-family: var(--font-en);
  font-size: .6875rem;
  color: rgba(255,255,255,.25);
  letter-spacing: .05em;
}

/* page-hero 直後のセクションは上余白を詰める */
.page-hero + section,
.page-hero + div + section {
  padding-top: 48px;
}
/* page-hero 直後のグリッド・リスト類のmargin-topもリセット */
.page-hero + section .works-index-grid,
.page-hero + section .works-grid,
.page-hero + section .steps,
.page-hero + section .form-wrap,
.page-hero + section .faq-list {
  margin-top: 0;
}

/* ── Inner page hero ── */
.page-hero {
  background: linear-gradient(160deg, #1e2d45 0%, #182030 100%);
  padding: 96px 0 36px;
}
.page-hero-eyebrow {
  font-family: var(--font-en);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
}
.page-hero-title {
  font-size: clamp(1.25rem, 2.25vw, 1.875rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  max-width: 520px;
  line-height: 1.8;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: 48px;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb span + span::before { content: '/'; margin-right: 12px; }

/* ── Works index ── */
.works-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  margin-top: 64px;
}

/* ── Post ── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}
.post-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}
.post-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.post-body p { font-size: .9375rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 20px; }
.post-body ul { margin-bottom: 20px; }
.post-body li { font-size: .9375rem; color: var(--gray-600); line-height: 1.85; padding-left: 16px; position: relative; margin-bottom: 6px; }
.post-body li::before { content: '—'; position: absolute; left: 0; color: var(--gray-400); font-size: .75rem; }
.post-sidebar { position: sticky; top: 88px; }
.post-meta { border: 1px solid var(--gray-200); padding: 28px; margin-bottom: 24px; }
.post-meta h3 { font-size: .6875rem; font-family: var(--font-en); letter-spacing: .15em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 20px; }
.post-meta-row { display: flex; justify-content: space-between; gap: 16px; font-size: .8125rem; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.post-meta-row:last-child { border-bottom: none; }
.post-meta-row span { color: var(--gray-400); }
.post-meta-row strong { color: var(--black); text-align: right; }

/* ── Form ── */
.form-wrap { max-width: 640px; margin: 64px auto 0; }
.form-group { margin-bottom: 32px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}
.req {
  font-family: var(--font-en);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white);
  background: var(--black);
  padding: 2px 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  font-size: .9375rem;
  font-family: var(--font-ja);
  color: var(--black);
  background: transparent;
  transition: border-color var(--transition);
  border-radius: 0;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--black);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit {
  width: 100%;
  padding: 16px;
  font-size: .9375rem;
  font-weight: 700;
  font-family: var(--font-ja);
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  letter-spacing: .04em;
  transition: opacity var(--transition);
  margin-top: 16px;
}
.form-submit:hover { opacity: .75; }
.form-note { font-size: .8125rem; color: var(--gray-400); margin-top: 12px; text-align: center; }

/* ── Service detail (inner page) ── */
.service-detail-list {
  display: flex;
  flex-direction: column;
}
.service-detail-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-detail-item:first-child { border-top: 1px solid var(--gray-200); }
.service-detail-num {
  font-family: var(--font-en);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--gray-400);
  padding-top: 4px;
  letter-spacing: .08em;
}
.service-detail-title {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 12px;
}
.service-detail-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-detail-bullets li {
  font-size: .875rem;
  color: var(--gray-600);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}
.service-detail-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-400);
  font-size: .7rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .container, .hero-inner { width: 92%; }
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 8%;
    gap: 32px;
    z-index: 200;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.125rem; }
  .hamburger { display: flex; z-index: 201; position: relative; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
  .about-layout { grid-template-columns: 1fr; gap: 56px; }
  .works-grid, .works-index-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .post-layout { grid-template-columns: 1fr; }
  .service-detail-item { grid-template-columns: 32px 1fr; }
  .service-detail-item .text-link { display: none; }
  .hero { padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}
