:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f1;
  --bg-img: #f1efe9;
  --ink: #222426;
  --ink-sub: #62676c;
  --line: #e2dfd8;
  --accent: #c2386a;
  --wrap: 1040px;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-en: "Jost", var(--font-ja);
  --header-h: 240px;
  --header-h-compact: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 8px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* header：最初は大きいロゴ、スクロールすると縮む（fixed なので縮んでも本文の位置は動かない） */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding-top: 28px;
  transition: height 0.3s ease, padding-top 0.3s ease;
}

/* 開いたときはロゴを上下の余白の真ん中あたりに置く（メニューは右上のまま） */
.logo {
  margin-top: 52px;
  transition: margin-top 0.3s ease;
}

.logo img {
  display: block;
  width: 280px;
  transition: width 0.3s ease;
}

.nav {
  display: flex;
  gap: 28px;
  margin-top: 4px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.site-header.is-compact {
  border-bottom-color: var(--line);
}

.site-header.is-compact .header-inner {
  height: var(--header-h-compact);
  padding-top: 14px;
}

.site-header.is-compact .logo {
  margin-top: 0;
}

.site-header.is-compact .logo img {
  width: 130px;
}

.site-header.is-compact .nav {
  margin-top: 0;
}

.nav a {
  color: var(--ink-sub);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

/* sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 40px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-title .en {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* music */
#music {
  padding-top: 48px;
}

.since {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.lead {
  margin: 0 0 72px;
  font-size: 20px;
  font-weight: 500;
}

.text p {
  margin: 0 0 12px;
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 24px 0 0;
}

/* rows：これまでの仕事の一覧 */
.group {
  margin-bottom: 56px;
}

.group:last-child {
  margin-bottom: 0;
}

.group h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.group-note {
  margin: 4px 0 0;
  color: var(--ink-sub);
  font-size: 14px;
}

.rows {
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.rows + .group-note {
  margin-top: 12px;
}

.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 6.5em;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
}

.row-sub {
  color: var(--ink-sub);
  font-size: 14px;
}

.row-link {
  grid-column: 3;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.row-link::after {
  content: " ↗";
}

/* works */
.section-first {
  padding-top: 48px;
}

.group-title {
  margin: 56px 0 24px;
  font-size: 17px;
  font-weight: 600;
}

.section-title + .group-title {
  margin-top: 0;
}

.works-note {
  margin-top: 56px;
}

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work {
  display: flex;
  flex-direction: column;
}

.work-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  margin: 0 0 16px;
  padding: 12px;
  background: var(--bg-img);
  overflow: hidden;
}

.section-alt .work-img {
  background: var(--bg);
}

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-type {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.work h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.work-lead {
  margin: 0 0 12px;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.8;
}

.work-meta {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
}

.work-meta > div {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 8px;
}

.work-meta dt {
  color: var(--ink-sub);
}

.work-meta dd {
  margin: 0;
}

.work-link {
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.work-link::after {
  content: " ↗";
}

/* about */
.about {
  margin: 0;
}

.about p {
  margin: 0 0 12px;
}

.about-name {
  font-size: 18px;
  font-weight: 600;
}

/* contact */
.contact-form {
  max-width: 560px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field-hidden {
  position: absolute;
  left: -9999px;
}

.contact-form button {
  padding: 10px 40px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--bg);
  color: var(--ink);
}

.contact-form button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.9em;
  margin: 12px 0 0;
  font-size: 14px;
}

.form-status--success {
  color: var(--accent);
}

.form-status--error {
  color: #b04040;
}

.form-note {
  margin: 4px 0 0;
  color: var(--ink-sub);
  font-size: 13px;
}

/* footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-sub);
  text-align: center;
}

@media (max-width: 900px) {
  .works {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header-inner,
  .logo,
  .logo img {
    transition: none;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 168px;
    --header-h-compact: 56px;
  }

  .header-inner {
    padding-top: 20px;
  }

  .logo {
    margin-top: 44px;
  }

  .logo img {
    width: 170px;
  }

  .site-header.is-compact .header-inner {
    padding-top: 14px;
  }

  .site-header.is-compact .logo img {
    width: 110px;
  }

  .nav {
    gap: 14px;
    margin-top: 2px;
    font-size: 13px;
  }

  .section {
    padding: 64px 0;
  }

  .works {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lead {
    margin-bottom: 56px;
    font-size: 18px;
  }

  .rows li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
  }

  .row-sub {
    grid-row: 2;
    grid-column: 1;
  }

  .row-link {
    grid-row: 1;
    grid-column: 2;
  }
}
