/* ========================================
   皇建設 - Premium Black & Gold
   Colors: #0A0A0A + gold #B8860B
   Font: Playfair Display + Noto Serif JP
   ======================================== */

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

:root {
  --bg: #0A0A0A;
  --bg-dark: #060606;
  --text: #E8E0D4;
  --text-dim: #8A8070;
  --gold: #B8860B;
  --gold-light: #D4A84B;
  --gold-dark: #8B6508;
  --border: rgba(184,134,11,0.15);
  --font-display: 'Playfair Display', 'Noto Serif JP', serif;
  --font-body: 'Noto Serif JP', serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.9; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 680px; }

/* ===== SAMPLE BANNER ===== */
.sample-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  background: rgba(184,134,11,0.9); color: #0A0A0A;
  text-align: center; padding: 10px 16px; font-size: 13px;
  font-weight: 600; letter-spacing: 0.04em;
}

/* ===== GOLD CANVAS ===== */
#goldCanvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ===== CURTAIN ===== */
.curtain {
  position: fixed; inset: 0; z-index: 100000; display: flex;
  pointer-events: none;
}
.curtain__left, .curtain__right {
  width: 50%; height: 100%; background: #0A0A0A;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.curtain.open .curtain__left { transform: translateX(-100%); }
.curtain.open .curtain__right { transform: translateX(100%); }
.curtain__text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: 48px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.2em;
  opacity: 1; transition: opacity 0.5s ease 0.4s;
}
.curtain.open .curtain__text { opacity: 0; }

/* ===== GOLD DIVIDER ===== */
.gold-divider {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 40px 0;
}
.gold-divider__line { width: 120px; height: 1px; background: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat, transparent); }
.gold-divider__diamond {
  width: 10px; height: 10px; background: var(--gold);
  transform: rotate(45deg); flex-shrink: 0;
}

/* ===== ORNAMENTAL FRAME ===== */
.ornamental-frame {
  position: relative; display: inline-block; padding: 24px 48px;
  border: 1px solid var(--border);
}
.ornamental-frame::before, .ornamental-frame::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--gold);
}
.ornamental-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.ornamental-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 40px; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; transition: all 0.4s;
}
.header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.header__logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.logo-text {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  letter-spacing: 0.08em; line-height: 1.3;
}
.logo-text small {
  display: block; font-size: 10px; font-weight: 400;
  color: var(--text-dim); letter-spacing: 0.06em;
  font-family: var(--font-body);
}
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__nav a {
  text-decoration: none; color: var(--text-dim); font-size: 14px;
  font-weight: 500; transition: color 0.3s; letter-spacing: 0.06em;
}
.header__nav a:hover { color: var(--gold); }
.nav-cta {
  background: transparent !important; color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  padding: 10px 28px !important; letter-spacing: 0.06em !important;
}
.nav-cta:hover { background: var(--gold) !important; color: #0A0A0A !important; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 1001;
}
.hamburger span {
  display: block; width: 100%; height: 1px; background: var(--gold);
  position: absolute; left: 0; transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  padding: 160px 24px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__gradient {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(184,134,11,0.04) 0%, transparent 60%);
}
.hero__ornament {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 1;
  opacity: 0.5;
}
.hero__ornament--top { top: 120px; }
.hero__ornament--bottom { bottom: 120px; }
.hero__content { position: relative; z-index: 2; max-width: 700px; }
.hero__label {
  font-family: var(--font-display); font-size: 13px; font-weight: 400;
  color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 32px;
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(48px, 8vw, 96px);
  font-weight: 700; line-height: 1.2; margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.gold-shimmer {
  background: linear-gradient(
    120deg,
    var(--gold-dark) 0%,
    var(--gold) 25%,
    var(--gold-light) 50%,
    var(--gold) 75%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero__desc {
  font-size: 17px; color: var(--text-dim); line-height: 2;
  margin-bottom: 48px; letter-spacing: 0.04em;
}
.hero__actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-line {
  width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollFade 2.5s ease-in-out infinite;
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.4s; cursor: pointer;
  border: none; font-family: var(--font-body); letter-spacing: 0.08em;
}
.btn--gold {
  background: var(--gold); color: #0A0A0A;
  box-shadow: 0 4px 20px rgba(184,134,11,0.25);
}
.btn--gold:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 32px rgba(184,134,11,0.35);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent; color: var(--gold);
  border: 1px solid rgba(184,134,11,0.4);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(184,134,11,0.05); }
.btn--full { width: 100%; }

/* ===== TRUST ===== */
.trust { padding: 60px 0; position: relative; z-index: 2; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.trust__item { padding: 24px; }
.trust__num { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--gold); }
.trust__unit { font-size: 16px; color: var(--gold-light); }
.trust__label { display: block; margin-top: 6px; font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; }

/* ===== SECTIONS ===== */
.section { padding: 160px 0; position: relative; z-index: 2; }
.section--dark { background: var(--bg-dark); }
.section-header { text-align: center; margin-bottom: 80px; }
.section-label {
  display: block; font-family: var(--font-display); font-size: 12px;
  color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.4; color: var(--text); letter-spacing: 0.04em;
}
.section-desc { font-size: 15px; color: var(--text-dim); margin-top: 20px; line-height: 2; letter-spacing: 0.02em; }

/* ===== PHILOSOPHY ===== */
.philosophy__content {
  max-width: 700px; margin: 0 auto 80px; text-align: center;
}
.philosophy__content p {
  font-size: 16px; color: var(--text-dim); line-height: 2.2;
  margin-bottom: 24px; letter-spacing: 0.02em;
}
.philosophy__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { text-align: center; }
.pillar__frame {
  width: 100px; height: 100px; margin: 0 auto 24px;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  position: relative;
}
.pillar__frame::before, .pillar__frame::after {
  content: ''; position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--gold);
}
.pillar__frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pillar__frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.pillar__kanji {
  font-family: var(--font-display); font-size: 36px; color: var(--gold);
  font-weight: 700;
}
.pillar h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--gold-light); letter-spacing: 0.06em; }
.pillar p { font-size: 14px; color: var(--text-dim); line-height: 1.9; }

/* ===== CRAFT ===== */
.craft__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.craft-card {
  padding: 48px; border: 1px solid var(--border);
  transition: border-color 0.4s, box-shadow 0.4s;
  position: relative;
}
.craft-card::before, .craft-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--gold); opacity: 0; transition: opacity 0.4s;
}
.craft-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.craft-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.craft-card:hover { border-color: rgba(184,134,11,0.3); box-shadow: 0 4px 32px rgba(184,134,11,0.08); }
.craft-card:hover::before, .craft-card:hover::after { opacity: 1; }
.craft-card__header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.craft-card__num { font-family: var(--font-display); font-size: 28px; color: var(--gold); font-weight: 400; opacity: 0.6; }
.craft-card h3 { font-size: 20px; font-weight: 600; letter-spacing: 0.04em; }
.craft-card p { font-size: 15px; color: var(--text-dim); line-height: 2; }

/* ===== PORTFOLIO ===== */
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.portfolio-card {
  border: 1px solid var(--border); overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.portfolio-card:hover { border-color: rgba(184,134,11,0.3); transform: translateY(-4px); }
.portfolio-card__visual { height: 220px; }
.portfolio-card__body { padding: 32px; }
.portfolio-card__cat {
  display: inline-block; font-size: 11px; color: var(--gold);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px;
  border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.portfolio-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; }
.portfolio-card p { font-size: 14px; color: var(--text-dim); line-height: 1.9; }

/* ===== PROCESS ===== */
.process__steps { max-width: 700px; margin: 0 auto; }
.process-step { position: relative; padding: 0 0 48px 48px; }
.process-step:last-child { padding-bottom: 0; }
.process-step__line {
  position: absolute; top: 12px; left: 5px; bottom: 0;
  width: 1px; background: var(--border);
}
.process-step:last-child .process-step__line { display: none; }
.process-step__marker {
  position: absolute; top: 4px; left: 0; width: 12px; height: 12px;
  border: 1px solid var(--gold); transform: rotate(45deg);
  background: var(--bg-dark);
}
.process-step h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--gold-light); margin-bottom: 12px; letter-spacing: 0.04em;
}
.process-step p { font-size: 15px; color: var(--text-dim); line-height: 2; }

/* ===== COMPANY TABLE ===== */
.company__table {
  max-width: 800px; margin: 0 auto; border: 1px solid var(--border);
  padding: 48px; position: relative;
}
.company__table::before, .company__table::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--gold);
}
.company__table::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.company__table::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.company__table table { width: 100%; border-collapse: collapse; }
.company__table th, .company__table td {
  padding: 16px 20px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--border); letter-spacing: 0.02em;
}
.company__table th { width: 160px; color: var(--text-dim); font-weight: 500; white-space: nowrap; }

/* ===== CONTACT FORM ===== */
.contact-form {
  border: 1px solid var(--border); padding: 48px;
  position: relative;
}
.contact-form::before, .contact-form::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--gold);
}
.contact-form::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.contact-form::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-dim); letter-spacing: 0.04em; }
.req { color: var(--gold); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border);
  background: rgba(184,134,11,0.02); color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.3s; outline: none; letter-spacing: 0.02em;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { cursor: pointer; }

/* ===== FOOTER ===== */
.footer { padding: 0 0 40px; position: relative; z-index: 2; }
.footer__inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px;
  padding: 60px 0 40px; align-items: start;
}
.footer__brand { text-align: center; }
.footer__logo-mark {
  font-family: var(--font-display); font-size: 40px; color: var(--gold);
  font-weight: 700; margin-bottom: 8px;
}
.footer-logo-text {
  display: block; font-size: 18px; font-weight: 600; color: var(--text);
  margin-bottom: 8px; letter-spacing: 0.06em;
}
.footer__brand p { font-size: 13px; color: var(--text-dim); }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col a, .footer__col p {
  display: block; font-size: 14px; color: var(--text-dim);
  text-decoration: none; margin-bottom: 10px; transition: color 0.3s;
  letter-spacing: 0.02em;
}
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between;
}
.footer__bottom p { font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }
.footer__note { font-style: italic; }

/* ===== ANIMATIONS ===== */
[data-anim] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-anim].visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .craft__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
  .philosophy__pillars { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 100px 0; }
}
@media (max-width: 768px) {
  .header__nav {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(16px);
    flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  }
  .header__nav.open { display: flex; }
  .header__nav a { font-size: 18px; }
  .hamburger { display: block; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .hero__title { font-size: 44px; }
  .section { padding: 80px 0; }
  .ornamental-frame { padding: 16px 24px; }
  .hero { padding: 120px 24px; }
}
