/* ============================================
   EACUS - Index (Top) Page Styles
   Used by: index.html
   ============================================ */

/* Constraint: hero-section spans full width, everything else 1100px */
.site-wrapper > section:not(.hero-section),
.site-wrapper > footer {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero / Slideshow --- */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  max-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 50px 60px;
}

.hero-text {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  min-height: calc(clamp(32px, 5vw, 52px) * 1.25 * 3);
}

.hero-copy {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-copy.active { opacity: 1; }

.hero-text .line {
  display: block;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
}

/* --- Page Hero (shared, used by linked sub-pages) --- */
.page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 50vh;
  min-height: 320px;
  max-height: 500px;
  overflow: hidden;
}

.page-hero img { width: 100%; height: 100%; object-fit: cover; }

.page-hero-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px 60px;
}

.page-hero-title {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- Works Section --- */
.section-works { padding: 60px 40px; }
.work-item { margin-bottom: 55px; }

.work-item-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.work-item-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.work-item-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.work-item-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.work-item-gallery a:hover img { transform: scale(1.05); opacity: 0.85; }

.work-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.work-tag {
  display: inline-block;
  border: 1px solid var(--color-gray-300);
  padding: 4px 14px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-gray-700);
}

.work-item-desc {
  font-size: 15px;
  color: var(--color-gray-700);
  line-height: 1.9;
  margin-bottom: 12px;
}

.work-item-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-black);
  text-decoration: none;
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.work-item-link:hover { opacity: 0.5; }

/* --- CTA Section --- */
.cta-section {
  margin: 20px 40px 60px;
  border: 1px solid var(--color-gray-300);
  padding: 40px 30px;
  text-align: center;
}

.cta-title { font-size: 16px; font-weight: 500; letter-spacing: 0.1em; margin-bottom: 6px; }
.cta-subtitle { font-size: 15px; color: var(--color-gray-500); margin-bottom: 14px; }
.cta-link { font-size: 12px; color: var(--color-gray-700); }
.cta-link a { text-decoration: underline; transition: opacity 0.3s; }
.cta-link a:hover { opacity: 0.6; }
.cta-divider { width: 40px; height: 1px; background: var(--color-gray-300); margin: 18px auto 0; }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.services-header {
  text-align: center;
  padding: 80px 20px 52px;
}

.services-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-gray-500);
  margin-bottom: 18px;
}

.services-heading {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-black);
  line-height: 1.5;
}

.services-rule {
  width: 28px;
  height: 2px;
  background: #c8102e;
  margin: 20px auto 0;
}

.biz-outer {
  background-image: url('../images/haikei12.jpg');
  background-size: cover;
  background-position: center center;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 520px;
  gap: 2px;
  font-family: var(--font-body);
}

.biz-col {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.biz-col.col-e { background: rgba(28,18,16,0.83); }
.biz-col.col-a { background: rgba(12,17,30,0.83); }
.biz-col.col-c { background: rgba(12,20,12,0.83); }
.biz-col.col-u { background: rgba(20,12,28,0.83); }
.biz-col.col-s { background: rgba(20,16,12,0.83); }

.biz-bg-ltr {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 240px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  transition: color 0.5s;
  letter-spacing: -0.02em;
}

.biz-col:hover .biz-bg-ltr { color: rgba(255,255,255,0.09); }

.biz-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200,16,46,0.06);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.biz-col:hover::after { opacity: 1; }

.biz-col-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #c8102e;
  opacity: 0;
  transition: opacity 0.4s;
}

.biz-col:hover .biz-col-top { opacity: 1; }

.biz-col-body {
  position: absolute;
  inset: 0;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}

.biz-col-num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.15);
  margin-bottom: 28px;
}

.biz-col-sub {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.5;
}

.biz-col-rule {
  width: 20px;
  height: 1px;
  background: #c8102e;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.biz-col-ja {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.biz-col-en {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  margin-top: 10px;
}

.biz-col-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.26);
  text-transform: uppercase;
  transition: color 0.35s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.biz-col-arrow {
  display: inline-block;
  color: #c8102e;
  font-size: 14px;
  transition: transform 0.35s;
}

.biz-col:hover .biz-col-link { color: rgba(255,255,255,0.72); }
.biz-col:hover .biz-col-arrow { transform: translateX(4px); }

/* ============================================
   CONCEPT SECTION
   ============================================ */
.concept-section {
  padding: 80px 40px;
  text-align: center;
  background: var(--color-white);
}

.concept-inner { max-width: 680px; margin: 0 auto; }

.concept-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-gray-500);
  margin-bottom: 18px;
  display: block;
}

.concept-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  line-height: 1.4;
}

.concept-body {
  font-size: 15px;
  line-height: 2;
  color: var(--color-gray-700);
  margin-bottom: 36px;
}

.pc-br { display: inline; }

.concept-cta {
  display: inline-block;
  border: 1px solid var(--color-black);
  padding: 14px 40px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-black);
  text-decoration: none;
  transition: all 0.3s;
}

.concept-cta:hover { background: var(--color-black); color: var(--color-white); }

/* ============================================
   STRENGTH SECTION
   ============================================ */
.strength-section {
  padding: 80px 40px;
  background: var(--color-gray-100);
  text-align: center;
}

.strength-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-gray-500);
  margin-bottom: 14px;
  display: block;
}

.strength-heading {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.strength-card {
  background: var(--color-white);
  padding: 36px 28px;
  border: 1px solid var(--color-gray-200);
}

.strength-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--color-gray-300);
  display: block;
  margin-bottom: 12px;
}

.strength-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  line-height: 1.6;
}

.strength-desc {
  font-size: 15px;
  color: var(--color-gray-700);
  line-height: 1.9;
}

/* ============================================
   COLUMN PREVIEW SECTION
   ============================================ */
.column-preview-section {
  padding: 80px 40px;
  background: var(--color-white);
  text-align: center;
}

.column-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.column-preview-card {
  text-decoration: none;
  color: var(--color-black);
  display: block;
  transition: opacity 0.2s;
}

.column-preview-card:hover { opacity: 0.75; }

.column-preview-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-gray-200);
  margin-bottom: 16px;
}

.column-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.column-preview-card:hover .column-preview-img img { transform: scale(1.05); }

.column-preview-cat {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}

.column-preview-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.column-skeleton {
  background: var(--color-gray-200);
  aspect-ratio: 16/9;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.column-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--color-gray-500);
  font-size: 13px;
}

/* ============================================
   CTA TAG + BUTTONS
   ============================================ */
.cta-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  background: var(--color-black);
  color: var(--color-white);
  display: inline-block;
  padding: 4px 16px;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  padding: 16px 48px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn-primary:hover { opacity: 0.75; }

.cta-btn-secondary {
  display: inline-block;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  padding: 16px 48px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-btn-secondary:hover { background: var(--color-black); color: var(--color-white); }

/* ============================================
   ISSUES SECTION
   ============================================ */
.issues-section {
  padding: 100px 40px;
  background: var(--color-gray-100);
  text-align: center;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.issue-card {
  background: var(--color-white);
  padding: 28px;
  border: 1px solid #eeeeee;
}

.issue-cat {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #856859;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.issue-text {
  font-size: 15px;
  color: var(--color-gray-700);
  line-height: 1.9;
}

/* ============================================
   WHY EACUS (4-column)
   ============================================ */
.why-section {
  padding: 100px 40px;
  background: var(--color-white);
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.why-card {
  padding: 28px 24px;
  border: 1px solid #eeeeee;
  background: var(--color-white);
}

.why-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: #d0d0d0;
  display: block;
  margin-bottom: 14px;
}

.why-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  line-height: 1.55;
  color: var(--color-black);
}

.why-desc {
  font-size: 15px;
  color: var(--color-gray-700);
  line-height: 1.9;
}

/* ============================================
   FLOW SECTION
   ============================================ */
.flow-section {
  padding: 100px 40px;
  background: var(--color-gray-100);
  text-align: center;
}

.flow-grid {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.flow-step {
  display: flex;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-gray-200);
  align-items: flex-start;
}

.flow-step:first-child { border-top: 1px solid var(--color-gray-200); }

.flow-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-gray-500);
  display: block;
  min-width: 72px;
  padding-top: 3px;
  flex-shrink: 0;
}

.flow-step-body { flex: 1; }

.flow-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 8px;
  line-height: 1.55;
}

.flow-desc {
  font-size: 15px;
  color: var(--color-gray-700);
  line-height: 1.9;
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */
.contact-cta-section {
  margin: 0 40px 80px;
  border: 1px solid var(--color-gray-300);
  text-align: center;
  padding: 64px 40px;
}

.contact-cta-label {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  padding: 5px 18px;
  margin-bottom: 24px;
}

.contact-cta-heading {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.contact-cta-body {
  font-size: 15px;
  color: var(--color-gray-700);
  line-height: 2;
  margin: 0 auto 36px;
  max-width: 580px;
}

.contact-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn-black {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn-black:hover { opacity: 0.75; }

.cta-btn-mocha {
  display: inline-block;
  background: #856859;
  color: var(--color-white);
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btn-mocha:hover { opacity: 0.85; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero-slideshow { height: 50vh; min-height: 280px; }
  .hero-overlay { padding: 30px 25px; }
  .hero-text .line { font-size: 26px; }
  .hero-text { min-height: calc(26px * 1.25 * 3); }

  .services-header { padding: 60px 20px 40px; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); height: auto; }
  .biz-col { height: 220px; }
  .biz-col:last-child { grid-column: span 2; }
  .biz-bg-ltr { font-size: 180px; }

  .page-hero { height: 35vh; min-height: 220px; }
  .page-hero-overlay { padding: 25px 25px; }

  .concept-section { padding: 60px 20px; }
  .pc-br { display: none; }
  .strength-section { padding: 60px 20px; }
  .strength-grid { grid-template-columns: 1fr; gap: 16px; }
  .column-preview-section { padding: 60px 20px; }
  .column-preview-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-btn-primary, .cta-btn-secondary { width: 100%; max-width: 320px; text-align: center; }

  .section-works { padding: 40px 20px; }
  .work-item-gallery { gap: 6px; }
  .cta-section { margin: 20px 20px 40px; padding: 28px 20px; }

  .issues-section { padding: 60px 20px; }
  .issues-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-section { padding: 60px 20px; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .flow-section { padding: 60px 20px; }
  .flow-step { gap: 20px; }
  .contact-cta-section { margin: 0 20px 60px; padding: 48px 24px; }
  .contact-cta-buttons { flex-direction: column; align-items: center; }
  .cta-btn-black, .cta-btn-mocha { width: 100%; max-width: 320px; text-align: center; }
}
