@charset "UTF-8";
/* ============================================================
   WISTERIAS — トップページ専用CSS(front-page.php)
   Concept: 大阪の夕景 — 夕陽の朱 × 街明かりの金 × 夜の紺
   Fonts: Anton(見出し) / Space Mono(ラベル) / Instrument Serif(斜体)
   ============================================================ */
:root {
  --paper: #f7f3ec;
  --paper-soft: #efe9de;
  --ink: #191c2b;
  --ink-60: rgba(25,28,43,.6);
  --ink-30: rgba(25,28,43,.28);
  --ink-12: rgba(25,28,43,.12);
  --sunset: #e2582e;
  --sunset-deep: #a83a18;
  --sunset-pale: #f6c39d;
  --gold: #f0a643;
  --display: 'Anton', sans-serif;      /* 見出し用: 極太コンデンス */
  --en: 'Space Mono', monospace;       /* ラベル・ナビ用: モノスペース */
  --serif-en: 'Instrument Serif', serif;
  --ja: 'Noto Sans JP', sans-serif;
  --serif-ja: 'Zen Old Mincho', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
/* :where() でリセットの詳細度をゼロにする
   (.shell 等の margin: 0 auto を打ち消さないため) */
body.wisterias-front,
:where(body.wisterias-front *) { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wisterias-front {
  font-family: var(--ja);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (hover: none) { body.wisterias-front { cursor: auto; } }
.wisterias-front a { color: inherit; text-decoration: none; }
.wisterias-front a, .wisterias-front button { cursor: none; }
@media (hover: none) { .wisterias-front a, .wisterias-front button { cursor: pointer; } }

/* WP管理バーぶんの調整 */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }

/* ---------- film grain ---------- */
body.wisterias-front::after {
  content: ""; position: fixed; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .045; pointer-events: none; z-index: 9998;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); } 60% { transform: translate(-3%,-2%); }
  80% { transform: translate(4%,2%); }
}

/* ---------- custom cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
.cursor { width: 8px; height: 8px; background: var(--ink); transform: translate(-50%,-50%); transition: background .3s; }
.cursor-ring {
  width: 36px; height: 36px; border: 1px solid var(--ink-30);
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .3s, background .3s;
}
.cursor-ring.hover { width: 64px; height: 64px; border-color: var(--sunset); background: rgba(226,88,46,.08); }
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease);
  clip-path: inset(0 0 0% 0);
}
.loader.done { clip-path: inset(0 0 100% 0); }
.loader .mark {
  font-family: var(--serif-en); font-style: italic;
  font-size: clamp(2rem, 5vw, 3.4rem); color: var(--paper);
  opacity: 0; animation: loaderIn 1s var(--ease) .1s forwards;
}
.loader .mark em { font-style: italic; color: var(--sunset); }
@keyframes loaderIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--sunset), var(--sunset-deep));
  z-index: 300;
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  mix-blend-mode: difference; color: #fff;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px clamp(24px, 5vw, 64px);
}
.logo { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: .24em; }
.header nav { display: flex; gap: 34px; }
.header nav a {
  font-family: var(--en); font-size: .8rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding-bottom: 3px;
}
.header nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 760px) { .header nav a:not(:last-child) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 5vw, 64px) clamp(150px, 20vw, 260px);
  overflow: hidden;
}

/* ---------- 大阪スカイライン・パノラマ ---------- */
.hero-panorama {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(140px, 20vw, 260px);
  pointer-events: none; z-index: 0;
}
.hero-panorama svg { width: 100%; height: 100%; display: block; }

#petals { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.orb-1 { width: 560px; height: 560px; right: -140px; top: -120px; background: rgba(226,88,46,.16); }
.orb-2 { width: 420px; height: 420px; left: -160px; bottom: -80px; background: rgba(240,166,67,.28); }

.hero-meta {
  font-family: var(--en); font-size: .78rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink-60);
  display: flex; align-items: center; gap: 18px; margin-bottom: clamp(28px, 4vh, 48px);
}
.hero-meta::before { content: ""; width: 48px; height: 1px; background: var(--ink-30); }

.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 10.5vw, 9.6rem);
  line-height: 1.0; letter-spacing: .01em;
  text-transform: uppercase;
}
.hero h1 .serif {
  font-family: var(--serif-en); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  background: linear-gradient(110deg, var(--gold) 5%, var(--sunset) 55%, var(--sunset-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: clamp(36px, 6vh, 72px); flex-wrap: wrap;
}
.hero-lead {
  max-width: 480px; font-size: .98rem; color: var(--ink-60); font-weight: 500;
}
.hero-lead strong { color: var(--ink); font-weight: 700; }

.btn-round {
  position: relative; display: grid; place-items: center;
  width: 148px; height: 148px; border-radius: 50%;
  border: 1px solid var(--ink); flex-shrink: 0;
  font-family: var(--en); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
  transition: color .4s var(--ease);
  overflow: hidden;
}
.btn-round::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--ink); transform: scale(0);
  transition: transform .5s var(--ease);
}
.btn-round:hover::before { transform: scale(1); }
.btn-round:hover { color: var(--paper); }
.btn-round span { position: relative; z-index: 1; line-height: 1.6; }

.scroll-hint {
  position: absolute; bottom: calc(clamp(140px, 20vw, 260px) + 20px); left: clamp(24px, 5vw, 64px);
  z-index: 1;
  font-family: var(--en); font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink-60);
  display: flex; align-items: center; gap: 14px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 44px; background: var(--ink-30);
  animation: scrollLine 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- line reveal ---------- */
.line { overflow: hidden; display: block; }
.line-inner {
  display: block; transform: translateY(115%);
  transition: transform 1.1s var(--ease);
}
.on .line-inner { transform: none; }
.on .line:nth-child(2) .line-inner { transition-delay: .09s; }
.on .line:nth-child(3) .line-inner { transition-delay: .18s; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--ink-12); border-bottom: 1px solid var(--ink-12);
  padding: 22px 0; overflow: hidden; white-space: nowrap;
  background: var(--paper);
}
.marquee-track { display: inline-block; animation: marquee 28s linear infinite; }
.marquee span {
  font-family: var(--en); font-weight: 500; font-size: 1rem;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-60); margin: 0 34px;
}
.marquee em { font-family: var(--serif-en); font-style: italic; color: var(--sunset); font-size: 1.15rem; letter-spacing: .04em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section shell ---------- */
.wisterias-front section { position: relative; }
.shell { max-width: 1280px; margin: 0 auto; padding: clamp(100px, 14vh, 180px) clamp(24px, 5vw, 64px); }
.sec-tag {
  font-family: var(--en); font-size: .74rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--sunset-deep);
  display: flex; align-items: center; gap: 16px; margin-bottom: 34px;
}
.sec-tag::before { content: ""; width: 40px; height: 1px; background: var(--sunset); }

/* ---------- philosophy ---------- */
.philosophy .shell { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: start; }
.philosophy h2 {
  font-family: var(--serif-ja); font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.65; letter-spacing: .04em;
}
.philosophy h2 .accent { color: var(--sunset-deep); }
.philosophy .body {
  max-width: 560px; margin-top: 40px; color: var(--ink-60); font-size: .98rem;
}
.tate {
  writing-mode: vertical-rl; font-family: var(--serif-ja);
  font-size: .95rem; letter-spacing: .5em; color: var(--ink-30);
  height: 300px; border-left: 1px solid var(--ink-12); padding-left: 26px;
}
@media (max-width: 860px) { .philosophy .shell { grid-template-columns: 1fr; } .tate { display: none; } }

.big-index {
  position: absolute; top: clamp(40px, 8vh, 90px); right: clamp(12px, 3vw, 48px);
  font-family: var(--display); font-weight: 400;
  font-size: clamp(6rem, 16vw, 13rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--ink-12);
  pointer-events: none; user-select: none;
}

/* ---------- services (editorial list) ---------- */
.services { background: var(--paper); }
.service-row {
  position: relative; display: grid;
  grid-template-columns: 90px 1fr auto; gap: 28px; align-items: center;
  padding: 44px 8px; border-top: 1px solid var(--ink-12);
  transition: padding .45s var(--ease);
  overflow: hidden;
}
.service-row:last-of-type { border-bottom: 1px solid var(--ink-12); }
.service-row::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.service-row:hover::before { transform: scaleY(1); transform-origin: top; }
.service-row > * { position: relative; z-index: 1; transition: color .4s var(--ease); }
.service-row:hover > * { color: var(--paper); }
.service-row .idx {
  font-family: var(--en); font-size: .82rem; font-weight: 500;
  letter-spacing: .2em; color: var(--ink-30);
}
.service-row:hover .idx { color: var(--sunset-pale); }
.service-row h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); letter-spacing: .03em; line-height: 1.15;
}
.service-row h3 small {
  display: block; font-family: var(--ja); font-weight: 500; text-transform: none;
  font-size: .85rem; letter-spacing: .08em; color: var(--ink-60); margin-top: 6px;
  transition: color .4s var(--ease);
}
.service-row:hover h3 small { color: rgba(247,243,236,.65); }
.service-row .arrow {
  font-family: var(--en); font-size: 1.6rem;
  transform: rotate(-45deg); transition: transform .45s var(--ease), color .4s var(--ease);
}
.service-row:hover .arrow { transform: rotate(0deg); color: var(--sunset); }
.service-desc {
  grid-column: 2 / -1;
  max-height: 0; opacity: 0; overflow: hidden;
  font-size: .9rem; color: rgba(247,243,236,.7) !important;
  transition: max-height .5s var(--ease), opacity .5s var(--ease);
  max-width: 620px;
}
.service-row:hover .service-desc { max-height: 120px; opacity: 1; }

/* ---------- strength (dark / sticky cards) ---------- */
.strength { background: var(--ink); color: var(--paper); border-radius: 40px 40px 0 0; }
.strength .sec-tag { color: var(--sunset-pale); }
.strength .sec-tag::before { background: var(--sunset); }
.strength h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.01em;
  margin-bottom: clamp(60px, 9vh, 110px);
}
.strength h2 em { font-family: var(--serif-en); font-style: italic; font-weight: 400; text-transform: none; color: var(--sunset); }
.stack { display: grid; gap: 28px; }
.stack-card {
  position: sticky;
  background: #20243a; border: 1px solid rgba(247,243,236,.1);
  border-radius: 28px; padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: start;
}
.stack-card:nth-child(1) { top: 110px; }
.stack-card:nth-child(2) { top: 140px; }
.stack-card:nth-child(3) { top: 170px; }
.stack-card .no {
  font-family: var(--serif-en); font-style: italic;
  font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: var(--sunset);
}
.stack-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: .04em; margin-bottom: 16px; }
.stack-card p { color: rgba(247,243,236,.62); font-size: .95rem; max-width: 560px; }
.stack-card .en-sub {
  font-family: var(--en); font-size: .72rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--sunset-pale);
  display: block; margin-bottom: 10px;
}
@media (max-width: 700px) { .stack-card { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- flow ---------- */
.flow { background: var(--ink); color: var(--paper); padding-bottom: 40px; }
.flow .shell { padding-top: 0; }
.flow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(247,243,236,.14);
}
.flow-cell {
  padding: 44px 26px 56px; border-right: 1px solid rgba(247,243,236,.14);
  transition: background .4s;
}
.flow-cell:last-child { border-right: none; }
.flow-cell:hover { background: rgba(226,88,46,.07); }
.flow-cell .step {
  font-family: var(--en); font-size: .7rem; font-weight: 600;
  letter-spacing: .3em; color: var(--sunset); display: block; margin-bottom: 20px;
}
.flow-cell h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 10px; letter-spacing: .05em; }
.flow-cell p { font-size: .84rem; color: rgba(247,243,236,.55); }
@media (max-width: 860px) {
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-cell:nth-child(2n) { border-right: none; }
  .flow-cell { border-bottom: 1px solid rgba(247,243,236,.14); }
}

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--paper); }
.cta .shell { text-align: center; padding-top: clamp(90px, 13vh, 160px); padding-bottom: clamp(110px, 15vh, 190px); }
.cta .whisper {
  font-family: var(--serif-ja); font-size: 1rem; letter-spacing: .3em;
  color: rgba(247,243,236,.5); margin-bottom: 30px;
}
.cta h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.4rem, 12vw, 10rem); line-height: .95; letter-spacing: -.02em;
  margin-bottom: 18px;
}
.cta h2 .serif { font-family: var(--serif-en); font-style: italic; font-weight: 400; text-transform: none; color: var(--sunset); }
.cta .sub { color: rgba(247,243,236,.55); font-size: .95rem; margin-bottom: 56px; }
.cta .btn-round { border-color: var(--paper); color: var(--paper); width: 170px; height: 170px; margin: 0 auto; }
.cta .btn-round::before { background: var(--sunset); }
.cta .btn-round:hover { color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(247,243,236,.5); border-top: 1px solid rgba(247,243,236,.12); }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 40px clamp(24px, 5vw, 64px);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer .logo { color: var(--paper); font-size: .9rem; }
.footer nav { display: flex; gap: 26px; }
.footer nav a { font-family: var(--en); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; transition: color .3s; }
.footer nav a:hover { color: var(--sunset-pale); }
.footer .copy { font-family: var(--en); font-size: .7rem; letter-spacing: .12em; }
