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

:root {
  --orange: #d4521a;
  --white: #ffffff;
  --off-white: #fafafa;
  --ink: #1a1a1a;
  --gray: #888;
  --thumb-bg: #ebebeb;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', 'Noto Sans JP', sans-serif;
  background: var(--off-white);
  color: var(--ink);
  font-weight: 300;
}

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

/* ── HEADER ── */
header {
  background: var(--white);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 52px; width: auto; }

/* ── NAV ── */
nav {
  background: var(--orange);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 89px;
  z-index: 90;
}
nav a {
  display: inline-block;
  padding: 14px 44px;
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: background 0.2s;
}
nav a::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 0.5px;
  background: rgba(255,255,255,0.35);
}
nav a:last-child::after { display: none; }
nav a:hover,
nav a.active { background: rgba(0,0,0,0.15); }

/* ── ハンバーガー・ドロワー ── */
.hamburger { display: none; }
.drawer { display: none; }
.drawer-overlay { display: none; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--white);
  padding: 16px 80px;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
}
.breadcrumb a {
  color: var(--orange);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.breadcrumb a:hover { opacity: 0.65; }
.breadcrumb-sep { color: #ccc; font-size: 11px; }
.breadcrumb-current {
  color: var(--gray);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.1em;
  text-transform: none;
}

/* ── HERO（横型画像を見切れずに中央配置） ── */
.hero {
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 40px 48px 24px;
}
.hero img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1000px);
  max-height: 72vh;
}

/* ── 共通 ── */
.block {
  background: var(--white);
  padding: 64px 0;
  scroll-margin-top: 140px;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.block + .block { border-top: 0.5px solid #ececec; }

/* 正方形画像 */
.sq {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--white);
}
/* 横型画像：見切れず幅いっぱい */
.land { width: 100%; height: auto; display: block; }
.media-grid { display: grid; gap: 8px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* テキスト側：見出し・本文を上、クレジットを下に */
.info { display: flex; flex-direction: column; }
.info .work-credit { margin-top: auto; padding-top: 24px; }

/* 概要：画像左／文章右 */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

/* 01 メインビジュアル：大きな画像左／文章右下 */
.split-mv {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}

/* 02 イラスト：見開き（正方形2枚）→ 文章左＋ピクト4枚右 */
.illust-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}


/* 04 WEB：文章左／画像右 */
.split-web {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

/* 03 プログラム冊子・05 会場サイン：3列グリッド。1段目の3つ目が文章 */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.grid3 .info { padding-left: 32px; }

/* ── テキスト ── */
.work-category {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}
.work-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: 100;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.5;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.work-desc-block { display: flex; flex-direction: column; gap: 6px; }

.work-desc-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  line-height: 1.6;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.work-desc-heading.is-lead {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 18px;
}
.work-desc-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #444;
  margin-bottom: 4px;
}
.work-credit {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10.5px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-top: 20px;
}
.work-credit a { color: var(--orange); word-break: break-all; }

/* ── WORKS 一覧（グレー帯） ── */
.works-index {
  background: var(--thumb-bg);
  padding: 72px 80px 80px;
  text-align: center;
}
.works-index-title {
  font-family: 'Jost', sans-serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--ink);
  line-height: 1.2;
}
.works-index-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin: 8px 0 40px;
}
.works-index-list {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.works-index-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.works-index-list img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--white);
  margin-bottom: 12px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.works-index-list img.is-land { object-fit: contain; }
.works-index-list a:hover img { opacity: 0.8; border-color: var(--orange); }
.works-index-list .num {
  font-family: 'Jost', sans-serif;
  color: var(--orange);
  margin-right: 6px;
}

/* ── WORKS NOTE ── */
.works-note {
  background: var(--white);
  padding: 0 80px 48px;
  border-top: 0.5px solid #ececec;
}
.works-note p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--gray);
  line-height: 1.8;
  padding-top: 24px;
}

/* ── FOOTER ── */
footer {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 10px 48px;
  font-size: 7px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 300;
  position: relative;
}
.footer-sns {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.footer-sns a { display: flex; align-items: center; opacity: 0.85; transition: opacity 0.2s; }
.footer-sns a:hover { opacity: 1; }
.footer-sns img { height: 22px; width: auto; }
.footer-logo { font-size: 10px; font-weight: 300; letter-spacing: 0.25em; margin-bottom: 8px; opacity: 0.9; }
.footer-copy { opacity: 0.65; font-size: 7px; letter-spacing: 0.2em; }

/* ── タブレット ── */
@media (max-width: 900px) {
  .wrap { padding: 0 32px; }
  .works-index { padding-left: 32px; padding-right: 32px; }
  .works-index-list { gap: 12px; }
  .intro, .split-mv, .split-web, .illust-row { gap: 32px; }
  .grid3 .info { padding-left: 16px; }
}

/* ── RESPONSIVE (スマホ) ── */
@media (max-width: 600px) {

  header { padding: 14px 24px; }
  .logo-img { height: 38px; }
  nav { top: 67px; }
  #global-nav { display: none; }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .hamburger span { display: block; width: 22px; height: 1.5px; background: var(--orange); }

  .drawer {
    display: block;
    position: fixed;
    top: 0; right: -100%;
    width: 65%;
    height: 100%;
    background: var(--white);
    z-index: 200;
    transition: right 0.3s ease;
    padding: 60px 32px 40px;
  }
  .drawer.open { right: 0; }
  .drawer-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--orange);
    cursor: pointer;
  }
  .drawer-nav { display: flex; flex-direction: column; background: var(--white); gap: 0; }
  .drawer-nav a {
    display: block;
    padding: 16px 0;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--orange);
    text-decoration: none;
    border-bottom: 0.5px solid #ececec;
  }
  .drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .drawer-overlay.open { display: block; opacity: 1; }

  .breadcrumb { padding: 12px 24px; }

  /* ヒーロー：横型のまま幅いっぱい */
  .hero { padding: 0; }
  .hero img { max-width: 100%; max-height: none; }

  .block { padding: 40px 0 44px; scroll-margin-top: 80px; }
  .wrap { padding: 0 20px; }

  /* 文章 → 画像の順に縦積み */
  .intro, .split-mv, .split-web { grid-template-columns: 1fr; gap: 24px; }
  .intro > .media-grid, .split-mv > .media-grid, .split-web > .media-grid { order: 2; }
  .intro > .info, .split-mv > .info, .split-web > .info { order: 1; }
  .info .work-credit { margin-top: 16px; padding-top: 0; }

  /* 02 イラスト：見開き → 文章 → ピクト2×2 */
  .illust-row { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }

   /* 02 イラスト：小さい3枚を縦一列に */
  .illust-row .media-grid { grid-template-columns: 1fr; }

  /* 04 WEB：2枚を縦一列に */
  .split-web .media-grid { grid-template-columns: 1fr; }


  /* 03・05：文章を先頭に出し、写真は2列 */
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 .info { grid-column: 1 / -1; order: -1; padding-left: 0; margin-bottom: 16px; }

  .work-title { font-size: 19px; }
  .work-desc-body { font-size: 12.5px; }

  /* WORKS 一覧：3列＋2列（下段は中央寄せ） */
  .works-index { padding: 48px 24px 56px; }
  .works-index-title { font-size: 28px; }
  .works-index-sub { margin-bottom: 28px; }
  .works-index-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 10px;
  }
  .works-index-list li { width: calc((100% - 20px) / 3); }
  .works-index-list a { font-size: 10.5px; letter-spacing: 0.04em; text-align: left; }
  .works-index-list .num { display: block; margin: 0 0 2px; }

  .works-note { padding: 0 24px 40px; }

  .footer-sns { left: 20px; }
  .footer-sns img { height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}