/* ============================================================
   株式会社PSP — 土木・建設 コーポレートサイト
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  color: #222;
  background: #f0f0f0;
  line-height: 1.7;
}
img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --primary:  #1c1c1c;
  --accent:   #4cb5f5;
  --accent-d: #2ca8f5;
  --light:    #f0f0f0;
  --light2:   #e2e2e2;
  --gray:     #767676;
  --white:    #fff;
  --max-w:    1200px;
}

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 76px;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  transition: box-shadow 0.3s;
}
.logo {
  font-size: 1.35rem; font-weight: 900; letter-spacing: 0.06em;
  color: var(--primary); display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--accent);
  font-size: 0.85rem; font-weight: 900; color: var(--white); letter-spacing: 0;
}
nav ul { display: flex; gap: 0; align-items: center; }
nav a {
  display: block; padding: 0 20px; font-size: 0.82rem; letter-spacing: 0.1em;
  color: rgba(0,0,0,0.55); transition: all 0.2s; height: 76px;
  line-height: 76px; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
nav a:hover,
nav a.active { color: var(--primary); border-bottom-color: var(--accent); }
.nav-contact {
  display: block; margin-left: 20px; padding: 0 28px;
  background: var(--accent); color: var(--white) !important;
  font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 700;
  border-bottom: none !important; transition: background 0.2s;
  height: 44px !important; line-height: 44px !important;
  margin-top: 0; align-self: center;
}
.nav-contact:hover { background: var(--accent-d) !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 36px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; border: 2px solid var(--white);
  color: var(--white); transition: all 0.25s; cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-arrow {
  width: 22px; height: 2px; background: currentColor; position: relative; transition: width 0.3s;
}
.btn-arrow::after {
  content: ''; position: absolute; right: 0; top: -4px;
  border: solid currentColor; border-width: 0 2px 2px 0; padding: 4px; transform: rotate(-45deg);
}
.btn:hover .btn-arrow { width: 32px; }
.btn-orange  { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-orange:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn-dark    { background: #999; border-color: #999; color: var(--white); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost   { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost-dark { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost-dark:hover { background: var(--accent); color: var(--white); }

/* ===== SECTION BASE ===== */
section { padding: 100px 60px; }
.inner-wrap { max-width: var(--max-w); margin: 0 auto; }
.section-header { margin-bottom: 56px; }
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-eyebrow::before { content: ''; display: block; width: 36px; height: 2px; background: var(--accent); }
.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 900;
  letter-spacing: -0.01em; line-height: 1.2; color: var(--primary);
}
.section-header p { margin-top: 18px; color: var(--gray); max-width: 540px; font-size: 0.93rem; }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(70,70,70,0.85) 0%, rgba(70,70,70,0.5) 55%, rgba(70,70,70,0.15) 100%);
}
.hero-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--accent);
}
.hero-content {
  position: absolute; left: 80px; top: 50%; transform: translateY(-50%);
  color: var(--white); max-width: 660px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
  background: rgba(76,181,245,0.12); border-left: 3px solid var(--accent);
  padding: 8px 16px 8px 12px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem); font-weight: 900;
  line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 28px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1rem; line-height: 1.85; opacity: 0.85; margin-bottom: 44px; max-width: 500px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(70,70,70,0.88); border-top: 3px solid var(--accent);
  display: flex;
}
.hero-stat {
  flex: 1; padding: 24px 32px; border-right: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: 2.4rem; font-weight: 900; color: var(--white); line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-num span { font-size: 1rem; color: var(--accent); }
.hero-stat-label { font-size: 0.76rem; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; }

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative; height: 320px; margin-top: 76px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
.page-hero-line { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); z-index: 1; }
.page-hero-content {
  position: relative; z-index: 2; padding: 40px 60px; color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.15); width: 100%;
}
.page-hero-content .section-eyebrow { color: var(--accent); margin-bottom: 10px; }
.page-hero-content .section-eyebrow::before { background: var(--accent); }
.page-hero-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900;
  letter-spacing: -0.01em; color: var(--white);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--light); padding: 12px 60px;
  display: flex; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--gray);
  border-bottom: 1px solid var(--light2);
}
.breadcrumb a { color: var(--gray); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--light2); }
.breadcrumb-current { color: var(--primary); font-weight: 600; }

/* ===== ABOUT SUMMARY ===== */
.about-summary { background: var(--light); }
.about-summary-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap img { height: 540px; }
.about-img-wrap::after {
  content: ''; position: absolute;
  bottom: -20px; right: -20px;
  width: 60%; height: 60%;
  border: 4px solid var(--accent);
  z-index: -1;
}
.about-text .section-header { margin-bottom: 28px; }
.about-text p { color: #444; font-size: 0.93rem; margin-bottom: 14px; line-height: 1.85; }
.about-kv {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 40px; border-top: 2px solid var(--light2);
  border-left: 2px solid var(--light2);
}
.kv-item {
  padding: 20px 18px; border-right: 2px solid var(--light2);
  border-bottom: 2px solid var(--light2);
}
.kv-num {
  font-size: 2.2rem; font-weight: 900; color: var(--primary);
  line-height: 1; letter-spacing: -0.03em;
}
.kv-num span { font-size: 1rem; color: var(--accent); font-weight: 700; }
.kv-label { font-size: 0.75rem; color: var(--gray); margin-top: 5px; letter-spacing: 0.05em; }

/* ===== STRENGTHS ===== */
.strengths { background: #e4e4e4; }
.strengths-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 56px; }
.strength-item {
  background: var(--light); padding: 40px 28px;
  border-top: 3px solid transparent; transition: border-color 0.3s, background 0.3s;
  position: relative;
}
.strength-item:hover { border-top-color: var(--accent); background: #e8e8e8; }
.strength-num {
  font-size: 3.5rem; font-weight: 900; color: rgba(0,0,0,0.05);
  line-height: 1; margin-bottom: 20px; letter-spacing: -0.04em;
}
.strength-icon { color: var(--accent); width: 44px; height: 44px; margin-bottom: 20px; }
.strength-item h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; letter-spacing: 0.04em; }
.strength-item p { font-size: 0.85rem; color: var(--gray); line-height: 1.8; }

/* ===== SERVICES OVERVIEW ===== */
.services-overview { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.service-card {
  background: var(--white); padding: 40px 32px;
  border-bottom: 4px solid transparent; transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  width: 0; background: var(--accent); opacity: 0.06; transition: width 0.4s;
}
.service-card:hover { border-bottom-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.service-card:hover::after { width: 100%; }
.service-icon { width: 52px; height: 52px; margin-bottom: 24px; color: var(--accent); }
.service-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; color: var(--primary); letter-spacing: 0.02em; }
.service-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.8; }
.service-num {
  position: absolute; top: 24px; right: 28px;
  font-size: 4rem; font-weight: 900; color: rgba(0,0,0,0.04); line-height: 1; letter-spacing: -0.04em;
}
.services-cta { text-align: center; margin-top: 48px; }

/* ===== WORKS TEASER ===== */
.works-teaser { background: #e4e4e4; padding-bottom: 0; }
.works-grid-top {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 56px;
}
.work-card { position: relative; overflow: hidden; cursor: pointer; }
.work-card:nth-child(1) { grid-column: 1 / 8; }
.work-card:nth-child(2) { grid-column: 8 / 13; }
.work-card:nth-child(3) { grid-column: 1 / 5; }
.work-card:nth-child(4) { grid-column: 5 / 9; }
.work-card:nth-child(5) { grid-column: 9 / 13; }
.work-card img { height: 300px; transition: transform 0.6s; display: block; filter: brightness(0.85); }
.work-card:nth-child(1) img,
.work-card:nth-child(2) img { height: 380px; }
.work-card:hover img { transform: scale(1.06); filter: brightness(0.75); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(60,60,60,0.9) 0%, rgba(60,60,60,0.1) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.work-tag {
  display: inline-block; font-size: 0.66rem; letter-spacing: 0.18em;
  color: var(--white); text-transform: uppercase;
  background: var(--accent); padding: 4px 10px; margin-bottom: 10px; width: fit-content;
}
.work-overlay h3 { font-size: 1rem; font-weight: 800; color: var(--white); line-height: 1.4; }
.work-overlay p { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 5px; }
.works-cta {
  text-align: center; padding: 48px 60px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ===== PROCESS ===== */
.process { background: var(--light); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 30px;
  left: calc(12.5% + 16px); right: calc(12.5% + 16px);
  height: 2px; background: var(--light2);
}
.step { padding: 0 20px; text-align: center; position: relative; }
.step-num {
  width: 60px; height: 60px;
  background: #aaa; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; margin: 0 auto 24px;
  position: relative; z-index: 1; clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}
.step.active .step-num { background: var(--accent); }
.step h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 10px; color: var(--primary); }
.step p { font-size: 0.82rem; color: var(--gray); line-height: 1.75; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
.testimonial-card {
  background: var(--white); padding: 40px 36px; border: 1px solid var(--light2);
  border-left: 4px solid var(--accent); transition: box-shadow 0.3s;
}
.testimonial-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.quote-icon { font-size: 3rem; color: var(--accent); opacity: 0.4; font-family: Georgia, serif; line-height: 1; }
.testimonial-card > p { font-size: 0.92rem; color: #444; line-height: 1.85; margin: 16px 0 28px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-avatar img { height: 48px; }
.author-info .name { font-weight: 800; font-size: 0.88rem; color: var(--primary); }
.author-info .company { font-size: 0.75rem; color: var(--gray); margin-top: 3px; }
.stars { color: var(--accent); font-size: 0.85rem; }

/* ===== NEWS ===== */
.news { background: var(--light); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.news-card { background: var(--white); transition: transform 0.3s, box-shadow 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.news-img { overflow: hidden; }
.news-img img { height: 200px; transition: transform 0.5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 24px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-date { font-size: 0.75rem; color: var(--gray); letter-spacing: 0.06em; }
.news-cat {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: var(--white); padding: 3px 10px; font-weight: 700;
}
.news-card h3 { font-size: 0.93rem; font-weight: 700; line-height: 1.5; margin-bottom: 8px; color: var(--primary); }
.news-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.7; }

/* ===== CTA BANNER ===== */
.cta-banner { position: relative; padding: 110px 60px; overflow: hidden; text-align: center; color: var(--white); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.35); }
.cta-overlay { position: absolute; inset: 0; background: rgba(60,60,60,0.5); }
.cta-accent-line { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--accent); }
.cta-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 900;
  line-height: 1.25; margin-bottom: 18px; letter-spacing: -0.01em;
}
.cta-content h2 em { color: var(--accent); font-style: normal; }
.cta-content p { font-size: 0.97rem; opacity: 0.82; margin-bottom: 44px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact { background: #e4e4e4; }
.contact-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.contact-info h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 900; margin-bottom: 20px; color: var(--primary); }
.contact-info > p { color: var(--gray); font-size: 0.92rem; margin-bottom: 40px; }
.contact-detail { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--white);
}
.contact-item-text .ci-label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(0,0,0,0.45); margin-bottom: 4px;
}
.contact-item-text .ci-value { font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.contact-form-wrap { background: var(--white); padding: 48px; }
.contact-form-wrap h3 {
  font-size: 1rem; font-weight: 800; color: var(--primary);
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--light2);
  letter-spacing: 0.06em;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 7px;
}
.required-mark { color: var(--accent); margin-left: 4px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--light2);
  background: var(--light); font-size: 0.9rem; font-family: inherit;
  color: var(--primary); outline: none; transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 3px rgba(76,181,245,0.15);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; padding: 18px; background: var(--accent); color: var(--white);
  border: none; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.14em;
  cursor: pointer; font-family: inherit; transition: background 0.2s; margin-top: 8px;
}
.btn-submit:hover { background: var(--accent-d); }

/* ===== FOOTER ===== */
footer { background: #e4e4e4; color: rgba(0,0,0,0.55); padding: 72px 60px 0; }
.footer-top {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(0,0,0,0.1);
}
.footer-brand .logo { color: var(--primary); font-size: 1.25rem; margin-bottom: 16px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.85; color: rgba(0,0,0,0.5); }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.social-link {
  width: 34px; height: 34px; border: 1px solid rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.5); font-size: 0.7rem; transition: all 0.2s;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer-col h4 {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.1);
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { font-size: 0.83rem; color: rgba(0,0,0,0.5); transition: color 0.2s; }
.footer-col li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(0,0,0,0.4);
}
.footer-bottom a { color: rgba(0,0,0,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== ABOUT PAGE ===== */
.company-section { background: var(--light); }
.company-table { width: 100%; border-collapse: collapse; margin-top: 48px; }
.company-table tr:first-child th,
.company-table tr:first-child td { border-top: 2px solid var(--accent); }
.company-table th,
.company-table td { padding: 18px 24px; border-bottom: 1px solid var(--light2); text-align: left; font-size: 0.9rem; }
.company-table th { width: 190px; font-weight: 700; background: var(--white); color: var(--primary); letter-spacing: 0.04em; }
.company-table td { color: #333; }

.philosophy { background: #e4e4e4; padding: 100px 60px; text-align: center; position: relative; overflow: hidden; }
.philosophy::before {
  content: 'PSP'; position: absolute; font-size: 20rem; font-weight: 900;
  color: rgba(0,0,0,0.03); top: 50%; left: 50%;
  transform: translate(-50%, -50%); letter-spacing: -0.05em; pointer-events: none;
}
.philosophy > * { position: relative; z-index: 1; }
.philosophy h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 900;
  line-height: 1.45; letter-spacing: 0.04em; margin-bottom: 28px; color: var(--primary);
}
.philosophy h2 em { color: var(--accent); font-style: normal; }
.philosophy p { font-size: 0.97rem; color: var(--gray); max-width: 680px; margin: 0 auto 16px; }
.philosophy-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 860px; margin: 48px auto 0;
}
.pillar {
  background: rgba(0,0,0,0.04); padding: 32px 28px;
  border-top: 3px solid var(--accent);
}
.pillar-icon { font-size: 1.8rem; margin-bottom: 12px; }
.pillar h3 { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.pillar p { font-size: 0.83rem; color: var(--gray); }

.history { background: var(--light); }
.timeline { position: relative; max-width: 820px; margin: 56px auto 0; }
.timeline::before {
  content: ''; position: absolute; left: 100px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--light2));
}
.timeline-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 0 48px;
  padding-bottom: 36px; align-items: start;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year {
  text-align: right; padding-top: 2px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--accent); padding-right: 20px;
}
.timeline-body {
  padding-left: 28px; position: relative;
  border-left: 0; padding-bottom: 0;
}
.timeline-body::before {
  content: ''; position: absolute; left: -6px; top: 8px;
  width: 12px; height: 12px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--light), 0 0 0 5px var(--accent);
}
.timeline-body h3 { font-size: 0.97rem; font-weight: 800; margin-bottom: 5px; color: var(--primary); }
.timeline-body p { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }

.team-section { background: var(--light); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; }
.team-card { }
.team-img { overflow: hidden; position: relative; }
.team-img img { height: 340px; transition: transform 0.5s; filter: grayscale(20%); }
.team-card:hover .team-img img { transform: scale(1.04); filter: grayscale(0%); }
.team-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s;
  transform-origin: left;
}
.team-card:hover .team-img::after { transform: scaleX(1); }
.team-body { padding: 20px 0; }
.team-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.team-body .role { font-size: 0.76rem; color: var(--accent); letter-spacing: 0.1em; margin-top: 4px; text-transform: uppercase; font-weight: 700; }
.team-body p { font-size: 0.85rem; color: var(--gray); margin-top: 12px; line-height: 1.75; }

/* ===== SERVICES PAGE ===== */
.services-intro { background: #e4e4e4; }
.services-intro h2 { color: var(--primary) !important; }
.services-intro p { color: var(--gray) !important; }
.services-detail { background: var(--light); }
.services-detail-list { display: flex; flex-direction: column; gap: 2px; margin-top: 56px; }
.service-detail-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 0;
  background: var(--white); transition: background 0.2s; overflow: hidden;
}
.service-detail-card:nth-child(even) { flex-direction: row-reverse; }
.service-detail-img { overflow: hidden; }
.service-detail-img img { height: 100%; min-height: 280px; transition: transform 0.5s; filter: grayscale(30%); }
.service-detail-card:hover .service-detail-img img { transform: scale(1.04); filter: grayscale(0%); }
.service-detail-body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.service-detail-num {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.service-detail-body h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 16px; color: var(--primary); }
.service-detail-body p { color: #444; font-size: 0.9rem; line-height: 1.85; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--primary);
  border: 1px solid var(--light2); padding: 5px 12px; background: var(--light);
}

.process-section { background: var(--light); }
.process-steps-v { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; position: relative; }
.process-steps-v::before {
  content: ''; position: absolute; top: 30px;
  left: calc(12.5% + 14px); right: calc(12.5% + 14px);
  height: 2px; background: var(--light2);
}
.step-v { padding: 0 16px; text-align: center; }
.step-v-num {
  width: 60px; height: 60px;
  background: #aaa; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; margin: 0 auto 22px;
  position: relative; z-index: 1; clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}
.step-v.active .step-v-num { background: var(--accent); }
.step-v h3 { font-size: 0.92rem; font-weight: 800; margin-bottom: 8px; color: var(--primary); }
.step-v p { font-size: 0.81rem; color: var(--gray); line-height: 1.7; }

/* ===== WORKS PAGE ===== */
.works-section { background: var(--light); }
.works-filter { display: flex; gap: 0; flex-wrap: wrap; margin-top: 48px; margin-bottom: 48px; border: 1px solid var(--light2); width: fit-content; }
.filter-btn {
  padding: 11px 28px; border: none; border-right: 1px solid var(--light2);
  background: var(--white); font-size: 0.8rem; letter-spacing: 0.08em; font-weight: 700;
  color: var(--gray); cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.filter-btn:last-child { border-right: none; }
.filter-btn:hover { background: var(--light); color: var(--primary); }
.filter-btn.active { background: var(--accent); color: var(--white); border-right-color: var(--accent); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.works-item { position: relative; overflow: hidden; cursor: pointer; }
.works-item img { height: 280px; transition: transform 0.5s; display: block; filter: brightness(0.9); }
.works-item:hover img { transform: scale(1.06); filter: brightness(0.75); }
.works-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(60,60,60,0.9) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  transition: background 0.3s;
}
.works-item:hover .works-item-overlay { background: linear-gradient(to top, rgba(60,60,60,0.95) 0%, rgba(60,60,60,0.3) 100%); }
.works-item-tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.15em;
  color: var(--white); text-transform: uppercase; background: var(--accent);
  padding: 4px 10px; margin-bottom: 8px; width: fit-content;
}
.works-item-overlay h3 { font-size: 0.97rem; font-weight: 800; color: var(--white); line-height: 1.4; }
.works-item-overlay p { font-size: 0.77rem; color: rgba(255,255,255,0.6); margin-top: 4px; }
.works-detail {
  display: flex; gap: 8px; margin-top: 10px;
  opacity: 0; transform: translateY(8px); transition: all 0.3s;
}
.works-item:hover .works-detail { opacity: 1; transform: translateY(0); }
.works-detail span {
  font-size: 0.68rem; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25); padding: 3px 9px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  header { padding: 0 32px; }
  section, .philosophy, .process { padding: 80px 32px; }
  .breadcrumb { padding: 12px 32px; }
  .page-hero-content { padding: 32px 32px; }
  .hero-content { left: 40px; }
  .about-summary-inner { grid-template-columns: 1fr; gap: 56px; }
  .about-img-wrap img { height: 380px; }
  .about-img-wrap::after { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid-top { grid-template-columns: 1fr 1fr; }
  .work-card { grid-column: auto !important; }
  .work-card img,
  .work-card:nth-child(1) img,
  .work-card:nth-child(2) img { height: 240px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 0; }
  .contact-info { padding-bottom: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .company-table th { width: 140px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps, .process-steps-v { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-steps::before, .process-steps-v::before { display: none; }
  .philosophy-pillars { grid-template-columns: 1fr; max-width: 480px; }
  .service-detail-card { grid-template-columns: 1fr; }
  .hero-stats { position: static; flex-wrap: wrap; }
  .hero-stat { min-width: 50%; }
  .timeline::before { left: 80px; }
  .timeline-item { grid-template-columns: 80px 1fr; }
}
@media (max-width: 768px) {
  header { padding: 0 20px; }
  nav ul { display: none; }
  section, .philosophy, .process { padding: 60px 20px; }
  .breadcrumb { padding: 12px 20px; }
  .page-hero { height: 260px; }
  .page-hero-content { padding: 24px 20px; }
  .hero-content { left: 24px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .services-grid, .strengths-grid,
  .team-grid, .testimonials-grid,
  .news-grid, .works-grid { grid-template-columns: 1fr; }
  .works-grid-top { grid-template-columns: 1fr; }
  .process-steps, .process-steps-v { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .about-kv { grid-template-columns: repeat(2, 1fr); }
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table th { border-bottom: none; padding-bottom: 4px; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .timeline-year { text-align: left; padding-right: 0; }
  .timeline-body::before { display: none; }
  .timeline-body { padding-left: 0; }
  .works-filter { width: 100%; }
  .filter-btn { flex: 1; }
}
