/* ============================================
   大和建設 - Traditional Kyoto Construction
   Indigo #1B1464 + Gold + Shippori Mincho
   Single-column editorial, vertical text
   ============================================ */

:root {
  --indigo: #1B1464;
  --indigo-dark: #0F0D3D;
  --indigo-light: #2D2788;
  --gold: #B8860B;
  --gold-light: #DAA520;
  --gold-pale: #F5E6B8;
  --ink: #1A1A2E;
  --text: #2D2D3A;
  --text-light: #6B6B7B;
  --bg: #FAFAF8;
  --bg-dark: #F0EDE6;
  --white: #FFFFFF;
  --font-mincho: 'Shippori Mincho', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,20,100,0.06);
  padding: 0 24px;
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--indigo);
  color: var(--indigo);
  font-family: var(--font-mincho);
  font-size: 20px; font-weight: 700;
  border-radius: 2px;
}
.logo-text {
  font-family: var(--font-mincho);
  font-size: 18px; font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.15em;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; list-style: none; gap: 2px; }
.nav-link {
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  color: var(--text); border-radius: 4px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--indigo); background: rgba(27,20,100,0.04); }
.nav-cta {
  margin-left: 12px; padding: 8px 22px;
  background: var(--indigo); color: var(--white);
  font-size: 13px; font-weight: 500; border-radius: 4px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--indigo-dark); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 22px; height: 1.5px; background: var(--text);
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ===== HERO: FULLSCREEN + VERTICAL TEXT ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(15,13,61,0.55) 0%,
    rgba(15,13,61,0.35) 40%,
    rgba(15,13,61,0.65) 100%
  );
}

/* Vertical Japanese text - main feature */
.hero-vertical-text {
  position: absolute;
  top: 50%; right: 12%;
  transform: translateY(-50%);
  z-index: 10;
}
.hero-vtext-main {
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.25em;
  line-height: 1.8;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-side-info {
  position: absolute;
  left: 48px; top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-since, .hero-location {
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.3em;
}

.hero-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 48px;
  z-index: 10;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.hero-bottom-text {
  font-family: var(--font-mincho);
  font-size: 14px; color: rgba(255,255,255,0.8);
  line-height: 2;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== GOLD DIVIDERS ===== */
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  margin: 32px auto;
  border-radius: 2px;
}
.gold-divider--thin {
  height: 1px; width: 100%;
  background: linear-gradient(to right, transparent, var(--gold-pale), transparent);
  margin: 48px 0;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--light { background: var(--bg-dark); }
.section--indigo { background: var(--indigo); color: var(--white); }

.editorial-title {
  font-family: var(--font-mincho);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 48px;
  color: var(--indigo);
}
.editorial-title--light { color: var(--white); }

/* ===== EDITORIAL BODY (PHILOSOPHY) ===== */
.editorial-body {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.editorial-lead {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 2.2;
  color: var(--indigo);
  margin-bottom: 40px;
}
.editorial-body p {
  font-size: 15px; line-height: 2.2;
  color: var(--text-light);
  margin-bottom: 24px;
  text-align: justify;
}

/* ===== CRAFT (SKILLS) ===== */
.craft-list { display: flex; flex-direction: column; gap: 0; }
.craft-item {
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.craft-item:last-child { border-bottom: none; }
.craft-item-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 20px;
}
.craft-num {
  font-family: var(--font-mincho);
  font-size: 28px; font-weight: 700;
  color: var(--gold);
}
.craft-item h3 {
  font-family: var(--font-mincho);
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.1em;
}
.craft-item p {
  font-size: 14px; line-height: 2.2;
  opacity: 0.75;
  padding-left: 52px;
}
.craft-brush {
  width: 40px; height: 3px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-top: 24px;
  margin-left: 52px;
  border-radius: 2px;
}

/* ===== WORKS EDITORIAL ===== */
.works-editorial { margin-top: 48px; }
.work-editorial-item { margin-bottom: 8px; }
.work-editorial-img {
  width: 100%; height: 400px;
  background-size: cover; background-position: center;
  border-radius: 4px;
  margin-bottom: 28px;
}
.work-editorial-body { max-width: 600px; }
.work-cat-label {
  display: inline-block;
  font-family: var(--font-mincho);
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-pale);
}
.work-editorial-body h3 {
  font-family: var(--font-mincho);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--indigo);
}
.work-editorial-body p {
  font-size: 14px; line-height: 2.2;
  color: var(--text-light);
  margin-bottom: 12px;
}
.work-year {
  font-size: 13px; color: var(--gold);
  font-family: var(--font-mincho);
  letter-spacing: 0.15em;
}

/* ===== NUMBERS ===== */
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.number-val {
  font-family: var(--font-mincho);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--gold-light);
  display: block;
}
.number-unit {
  font-family: var(--font-mincho);
  font-size: 18px; color: var(--gold-light);
}
.number-label {
  display: block; font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 160px; }
.timeline::before {
  content: ''; position: absolute;
  left: 140px; top: 0; bottom: 0;
  width: 1px; background: var(--gold-pale);
}
.timeline-item {
  position: relative;
  padding: 0 0 48px 32px;
}
.timeline-item::before {
  content: '';
  position: absolute; left: -5px; top: 8px;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline-year {
  position: absolute; left: -160px; top: 0;
  width: 120px; text-align: right;
  font-family: var(--font-mincho);
  font-size: 14px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.timeline-content h3 {
  font-family: var(--font-mincho);
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
  color: var(--indigo);
}
.timeline-content p {
  font-size: 14px; line-height: 1.9;
  color: var(--text-light);
}

/* ===== COMPANY INFO ===== */
.company-info { margin-top: 48px; }
.company-row {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid rgba(27,20,100,0.06);
}
.company-th {
  width: 140px; flex-shrink: 0;
  font-size: 14px; font-weight: 600;
  color: var(--indigo);
  font-family: var(--font-mincho);
  letter-spacing: 0.1em;
}
.company-td {
  font-size: 14px; color: var(--text);
  line-height: 1.8;
}

/* ===== CTA ===== */
.section--cta {
  background: var(--indigo);
  color: var(--white);
  text-align: center;
}
.cta-content h2 {
  font-family: var(--font-mincho);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 15px; opacity: 0.8;
  line-height: 2; margin-bottom: 32px;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.cta-hours {
  font-family: var(--font-mincho);
  font-size: 13px; opacity: 0.5;
  letter-spacing: 0.1em;
  margin-bottom: 32px; display: block;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-size: 14px; font-weight: 500;
  border-radius: 4px; border: 1px solid transparent;
  transition: all 0.25s; cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}
.btn--gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--outline-gold { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn--outline-gold:hover { background: var(--gold); color: var(--white); }
.btn--large { padding: 16px 40px; font-size: 15px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--indigo-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-mon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mincho);
  font-size: 18px; font-weight: 700;
}
.footer-name {
  font-family: var(--font-mincho);
  font-size: 15px; color: var(--white);
  letter-spacing: 0.15em;
}
.footer-addr { font-size: 12px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a {
  font-size: 13px; transition: color 0.2s;
  letter-spacing: 0.05em;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { text-align: center; padding: 24px 0; font-size: 12px; opacity: 0.4; }

/* ===== ANIMATIONS ===== */
[data-anim] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-anim].visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.2s; }
[data-delay="2"] { transition-delay: 0.4s; }
[data-delay="3"] { transition-delay: 0.6s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 32px 24px;
    z-index: 999;
  }
  .nav.open .nav-list { flex-direction: column; gap: 0; }
  .nav.open .nav-link { padding: 14px 0; font-size: 16px; }
  .nav.open .nav-cta { margin: 16px 0 0; text-align: center; }
  .hamburger { display: flex; }

  .hero-vertical-text { right: 8%; }
  .hero-vtext-main { font-size: 36px; }
  .hero-side-info { left: 20px; }
  .hero-bottom-bar { padding: 24px 20px; flex-direction: column; gap: 16px; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .timeline { padding-left: 0; }
  .timeline::before { left: 0; }
  .timeline-year {
    position: static; width: auto; text-align: left;
    display: block; margin-bottom: 4px;
  }
  .timeline-item { padding-left: 24px; }
  .timeline-item::before { left: -4px; }

  .company-row { flex-direction: column; gap: 4px; }
  .company-th { width: auto; }

  .work-editorial-img { height: 250px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 32px; }
}
