:root {
      --bg: #f7f5ef;
      --card: #ffffff;
      --ink: #171717;
      --text: #333333;
      --muted: #777777;
      --line: #dedbd2;
      --accent: #2f5cff;
      --accent-soft: #eef2ff;
      --max: 1180px;
      --radius: 18px;
      --shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--bg);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
      line-height: 1.7;
      letter-spacing: 0.02em;
    }

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

    img,
    video {
      display: block;
      width: 100%;
      height: auto;
    }

    .wrap {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 1px solid var(--line);
      background: rgba(247, 245, 239, 0.9);
      backdrop-filter: blur(14px);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      min-height: 72px;
    }

    .brand {
      display: flex;
      flex-direction: column;
      line-height: 1.15;
    }

    .brand strong {
      font-size: 18px;
      letter-spacing: -0.03em;
    }

    .brand span {
      color: var(--muted);
      font-size: 12px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 18px;
      color: var(--text);
      font-size: 14px;
    }

    .nav-links a {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 8px 0;
      border-bottom: 2px solid transparent;
    }

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

    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      margin-bottom: 30px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

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

    .hero {
      padding: 46px 0 34px;
      border-bottom: 1px solid var(--line);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
      gap: 34px;
      align-items: end;
    }

    .category {
      display: inline-flex;
      width: fit-content;
      margin-bottom: 14px;
      padding: 7px 11px;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
    }

    h1 {
      margin: 0;
      font-size: clamp(38px, 7vw, 82px);
      line-height: 0.98;
      letter-spacing: -0.075em;
    }

    .lead {
      max-width: 760px;
      margin: 18px 0 0;
      color: var(--text);
      font-size: 17px;
    }

    .project-meta {
      display: grid;
      gap: 8px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.62);
    }

    .meta-row {
      display: grid;
      grid-template-columns: 82px 1fr;
      gap: 12px;
      font-size: 14px;
    }

    .meta-row dt {
      color: var(--muted);
      font-weight: 800;
    }

    .meta-row dd {
      margin: 0;
      color: var(--text);
    }

    .main-visual {
      padding: 34px 0 0;
    }

    .visual-frame {
      position: relative;
      min-height: 520px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background:
        linear-gradient(135deg, rgba(47, 92, 255, 0.18), rgba(255, 255, 255, 0)),
        #dedbd2;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .visual-frame::after {
      content: "メイン画像 / 動画";
      position: absolute;
      inset: auto 18px 18px auto;
      padding: 6px 10px;
      border-radius: 999px;
      color: rgba(255, 255, 255, 0.92);
      background: rgba(0, 0, 0, 0.42);
      font-size: 12px;
      font-weight: 800;
    }

    .visual-frame img,
    .visual-frame video {
      height: 100%;
      object-fit: cover;
    }

    .section {
      padding: 58px 0;
    }

    .section-grid {
      display: grid;
      grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
      gap: 46px;
      align-items: start;
    }

    .section-label {
      position: sticky;
      top: 96px;
    }

    h2 {
      margin: 0;
      font-size: clamp(24px, 4vw, 42px);
      line-height: 1.08;
      letter-spacing: -0.06em;
    }

    .section-label p {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .content-card {
      padding: 26px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--card);
      box-shadow: var(--shadow);
    }

    .content-card p {
      margin: 0;
      color: var(--text);
      font-size: 15px;
    }

    .content-card p + p {
      margin-top: 14px;
    }

    .two-column {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .small-card {
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--card);
      box-shadow: var(--shadow);
    }

    .small-card h3 {
      margin: 0 0 8px;
      font-size: 18px;
      letter-spacing: -0.04em;
    }

    .small-card p {
      margin: 0;
      color: var(--text);
      font-size: 14px;
    }

    .process-list {
      display: grid;
      gap: 12px;
      counter-reset: process;
    }

    .process-item {
      display: grid;
      grid-template-columns: 46px 1fr;
      gap: 14px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--card);
      box-shadow: var(--shadow);
    }

    .process-item::before {
      counter-increment: process;
      content: counter(process);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 999px;
      background: var(--ink);
      color: #fff;
      font-size: 14px;
      font-weight: 800;
    }

    .process-item h3 {
      margin: 0 0 4px;
      font-size: 17px;
      letter-spacing: -0.035em;
    }

    .process-item p {
      margin: 0;
      color: var(--text);
      font-size: 14px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .gallery-item {
      position: relative;
      aspect-ratio: 16 / 10;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        linear-gradient(135deg, rgba(47, 92, 255, 0.16), rgba(255,255,255,0)),
        #dedbd2;
      overflow: hidden;
    }

    .gallery-item::after {
      content: "画像";
      position: absolute;
      inset: auto 12px 12px auto;
      padding: 5px 9px;
      border-radius: 999px;
      color: rgba(255,255,255,0.9);
      background: rgba(0, 0, 0, 0.38);
      font-size: 11px;
      font-weight: 800;
    }

    .gallery-item img,
    .gallery-item video {
      height: 100%;
      object-fit: cover;
    }

    .link-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--ink);
      color: #fff;
    }

    .link-card h2 {
      color: #fff;
      font-size: clamp(24px, 4vw, 38px);
    }

    .link-card p {
      margin: 8px 0 0;
      color: rgba(255,255,255,0.7);
      font-size: 14px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 999px;
      background: #fff;
      color: var(--ink);
      white-space: nowrap;
      font-size: 14px;
      font-weight: 800;
    }

    .next-prev {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      padding: 0 0 70px;
    }

    .pager-card {
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--card);
      box-shadow: var(--shadow);
    }

    .pager-card span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .pager-card strong {
      display: block;
      margin-top: 4px;
      font-size: 18px;
      letter-spacing: -0.04em;
    }

    footer {
      padding: 22px 0 34px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 16px;
    }

    @media (max-width: 980px) {
      .hero-grid,
      .section-grid,
      .link-card {
        grid-template-columns: 1fr;
      }

      .section-label {
        position: static;
      }

      .visual-frame {
        min-height: 380px;
      }
    }

    @media (max-width: 680px) {
      .wrap {
        width: min(var(--max), calc(100% - 24px));
      }

      .nav {
        min-height: 64px;
      }

      .nav-links {
        display: none;
      }

      .hero {
        padding-top: 36px;
      }

      .meta-row,
      .process-item {
        grid-template-columns: 1fr;
      }

      .visual-frame {
        min-height: 260px;
      }

      .two-column,
      .gallery-grid,
      .next-prev {
        grid-template-columns: 1fr;
      }

      .content-card,
      .small-card,
      .link-card {
        padding: 20px;
      }

      .footer-inner {
        flex-direction: column;
      }
    }