/* =========================================================
   base
   ========================================================= */
:root {
  --fg: #14140f;
  --fg-mute: #8a8a80;
  --fg-faint: #c9c9c0;
  --bg: #fbfbf9;
  --line: #e6e6e0;
  --accent: #14140f;
  --maxw: 1180px;
  --gut: 32px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Helvetica Neue", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--fg); color: var(--bg); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* =========================================================
   header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 249, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  margin-top: -2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.header-fixed {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 22px;
  margin-left: 22px;
  border-left: 1px solid var(--line);
}

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

.socials { display: flex; align-items: center; gap: 13px; }

.socials a {
  color: var(--fg-mute);
  display: inline-flex;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.socials a:hover { color: var(--fg); transform: translateY(-1px); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

.lang-switch button {
  color: var(--fg-mute);
  padding: 2px 1px;
  letter-spacing: 0.1em;
  transition: color 0.3s var(--ease);
}

.lang-switch button:hover { color: var(--fg); }

.lang-switch button.is-active {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
}

.nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--fg-mute);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--fg); }

.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

/* =========================================================
   page head
   ========================================================= */
main { min-height: 60vh; }

.page-head {
  padding: 88px 0 40px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.page-head .lead {
  margin: 18px 0 0;
  max-width: 46em;
  color: var(--fg-mute);
  font-size: 14px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 14px;
}

/* =========================================================
   home : 1枚の画像
   ========================================================= */
.home-stage {
  min-height: calc(100vh - var(--header-h) - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 7vw, 84px) 0;
}

#home-visual { width: 100%; text-align: center; }

#home-visual img {
  margin: 0 auto;
  max-width: min(100%, 900px);
  max-height: calc(100vh - var(--header-h) - 220px);
  width: auto;
  height: auto;
  object-fit: contain;
}

#home-visual a { display: inline-block; }

#home-visual a img { transition: opacity 0.5s var(--ease); }
#home-visual a:hover img { opacity: 0.82; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--fg);
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:hover { background: var(--fg); color: var(--bg); }

.btn.ghost { border-color: var(--line); color: var(--fg-mute); }
.btn.ghost:hover { border-color: var(--fg); background: transparent; color: var(--fg); }

/* =========================================================
   filters
   ========================================================= */
.datanote {
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f4f2ec;
  font-size: 12px;
  color: var(--fg-mute);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.filters button {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}

.filters button:hover { color: var(--fg); border-color: var(--fg-faint); }

.filters button.is-active {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

/* =========================================================
   works grid
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 30px;
  padding-bottom: 100px;
}

.grid.is-compact { grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }

.card { display: block; }

.card .thumb {
  position: relative;
  overflow: hidden;
  background: #efefea;
  aspect-ratio: 4 / 3;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.6s var(--ease);
}

.card:hover .thumb img { transform: scale(1.045); }

.card .thumb .badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(20, 20, 15, 0.72);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.4s var(--ease);
}

.card:hover .thumb .badge { opacity: 1; transform: translateY(0); }

.card .meta { padding-top: 13px; }

.card .meta h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.card .meta p {
  margin: 4px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

.empty {
  grid-column: 1 / -1;
  padding: 70px 0;
  text-align: center;
  color: var(--fg-mute);
  font-size: 13px;
}

/* =========================================================
   work detail
   ========================================================= */
.work {
  padding: 72px 0 110px;
  max-width: 940px;
  margin: 0 auto;
}

.work-title {
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 14px;
}

.work-sub {
  color: var(--fg-mute);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0 0 44px;
}

.work-body {
  font-size: 15px;
  line-height: 2.05;
  max-width: 40em;
}

.work-body p { margin: 0 0 1.4em; }

.work-media { margin: 0 0 52px; display: grid; gap: 18px; }

.work-media img { width: 100%; }

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed.audio { aspect-ratio: auto; height: 166px; background: transparent; }

.info {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 24px;
  font-size: 13px;
}

.info dt { color: var(--fg-mute); letter-spacing: 0.08em; }
.info dd { margin: 0; }

.info a { border-bottom: 1px solid var(--fg-faint); }
.info a:hover { border-color: var(--fg); }

.back {
  display: inline-block;
  margin-top: 60px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}

.back:hover { color: var(--fg); }

/* =========================================================
   texts (詩歌)
   ========================================================= */
.texts {
  max-width: 40em;
  padding-bottom: 110px;
}

/* 種類ごとの見出し */
.texts-section { margin-bottom: 56px; }

.texts-group {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* 題だけを並べるリスト（詩・掲載） */
.text-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.text-list li {
  padding: 9px 0;
  font-size: 16px;
  line-height: 1.7;
}

.text-list a,
.text-list .name {
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}

.text-list a:hover { opacity: 0.55; }

.text-list .year {
  color: var(--fg);
  white-space: nowrap;
}

.text-list .src {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

.text-entry {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.text-entry:first-of-type { padding-top: 4px; }
.text-entry:last-child { border-bottom: none; }

.text-kind {
  margin: 0 0 14px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.text-title {
  margin: 0 0 20px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.text-title.is-detail {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 400;
  margin: 0 0 32px;
}

/* 本文：改行と行頭の字下げをそのまま活かす */
.text-body {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 2.3;
  letter-spacing: 0.06em;
}

.text-body.is-detail { font-size: 16.5px; }

.text-more {
  display: inline-block;
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  border-bottom: 1px solid var(--fg-faint);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.text-more:hover { color: var(--fg); border-color: var(--fg); }

.text-meta {
  margin: 26px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

.text-meta a { border-bottom: 1px solid var(--fg-faint); }
.text-meta a:hover { color: var(--fg); border-color: var(--fg); }

.text-detail {
  max-width: 40em;
  padding: 72px 0 110px;
}

/* =========================================================
   prose (about / contact)
   ========================================================= */
.prose { max-width: 42em; padding-bottom: 110px; }

.prose h2 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
  margin: 60px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.prose p { margin: 0 0 1.4em; }

.prose ul { list-style: none; margin: 0; padding: 0; }

.prose ul li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14px;
}

.prose ul li span { color: var(--fg-mute); font-size: 12.5px; letter-spacing: 0.06em; }

.prose a.link { border-bottom: 1px solid var(--fg-faint); }
.prose a.link:hover { border-color: var(--fg); }

/* =========================================================
   footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 60px;
  font-size: 11.5px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a:hover { color: var(--fg); }

[hidden] { display: none !important; }

/* =========================================================
   reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(14px); }

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .grid.is-compact { grid-template-columns: repeat(3, 1fr); }
  .info { grid-template-columns: 100px 1fr; }

  /* ヘッダーが詰まらないように間隔を少し狭める */
  .header-right { gap: 18px; }
  .nav { gap: 18px; }
  .socials { gap: 10px; }
  .header-fixed { padding-left: 16px; margin-left: 16px; }
  .brand { font-size: 15px; }
}

@media (max-width: 640px) {
  :root { --gut: 20px; --header-h: 62px; }

  body { font-size: 14.5px; }

  /* --- ヘッダー：ハンバーガーと言語切替は常に表示、
         ナビとSNSは開閉パネルに --- */
  .site-header .wrap { position: relative; }

  .header-right {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px var(--gut) 18px;
    display: none;
  }

  .header-right.is-open { display: flex; }

  .nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }

  .nav a {
    font-size: 17px;
    letter-spacing: 0.06em;
    padding: 15px 0;
    width: 100%;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
  }

  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--fg-mute); }
  .nav a:last-of-type { border-bottom: none; }

  .socials {
    gap: 8px;
    padding-top: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .socials a {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--fg);
  }

  .socials a svg { width: 20px; height: 20px; }

  .header-fixed {
    gap: 4px;
    padding-left: 0;
    margin-left: auto;
    border-left: none;
  }

  .lang-switch { font-size: 13px; gap: 6px; }
  .lang-switch button { padding: 12px 5px; }

  /* タップ領域を広げても下線が文字から離れないように */
  .lang-switch button.is-active {
    border-bottom: none;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    color: var(--fg);
  }

  .nav-toggle.is-open { color: var(--fg-mute); }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .grid.is-compact { grid-template-columns: repeat(2, 1fr); }

  .page-head { padding: 54px 0 30px; }
  .filters { margin-bottom: 30px; padding-bottom: 24px; }

  .info { grid-template-columns: 1fr; gap: 2px; }
  .info dd { margin-bottom: 12px; }

  .text-entry { padding: 26px 0; }
  .texts-section { margin-bottom: 42px; }
  .text-list li { padding: 11px 0; font-size: 15.5px; }
  .text-body { font-size: 15.5px; line-height: 2.15; }
  .text-title { font-size: 17px; }
  .text-detail { padding: 44px 0 90px; }

  .prose ul li { grid-template-columns: 1fr; gap: 0; }
}
