@charset "UTF-8";

:root {
  --bg: #f4f1ea;
  --text: #111111;
  --line: rgba(17, 17, 17, 0.2);
  --placeholder: #d9d5cd;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

/* HEADER */
.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:1000;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:28px var(--pad) 0;
  pointer-events:none;

}

.brand,
.desktop-nav,
.menu-toggle{pointer-events:auto}

.brand{
  font-size:clamp(24px,3.2vw,54px);
  line-height:.9;
  font-weight:700;
  text-transform:uppercase;
  white-space:nowrap;

  letter-spacing:-0.02em;
  color:#111;
  -webkit-text-fill-color:#111;
  -webkit-text-stroke:0px transparent;

  transition:
    letter-spacing .5s var(--ease),
    -webkit-text-fill-color .5s var(--ease),
    -webkit-text-stroke-width .5s var(--ease);
}

body.is-scrolled .brand{
  letter-spacing:0.08em;          /* ← 中抜き時は字間を広げて接触を防ぐ */
  -webkit-text-fill-color:transparent;
  -webkit-text-stroke:1.2px #111; /* ← 太すぎるとまた交差しやすいので細めに */
}

.desktop-nav{
  display:flex;
  gap:10px;
  align-items:center;
}

.desktop-nav a{
  border:1px solid currentColor;
  border-radius:999px;
  padding:10px 19px;
  font-size:13px;
  font-weight:700;
  transition:.25s ease;
}

.desktop-nav a:hover{
  background:#fff;
  color:#000;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before {
  position: absolute;
  width: 26px;
  height: 1px;
  background: var(--text);
  content: "";
}

.menu-toggle span {
  transform: translate(-13px, 0);
}

.menu-toggle span::before {
  transform: translate(0, 7px);
}

.mobile-menu {
  display: none;
}

/* COMMON */
main {
  overflow: hidden;
}

.section-no {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.placeholder {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  background: var(--placeholder);
}

.placeholder::before,
.placeholder::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 1px;
  background: rgba(17, 17, 17, 0.16);
  content: "";
}

.placeholder::before {
  transform: translate(-50%, -50%) rotate(32deg);
}

.placeholder::after {
  transform: translate(-50%, -50%) rotate(-32deg);
}

.placeholder span {
  position: relative;
  z-index: 1;
  padding: 7px 11px;
  background: rgba(244, 241, 234, 0.82);
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* HERO */
.page-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6vw;
  min-height: 78vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8vw 4vw 7vw;
  align-items: end;
}

.hero-copy h1 {
  margin: 0 0 32px;
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.hero-text {
  max-width: 520px;
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

.placeholder-hero {
  min-height: 580px;
}

/* PROJECT */
.project-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 9vw 4vw;
  border-top: 1px solid var(--line);
}

.project-head,
.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8vw;
  margin-bottom: 56px;
  align-items: end;
}

.project-head h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 98px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.project-lead,
.section-head p {
  max-width: 480px;
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

.placeholder-main {
  min-height: min(64vw, 760px);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.project-gallery .placeholder {
  min-height: 340px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.meta-item {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--line);
}

.meta-item + .meta-item {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.meta-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.meta-item span {
  font-size: 13px;
  line-height: 1.8;
}

/* PERSONAL WORKS */
.personal-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 9vw 4vw;
  border-top: 1px solid var(--line);
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.personal-card {
  grid-column: span 4;
  min-height: 360px;
}

.personal-card.tall {
  min-height: 520px;
}

.personal-card.wide {
  grid-column: span 8;
  min-height: 420px;
}

/* CONTACT */
.contact-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10vw 4vw;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  margin: 0 0 32px;
  font-size: clamp(54px, 9vw, 140px);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.07em;
}

.contact-section p {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 2;
}

.contact-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 4vw;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* REVEAL ANIMATION */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

[data-reveal="left"] {
  transform: translateX(-34px);
}

[data-reveal="right"] {
  transform: translateX(34px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    visibility: hidden;
    background: var(--bg);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .mobile-menu a {
    font-size: 28px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
  }

  .hero-copy h1 {
    margin-bottom: 24px;
  }

  .placeholder-hero {
    min-height: 460px;
  }

  .project-head,
  .section-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery .placeholder {
    min-height: 420px;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .meta-item + .meta-item {
    padding-left: 0;
    border-left: 0;
  }

  .personal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .personal-card,
  .personal-card.wide {
    grid-column: auto;
    min-height: 320px;
  }

  .personal-card.tall {
    min-height: 440px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 20px 22px;
  }

  .page-hero,
  .project-section,
  .personal-section,
  .contact-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .page-hero {
    padding-top: 64px;
    padding-bottom: 70px;
  }

  .hero-copy h1 {
    font-size: clamp(54px, 20vw, 86px);
  }

  .placeholder-hero {
    min-height: 380px;
  }

  .project-section,
  .personal-section,
  .contact-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .project-head,
  .section-head {
    margin-bottom: 38px;
  }

  .project-head h2,
  .section-head h2 {
    font-size: 48px;
  }

  .placeholder-main {
    min-height: 420px;
  }

  .project-gallery .placeholder {
    min-height: 300px;
  }

  .personal-grid {
    grid-template-columns: 1fr;
  }

  .personal-card,
  .personal-card.tall,
  .personal-card.wide {
    min-height: 360px;
  }

  .contact-section h2 {
    font-size: 58px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px;
  }
}
