/*
Theme Name: Eidendo 2026
Theme URI: https://eidendo.co.jp
Author: Eidendo Inc.
Description: Minimal corporate theme for eidendo.co.jp — single page, no bloat.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: eidendo2026
*/

/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
  --c-bg: #FAFAF8;
  --c-surface: #FFFFFF;
  --c-text: #1A1A1A;
  --c-text-sub: #6B6B6B;
  --c-accent: #2D3A4A;
  --c-accent-light: #3D5068;
  --c-border: #E8E6E1;
  --c-border-light: #F0EEEA;
  --c-tag-bg: #EDECEA;
  --c-error: #C44;
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-w: 960px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-light);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span {
  font-weight: 400;
  color: var(--c-text-sub);
  font-size: 0.78rem;
  margin-left: 0.6rem;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem;
  color: var(--c-text-sub);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-text); }

/* ===========================
   HERO
   =========================== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(60px + var(--space-xl)) var(--space-md) var(--space-lg);
}
.hero-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-text-sub);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: var(--space-sm);
}
.hero-sub {
  font-size: 0.95rem;
  color: var(--c-text-sub);
  max-width: 560px;
  line-height: 1.9;
}

/* ===========================
   SECTION COMMON
   =========================== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-text-sub);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===========================
   SERVICE CARDS
   =========================== */
.services { display: flex; flex-direction: column; gap: var(--space-md); }
.svc-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: var(--space-md) calc(var(--space-md) + 0.5rem);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.svc-card:hover {
  border-color: #D0CEC8;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.svc-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-text-sub);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}
.svc-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.svc-body {
  color: var(--c-text-sub);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.svc-tag {
  font-size: 0.72rem;
  color: var(--c-text-sub);
  background: var(--c-tag-bg);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ===========================
   COMPANY TABLE
   =========================== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--c-border-light); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--c-text-sub);
  padding: 0.9rem 0;
  width: 140px;
  vertical-align: top;
  letter-spacing: 0.02em;
}
.company-table td {
  font-size: 0.9rem;
  padding: 0.9rem 0;
  color: var(--c-text);
  vertical-align: top;
}

/* ===========================
   HISTORY TIMELINE
   =========================== */
.history { position: relative; }
.history-line {
  position: absolute;
  left: 54px; top: 0; bottom: 0;
  width: 1px;
  background: var(--c-border);
}
.history-item {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  position: relative;
}
.history-item:last-child { padding-bottom: 0; }
.history-year {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-accent);
  min-width: 48px;
  text-align: right;
  padding-top: 0.15rem;
  position: relative;
}
.history-year::after {
  content: '';
  position: absolute;
  right: -23px; top: 0.45rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}
.history-content { padding-left: var(--space-sm); flex: 1; }
.history-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.2rem; }
.history-desc { font-size: 0.85rem; color: var(--c-text-sub); line-height: 1.8; }

/* ===========================
   CONTACT / CF7 OVERRIDE
   =========================== */
.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: var(--space-md) calc(var(--space-md) + 0.5rem);
}
.contact-intro {
  font-size: 0.9rem;
  color: var(--c-text-sub);
  margin-bottom: var(--space-md);
  line-height: 1.9;
}

/* CF7 form styling */
.wpcf7 .wpcf7-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.wpcf7 label,
.cf7-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-sub);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--c-bg);
  color: var(--c-text);
  transition: border-color 0.2s;
  outline: none;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--c-accent);
}
.wpcf7 textarea { resize: vertical; min-height: 120px; }
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  width: auto;
}
.wpcf7 input[type="submit"]:hover { background: var(--c-accent-light); }
.wpcf7-response-output {
  font-size: 0.85rem;
  margin-top: var(--space-sm) !important;
  padding: 0.6rem 0.9rem !important;
  border-radius: 8px !important;
}
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: var(--c-error);
  margin-top: 0.2rem;
}
/* Hide honeypot */
.eidendo-hp-wrap { position: absolute; left: -9999px; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--c-text-sub);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

/* ===========================
   ANIMATION
   =========================== */
.fade-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 640px) {
  .nav-inner { padding: 0 var(--space-sm); }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.76rem; }
  .hero, .section { padding-left: var(--space-sm); padding-right: var(--space-sm); }
  .hero h1 { font-size: 1.6rem; }
  .svc-card { padding: var(--space-sm) calc(var(--space-sm) + 0.25rem); }
  .company-table th { width: 100px; font-size: 0.78rem; }
  .history-line { left: 46px; }
  .footer { flex-direction: column; gap: var(--space-xs); text-align: center; }
}


/* ===========================
   CHILD PAGE CONTENT (rubberband sub-pages etc.)
   =========================== */
.section h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.section h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.section p {
  margin-bottom: var(--space-sm);
  line-height: 1.9;
}
.section ul, .section ol {
  margin-bottom: var(--space-sm);
  padding-left: 1.4rem;
}
.section li {
  margin-bottom: 0.4rem;
  line-height: 1.8;
}
.section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: 0.88rem;
}
.section table th,
.section table td {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}
.section table th {
  background: var(--c-tag-bg);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--c-text-sub);
}
.section table td {
  background: var(--c-surface);
}
.section hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--space-lg) 0;
}
.section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.section a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section a:hover {
  color: var(--c-accent-light);
}