:root {
  --white: #fdfcfa;
  --warm-black: #1c1a17;
  --light-gray: #ececea;
  --gold: #c9a667;
  --muted: #9b968d;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  color: var(--warm-black);
  background: var(--white);
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Loading */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}
.loader span {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--warm-black);
  animation: loaderFade 1.6s ease forwards;
}
.loader.is-done { opacity: 0; pointer-events: none; }

@keyframes loaderFade {
  0% { opacity: 0; }
  35% { opacity: 1; }
  100% { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 2.4s ease, transform 2.4s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal .stagger {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.8s ease, transform 1.8s ease;
}
.reveal.is-visible .stagger:nth-child(1) { transition-delay: 0.1s; }
.reveal.is-visible .stagger:nth-child(2) { transition-delay: 0.6s; }
.reveal.is-visible .stagger:nth-child(3) { transition-delay: 1.1s; }
.reveal.is-visible .stagger {
  opacity: 1;
  transform: translateY(0);
}

.contact.reveal .btn {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  transition-delay: 0.5s;
}
.contact.reveal.is-visible .btn {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  background: var(--warm-black);
  color: #fff;
  transition: opacity 0.8s ease;
}
.btn:hover { opacity: 0.7; }

.link-line {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  mix-blend-mode: difference;
  color: #fff;
  background: transparent;
  transition: background 0.6s ease, padding 0.6s ease, mix-blend-mode 0.6s ease;
}

.site-header.is-scrolled {
  mix-blend-mode: normal;
  color: var(--warm-black);
  background: rgba(253, 252, 250, 0.85);
  backdrop-filter: blur(10px);
  padding: 16px 5vw;
}

.logo {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* SP: nav非表示 */
.nav {
  display: none;
  gap: 48px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* 01 HERO */
.hero {
  position: relative;
  width: 100%;
  height: 66.67vw; /* 3:2 を vw で明示 */
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlideshow 24s ease-in-out infinite, heroBreathe 24s ease-in-out infinite;
  animation-play-state: paused;
}

body.is-loaded .hero-slide {
  animation-play-state: running;
}


.hero-slide:nth-child(1) { animation-delay: 0s,    -12s; }
.hero-slide:nth-child(2) { animation-delay: -20s,  -16s; }
.hero-slide:nth-child(3) { animation-delay: -16s,  -20s; }
.hero-slide:nth-child(4) { animation-delay: -12s,  0s; }
.hero-slide:nth-child(5) { animation-delay: -8s,   -4s; }
.hero-slide:nth-child(6) { animation-delay: -4s,   -8s; }

@keyframes heroSlideshow {
  0%   { opacity: 1; }
  14%  { opacity: 1; }
  19%  { opacity: 0; }
  95%  { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.1));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 70% 35%, rgba(255,255,255,0.12), transparent 55%);
  mix-blend-mode: overlay;
  animation: heroLightDrift 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroLightDrift {
  0%, 100% { opacity: 0.5; transform: translate(0, 0) scale(1); }
  50% { opacity: 1; transform: translate(-2%, 2%) scale(1.08); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #fff;
  padding: 0 6vw 9.3vw;
}

.hero-copy h1 {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(26px, 6.8vw, 88px);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(14px);
  animation: heroCopyIn 0.8s ease 0.3s forwards;
  animation-play-state: paused;
}

body.is-loaded .hero-copy h1 {
  animation-play-state: running;
}

@keyframes heroCopyIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  margin-top: 2.2vw;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transform: translateY(10px);
  animation: heroCopyIn 0.8s ease 0.9s forwards;
  animation-play-state: paused;
}

body.is-loaded .hero-sub {
  animation-play-state: running;
}

.scroll-cue {
  display: none !important;
  position: absolute;
  bottom: 5.5vw;
  right: 6vw;
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scroll-cue .line {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.6);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scaleY(0.55); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

.breath {
  height: 20vh;
}

.page-section {
  padding: 12vh 6vw;
  max-width: 1400px;
  margin: 0 auto;
}

/* 02 Home & Ground */
.home-ground {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10vh;
  padding: 0 6vw;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.hg-motif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hg-motif svg {
  display: block;
  width: min(140vh, 1600px);
  height: min(140vh, 1600px);
  animation: motifLive 60s linear infinite;
  transform-origin: center;
}
.hg-motif circle { fill: none; stroke: var(--gold); }

@keyframes motifLive {
  0%   { transform: rotate(0deg)   scale(1); }
  50%  { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}

.home-ground > * { position: relative; z-index: 1; }

.hg-title {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(64px, 18vw, 224px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  text-align: center;
}

.hg-detail {
  text-align: center;
  padding-top: 4vh;
  padding-bottom: 20vh;
}

.hg-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5vh;
}

.hg-copy p {
  font-size: 16px;
}

.hg-copy p strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 24px;
  margin-top: 8px;
  color: var(--warm-black);
}

.hg-copy .accent { color: var(--gold); }

/* 03 Ways We Create */
.services-head {
  text-align: center;
  margin-bottom: 10vh;
}

.services-lead {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 4vw, 28px);
  margin-top: 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8vw 6vw;
}

.service-item { text-align: center; }

.service-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 24px;
  stroke: var(--warm-black);
  fill: none;
  stroke-width: 1;
  transform: scale(0.98);
  transition: transform 0.5s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.02);
}

.service-en {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
}

.service-jp {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* 04 Stories */
.stories-head { text-align: center; margin-bottom: 4vh; }

.story-spread {
  display: flex;
  flex-direction: column;
  gap: 8vh;
  padding: 6vh 5vw;
}

.story-page {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.story-page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s ease;
}

.story-page:hover img {
  transform: scale(1.03);
}

.story-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.48), rgba(0,0,0,0) 50%);
}

.story-page-copy {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 5vw 6vh;
}

.story-quote {
  font-size: clamp(16px, 3.5vw, 24px);
  line-height: 1.9;
}

.story-attr {
  margin-top: 16px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

/* 05 Vision */
.vision {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16.7vw 6vw 0;
  overflow: hidden;
  text-align: center;
}

.vision img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  will-change: transform;
}
.vision::after { content: ""; position: absolute; inset: 0; background: rgba(20,18,15,0.15); }

.vision-text {
  position: relative;
  z-index: 2;
  color: var(--warm-black);
  max-width: 42em;
  text-align: left;
}

.vision-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.6s ease, transform 1.6s ease;
  transition-delay: 0.5s;
}
.vision.is-visible .vision-text {
  opacity: 1;
  transform: translateY(0);
}

.vision-text p {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 3.2vw, 36px);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 06 Contact */
.contact {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
  text-align: center;
}

.contact p {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: clamp(22px, 6vw, 38px);
  line-height: 1.6;
  margin-bottom: 8vh;
}

/* Footer */
.site-footer {
  padding: 48px 6vw;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.footer-sns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.4s ease;
}

.footer-sns-link:hover {
  color: var(--warm-black);
}

.footer-sns-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.footer-copy {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* SP: 改行補助クラス表示 */
.br-mobile { display: inline; }

/* =============================================
   PC / Tablet: min-width: 768px 以上
   ============================================= */
@media (min-width: 768px) {
  .nav { display: flex; }

  .site-header { padding: 40px 6vw; }
  .site-header.is-scrolled { padding: 26px 6vw; }

  .hero { height: 100vh; }
  .hero-copy { padding: 0 6vw 14vh; }
  .hero-copy h1 { font-size: clamp(38px, 6.8vw, 88px); }
  .hero-sub { margin-top: 28px; }
  .logo { font-size: 15px; }
  .scroll-cue { display: flex !important; bottom: 8vh; right: 6vw; }

  .breath { height: 32vh; }

  .page-section { padding: 16vh 6vw; }

  .hg-title { font-size: clamp(76px, 14.5vw, 224px); }
  .hg-detail { padding-bottom: 28vh; }
  .hg-copy p { font-size: 19px; }
  .hg-copy p strong { font-size: 32px; }

  .services-head { margin-bottom: 18vh; }
  .services-lead { font-size: clamp(20px, 2.4vw, 28px); }
  .service-grid { grid-template-columns: repeat(4, 1fr); gap: 10vw 3vw; }
  .service-icon { width: 32px; height: 32px; margin-bottom: 28px; }
  .service-en { font-size: 16px; }
  .service-jp { font-size: 14px; }

  .story-spread { gap: 12vh; padding: 8vh 8vw; }
  .story-page { height: 72vh; }
  .story-page:nth-child(3) img { object-position: center 40%; }
  .story-quote { font-size: clamp(18px, 2vw, 24px); }

  .vision { height: 100vh; aspect-ratio: auto; padding: 22vh 8vw 0; }
  .vision-text p { font-size: clamp(22px, 3vw, 36px); }

  .contact p { font-size: clamp(24px, 3.2vw, 38px); }

  .site-footer { padding: 64px 6vw; }

  .br-mobile { display: none; }
}
