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

:root {
  --bg:       #faf9f7;
  --bg-about:   #f0ede6;
  --bg-contact: var(--bg);
  --bg-footer:  #e8e4dc;
  --ink:      #181815;
  --sub:      #52524e;
  --mute:     #9a9893;
  --line:     #dedad3;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Outfit', sans-serif;
  --mono:  'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

.site-wrap {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(0,0,0,0.06);
}

/* ── スクロール連動フェードアップ ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }
.reveal-delay-4 { transition-delay: 0.8s; }

/* ── フェードイン ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade { opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
.fade-1 { animation-delay: 0.05s; }
.fade-2 { animation-delay: 0.18s; }
.fade-3 { animation-delay: 0.32s; }
.fade-4 { animation-delay: 0.46s; }
.fade-5 { animation-delay: 0.60s; }

/* ══════════════════════════
   NAV（静的・スクロールで消える）
══════════════════════════ */
nav {
  position: static;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 40px 56px;
  background: var(--bg);
  
}

.nav-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nav-name-role {
  font-family: var(--mono);
  font-size: 18px;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

/* スマホ：navはリンクなし、リンクはfloating menuで */
@media (max-width: 680px) {
  nav {
    padding: 20px;
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
}

/* ══════════════════════════
   FLOATING UI（スクロールトップ＋スマホメニュー）
══════════════════════════ */
.floating-ui {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

/* スクロールトップボタン */
.btn-scroll-top {
  width: 48px;
  height: 48px;
  background: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(8px);
}
.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.btn-scroll-top svg {
  width: 16px;
  height: 16px;
  stroke: var(--bg);
  fill: none;
  stroke-width: 1.5;
}
.btn-scroll-top:hover { opacity: 0.7; }

/* スマホ用フローティングメニューボタン */
.btn-float-menu {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--ink);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-float-menu span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--bg);
}

/* スマホ用ドロワーメニュー */
.float-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  padding: 48px 32px;
}
.float-drawer.open { display: flex; }

.float-drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.float-drawer-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

.float-drawer-role {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 48px;
}

.float-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.float-drawer ul a {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: block;
  transition: color 0.2s;
}
.float-drawer ul a:hover { color: var(--mute); }

@media (max-width: 680px) {
  .btn-float-menu { display: flex; }
  .floating-ui { bottom: 24px; right: 20px; }
  .btn-scroll-top { display: none !important; }
}

/* ══════════════════════════
   PAGE SYSTEM
══════════════════════════ */
.page { display: none; min-height: 100vh; }


/* ══════════════════════════
   TOP — HERO
══════════════════════════ */
.hero {
  padding: 48px 40px;
  
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.hero-role {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero-base {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 680px) {
  .hero {
    padding: 36px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-right { align-items: flex-start; }
}

/* ══════════════════════════
   SECTION SPACING
══════════════════════════ */
.top-grid-wrap { margin-top: 24px; }
.more-bar       { margin-top: 8px; }
#about          { margin-top: 120px; }
#contact        { margin-top: 120px; }
#page-top > footer { margin-top: 120px; }

@media (max-width: 680px) {
  .top-grid-wrap { margin-top: 48px; }
  .more-bar       { margin-top: 48px; }
  #about          { margin-top: 72px; }
  #contact        { margin-top: 72px; }
  #page-top > footer { margin-top: 72px; }
}


.top-grid-wrap {
  padding: 96px 56px 0;
  background: var(--bg);
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--bg);
}

@media (min-width: 720px)  { .top-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .top-grid { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 680px) { .top-grid-wrap { padding: 40px 20px; } }

.top-cell {
  background: var(--bg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/2;
}

.top-cell-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-cell:hover .top-cell-inner { transform: scale(1.05); }

/* ── More バー ── */
.more-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 56px;
  
}

.more-count {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.btn-gallery {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap 0.3s;
}
.btn-gallery:hover { gap: 20px; }
.btn-gallery-arrow {
  width: 36px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
}
.btn-gallery-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}
.btn-gallery:hover .btn-gallery-arrow { width: 52px; }

@media (max-width: 680px) { .more-bar { padding: 20px; } }

/* ══════════════════════════
   ABOUT
══════════════════════════ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  
  background: var(--bg-about);
}

.about-left {
  padding: 64px 40px;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}

.about-left .section-index {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 20px;
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.about-heading em { font-style: italic; color: var(--sub); }

.about-portrait-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 48px;
}

.about-portrait {
  width: 160px;
  height: 200px;
  background: #cec9c1;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.about-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #d4cfc8 0%, #b8b3ac 60%, #c6c1ba 100%);
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.about-name-block {}
.about-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}
.about-role {
  font-family: var(--mono);
  font-size:15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.8;
}

.about-right {
  padding: 64px 48px;
  background: var(--bg);
}

.about-body {
  font-size: 16px;
  color: var(--sub);
  line-height: 1.95;
  margin-bottom: 16px;
}

.about-table {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.about-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.about-row dt {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 3px;
}
.about-row dd { color: var(--sub); }

@media (max-width: 860px) {
  .about-section { grid-template-columns: 1fr; }
  .about-left { padding: 48px 20px 40px; border-right: none;  min-height: auto; }
  .about-right { padding: 36px 20px 56px; }
  .about-row { grid-template-columns: 110px 1fr; }
}

/* ══════════════════════════
   CONTACT
══════════════════════════ */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-contact);
}

.contact-left {
  padding: 80px 40px;
  
}

.section-index {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 32px;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--ink);
}

.contact-note {
  font-size: 16px;
  color: var(--sub);
  line-height: 1.9;
  margin-top: 40px;
  margin-bottom: 36px;
}

.contact-email {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.45; }

.contact-right {
  padding: 80px 48px;
}

/* フォーム */
.form-field {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
  background: rgba(0,0,0,0.055);
  margin-bottom: 4px;
  border-left: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.form-field:hover {
  background: rgba(0,0,0,0.08);
}
.form-field:focus-within {
  background: rgba(0,0,0,0.08);
  border-left-color: var(--ink);
}

.form-field label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sub);
  padding-top: 3px;
  transition: color 0.2s;
}
.form-field:focus-within label { color: var(--ink); }

.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  width: 100%;
  line-height: 1.7;
}
.form-field textarea { resize: none; min-height: 110px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: transparent; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.form-hint {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn-send:hover { background: transparent; color: var(--ink); }

@media (max-width: 860px) {
  .contact-section { grid-template-columns: 1fr; }
  .contact-left { padding: 56px 20px 40px; border-right: none;  }
  .contact-right { padding: 40px 20px 56px; }
  .form-actions { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
}

/* ══════════════════════════
   GALLERY PAGE
══════════════════════════ */
.gallery-hero {
  padding: 64px 40px 40px;
  
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gallery-title {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.filter-group {
  display: flex;
  gap: 0;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-right: none;
  padding: 10px 18px;
  color: var(--mute);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:last-child { border-right: 1px solid var(--line); }
.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.filter-btn.active + .filter-btn { border-left-color: var(--ink); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 48px 48px;
  background: var(--bg);
}
@media (min-width: 720px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px)  { .gallery-grid { padding: 0 20px 40px; gap: 8px; } }

.g-item {
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
}

.g-photo {
  width: 100%;
  aspect-ratio: 3/2;
  position: relative;
  overflow: hidden;
}

.g-photo-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.g-item:hover .g-photo-inner { transform: scale(1.05); }

.g-meta { display: none; }

.g-title {
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.g-cat {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 680px) { .gallery-hero { padding: 40px 20px 28px; } }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
footer {
  padding: 28px 40px;
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-footer);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  width: 100%;
  text-align: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-role {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  font-style: normal;
}

@media (max-width: 680px) {
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ══════════════════════════
   LIGHTBOX
══════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(14,14,13,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

/* プレースホルダー用 */
.lightbox-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 80vh;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}

.lightbox-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: #faf9f7;
  letter-spacing: 0.01em;
}

.lightbox-cat {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,249,247,0.45);
}

.lightbox-close {
  position: fixed;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,249,247,0.5);
  transition: color 0.2s;
}
.lightbox-close:hover { color: #faf9f7; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  color: rgba(250,249,247,0.4);
  transition: color 0.2s;
  font-size: 26px;
  line-height: 1;
}
.lightbox-nav:hover { color: #faf9f7; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 680px) {
  .lightbox { padding: 20px; }
  .lightbox-nav { display: none; }
  .lightbox-close { top: 16px; right: 16px; }
}

 .s2{background:#cdc8c1} .s3{background:#dbd7d1}
.s4{background:#c8c4bc} .s5{background:#d4cfc8} .s6{background:#e0dbd4}
.s7{background:#c4bfb8} .s8{background:#d0cbc4}
/* ── 画像共通 ── */
.top-cell-img,
.g-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.top-cell:hover .top-cell-img,
.g-item:hover .g-photo-img { transform: scale(1.05); }

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

/* ── フォームステータス ── */
.form-status {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  flex: 1;
}
.form-status--success { color: #4a7c59; }
.form-status--error   { color: #b94040; }


/* reCAPTCHA v3 のバッジを非表示にする */
.grecaptcha-badge { 
    visibility: hidden !important; 
}