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

:root {
  --bg:       #F9F8F6;
  --surface:  #EFE9E3;
  --border:   #D9CFC7;
  --text:     #333333;
  --muted:    #7A746E;
  --accent:   #9A7B6B;
  --accent-l: #CDB8AE;
  --dark:     #333333;
  --serif:    'Noto Sans JP', 'Helvetica Neue', sans-serif;
  --sans:     'Noto Sans JP', 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =============================
   Fade
============================= */
.fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.05s ease, transform 1.05s ease;
}
.fade.in { opacity: 1; transform: translateY(0); }
.fade.d1 { transition-delay: 0.10s; }
.fade.d2 { transition-delay: 0.22s; }
.fade.d3 { transition-delay: 0.36s; }
.fade.d4 { transition-delay: 0.50s; }

/* =============================
   Nav — ハンバーガーメニュー
============================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 1px 12px rgba(51,51,51,0.06);
}
.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: none;
}

/* ハンバーガーボタン */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ドロワー */
.nav__drawer {
  position: fixed;
  top: 0; right: 0;
  width: 260px;
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 80px 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.77,0,.18,1);
  z-index: 250;
}
.nav__drawer.open {
  transform: translateX(0);
}
.nav__drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51,51,51,0.18);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav__drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.nav__links a {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }

/* =============================
   Hero
============================= */
#sec-intro {
  width: 100%;
  height: 60vw;
  max-height: 580px;
  min-height: 300px;
  display: grid;
  grid-template-columns: 38% 62%;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 80px 56px;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.75) brightness(0.96);
}

.hero-kicker {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.6vw, 4rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-top: 64px;
  margin-bottom: 36px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 2.2;
  max-width: 300px;
}

.hero-headline .hl-large {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}
.hero-headline .hl-small {
  display: block;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* =============================
   What I Do — surfaceカラー（黒廃止）
============================= */
#sec-whatido {
  background: var(--surface);
  padding: 120px 56px 128px;
}
.whatido-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.whatido-label {
  font-size: 0.63rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 72px;
}
.whatido-label::after {
  content: '';
  height: 1px; width: 24px;
  background: var(--accent-l);
  display: block;
}
.whatido-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.wid-item {
  background: var(--surface);
  padding: 52px 44px 60px;
}
.wid-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--border);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  line-height: 1;
}
.wid-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-bottom: 18px;
}
.wid-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 2.2;
  margin-top: 34px;
}

/* =============================
   共通ラベル・見出し
============================= */
.sec-label {
  font-size: 0.63rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.sec-label::after {
  content: '';
  height: 1px; width: 24px;
  background: var(--accent-l);
  display: block;
}
.sec-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 80px;
}

/* =============================
   Works
============================= */
#sec-works {
  background: var(--bg);
  width: 100%;
  padding: 152px 0 144px;
}
.works-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 56px;
}
.works-group { margin-bottom: 96px; }
.works-group:last-child { margin-bottom: 0; }
.works-group__head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.works-group__en {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
}
.works-group__ja {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.works-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.works-row--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}
.works-row--1 {
  grid-template-columns: 1fr;
  max-width: 340px;
}
.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.work-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 16px;
}
.work-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.78);
  transition: transform 0.9s cubic-bezier(.22,.64,.36,1), filter 0.5s ease;
}
.work-card:hover .work-card__img img {
  transform: scale(1.03);
  filter: saturate(1);
}
.work-card__label {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 5px;
}
.work-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-card__cat {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-card__sep { font-size: 0.58rem; color: var(--border); }
.work-card__tool { font-size: 0.66rem; color: var(--muted); }

/* =============================
   Service
============================= */
#sec-service {
  background: var(--surface);
  padding: 152px 56px 144px;
}
.service-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.service-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
  margin-bottom: 80px;
}
.service-lead {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 2.3;
  padding-top: 4px;
  max-width: 400px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.s-item {
  background: var(--surface);
  padding: 52px 44px 56px;
}
.s-item__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.s-item__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.s-item__sub {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.s-item__desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 2.15;
  margin-top: 34px;
  margin-bottom: 24px;
  max-width: 380px;
}
.s-item__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.s-item__tag {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  padding: 4px 12px;
  color: var(--muted);
}

/* =============================
   Profile
============================= */
#sec-profile {
  max-width: 1080px;
  margin: 0 auto;
  padding: 152px 56px 144px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 96px;
  align-items: start;
}
.profile-fig img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.65);
}
.profile-text .sec-label { margin-bottom: 16px; }
.profile-name {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 6px;
}
.profile-role {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 42px;
}
.profile-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 2.3;
  max-width: 480px;
}
.profile-body p + p { margin-top: 1.2em; }
.profile-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.profile-tags span {
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  border: 1px solid var(--border);
  padding: 5px 14px;
  color: var(--muted);
}

/* =============================
   Contact — surface（黒廃止）
============================= */
#sec-contact {
  background: var(--surface);
  padding: 128px 56px 136px;
}
.contact-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner .sec-label { justify-content: center; }
.contact-head {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.contact-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 2.1;
  margin-bottom: 48px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
}

/* CTAボタン — 画像参照スタイル（#333 塗り・白文字・全幅・角なし） */
.contact-cta-btn {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 18px 24px;
  background: #333333;
  color: #F9F8F6;
  border: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s;
  text-align: center;
}
.contact-cta-btn:hover { background: var(--accent); }

/* フォーム（テーマに合わせて明るい） */
.cf { text-align: left; }
.cf-row { margin-bottom: 22px; }
.cf-row label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.cf-row input,
.cf-row textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1px;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}
.cf-row input:focus,
.cf-row textarea:focus { border-color: var(--accent-l); }
.cf-row textarea { min-height: 116px; resize: vertical; }
.cf-btn {
  width: 100%;
  margin-top: 10px;
  background: #333333;
  border: none;
  padding: 18px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F9F8F6;
  cursor: pointer;
  transition: background 0.25s;
}
.cf-btn:hover { background: var(--accent); }

/* =============================
   Footer — 黒はここのみ
============================= */
footer {
  background: #333333;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 72px 20px 64px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-nav a {
  color: rgba(249,248,246,0.52);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.footer-nav a:hover { color: rgba(249,248,246,0.9); }
.footer-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(249,248,246,0.24);
}
.footer-sns a {
  color: rgba(249,248,246,0.44);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-sns a:hover { color: rgba(249,248,246,0.9); }
.footer-copy {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(249,248,246,0.34);
}

/* =============================
   Back to top
============================= */
#btt {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 36px; height: 36px;
  background: rgba(51,51,51,0.85);
  color: rgba(249,248,246,0.6);
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.25s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#btt.show { opacity: 1; pointer-events: auto; }
#btt:hover { transform: translateY(-2px); background: var(--accent); color: #F9F8F6; }

/* =============================
   Responsive
============================= */
@media (max-width: 960px) {
  .nav__inner   { padding: 0 28px; }
  #sec-intro    { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: auto; min-height: 100svh; }
  .hero-left    { padding: 100px 28px 52px; justify-content: flex-end; min-height: 52svh; }
  .hero-right   { height: 52vw; min-height: 260px; }
  .hero-right::after { background: linear-gradient(to bottom, var(--bg) 0%, transparent 20%); }
  .hero-body    { max-width: 100%; }
  .whatido-grid { grid-template-columns: 1fr; }
  #sec-whatido,
  #sec-service,
  #sec-profile,
  #sec-contact  { padding-left: 28px; padding-right: 28px; }
  .works-row    { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .works-row--2,
  .works-row--1 { max-width: 100%; grid-template-columns: repeat(2, 1fr); }
  .service-head { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  #sec-profile  { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .nav__inner   { padding: 0 20px; }
  .hero-left    { padding: 88px 20px 40px; }
  .hero-headline { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  #sec-works,
  #sec-service,
  #sec-profile,
  #sec-contact,
  #sec-whatido  { padding-left: 20px; padding-right: 20px; }
  #sec-works    { padding-top: 96px; padding-bottom: 88px; }
  #sec-service  { padding-top: 96px; padding-bottom: 88px; }
  #sec-profile  { padding-top: 96px; padding-bottom: 88px; }
  .wid-item     { padding: 40px 24px 44px; }
  .works-row,
  .works-row--2,
  .works-row--1 { grid-template-columns: 1fr; max-width: 100%; }
  footer        { padding: 24px 20px; }
}