/* ============================================
   STUDIO WOO — main.css
   ============================================ */

:root {
  --ink: #111010;
  --paper: #F5F2EC;
  --accent: #C8A96E;
  --muted: #9A9690;
  --rule: #D8D4CC;
  --natural: #FFFFFF;
  --serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

/* ============================================
   LOADER
   ============================================ */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.loader-canvas {
  position: absolute; inset: 0;
}
.loader-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.loader-logo {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.25);
  overflow: hidden;
}
.loader-logo span {
  display: inline-block;
  transform: translateY(100%);
  animation: loaderCharUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
.loader-logo span:nth-child(1)  { animation-delay: 0.05s; }
.loader-logo span:nth-child(2)  { animation-delay: 0.10s; }
.loader-logo span:nth-child(3)  { animation-delay: 0.15s; }
.loader-logo span:nth-child(4)  { animation-delay: 0.20s; }
.loader-logo span:nth-child(5)  { animation-delay: 0.25s; }
.loader-logo span:nth-child(6)  { animation-delay: 0.30s; }
.loader-logo span:nth-child(7)  { animation-delay: 0.35s; }
.loader-logo span:nth-child(8)  { animation-delay: 0.40s; }
.loader-logo span:nth-child(9)  { animation-delay: 0.45s; }
.loader-logo span:nth-child(10) { animation-delay: 0.50s; }

.loader-mark {
  position: relative; width: 72px; height: 72px;
}
.loader-mark svg {
  width: 100%; height: 100%;
  overflow: visible;
}
.loader-circle {
  fill: none; stroke: rgba(200,169,110,0.3); stroke-width: 1;
  animation: loaderSpin 8s linear infinite;
  transform-origin: 36px 36px;
}
.loader-cross-h, .loader-cross-v {
  stroke: rgba(245,242,236,0.5); stroke-width: 0.5;
  stroke-dasharray: 72; stroke-dashoffset: 72;
  animation: loaderDash 0.8s 0.4s ease forwards;
}
.loader-dot-center {
  fill: var(--accent);
  r: 0;
  animation: loaderDotGrow 0.5s 0.9s ease forwards;
}

.loader-bar-wrap {
  width: 160px; height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}
.loader-bar {
  position: absolute; left: 0; top: 0;
  height: 100%; width: 0%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: loaderProgress 1.8s 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
}
.loader-pct {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em;
  color: rgba(245,242,236,0.3);
}

@keyframes loaderCharUp {
  to { transform: translateY(0); }
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes loaderDash {
  to { stroke-dashoffset: 0; }
}
@keyframes loaderDotGrow {
  to { r: 3; }
}
@keyframes loaderProgress {
  to { width: 100%; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--ink);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.3s, height 0.3s, opacity 0.3s, left 0.08s, top 0.08s;
  opacity: 0.4;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 48px; height: 48px; opacity: 0.15;
}

/* ============================================
   NOISE OVERLAY
   ============================================ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  background: rgba(245,242,236,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216,212,204,0.6);
}
.nav-logo {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--ink); }

/* =========================================
CINEMATIC HERO
========================================= */

.hero{
position:relative;

/* ナビバー分調整 */
height:calc(100vh - 80px);
margin-top:80px;

overflow:hidden;
background:#111;
color:white;
display:flex;
align-items:center;
}

/* 背景 */

.hero-bg-slider{
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
z-index:1;
}

.bg-slide{
position:absolute;
width:100%;
height:100%;
background-size:cover;
background-position:center;
opacity:0;
transform:scale(1.15);
transition:opacity 3.0s ease, transform 6s ease;
}

.bg-slide.active{
opacity:.9;
transform:scale(1);
}


/* =================================
オーバーレイ（中央帯）
左右スペースあり
================================= */

.hero-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:2;

background:
linear-gradient(
90deg,
rgba(0,0,0,0) 0%,
rgba(0,0,0,.55) 20%,
rgba(0,0,0,.55) 80%,
rgba(0,0,0,0) 100%
);
}


/* =================================
コンテンツ
================================= */

.hero-content{
position:relative;
z-index:3;
padding-left:8vw;
max-width:1200px;
}


/* =================================
タイトル
================================= */

.hero-title{
font-family:serif;
line-height:.85;
letter-spacing:-0.04em;

/* はみ出し防止 */
max-width:100%;
}

.hero-title span{
transition: transform .4s cubic-bezier(.22,.61,.36,1);
}

/* 画像マスク文字 */

.mask-line{

display:block;

/* はみ出さないサイズ */
font-size:clamp(3rem,9vw,11rem);

font-weight:400;

background-size:cover;
background-position:center;

-webkit-background-clip:text;
color:transparent;

transition:transform .35s ease;
}


/* アウトライン */

.outline{

display:block;

font-size:clamp(3rem,9vw,11rem);

color:transparent;
-webkit-text-stroke:1px white;

transition:transform .35s ease;
}


/* キャプション */

.hero-caption{

margin-top:40px;
font-size:13px;
letter-spacing:.25em;
text-transform:uppercase;

}


/* SCROLL */

.hero-scroll{

position:absolute;
bottom:40px;
left:8vw;
font-size:12px;
letter-spacing:.3em;
z-index:4;

}


/* =================================
モバイル
================================= */

@media(max-width:768px){

.hero{
height:calc(100vh - 80px);
}

.hero-content{
padding:0 30px;
}

.mask-line,
.outline{
font-size:13vw;
}

}

/* ==============================
Hero subtle motion
============================== */

.hero-parallax{
  transition:transform .2s ease-out;
  will-change:transform;
}




/* ============================================
   DIVIDER
   ============================================ */
.rule { height: 1px; background: var(--rule); margin: 0 48px; }

/* ============================================
   SECTION BASE
   ============================================ */
section { padding: 120px 48px; }
.section-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
}
.section-label::before { content: attr(data-num); color: var(--rule); font-size: 10px; }
.section-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ============================================
   ABOUT
   ============================================ */
#about {
  display: flex; justify-content: center; align-items: flex-start;
}
.about-inner {
  display: grid; grid-template-columns: 3fr 7fr;
  gap: 56px; align-items: start;
  max-width: 1200px; width: 100%;
}
.about-portrait { position: relative; flex-shrink: 0; }
.about-portrait img {
  width: 100%; aspect-ratio: 7/6; object-fit: cover;
  filter: grayscale(15%); display: block;
}
.about-portrait-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
}
.about-content { padding-top: 8px; }
.about-name {
  font-size: 36px; font-weight: 300; letter-spacing: -0.01em; margin: 20px 0 6px;
}
.about-name-jp {
  font-family: 'Noto Serif JP'; font-size: 16px; font-weight: 300;
  color: var(--muted); margin-bottom: 28px;
}
.about-body {
  font-family: 'Noto Serif JP'; font-size: 16px; font-weight: 300;
  line-height: 2.2; color: #444; margin-bottom: 28px;
}
.about-meta {
  display: flex; gap: 36px; border-top: 1px solid var(--rule);
  padding-top: 24px; margin-top: 24px;
}
.about-meta-num {
  font-size: 36px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.about-meta-num span { font-size: 21px; font-weight: 300; }
.about-meta-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase; margin-top: 4px;
}

/* スマホ向けの表示調整（画面幅が768px以下の場合） */
@media (max-width: 768px) {
  .about-inner {
    /* 横並び(3fr 7fr)を解除して、縦並びに変更 */
    grid-template-columns: 1fr;
    gap: 32px; /* 上下の隙間を少し詰める */
    padding: 0 20px; /* 左右に少し余白を作る（必要に応じて） */
  }

  .about-portrait img {
    /* 横幅をいっぱい（または指定の幅）に広げる */
    width: 100%;
    /* 比率は維持されるので、横幅が広がれば縦もしっかり確保されます */
    aspect-ratio: 5/6;
  }
}

/* ============================================
   SKILLS
   ============================================ */
#skills { background: var(--ink); color: var(--paper); }
#skills .section-label::before { color: #333; }
.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: #222; margin-top: 64px; border: 1px solid #222;
}
.skill-card {
  background: var(--ink); padding: 48px 36px;
  transition: background 0.4s; position: relative; overflow: hidden;
}
.skill-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-card:hover { background: #161512; }
.skill-card:hover::after { transform: scaleX(1); }
.skill-icon {
  font-size: 11px; font-family: var(--mono); letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 28px;
}
.skill-name { font-size: 22px; font-weight: 300; margin-bottom: 16px; line-height: 1.2; }
.skill-desc {
  font-family: 'Noto Serif JP'; font-size: 14px; font-weight: 300; color: #888; line-height: 2;
}

/* ============================================
   PHILOSOPHY
   ============================================ */
#philosophy { background: #F0EDE6; text-align: center; padding: 140px 48px; }
.philosophy-quote {
  font-size: clamp(22px, 3vw, 38px); font-weight: 300;
  line-height: 1.7; letter-spacing: 0.02em; max-width: auto;
  margin: 0 auto; font-style: normal;
}
.philosophy-quote .accent-text { color: var(--accent); }
.philosophy-attr {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); margin-top: 40px;
}

/* ============================================
   WORKS / PORTFOLIO
   ============================================ */
.works-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px;
}
.works-filter { display: flex; gap: 4px; }
.filter-btn {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; border: 1px solid var(--rule);
  background: transparent; color: var(--muted); padding: 8px 16px;
  cursor: none; transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.work-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: #e8e4dc; cursor: none;
}
.work-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s; filter: grayscale(20%);
}
.work-item:hover img { transform: scale(1.04); filter: grayscale(0%); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,16,16,0.85) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.work-item:hover .work-overlay { opacity: 1; } */

.work-tag {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.work-title {
  font-family: 'Noto Serif JP'; font-size: 13px; font-weight: 400;
  color: var(--paper); line-height: 1.6;
}
.work-item-large { grid-column: span 2; aspect-ratio: 8/3; }

/* ============================================
   MODAL WINDOW STYLES
   ============================================ */

/* モーダル全体の背景・配置 */
.modal {
  display: none;
  position: fixed;
  z-index: 20000;
  inset: 0;
  background-color: rgba(17, 16, 16, 0.95);
  cursor: zoom-out;
  padding: 20px; /* 余白を少し小さくして画面を有効活用 */
  display: none; /* JSでflexに切り替え */
  align-items: center;
  justify-content: center;
}

/* 画像とキャプションを包む枠 */
.modal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 80%; /* 横幅を画面の80%に制限 */
}

/* ポップアップ画像本体 */
.modal-content {
  width: auto;
  height: auto;
  max-width: 100%;    /* wrapperの80%を上限とする */
  max-height: 80vh;   /* ★画面の高さの80%までに制限 */
  object-fit: contain;
  animation: modalZoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* キャプション（コメント） */
.modal-caption {
  margin-top: 20px;
  color: var(--paper);
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-align: center;
  max-width: 100%;
  animation: modalZoom 0.4s ease;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--paper);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  z-index: 20001;
}

@keyframes modalZoom {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* aタグにした際のスタイル調整 */
a.work-item {
  text-decoration: none;
  display: block;
}

/* --- Archive Section --- */
.archive-section {
  padding: 120px 0;
  border-top: 1px solid var(--rule);
}

.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.archive-header {
  margin-bottom: 80px;
  text-align: left;
}

.archive-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.archive-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}

.archive-category {
  display: flex;
  justify-content:建设 space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.cat-en {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.cat-no {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--muted);
 margin-right: 5px;
}

.archive-list {
  list-style: none;
}

.archive-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 15px;
  opacity: 0.8;
  position: relative;
  transition: all 0.2s ease;
}

/* ホバー時にアクセントカラーのドットが出る演出 */
.archive-list li::before {
  content: "•";
  position: absolute;
  left: -15px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.archive-list li:hover {
  opacity: 1;
  transform: translateX(15px);
  color: var(--accent);
}

.archive-list li:hover::before {
  opacity: 1;
}

/* Responsive */
@media (max-width: 968px) {
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }
  .archive-container {
    padding: 0 30px;
  }
}

/* ==========================================================================
   LEAD SECTION (Contact Gateway)
   ========================================================================== */

.lead-section {
  /* 上のセクションとの余白を詰め、食い込ませることで隙間を排除 */
  margin-top: -120px;
  padding: 160px 0 260px;
  position: relative;
  background: var(--paper);
  text-align: center;
  /* 影のエフェクトは削除しました */
  /* gの下部などが切れないようにoverflowを可視化 */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lead-inner {
  max-width: 900px;
  margin: auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* Sub-title (Next Step) */
.lead-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Main Title */
.lead-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  /* line-heightを広げて「g」や「y」の下部を保護 */
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 30px;
  padding-bottom: 0.1em;
}

.lead-title i {
  font-style: italic;
  opacity: 0.9;
}

/* Description */
.lead-desc {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 2;
  color: var(--muted);
  max-width: 750px;
  margin: 0 auto 60px;
}

/* CTA Button with Magnetic Support */
.btn-wrap {
  display: inline-block;
  perspective: 1000px;
}

.lead-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  position: relative;
  padding: 12px 0;
  color: var(--ink);
  transition: color 0.4s;
}

.btn-arrow {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 1.2rem;
}

/* --- 5. ボタンのアンダーライン（上書き） --- */
.btn-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  /* 【上書き】初期状態をもう少し長くして、存在感を出す（0.3 → 0.4） */
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.lead-btn:hover {
  color: var(--accent);
}

.lead-btn:hover .btn-arrow {
  transform: translateX(8px);
}

.lead-btn:hover .btn-line {
  transform: scaleX(1);
  background: var(--accent);
}

/* --- Status Indicator (横並び・強化版) --- */

/* --- 1. アクションエリアのレイアウト（追記） --- */
.lead-action-area {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  align-items: center;    /* 中央揃え */
  gap: 24px;              /* ステータスとボタンの距離 */
  margin-top: 50px;       /* 上の文章との距離 */
}

/* --- 2. ステータス・インジケーター（上書き） --- */
.lead-status-wrap {
  /* margin-top: 60px; ← 削除（親要素のgapで制御するため） */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* background: rgba(17, 16, 16, 0.03); ← 削除（よりミニマルにするため背景なし推奨） */
  padding: 0;             /* 背景を消したのでパディングも不要 */
  border-radius: 0;
}

.lead-status {
  margin: 0;
  font-family: var(--mono);
  /* 【上書き】サイズを少し落として控えめにし、ボタンを主役にする */
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ink);
  opacity: 0.6;           /* 少し薄くして「情報の重要度」をボタンより下げる */
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

/* --- 3. 緑の円：status-dot（上書き） --- */
.status-dot {
  /* 【上書き】少し小さくして、繊細なデザインへ（14px → 10px） */
  width: 10px;
  height: 10px;
  background-color: #2ecc71;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.status-dot::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #2ecc71;
  border-radius: 50%;
  /* 脈動アニメーション */
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}


/* Reveal Animation Class */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .lead-section {
    padding: 120px 20px;
    margin-top: -60px; /* モバイルでは重なりを少し浅く */
  }
  .lead-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .lead-status-wrap {
    padding: 8px 18px;
  }
}

/* ============================================
   CONTACT
   ============================================ */
#contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; min-height: 60vh; }
.contact-left {
  background: var(--ink); color: var(--paper);
  padding: 100px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-left .section-label { color: var(--accent); }
.contact-left .section-label::before { color: #333; }
.contact-title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 300; line-height: 1.15; margin: 20px 0 32px;
}
.contact-body {
  font-family: 'Noto Serif JP'; font-size: 13px; font-weight: 300;
  line-height: 2.2; color: #aaa; margin-bottom: 48px;
}
.contact-tel { font-size: 28px; font-weight: 300; letter-spacing: 0.05em; margin-bottom: 8px; }
.contact-address {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: #666; line-height: 1.9;
}
.contact-right {
  background: var(--paper); padding: 100px 64px;
  display: flex; flex-direction: column; justify-content: center;
}

/* Form — input step */
.form-step { display: block; }
.form-step.hidden { display: none; }

.form-group { margin-bottom: 28px; }
.form-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px;
}
.form-label .required {
  color: var(--accent); margin-left: 4px; font-size: 11px;
}
.form-input, .form-textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--rule);
  background: transparent; padding: 12px 0;
  font-family: var(--serif); font-size: 15px; color: var(--ink);
  outline: none; transition: border-color 0.3s; cursor: none;
}
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--ink); }
.form-input.error { border-bottom-color: #c0392b; }
.form-error-msg {
  font-family: var(--mono); font-size: 9px; color: #c0392b;
  letter-spacing: 0.1em; margin-top: 6px; display: none;
}
.form-error-msg.visible { display: block; }
.form-textarea { min-height: 90px; resize: none; }

.form-btn-row { display: flex; gap: 12px; margin-top: 8px; }
.form-submit, .form-back {
  display: inline-flex; align-items: center; gap: 14px;
  border: none; padding: 16px 32px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; cursor: none; transition: all 0.3s;
}
.form-submit { background: var(--ink); color: var(--paper); }
.form-submit:hover { background: var(--accent); gap: 20px; }
.form-submit::after { content: '→'; font-size: 14px; }
.form-back { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
.form-back:hover { color: var(--ink); border-color: var(--ink); }
.form-back::before { content: '←'; font-size: 14px; }

/* Confirm step */
.confirm-title {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.confirm-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.confirm-table tr { border-bottom: 1px solid var(--rule); }
.confirm-table th {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  padding: 12px 0; text-align: left; width: 36%; vertical-align: top;
}
.confirm-table td {
  font-family: 'Noto Serif JP'; font-size: 13px;
  padding: 12px 0 12px 16px; color: var(--ink); line-height: 1.8; vertical-align: top;
}

/* Success step */
.success-icon {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
}
.success-title {
  font-size: 26px; font-weight: 300; margin-bottom: 16px;
}
.success-body {
  font-family: 'Noto Serif JP'; font-size: 13px; font-weight: 300;
  line-height: 2; color: var(--muted);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 48px;
}
.footer-copy {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--muted);
}
.footer-mark { font-size: 22px; font-weight: 300; letter-spacing: 0.1em; color: var(--rule); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  nav { padding: 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 50vh; }
  .hero-left { padding: 100px 24px 60px; }
  section { padding: 80px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 220px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-item-large { grid-column: span 2; aspect-ratio: 4/3; }
  #contact { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 64px 24px; }
  footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
  .rule { margin: 0 24px; }
  .works-header { flex-direction: column; gap: 24px; align-items: flex-start; }
}

/* ============================================
   共通
   ============================================ */
.katamari {
display: inline-block;
}