/* ============================================================
   TAKUMI Construction | No.025 | style.css
   ============================================================ */

:root {
  --bg:      #0d0a06;
  --bg-2:    #141009;
  --bg-3:    #1e1710;
  --bg-4:    #28200f;
  --ivory:   #f2e8d4;
  --ivory-2: #a89270;
  --amber:   #c87940;
  --amber-2: #e08c4e;
  --amber-3: rgba(200,121,64,.12);
  --silver:  #7a6a52;
  --border:  rgba(200,121,64,.18);
  --border-s:rgba(200,121,64,.40);

  --ff-en:   'Cormorant Garamond', 'Times New Roman', serif;
  --ff-sub:  'Barlow', 'Helvetica Neue', sans-serif;
  --ff-ja:   'Noto Serif JP', 'Yu Mincho', serif;

  --ease:    cubic-bezier(.25,.46,.45,.94);
  --max-w:   1240px;
  --header-h:72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--ivory); font-family: var(--ff-ja); font-weight: 300; line-height: 1.9; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }

.label {
  display: block; font-family: var(--ff-sub); font-size: .64rem; font-weight: 400;
  letter-spacing: .35em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
}
.section-title {
  font-family: var(--ff-en); font-weight: 400; font-style: italic;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; color: var(--ivory); margin-bottom: 12px;
}
.section-title-ja {
  font-family: var(--ff-ja); font-weight: 300; font-size: clamp(.9rem, 1.6vw, 1.05rem);
  letter-spacing: .22em; color: var(--ivory-2); margin-bottom: 24px;
}
.section-header { text-align: center; margin-bottom: 80px; }

.body-text { font-size: .94rem; color: var(--ivory-2); line-height: 2.2; margin-bottom: 20px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 44px; background: var(--amber); color: var(--bg);
  font-family: var(--ff-sub); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s;
}
.btn-primary:hover { background: var(--amber-2); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 40px; border: 1px solid var(--border-s); color: var(--ivory);
  font-family: var(--ff-sub); font-size: .74rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  transition: border-color .3s, background .3s;
}
.btn-ghost:hover { border-color: var(--amber); background: var(--amber-3); }

/* ─── DEMO BAR ─────────────────────────────────────────── */
#demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(13,10,6,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 7px 0;
}
.demo-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .7rem; color: rgba(255,255,255,.32); font-family: var(--ff-sub);
}
.demo-badge {
  font-size: .52rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  background: var(--amber-3); color: var(--amber); padding: 3px 10px; flex-shrink: 0;
}
.demo-link { color: var(--amber); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.demo-copy { color: rgba(255,255,255,.14); font-size: .62rem; margin-left: 4px; }
@media(max-width:640px){ .demo-copy { display: none; } }

/* ─── HEADER ────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 900;
  height: var(--header-h); padding: 0 48px;
  display: flex; align-items: center;
  transition: background .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(13,10,6,.95); backdrop-filter: blur(20px); border-color: var(--border); }
.header-inner { width: 100%; max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; }
.header-logo { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.logo-en { font-family: var(--ff-en); font-weight: 400; font-style: italic; font-size: 2rem; letter-spacing: .06em; line-height: 1; }
.logo-tagline { font-family: var(--ff-sub); font-size: .52rem; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); }
.header-nav {
  display: flex; gap: 38px;
  font-family: var(--ff-sub); font-size: .7rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-2);
}
.header-nav a:hover { color: var(--amber); }
.btn-contact-header {
  margin-left: 36px; padding: 9px 22px; border: 1px solid var(--border-s);
  font-family: var(--ff-sub); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory); transition: background .3s, border-color .3s, color .3s;
}
.btn-contact-header:hover { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 4px; margin-left: 20px; }
.hamburger span { display: block; height: 1px; background: var(--ivory); transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media(max-width:960px){
  .hamburger { display: flex; z-index: 1100; position: relative; }
  .btn-contact-header { display: none; }

  /* 暖簾ドロップ — 上から降りる暖簾 */
  .header-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 1000;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .58s cubic-bezier(.77,0,.175,1);
  }
  .header-nav.nav-open { pointer-events: all; clip-path: inset(0 0 0% 0); }
  /* アンバー横ライン装飾 */
  .header-nav::before {
    content: '';
    position: absolute;
    left: 12%; right: 12%; top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--amber) 20%, var(--amber) 80%, transparent);
    opacity: .12;
  }
  .header-nav a {
    font-family: var(--ff-en);
    font-style: italic;
    font-size: 1.2rem;
    letter-spacing: .14em;
    color: var(--ivory-2);
    padding: 17px 0;
    border-bottom: 1px solid rgba(193,143,47,.1);
    width: 260px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: color .3s, opacity .4s ease, transform .4s ease;
  }
  .header-nav a:last-child { border-bottom: none; }
  .header-nav a:hover { color: var(--amber); }
  .header-nav.nav-open a { opacity: 1; transform: translateY(0); }
  .header-nav.nav-open a:nth-child(1) { transition-delay: .22s; }
  .header-nav.nav-open a:nth-child(2) { transition-delay: .30s; }
  .header-nav.nav-open a:nth-child(3) { transition-delay: .38s; }
  .header-nav.nav-open a:nth-child(4) { transition-delay: .46s; }
  .header-nav.nav-open a:nth-child(5) { transition-delay: .54s; }

  /* スタッキングコンテキスト解除 */
  .site-header.menu-active {
    background: var(--bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
  }
}

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: flex-end; padding-bottom: 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 10s ease-out; }
.hero.loaded .hero-bg img { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,10,6,.92) 0%, rgba(13,10,6,.5) 55%, rgba(13,10,6,.2) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 0 48px; width: 100%; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  font-family: var(--ff-sub); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--amber);
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--amber); }
.hero-title {
  font-family: var(--ff-en); font-weight: 400; font-style: italic;
  font-size: clamp(4.5rem, 11vw, 10rem); line-height: .92; letter-spacing: .02em; color: var(--ivory); margin-bottom: 20px;
}
.hero-sub {
  font-family: var(--ff-ja); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 300;
  letter-spacing: .2em; color: var(--ivory-2); margin-bottom: 48px;
}
.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: 48px; bottom: 80px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--ff-sub); font-size: .54rem; letter-spacing: .35em; text-transform: uppercase; color: var(--silver);
}
.scroll-line { width: 1px; height: 64px; background: linear-gradient(to bottom, transparent, var(--amber)); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .35; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ─── MARQUEE ────────────────────────────────────────────── */
.marquee-wrap { overflow: hidden; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.marquee-track { display: flex; white-space: nowrap; animation: marquee 35s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 20px; padding: 0 28px; font-family: var(--ff-sub); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); }
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── OVERVIEW ───────────────────────────────────────────── */
.overview { padding: 160px 0; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.overview-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.overview-image img { width: 100%; height: 100%; object-fit: cover; }
.overview-image::before {
  content: ''; position: absolute; top: -14px; left: -14px; right: 14px; bottom: 14px;
  border: 1px solid var(--border); z-index: -1;
}
.overview-line { width: 40px; height: 2px; background: var(--amber); margin-bottom: 32px; }

/* ─── CRAFT ──────────────────────────────────────────────── */
.craft { padding: 140px 0; background: var(--bg-2); }
.craft-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 80px; }
.craft-card { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--bg-3); }
.craft-card img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .8s var(--ease), opacity .4s; }
.craft-card:hover img { transform: scale(1.07); opacity: .8; }
.craft-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,10,6,.92) 0%, transparent 60%); }
.craft-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 28px; }
.craft-num { display: block; font-family: var(--ff-sub); font-size: .62rem; letter-spacing: .3em; color: var(--amber); margin-bottom: 8px; }
.craft-en { display: block; font-family: var(--ff-en); font-style: italic; font-size: 1.8rem; color: var(--ivory); margin-bottom: 4px; }
.craft-ja { font-size: .78rem; color: var(--ivory-2); letter-spacing: .12em; }
.craft-line { width: 0; height: 1px; background: var(--amber); transition: width .5s var(--ease); margin-top: 14px; }
.craft-card:hover .craft-line { width: 40px; }

/* ─── STATS ──────────────────────────────────────────────── */
.stats { padding: 120px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.stat-item { padding: 56px 40px; text-align: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-num { font-family: var(--ff-en); font-style: italic; font-size: clamp(2.8rem, 4.5vw, 4rem); color: var(--ivory); line-height: 1; margin-bottom: 10px; }
.stat-unit { color: var(--amber); font-size: .85em; margin-left: 2px; }
.stat-label { font-family: var(--ff-sub); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); }

/* ─── WORKS ──────────────────────────────────────────────── */
.works-section { padding: 140px 0; background: var(--bg-2); }
.works-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 80px; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-3); cursor: pointer; }
.work-card img { width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: transform .8s var(--ease), opacity .4s; }
.work-card:hover img { transform: scale(1.06); opacity: .9; }
.work-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,10,6,.9) 0%, transparent 55%); }
.work-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 28px; }
.work-tag { display: block; font-family: var(--ff-sub); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.work-en { display: block; font-family: var(--ff-en); font-style: italic; font-size: 1.4rem; color: var(--ivory); margin-bottom: 2px; }
.work-ja { font-size: .78rem; font-weight: 300; color: var(--ivory-2); letter-spacing: .08em; }

/* ─── PHILOSOPHY ─────────────────────────────────────────── */
.philosophy { padding: 160px 0; }
.philosophy-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.philosophy-img { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.philosophy-img img { width: 100%; height: 100%; object-fit: cover; }
.philosophy-quote {
  font-family: var(--ff-ja); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 300;
  line-height: 2; letter-spacing: .12em; color: var(--ivory);
  padding-left: 24px; border-left: 2px solid var(--amber); margin-bottom: 40px;
}

/* ─── NEWS ───────────────────────────────────────────────── */
.news-section { padding: 120px 0; background: var(--bg-2); }
.news-list { margin-top: 64px; }
.news-item {
  display: grid; grid-template-columns: 150px 110px 1fr 28px; align-items: center; gap: 32px;
  padding: 26px 0; border-bottom: 1px solid var(--border); transition: background .2s; cursor: pointer;
}
.news-item:hover { background: rgba(200,121,64,.04); }
.news-date { font-family: var(--ff-sub); font-size: .72rem; letter-spacing: .1em; color: var(--silver); }
.news-cat { font-family: var(--ff-sub); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--border-s); padding: 3px 10px; white-space: nowrap; text-align: center; }
.news-title { font-size: .9rem; color: var(--ivory); letter-spacing: .04em; }
.news-arrow { color: var(--silver); transition: color .3s, transform .3s; font-size: .8rem; }
.news-item:hover .news-arrow { color: var(--amber); transform: translateX(4px); }
.news-more { text-align: right; margin-top: 24px; }
.news-more a { font-family: var(--ff-sub); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section {
  padding: 160px 0; text-align: center;
  background: linear-gradient(rgba(13,10,6,.9), rgba(13,10,6,.9)), url('../images/hero-bg.jpeg') center/cover no-repeat;
}
.cta-title { font-family: var(--ff-en); font-style: italic; font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 20px; }
.cta-sub { color: var(--ivory-2); max-width: 480px; margin: 0 auto 52px; }
.cta-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 80px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand-en { font-family: var(--ff-en); font-style: italic; font-size: 2.4rem; }
.footer-brand-tag { font-family: var(--ff-sub); font-size: .52rem; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); margin: 4px 0 20px; }
.footer-address { font-size: .8rem; color: var(--silver); line-height: 2; }
.footer-nav-title { font-family: var(--ff-sub); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.footer-nav-list a { display: block; font-size: .8rem; color: var(--silver); padding: 5px 0; letter-spacing: .06em; transition: color .2s; }
.footer-nav-list a:hover { color: var(--ivory); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--ff-sub); font-size: .66rem; color: var(--silver); }
.footer-policy { font-size: .66rem; color: var(--silver); transition: color .2s; }
.footer-policy:hover { color: var(--amber); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
[data-anim] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-anim="fade"] { transform: none; }
[data-anim].visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:1100px){ .stats-grid { grid-template-columns: repeat(2,1fr); } .works-list { grid-template-columns: repeat(2,1fr); } }
@media(max-width:768px){
  .container { padding: 0 24px; } .site-header { padding: 0 24px; }
  .overview-grid { grid-template-columns: 1fr; } .craft-grid { grid-template-columns: 1fr; } .works-list { grid-template-columns: 1fr; }
  .philosophy-inner { grid-template-columns: 1fr; } .news-item { grid-template-columns: 1fr; gap: 8px; } .news-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } .hero-scroll { display: none; } .hero-content { padding: 0 24px; }
}
