/* ==========================================
   LENS. — Section Styles
   ========================================== */

/* ---- TOP ---- */
#top {
  position: relative;
  height: 100vh;
  height: 100svh; /* モバイル: ブラウザUIを除いた表示領域に合わせる */
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  overflow: hidden;
}

/* ---- About blur background (work images as prism spots) ---- */
.about-blur-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ab-img {
  position: absolute;
  object-fit: cover;
  filter: blur(16px);
  opacity: 0;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* 左上（角からはみ出す） */
.ab-img--a {
  top: -4%;
  left: -3%;
  width: 16vw;
  height: 16vw;
  animation: abReveal 5s ease 0.4s forwards,
             hbFloat  22s ease-in-out 5.4s infinite;
}

/* 上中央 */
.ab-img--b {
  top: 2%;
  left: 40%;
  width: 13vw;
  height: 13vw;
  animation: abReveal 5s ease 0.9s forwards,
             hbFloat  20s ease-in-out 5.9s infinite reverse;
}

/* 右上（うすく） */
.ab-img--c {
  top: 3%;
  right: 2%;
  width: 20vw;
  height: 20vw;
  animation: abRevealLight 5s ease 1.4s forwards,
             hbFloat  24s ease-in-out 6.4s infinite;
}

/* 右中央 */
.ab-img--e {
  top: 46%;
  right: 24%;
  width: 13vw;
  height: 13vw;
  animation: abReveal 5s ease 2.2s forwards,
             hbFloat  21s ease-in-out 7.2s infinite reverse;
}

/* 左下（やや内側） */
.ab-img--d {
  bottom: 6%;
  left: 4%;
  width: 18vw;
  height: 18vw;
  animation: abReveal 5s ease 1.9s forwards,
             hbFloat  26s ease-in-out 6.9s infinite reverse;
}

@keyframes abReveal {
  from { opacity: 0; }
  to   { opacity: 0.14; }
}

@keyframes abRevealLight {
  from { opacity: 0; }
  to   { opacity: 0.07; }
}

@keyframes hbFloat {
  0%, 100% { transform: scale(1)    translateY(0px); }
  50%      { transform: scale(1.09) translateY(-18px); }
}

/* ---- Viewfinder (signature: optical framing draws in on load) ---- */
.viewfinder {
  position: absolute;
  inset: clamp(72px, 13vh, 150px) clamp(36px, 9vw, 150px);
  z-index: 1;
  pointer-events: none;
}
.vf-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 0 solid var(--text-muted);
  opacity: 0;
  animation: vfDraw 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}
.vf-tl { top: 0; left: 0;  border-top-width: 1px; border-left-width: 1px; }
.vf-tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.vf-bl { bottom: 0; left: 0;  border-bottom-width: 1px; border-left-width: 1px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ---- Top inner ---- */
.top-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.top-logo {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 150px);
  font-weight: 300;
  letter-spacing: 0.14em;
  margin-right: -0.14em; /* 末尾トラッキングを相殺して視覚的中央揃え */
  line-height: 1;
  color: var(--text-primary);
  opacity: 0;
  filter: blur(16px);
  animation: focusPull 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  will-change: filter, opacity, letter-spacing;
}

.top-rule {
  width: 56px;
  opacity: 0;
  animation: fadeUp 1.4s ease 2.0s forwards;
}

.top-subtitle {
  font-family: var(--font-label);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-right: -0.32em; /* 末尾 letter-spacing を相殺して視覚的中央揃え */
  opacity: 0;
  animation: fadeUp 1.6s ease 2.25s forwards;
}

.top-scroll-hint {
  position: absolute;
  bottom: max(32px, 4vh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUpCenter 1.4s ease 3.0s forwards;
  transition: opacity 0.6s ease;
}

.top-scroll-hint.hidden {
  opacity: 0 !important;
  pointer-events: none;
}
.top-scroll-hint span:first-child {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: -0.3em; /* 末尾 letter-spacing を相殺して視覚的中央揃え */
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out 3.6s infinite;
}

/* ---- ABOUT (fullscreen bg canvas) ---- */
#about {
  position: relative;
  padding: calc(var(--section-gap) * 1.1) 0;
}

/* Canvas fills entire section */
.about-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Centred About — block layout (text-align center keeps everything centred,
   and avoids flex shrink-wrap so long JA lines wrap inside the column). */
.about-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* 中央揃えのABOUTは左だけの横棒が不揃いに見えるため、ティックを消す。
   末尾 letter-spacing を相殺して視覚的に中央へ。 */
#about .section-label::before { display: none; }
#about .section-label {
  gap: 0;
  margin-right: -0.32em;
}

.about-inner {
  max-width: 660px;
  margin: 0 auto;
}

.about-heading {
  font-family: var(--font-ja);
  font-size: clamp(16px, 2vw, 23px);
  font-weight: 200;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  line-height: 2.1;
  margin-bottom: 40px;
}
/* 末尾の字間＋句読点（、。）の余白を相殺して視覚的に中央へ（内側のみ inline-block 化） */
.about-heading > span {
  display: inline-block;
  margin-right: -0.5em;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-body p {
  font-family: var(--font-ja);
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 2;
  color: var(--text-secondary);
}

.about-body p.en {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---- WORKS heading ---- */
#works {
  padding: var(--section-gap) 0;
  margin-top: var(--section-gap);
}

.works-header {
  margin-bottom: 56px;
}

.works-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1;
  margin-top: 18px;
}

/* ---- CONTENTS (two banners) ---- */
#contents {
  padding: var(--section-gap) 0 calc(var(--section-gap) * 1.1);
  background: var(--bg-accent);
}

.contents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin-top: 12px;
}

.content-banner {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;   /* uniform crop */
  background: #DEDEDE;
}

.content-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.content-banner:hover img { transform: scale(1.04); }

.content-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 22, 0.34);
  transition: background 0.4s ease;
}
.content-banner:hover::after { background: rgba(18, 18, 22, 0.46); }

.content-banner-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-banner-label span {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F2ECE3;   /* 純白を避け、わずかに温かいオフホワイト */
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(242, 236, 227, 0.5);
  transition: border-color 0.4s ease, color 0.4s ease;
  margin-right: -0.22em; /* 末尾トラッキング相殺 */
}
.content-banner:hover .content-banner-label span {
  color: #FFFFFF;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
  .contents-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---- Contact Page ---- */
.page-hero {
  height: 30vh;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 44px;            /* 横paddingは内側の .container に任せる（下のコンテンツと左揃え） */
  background: var(--bg);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  text-align: left;
}

/* ---- Placeholder pages (Services / Social — to be filled later) ---- */
.page-body {
  padding: clamp(20px, 4vh, 48px) 0 calc(var(--section-gap) * 1.2);
}
.page-body .section-label {
  margin-bottom: 30px;
}
.page-lead {
  max-width: 620px;
  font-family: var(--font-ja);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.page-lead + .page-lead { margin-top: 24px; }

#contact-section {
  padding: 0 0 var(--section-gap);
}

.contact-inner {
  max-width: 560px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #DCDCDC;
  padding: 12px 0;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease;
  resize: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--text-primary);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 1px solid #CCCCCC;
  padding: 14px 40px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  margin-top: 8px;
  align-self: flex-start;
}
.form-submit:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--white);
}

.form-note {
  font-family: var(--font-ja);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.9;
  margin-top: 40px;
}

/* ---- Keyframes ---- */
@keyframes focusPull {
  0%   { opacity: 0; filter: blur(16px); letter-spacing: 0.32em; }
  55%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0);    letter-spacing: 0.14em; }
}

@keyframes vfDraw {
  from { opacity: 0; }
  to   { opacity: 0.45; }
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpCenter {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1); }
  50%       { opacity: 0.7;  transform: scaleY(1.15); }
}

