/* ═══════════════════════════════════════════════════════
   和流 -ORYU- common.css
   Shared component MECHANICS only (layout, behavior, animation).
   Colors/fonts/sizes are consumed via CSS custom properties,
   which are defined per page-set in index.css / style.css.
   This file must be loaded on every page, before the
   page-specific stylesheet.
   ═══════════════════════════════════════════════════════ */

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.9;
  overflow-x: hidden;
  padding-top: var(--hdr);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .nl:focus-visible, .hbg:focus-visible, .faq-q:focus-visible, .st-tab:focus-visible {
  outline: 2px solid var(--neon, #2fe374);
  outline-offset: 3px;
}
img:focus-visible, [data-lightbox]:focus-visible {
  outline: 2px solid var(--neon, #2fe374);
  outline-offset: 2px;
}
.p-wrap { opacity: 0; animation: pIn .8s var(--ease-soft) .05s forwards; }
@keyframes pIn { to { opacity: 1; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 400;
  background: var(--bone); color: var(--ink); padding: .8rem 1.4rem;
  font-size: .75rem; letter-spacing: .05em; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.nowrap { white-space: nowrap; }
/* Mobile-only line break: hidden on PC/tablet, active ≤768px.
   Lets us fix Japanese text wrap points on phones without touching desktop layout. */
br.mobile-br { display: none; }
@media (max-width: 768px) { br.mobile-br { display: block; content: ""; } }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }

/* ── HEADER ── */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  transition: background .6s, border-color .6s;
  border-bottom: 1px solid transparent;
}
#hdr.solid, #hdr.always {
  background: var(--hdr-bg, rgba(16, 13, 10, .95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hair);
}
.logo { text-decoration: none; display: flex; align-items: center; gap: .8rem; }
.logo-txt { display: flex; align-items: baseline; gap: .8rem; }
.logo-k { font-family: var(--font-jp); font-size: 1.5rem; font-weight: 700; color: var(--bone); letter-spacing: .12em; }
.logo-r { font-family: var(--font-label, var(--font-sans)); font-size: .56rem; font-weight: 500; letter-spacing: .35em; color: var(--brass); text-transform: uppercase; }

/* ── LOGO SEAL BADGE — real brand mark, flower-shaped cutout ── */
.seal {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 48px; height: 48px;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.5));
  transition: transform 1.2s var(--ease);
}
.seal img { width: 100%; height: 100%; object-fit: contain; display: block; }
.seal:hover { transform: rotate(8deg); }
.logo-seal { width: 34px; height: 34px; }
.seal-spin { animation: sealSpin 50s linear infinite; }
@keyframes sealSpin { to { transform: rotate(360deg); } }

nav { display: flex; align-items: center; }
.nl {
  position: relative; height: var(--hdr);
  display: flex; align-items: center; padding: 0 1.1rem;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--stone); text-decoration: none; transition: color .3s;
}
.nl::after {
  content: ''; position: absolute; bottom: 0; left: 1.1rem; right: 1.1rem; height: 1px;
  background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nl:hover, .nl.on { color: var(--bone); }
.nl:hover::after, .nl.on::after { transform: scaleX(1); }

.btn-res {
  margin-left: 1.7rem; padding: .58rem 1.5rem;
  font-family: var(--font-label, var(--font-sans)); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--brass); text-decoration: none; transition: background .3s;
  white-space: nowrap;
}
.btn-res:hover { background: var(--neon); }

.hbg { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 301; }
.hbg span { display: block; width: 22px; height: 1px; background: var(--bone); transition: all .35s var(--ease); transform-origin: center; }
.hbg.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hbg.on span:nth-child(2) { opacity: 0; }
.hbg.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 299; background: var(--mnav-bg, rgba(16, 13, 10, .98));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  clip-path: circle(0% at calc(100% - 3rem) 39px);
  transition: clip-path .6s var(--ease); pointer-events: none;
}
.mnav.on { clip-path: circle(150% at calc(100% - 3rem) 39px); pointer-events: all; }
.mnav a {
  font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.5rem); font-weight: 600;
  color: rgba(236, 228, 211, .35); text-decoration: none; letter-spacing: .02em; padding: .55rem 0;
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s var(--ease-soft);
}
.mnav.on a { opacity: 1; transform: translateY(0); }
.mnav.on a:nth-child(1) { transition-delay: .08s; }
.mnav.on a:nth-child(2) { transition-delay: .13s; }
.mnav.on a:nth-child(3) { transition-delay: .18s; }
.mnav.on a:nth-child(4) { transition-delay: .23s; }
.mnav.on a:nth-child(5) { transition-delay: .28s; }
.mnav.on a:nth-child(6) { transition-delay: .33s; }
.mnav a:hover, .mnav a.on { color: var(--bone); }
.mnav-cta {
  margin-top: 1.8rem; padding: .65rem 2rem; border: 1px solid rgba(47, 227, 116, .4);
  color: var(--neon) !important; font-family: var(--font-label, var(--font-sans)) !important; font-size: .65rem !important; letter-spacing: .1em !important;
}

.mbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--mbar-bg, rgba(16, 13, 10, .97)); backdrop-filter: blur(16px);
  border-top: 1px solid var(--hair); padding: .7rem 1rem;
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); gap: .4rem;
}
.mbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  text-decoration: none; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .5rem; color: var(--stone); transition: color .2s;
}
.mbar a.pri { color: var(--brass); }
.mbar .icon { width: 19px; height: 19px; }

/* ── FOOTER ── */
footer { background: var(--footer-bg, #0a0806); padding: 6rem 3rem 3rem; border-top: 1px solid var(--hair); position: relative; overflow: hidden; }
.ft-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; position: relative; }
.ft-brand .logo-k { font-size: 1.3rem; }
.ft-tag { margin-top: 1.1rem; font-size: .72rem; color: rgba(148, 138, 118, .5); line-height: 2; max-width: 200px; }
.ft-bar { width: 24px; height: 1px; background: rgba(176, 141, 79, .3); margin: 1.3rem 0; }
footer h4 { font-family: var(--font-label, var(--font-sans)); font-size: .58rem; letter-spacing: .2em; color: var(--brass); text-transform: uppercase; margin-bottom: 1.2rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .55rem; }
footer ul li a { font-size: .75rem; color: rgba(148, 138, 118, .55); text-decoration: none; transition: color .2s; }
footer ul li a:hover { color: var(--bone); }
footer ul li span { font-size: .75rem; color: rgba(148, 138, 118, .4); }
.ft-btm {
  max-width: 1200px; margin: 3.5rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .62rem; color: rgba(148, 138, 118, .3); flex-wrap: wrap; gap: .5rem;
}
.ft-social { display: flex; gap: 1.3rem; }
.ft-social a { font-size: .62rem; letter-spacing: .15em; color: rgba(148, 138, 118, .35); text-decoration: none; text-transform: uppercase; transition: color .2s; }
.ft-social a:hover { color: var(--neon); }

/* ── SECTION PRIMITIVES ── */
.sec { padding: 11rem 3rem; }
.sec-tight { padding: 7rem 3rem; }
.sec-alt { background: var(--panel); }
.con { max-width: 1200px; margin: 0 auto; }
.con-nar { max-width: 900px; margin: 0 auto; }
.eyebrow {
  font-family: var(--font-label, var(--font-sans)); font-size: .62rem; letter-spacing: .18em; color: var(--brass);
  text-transform: uppercase; margin-bottom: 1.3rem; display: flex; align-items: center; gap: 1rem;
}
.eyebrow::before { content: ''; display: block; width: 22px; height: 1px; background: var(--brass); flex-shrink: 0; }
.h2 { font-family: var(--font-display); font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 600; color: var(--bone); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 1.3rem; }
.h2 .accent { color: var(--neon); }
.rule { width: 32px; height: 1px; background: rgba(176, 141, 79, .4); margin: 1.6rem 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 2.2rem;
  font-family: var(--font-label, var(--font-sans)); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: all .4s var(--ease);
}
.btn-p { background: var(--brass); color: var(--ink); }
.btn-p:hover { background: var(--neon); }
.btn-o { background: transparent; color: var(--bone); border: 1px solid rgba(236, 228, 211, .32); }
.btn-o:hover { border-color: var(--brass); color: var(--brass); }

/* ── PAGE HERO (used by all sub-pages) ── */
.ph { padding: 6rem 3rem 5rem; background: var(--panel); position: relative; }
.ph::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(176, 141, 79, .35), transparent); }
.ph-ey { font-family: var(--font-label, var(--font-sans)); font-size: .62rem; letter-spacing: .18em; color: var(--brass); text-transform: uppercase; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 1rem; }
.ph-ey::before { content: ''; display: block; width: 22px; height: 1px; background: var(--brass); }
.ph-t { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 600; color: var(--bone); letter-spacing: -.01em; line-height: 1.1; }
.ph-s { margin-top: 1.2rem; font-size: .83rem; color: var(--stone); max-width: 480px; line-height: 1.9; }

/* ── SCROLL-REVEAL ANIMATIONS ── */
.fi { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.fi.v { opacity: 1; transform: translateY(0); }
.fl { opacity: 0; transform: translateX(-26px); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.fl.v { opacity: 1; transform: translateX(0); }
.fr { opacity: 0; transform: translateX(26px); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.fr.v { opacity: 1; transform: translateX(0); }
.fz { opacity: 0; transform: scale(.96); transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft); }
.fz.v { opacity: 1; transform: scale(1); }

/* ── PARALLAX IMAGE WRAPPER ── */
.px-wrap { overflow: hidden; position: relative; }
.px-img { will-change: transform; transition: transform .1s linear; }

/* ── NEON SIDE BARS — signature brand accent, all pages ── */
.neon-glow-short { position: fixed; top: 15%; width: 5px; height: 70vh; pointer-events: none; z-index: 250; opacity: .95; }
.neon-glow-short-l { left: 0; background: linear-gradient(90deg, rgba(30,255,120,.9), rgba(30,255,120,.5) 40%, transparent 100%); box-shadow: 0 0 24px 6px rgba(30,255,120,.7), 0 0 60px 20px rgba(30,255,120,.35); }
.neon-glow-short-r { right: 0; background: linear-gradient(270deg, rgba(30,255,120,.9), rgba(30,255,120,.5) 40%, transparent 100%); box-shadow: 0 0 24px 6px rgba(30,255,120,.7), 0 0 60px 20px rgba(30,255,120,.35); }

/* ── SHARED RESPONSIVE MECHANICS ── */
@media (max-width: 960px) {
  nav { display: none; } .hbg { display: flex; } .mbar { display: flex; }
  body { padding-bottom: 80px; }
  #hdr { padding: 0 1.5rem; }
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .ft-brand { grid-column: 1 / -1; }
  .sec { padding: 5.5rem 1.5rem; }
  .neon-glow-short { height: 46vh; top: 20%; }
}
/* ── MOBILE REFINEMENT (≤768px) — brand-forward phone experience, PC untouched ── */
@media (max-width: 768px) {
  body { font-size: 15px; }
  #hdr { padding: 0 1.25rem; }
  .ft-inner { grid-template-columns: 1fr; gap: 2rem; }
  .sec { padding: 3.5rem 1.25rem; }
  .sec-tight { padding: 2.5rem 1.25rem; }
  .ph { padding: 3rem 1.25rem 2.25rem; }
  .h2 { font-size: 1.65rem; line-height: 1.55; }
  .ph-t { font-size: 1.6rem; line-height: 1.3; }
  .ph-s { font-size: .88rem; line-height: 1.75; }
  .eyebrow, .ph-ey { font-size: .62rem; margin-bottom: .9rem; }
  .btn { min-height: 50px; padding: 0 1.6rem; font-size: .66rem; width: 100%; justify-content: center; }
  .cts-bs, .h-ctas { flex-direction: column; }
  .cts-bs .btn, .h-ctas .btn { width: 100%; }
  .neon-glow-short { width: 2px; opacity: .2; }
  .neon-glow-short-l { box-shadow: 0 0 14px 3px rgba(30,255,120,.4), 0 0 32px 10px rgba(30,255,120,.18); }
  .neon-glow-short-r { box-shadow: 0 0 14px 3px rgba(30,255,120,.4), 0 0 32px 10px rgba(30,255,120,.18); }
}
@media (prefers-reduced-motion: reduce) {
  .p-wrap { animation: none; opacity: 1; }
  .fi, .fl, .fr, .fz { transition: none; }
  .mnav { clip-path: none; transition: none; }
  .mnav:not(.on) { display: none; pointer-events: none; }
  .seal-spin { animation: none; }
  .px-img { transform: none !important; }
}
