/* =============================================
   IL·LEGAME — Main Stylesheet
   ============================================= */

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

:root {
  --ink: #0d0d0b;
  --ink-mid: #3a3a36;
  --ink-light: #7a7a72;
  --cream: #f5f3ee;
  --warm: #ede9e1;
  --gold: #b8975a;
  --gold-light: #d4b97a;
  --white: #fdfcf9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

/* CURSOR */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.2s;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.4s ease, width 0.3s, height 0.3s, opacity 0.2s;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

/* HEADER */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 56px;
  transition: background 0.4s, padding 0.4s;
}
header.scrolled {
  background: rgba(253,252,249,0.95);
  backdrop-filter: blur(12px);
  padding: 18px 56px;
  border-bottom: 1px solid rgba(184,151,90,0.15);
}
.logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo span { color: var(--gold); }
nav { display: flex; gap: 40px; align-items: center; }
nav a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold); }
.nav-cta {
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  border: 1px solid var(--gold);
  padding: 10px 24px;
  color: var(--gold) !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--gold); color: var(--white) !important; }

/* HAMBURGER (mobile) */
.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: 1px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 56px 80px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 40px;
}
.hero-h1 em { font-style: normal; color: var(--gold); font-weight: 300; }
.hero-sub {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-mid);
  max-width: 420px;
  margin-bottom: 56px;
}
.hero-actions { display: flex; gap: 24px; align-items: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 16px 36px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, gap 0.2s;
}
.btn-primary:hover { background: var(--gold); gap: 20px; }
.btn-text {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-mid);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-text:hover { color: var(--gold); border-color: var(--gold); }
.hero-right { position: relative; overflow: hidden; }
.hero-img-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 40%);
}
.hero-img-placeholder { width: 100%; height: 100%; }
.hero-svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scroll {
  position: absolute;
  bottom: 48px; left: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* MARQUEE */
.marquee-section {
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 18px 0;
  overflow: hidden;
  background: var(--cream);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: var(--serif);
  font-size: 14px;
  font-style: normal;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 64px;
}
.marquee-item::after {
  content: '◆';
  color: var(--gold);
  font-style: normal;
  font-size: 8px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
section { padding: 120px 56px; }
.section-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}
.section-title em { font-style: normal; color: var(--gold); }

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--cream);
}
.about-desc {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-mid);
  margin-bottom: 48px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.stat-num { font-family: var(--serif); font-size: 48px; font-weight: 300; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.stat-num span { color: var(--gold); font-size: 28px; }
.stat-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-light); }
.about-right { position: relative; }
.about-img-block {
  background: linear-gradient(145deg, #ddd9d0 0%, #c8c3b8 100%);
  height: 480px;
  position: relative;
  overflow: hidden;
}
.about-img-block::before {
  content: '';
  position: absolute;
  top: 24px; left: 24px; right: -24px; bottom: -24px;
  border: 1px solid rgba(184,151,90,0.3);
}
.about-img-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.about-badge {
  position: absolute;
  bottom: -32px; right: 32px;
  background: var(--ink);
  color: var(--white);
  padding: 24px 32px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.about-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1.6;
  margin-bottom: 2px;
  letter-spacing: 0.08em;
}

/* STRENGTH */
.strength { background: var(--white); }
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.06);
  margin-top: 72px;
}
.strength-card {
  background: var(--white);
  padding: 52px 40px;
  position: relative;
  transition: background 0.3s;
  overflow: hidden;
}
.strength-card:hover { background: var(--ink); }
.strength-card:hover .str-num,
.strength-card:hover .str-name,
.strength-card:hover .str-desc { color: var(--white); }
.strength-card:hover .str-gold { color: var(--gold-light); }
.str-num { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: 0.15em; margin-bottom: 32px; transition: color 0.3s; }
.str-name { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--ink); margin-bottom: 16px; line-height: 1.25; transition: color 0.3s; }
.str-gold { color: var(--gold); transition: color 0.3s; }
.str-desc { font-family: var(--sans); font-size: 14px; font-weight: 300; line-height: 1.85; color: var(--ink-mid); transition: color 0.3s; }
.str-arrow { position: absolute; bottom: 32px; right: 32px; font-size: 20px; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s; }
.strength-card:hover .str-arrow { opacity: 1; transform: translateX(0); }

/* SERVICES */
.services { background: var(--cream); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 72px; }
.services-header-left { max-width: 520px; }
.services-sub { font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--ink-mid); margin-top: 16px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(0,0,0,0.06); }
.service-card { background: var(--cream); padding: 44px 36px; position: relative; transition: background 0.3s; overflow: hidden; }
.service-card:hover { background: var(--ink); }
.service-card:hover .service-num,
.service-card:hover .service-name,
.service-card:hover .service-desc { color: var(--white); }
.service-card:hover .service-gold { color: var(--gold-light); }
.service-num { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: 0.15em; margin-bottom: 28px; transition: color 0.3s; }
.service-name { font-family: var(--serif); font-size: 24px; font-weight: 300; color: var(--ink); margin-bottom: 14px; line-height: 1.25; transition: color 0.3s; }
.service-gold { color: var(--gold); transition: color 0.3s; }
.service-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; line-height: 1.85; color: var(--ink-mid); transition: color 0.3s; }
.service-arrow { position: absolute; bottom: 28px; right: 28px; font-size: 18px; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s; }
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* PROCESS */
.process { background: var(--ink); color: var(--white); }
.process .section-title { color: var(--white); }
.process .section-label::before { background: var(--gold-light); }
.process .section-label { color: var(--gold-light); }
.process-intro { font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.9; color: rgba(255,255,255,0.55); max-width: 560px; margin-bottom: 72px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%;
  width: 80%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,151,90,0.4), transparent);
}
.process-step { padding: 0 32px; position: relative; }
.step-num {
  width: 56px; height: 56px;
  border: 1px solid rgba(184,151,90,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; font-weight: 300; color: var(--gold);
  margin-bottom: 32px;
  background: var(--ink);
  position: relative; z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}
.process-step:hover .step-num { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.step-title { font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.step-desc { font-family: var(--sans); font-size: 13px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.5); }

/* WORKS */
.works { background: var(--white); }
.works-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.works-grid { display: grid; grid-template-columns: 5fr 3fr; grid-template-rows: auto auto; gap: 2px; background: rgba(0,0,0,0.06); }
.work-card { background: var(--white); position: relative; overflow: hidden; cursor: pointer; }
.work-card-inner { padding: 48px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; transition: background 0.4s; }
.work-card:hover .work-card-inner { background: var(--ink); }
.work-card:hover .work-tag { color: var(--gold-light); }
.work-card:hover .work-title,
.work-card:hover .work-meta { color: rgba(255,255,255,0.9); }
.work-tag { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); transition: color 0.4s; }
.work-title { font-family: var(--serif); font-size: 30px; font-weight: 300; line-height: 1.2; color: var(--ink); transition: color 0.4s; }
.work-meta { font-size: 12px; color: var(--ink-light); letter-spacing: 0.1em; transition: color 0.4s; }
.work-card.sm .work-card-inner { min-height: 200px; }
.work-card.sm .work-title { font-size: 22px; }

/* QUOTE */
.quote-section { background: var(--ink); padding: 100px 56px; text-align: center; position: relative; overflow: hidden; }
.quote-section::before {
  content: '"';
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 300px; color: rgba(184,151,90,0.07); line-height: 1; pointer-events: none;
}
.quote-text { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 42px); font-weight: 300; font-style: normal; color: var(--white); line-height: 1.6; max-width: 820px; margin: 0 auto 40px; position: relative; }
.quote-text em { color: var(--gold); }
.quote-source { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.35); }

/* CONTACT */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); padding: 0; }
.contact-left { padding: 100px 56px; background: var(--cream); }
.contact-right { padding: 100px 56px; background: var(--white); }
.form-group { margin-bottom: 32px; }
.form-group label { display: block; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 10px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 12px 0;
  font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: none; height: 100px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  border: none; padding: 18px 40px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, gap 0.2s;
}
.btn-submit:hover { background: var(--gold); gap: 18px; }

/* COMPANY PROFILE */
.company-profile { background: var(--cream); padding: 100px 56px; }
.company-table { width: 100%; border-collapse: collapse; margin-top: 56px; }
.company-table tr { border-bottom: 1px solid rgba(0,0,0,0.07); }
.company-table tr:first-child { border-top: 1px solid rgba(0,0,0,0.07); }
.company-table th {
  font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0.12em;
  color: var(--gold); text-align: left; vertical-align: top;
  padding: 22px 0; width: 200px; white-space: nowrap;
}
.company-table td {
  font-family: var(--sans); font-size: 15px; font-weight: 300;
  color: var(--ink-mid); padding: 22px 0 22px 32px; line-height: 1.85;
}
.company-table td ol { list-style: none; padding: 0; margin: 0; }
.company-table td ol li { padding: 2px 0; }

/* FOOTER */
footer { background: var(--ink); color: var(--white); padding: 64px 56px 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 40px; }
.footer-logo { font-family: var(--serif); font-size: 24px; font-weight: 300; letter-spacing: 0.1em; color: var(--white); margin-bottom: 16px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 80px; }
.footer-link-group h4 { font-family: var(--sans); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; font-weight: 400; }
.footer-link-group a { display: block; font-family: var(--sans); font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 12px; transition: color 0.2s; }
.footer-link-group a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.25); letter-spacing: 0.05em; }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  header { padding: 24px 32px; }
  header.scrolled { padding: 16px 32px; }
  nav { gap: 24px; }
  section { padding: 80px 32px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 120px 32px 60px; }
  .hero-right { display: none; }
  .hero-scroll { left: 32px; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about-img-block { height: 320px; }
  .about-badge { bottom: -24px; right: 16px; }
  .strength-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .process-steps::before { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-left { padding: 64px 32px; }
  .contact-right { padding: 64px 32px; }
  .company-profile { padding: 80px 32px; }
  .company-table th { width: 140px; }
  footer { padding: 48px 32px 40px; }
  .footer-top { flex-direction: column; gap: 40px; }
}

/* =============================================
   RESPONSIVE — Mobile (max 768px)
   ============================================= */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  header { padding: 20px 24px; }
  header.scrolled { padding: 14px 24px; }

  /* ハンバーガーメニュー */
  .nav-toggle { display: flex; }
  nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99;
  }
  nav.open { display: flex; }
  nav a {
    font-size: 18px;
    letter-spacing: 0.2em;
  }
  .nav-cta {
    font-size: 14px !important;
    padding: 14px 32px;
  }

  section { padding: 64px 24px; }

  .hero { min-height: 100svh; }
  .hero-left { padding: 100px 24px 60px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 28px; }
  .hero-h1 { font-size: clamp(52px, 14vw, 80px); margin-bottom: 28px; }
  .hero-sub { font-size: 14px; margin-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn-primary { padding: 14px 28px; font-size: 11px; }
  .hero-scroll { display: none; }

  .marquee-item { font-size: 13px; }

  .about { padding: 64px 24px; gap: 40px; }
  .about-img-block { height: 260px; }
  .about-img-block::before { display: none; }
  .about-badge { position: static; margin-top: 16px; display: inline-block; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: 16px; }
  .stat-num { font-size: 36px; }

  .strength { padding: 64px 24px; }
  .strength-grid { margin-top: 48px; }
  .strength-card { padding: 40px 28px; }
  .str-name { font-size: 22px; }

  .services { padding: 64px 24px; }
  .services-header { margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px; }
  .service-name { font-size: 22px; }

  .process { padding: 64px 24px; }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .process-step { padding: 0; }
  .step-title { font-size: 20px; }

  .works { padding: 64px 24px; }
  .works-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 40px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card-inner { min-height: auto; padding: 32px 24px; }
  .work-card.sm .work-card-inner { min-height: auto; }
  .work-title { font-size: 24px; }
  .work-card.sm .work-title { font-size: 20px; }

  .quote-section { padding: 72px 24px; }
  .quote-section::before { font-size: 180px; }
  .quote-text { font-size: clamp(20px, 5vw, 32px); }

  .contact { padding: 0; }
  .contact-left { padding: 64px 24px 40px; }
  .contact-right { padding: 40px 24px 64px; }

  .company-profile { padding: 64px 24px; }
  .company-table { margin-top: 40px; }
  .company-table th,
  .company-table td { display: block; padding: 0; width: 100%; }
  .company-table th { padding: 20px 0 4px; }
  .company-table td { padding: 0 0 20px; }
  .company-table tr { border-bottom: none; }
  .company-table tr:first-child { border-top: none; }
  .company-table tbody { display: block; }
  .company-table tr { display: block; border-bottom: 1px solid rgba(0,0,0,0.07); }
  .company-table tr:last-child { border-bottom: none; }

  footer { padding: 48px 24px 40px; }
  .footer-top { flex-direction: column; gap: 32px; padding-bottom: 32px; margin-bottom: 28px; }
  .footer-links { flex-direction: column; gap: 0; }
  .footer-link-group h4 { margin-bottom: 16px; margin-top: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* =============================================
   RESPONSIVE — Small Mobile (max 390px)
   ============================================= */
@media (max-width: 390px) {
  .hero-h1 { font-size: 48px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats > div:last-child { grid-column: span 2; }
  .section-title { font-size: 34px; }
}

/* =============================================
   Contact Form 7 スタイル上書き
   ============================================= */

/* フォーム全体 */
.wpcf7 { width: 100%; }
.wpcf7-form { display: block; }

/* 各フィールドをform-groupと同じ見た目に */
.wpcf7-form p {
  margin-bottom: 32px;
}
.wpcf7-form label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
  font-family: var(--sans);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--gold);
}
.wpcf7-form textarea { resize: none; height: 100px; }

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 18px 40px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--gold);
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  font-size: 11px;
  color: #c0392b;
  margin-top: 6px;
  display: block;
  font-family: var(--sans);
}
.wpcf7-not-valid input,
.wpcf7-not-valid textarea,
.wpcf7-not-valid select {
  border-color: #c0392b !important;
}

/* 送信完了・エラーメッセージ */
.wpcf7-response-output {
  margin-top: 24px !important;
  padding: 12px 16px !important;
  border: none !important;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
}
.wpcf7-mail-sent-ok {
  background: rgba(184,151,90,0.1) !important;
  color: var(--gold) !important;
  border-left: 2px solid var(--gold) !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background: rgba(192,57,43,0.08) !important;
  color: #c0392b !important;
  border-left: 2px solid #c0392b !important;
}

/* スピナー */
.wpcf7-spinner {
  display: none !important;
}
