/* 合同会社C 新サイト試作
   方針: 単色インク × 無彩色の地、等幅気味の小さな文字、余白で見せるグリッド。
   色は変数1つで差し替えられる。 */
:root {
  --paper: var(--bg-color, #fcfcfc);   /* スプシ settings の bg_color */
  --ink: var(--text-color, #0000ff);   /* 文字・線はすべてこの1色。スプシ settings の text_color */
  --accent: var(--ink);
  --gutter: 16px;
  --font: "Archivo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-stretch: 125%;   /* Archivo のいちばん横長の幅（SF Pro Expanded に近い雰囲気） */
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.04em;   /* Archivo の横長は字間が開いて見えるので少し詰める */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; width: 100%; height: auto; }

/* ---- header ---- */
.site-header, .about h2, .site-footer {
  font-family: "Roboto", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
  font-stretch: normal;
  letter-spacing: 0.02em;
  font-size: 15px;
  font-weight: 500;
}
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px;
  padding: 14px var(--gutter) 12px;
  background: var(--paper);
  font-family: "Roboto", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
  font-stretch: normal;
  letter-spacing: 0.02em;
  font-size: var(--menu-size, 15px);   /* スプシ settings の menu_size */
  font-weight: 500;   /* メニューは Roboto Medium */
  text-transform: uppercase;
}
.site-header .logo { display: block; align-self: center; line-height: 0; }
.site-header .logo svg { display: block; height: 24px; width: auto; overflow: visible; }
.site-header .logo:hover { text-decoration: none; opacity: .7; }
.site-header nav { display: flex; gap: 20px; margin-left: auto; }
.site-header nav, .about h2 { font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-stretch: normal; letter-spacing: -0.04em; font-weight: 500; }
.site-header nav, .about h2, .site-footer { font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-stretch: normal; font-weight: var(--subtitle-weight, 600); font-size: var(--subtitle-size, 20px); line-height: 1; letter-spacing: -0.52px; text-transform: uppercase; }   /* メニュー・Info の見出し・フッターはサブタイトルと同じ */
.site-header nav { font-weight: var(--menu-weight, 600); font-size: var(--subtitle-size, 20px); line-height: 1; letter-spacing: -0.52px; }   /* メニューはサブタイトルと同じ（字間もサブタイトルの実値 -0.52px）大きさ・太さ（スプシ subtitle_size に連動） */   /* メニューは SemiBold */   /* メニューと About の見出しはタイトルと同じ Syne */
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

main { padding: 24px var(--gutter) 80px; }

/* ---- index: grid view ---- */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--gutter); }
@media (min-width: 1280px) {
  .works { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--gutter); }
}
.work-card .label { font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-stretch: normal; font-weight: var(--title-weight, 500); display: flex; flex-direction: column; margin-top: 10px; font-size: var(--title-size, 30px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.work-card .label .t { font-size: inherit; }
.work-card .label .s { display: block; font-size: var(--subtitle-size, 20px); font-weight: var(--subtitle-weight, 600); margin-top: 4px; }
.work-card .d { display: block; line-height: 1; font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-stretch: normal; letter-spacing: 0.02em; white-space: nowrap; font-size: var(--year-size, 15px); margin-top: 8px; font-weight: var(--year-weight, 500); }   /* year・タグも Syne（他の英字と同じ） */
.work-card .thumb { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1 / 1; background: var(--paper); }
.work-card .thumb img { position: absolute; inset: 0; height: 100%; object-fit: cover; mix-blend-mode: multiply; }   /* 背景色と乗算 */
.work-card:hover .thumb img { mix-blend-mode: normal; }   /* hover で元の画像（瞬時に切替） */
.work-card .thumb::before, .work-card .thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--thumb-color, #0000ff); }   /* サムネイルに色を2層で重ねる（スプシ settings の thumb_color）。背景色とは別 */
.work-card .thumb::before { mix-blend-mode: var(--thumb-blend, soft-light); opacity: calc(var(--thumb-opacity, 50) / 100); }   /* 1層目: thumb_blend / thumb_opacity（%） */
.work-card .thumb::after { mix-blend-mode: var(--thumb-blend2, screen); opacity: calc(var(--thumb-opacity2, 0) / 100); }   /* 2層目: thumb_blend2 / thumb_opacity2（%）。0 で無し */
.work-card:hover .thumb::before, .work-card:hover .thumb::after { opacity: 0; }   /* hover で元の画像 */
.work-card:hover { text-decoration: none; }
.work-card:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.work-card .tags { margin-top: 8px; line-height: 1; font-stretch: normal; letter-spacing: var(--tag-spacing, 0.02em);   /* スプシ settings の tag_spacing（px） */ font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-size: var(--tag-size, 15px); font-weight: var(--tag-weight, 500); }   /* year と同じ大きさ・太さ。1項目ずつ改行 */
.work-card .tags span { display: block; }
.work-card .tags { text-transform: uppercase; }   /* タグは大文字 */

/* ---- work detail ---- */
.video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 40px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.work-head { margin-bottom: 40px; }
.work-head h1 { font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-stretch: normal; font-weight: var(--title-weight, 500); display: flex; flex-direction: column; font-size: var(--title-size, 30px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }   /* TOP の .label と同じ */
.work-head h1 small { display: block; font-size: var(--subtitle-size, 20px); font-weight: var(--subtitle-weight, 600); margin-top: 4px; }   /* TOP のサブタイトルと同じ */
.work-head .meta { margin-top: 8px; font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-stretch: normal; letter-spacing: 0.02em; font-weight: 500; line-height: 1; }   /* TOP の year・タグと同じ書体 */
.work-head .meta .d { display: block; font-weight: var(--year-weight, 500); margin-top: 8px; font-size: var(--year-size, 15px); white-space: nowrap; }
.work-head .meta .tags { margin-top: 0; letter-spacing: var(--tag-spacing, 0.02em); font-weight: var(--tag-weight, 500); font-size: var(--tag-size, 15px); text-transform: uppercase; }
.work-head .meta .tags span { display: block; }   /* 1項目ずつ改行 */
.work-head .meta .note { margin-top: 16px; font-size: 15px; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.gallery img:first-child { grid-column: 1 / -1; }
.pager { display: flex; justify-content: space-between; margin-top: 56px; gap: var(--gutter); font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-stretch: normal; font-size: 16px; font-weight: var(--pager-weight, 600); text-transform: uppercase; }   /* 前後の作品へのリンク。太さはスプシ settings の pager_weight */

/* ---- about ---- */
/* 見出し → 本文 の項目を上から縦一列に並べる */
.about { display: flex; flex-direction: column; gap: var(--info-item-gap, 56px); }
.about .box { display: block; }
.about h2 { font-weight: var(--title-weight, 500); letter-spacing: -0.04em; font-size: var(--info-title-size, var(--title-size, 30px)); overflow-wrap: anywhere; }   /* スプシ settings の info_title_size（空欄なら title_size） */
.about p { margin-top: var(--info-gap, 12px);   /* 見出しと本文の間隔。スプシ settings の info_gap */ font-family: "Syne", "Noto Sans JP", "Hiragino Sans", sans-serif; font-stretch: normal; font-size: var(--info-text-size, 15px); font-weight: var(--info-text-weight, 400); letter-spacing: var(--info-text-spacing, -0.52px); line-height: var(--info-text-line-height, 1.6); }   /* スプシ settings の info_text_size / _weight / _spacing / _line_height */   /* 英字は Syne、和文は Noto Sans JP */

.site-footer { padding: 24px var(--gutter); text-transform: uppercase; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 720px) {
  .works { grid-template-columns: 1fr; gap: 40px; }
  .work-head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
