@charset "UTF-8";
/* =========================================================
   有限会社山忠 — Coming Soon
   FLOCSS + Liquid (rem-based) Design
   Design width: 1440px (PC) / 768px (TB) / 375px (SP)
   1rem = 10px @ design width
   ========================================================= */

/* =========================================================
   #foundation
   ========================================================= */

:root {
  --c-primary:      #1B4527;
  --c-primary-dark: #0F2E1A;
  --c-gold:         #C9A961;
  --c-gold-bright:  #E0C589;
  --c-gold-soft:    rgba(201, 169, 97, 0.6);
  --c-white:        #ffffff;
  --c-white-soft:   rgba(255, 255, 255, 0.82);
  --c-white-faint:  rgba(255, 255, 255, 0.35);
  --c-bg:           #050505;

  --ff-jp:    "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --ff-en:    "Cormorant Garamond", "Times New Roman", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ---- rem (liquid) ---- */
/* PC: 1440px design → 1rem = 10px */
html { font-size: 0.6944vw; }
/* 上限: 1600以上は 62.5% (1rem=10px) で固定 */
@media (min-width: 1600px) { html { font-size: 62.5%; } }
/* TB: 768~1199 は 1024 design → 1rem = 10px (0.9766vw) */
@media (max-width: 1199px) { html { font-size: 0.9766vw; } }
/* SP: 767px以下は 375 design → 1rem = 10px */
@media (max-width: 767px)  { html { font-size: 2.6667vw; } }

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--ff-jp);
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* =========================================================
   #layout
   ========================================================= */

/* ---- l-bg ---- */
.l-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--c-bg) url("../img/mv.png") center / cover no-repeat;
  animation: bgZoom 28s var(--ease-in-out) infinite alternate;
}

.l-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center,
      rgba(15, 46, 26, 0.25) 0%,
      rgba(15, 46, 26, 0.55) 55%,
      rgba(5, 10, 7, 0.92) 100%),
    linear-gradient(180deg,
      rgba(27, 69, 39, 0.55) 0%,
      rgba(15, 46, 26, 0.35) 40%,
      rgba(15, 46, 26, 0.85) 100%);
}

.l-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  mix-blend-mode: overlay;
}

@keyframes bgZoom {
  from { transform: scale(1.0);   filter: brightness(0.85); }
  to   { transform: scale(1.08);  filter: brightness(0.92); }
}

/* ---- l-main ---- */
.l-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 2.4rem;
}

/* ---- l-footer ---- */
.l-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 2.4rem 4.8rem 3.2rem;
  text-align: center;
  background: linear-gradient(0deg,
    rgba(15, 46, 26, 0.85) 0%,
    rgba(15, 46, 26, 0.0) 100%);
  border-top: 1px solid rgba(201, 169, 97, 0.18);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 3.6s forwards;
}

.l-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 12rem;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-gold) 50%,
    transparent 100%);
  transform: translateX(-50%);
}

.l-footer__company {
  margin: 0;
  font-family: var(--ff-jp);
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  color: var(--c-white-soft);
}

.l-footer__sep {
  color: var(--c-gold);
  margin: 0 0.3em;
}


/* =========================================================
   #object / project
   ========================================================= */

/* ---- p-hero ---- */
.p-hero {
  position: relative;
  width: min(80rem, 100%);
  padding: 2rem;
  text-align: center;
}

/* -- logo (center top) -- */
.p-hero__logo {
  margin: 0 auto 4rem;
  opacity: 0;
  transform: translateY(-1.2rem);
  animation: fadeDown 1.2s var(--ease-out) 0.2s forwards;
}

.p-hero__logo img {
  height: 14rem;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0.4rem 2rem rgba(0, 0, 0, 0.6));
  animation: bob 6s var(--ease-in-out) infinite;
  animation-delay: 2s;
}

.p-hero__logo-name {
  margin: 1.6rem 0 0;
  font-family: var(--ff-jp);
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: 0.32em;
  color: var(--c-white);
  text-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.5);
}

/* -- title -- */
.p-hero__title {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin: 0;
  font-family: var(--ff-jp);
  font-weight: 600;
  font-size: 9.6rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--c-white);
  text-shadow: 0 0.2rem 2.4rem rgba(0, 0, 0, 0.6);
}

.p-hero__char {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(2rem) scale(0.96);
  transition: color 0.4s ease, text-shadow 0.4s ease;
  animation:
    charIn 1.1s var(--ease-out) forwards,
    glow 5s ease-in-out infinite;
  animation-delay:
    calc(0.6s + var(--i) * 0.18s),
    calc(3.0s + var(--i) * 0.4s);
}

.p-hero__char:hover {
  color: var(--c-gold-bright);
  text-shadow: 0 0 2.4rem rgba(224, 197, 137, 0.7), 0 0.2rem 2.4rem rgba(0, 0, 0, 0.6);
}

/* -- sub -- */
.p-hero__sub {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  margin: 4.8rem 0 0;
  font-family: var(--ff-en);
  font-size: 1.6rem;
  letter-spacing: 0.55em;
  color: var(--c-white-soft);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 2.6s forwards;
}

.p-hero__sub-line {
  position: relative;
  display: block;
  width: 4rem;
  height: 1px;
  overflow: hidden;
  background: var(--c-white-faint);
}

.p-hero__sub-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-gold-bright) 50%,
    transparent 100%);
  animation: shimmer 4.2s ease-in-out infinite;
  animation-delay: 1.2s;
}

.p-hero__sub-text {
  position: relative;
  display: inline-block;
  width: 20em;
  height: 1em;
  text-align: center;
  white-space: nowrap;
}

.p-hero__sub-typed {
  display: inline;
  white-space: pre;
}

.p-hero__sub-caret {
  display: inline-block;
  width: 0.12em;
  height: 1em;
  margin-left: 0.2em;
  background: var(--c-gold-bright);
  vertical-align: -0.05em;
  animation: caretBlink 1s steps(1) infinite;
}


/* =========================================================
   #animations
   ========================================================= */

/* -- entrance -- */
@keyframes fadeDown {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes charIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* -- loop -- */
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(250%); }
  100% { transform: translateX(250%); }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0.2rem 2.4rem rgba(0, 0, 0, 0.6); }
  50%      { text-shadow: 0 0 1.6rem rgba(224, 197, 137, 0.25), 0 0.2rem 2.4rem rgba(0, 0, 0, 0.6); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-0.4rem); }
}

@keyframes caretBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}


/* =========================================================
   #responsive
   ========================================================= */

/* ---- Tablet (768〜1199) ---- */
@media (max-width: 1199px) and (min-width: 768px) {
  .p-hero__logo {
    margin-bottom: 3.2rem;
  }
  .p-hero__logo img {
    height: 12rem;
  }
  .p-hero__logo-name {
    font-size: 2.2rem;
    letter-spacing: 0.28em;
    margin-top: 1.4rem;
  }
  .p-hero__title {
    font-size: 8.8rem;
    gap: 1.8rem;
  }
}

/* ---- SP (≦767) ---- */
@media (max-width: 767px) {
  .p-hero {
    padding: 1.6rem;
  }
  .p-hero__logo {
    margin-bottom: 2.8rem;
  }
  .p-hero__logo img {
    height: 14rem;
  }
  .p-hero__logo-name {
    font-size: 1.8rem;
    letter-spacing: 0.22em;
    margin-top: 1.2rem;
  }
  .p-hero__title {
    font-size: 6.4rem;
    gap: 0.6rem;
    letter-spacing: 0.04em;
  }
  .p-hero__sub {
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    gap: 1.2rem;
    margin-top: 3.2rem;
  }
  .p-hero__sub-text {
    width: 16em;
  }
  .p-hero__sub-line {
    width: 2.4rem;
  }

  .l-footer {
    padding: 2rem 2.4rem 2.8rem;
  }
  .l-footer__company {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }
}

/* ---- Landscape mobile (height低い) ---- */
@media (max-height: 520px) and (orientation: landscape) {
  .p-hero__logo {
    margin-bottom: 1.6rem;
  }
  .p-hero__logo img {
    height: 7.2rem;
  }
  .p-hero__logo-name {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    margin-top: 0.8rem;
  }
  .p-hero__title {
    font-size: 5.6rem;
  }
  .p-hero__sub {
    margin-top: 2rem;
  }
  .l-footer {
    padding: 1rem 3.2rem 1.6rem;
  }
}


/* =========================================================
   #reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .l-bg { animation: none; }
}
