/* ============================================================
       IPHOLIC — WORK DETAIL / DESIGN  (shared design system)
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --bg:#FFFFFF; --bg-soft:#F5F4F1; --text:#141414; --text-mid:#6E6E6E; --text-soft:#9B9B9B; --line:#E7E6E2;
      --ease: cubic-bezier(0.16, 1, 0.3, 1);
    }
    html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
    body { font-family: "Noto Sans JP", sans-serif; background: var(--bg); color: var(--text); letter-spacing: 0.04em; line-height: 1.8; overflow-x: hidden; }
    img { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    .en { font-family: "Noto Sans JP", sans-serif; font-weight: 300; letter-spacing: 0.32em; }
    .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
    .reveal.is-visible { opacity: 1; transform: none; }

    /* ===== HEADER ===== */
    .header { position: fixed; top: 0; left: 0; width: 100%; height: 76px; padding: 0 clamp(20px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; z-index: 100; background: rgba(255,255,255,0); transition: background 0.5s var(--ease), height 0.5s var(--ease), border-color 0.5s var(--ease); border-bottom: 1px solid transparent; }
    .header.is-scrolled { height: 64px; background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
    .header__logo img { height: 54px; width: auto; transition: height 0.5s var(--ease); }
    .header.is-scrolled .header__logo img { height: 46px; }
    .header__nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
    .header__nav a { position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; padding: 4px 0; }
    .header__nav a.is-current { color: var(--text-soft); }
    .header__nav a:not(.nav-contact):not(.is-current)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
    .header__nav a:not(.nav-contact):not(.is-current):hover::after { transform: scaleX(1); transform-origin: left; }
    .nav-contact { border: 1px solid var(--text); border-radius: 999px; padding: 9px 24px !important; font-size: 11.5px !important; letter-spacing: 0.16em !important; transition: background 0.45s var(--ease), color 0.45s var(--ease); }
    .nav-contact:hover { background: var(--text); color: #fff; }
    .header__burger { display: none; width: 28px; height: 16px; position: relative; cursor: pointer; }
    .header__burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text); transition: transform 0.45s var(--ease), opacity 0.3s var(--ease); }
    .header__burger span:nth-child(1) { top: 0; } .header__burger span:nth-child(2) { top: 7px; } .header__burger span:nth-child(3) { top: 14px; }
    .drawer { position: fixed; inset: 0; background: var(--bg); z-index: 90; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease); }
    .drawer.is-open { opacity: 1; visibility: visible; }
    .drawer a { font-size: 16px; font-weight: 500; letter-spacing: 0.14em; padding: 16px 0; opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
    .drawer a .sub { display: block; font-size: 10px; letter-spacing: 0.3em; color: var(--text-soft); margin-top: 4px; }
    .drawer.is-open a { opacity: 1; transform: none; }
    .drawer.is-open a:nth-child(1){transition-delay:.12s} .drawer.is-open a:nth-child(2){transition-delay:.18s} .drawer.is-open a:nth-child(3){transition-delay:.24s} .drawer.is-open a:nth-child(4){transition-delay:.30s} .drawer.is-open a:nth-child(5){transition-delay:.36s}
    body.menu-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.menu-open .header__burger span:nth-child(2) { opacity: 0; }
    body.menu-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ===== DETAIL HERO ===== */
    .detail { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
    .detail-hero { padding: 128px 0 clamp(40px, 5vh, 64px); }
    .detail-back { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.2em; color: var(--text-mid); margin-bottom: clamp(32px, 5vh, 56px); transition: gap 0.4s var(--ease); }
    .detail-back::before { content: ''; width: 22px; height: 1px; background: var(--text-mid); }
    .detail-back:hover { gap: 16px; }
    .detail-hero__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
    .detail-hero__num { font-size: 11px; letter-spacing: 0.28em; color: var(--text-soft); }
    .detail-hero__cat { font-size: 10px; letter-spacing: 0.1em; color: var(--text-mid); background: #ECEBE7; border-radius: 999px; padding: 6px 14px; }
    .detail-hero__title { font-family: "Noto Serif JP", serif; font-weight: 400; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.34; letter-spacing: 0.06em; margin-bottom: 18px; }
    .detail-hero__client { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 500; letter-spacing: 0.06em; }

    /* main visual */
    .detail-main { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-soft); }
    .detail-main img { width: 100%; height: 100%; object-fit: cover; }

    /* ===== OVERVIEW ===== */
    .overview { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(28px, 5vw, 72px); padding: clamp(56px, 8vh, 100px) 0; }
    .overview__label { font-size: 11px; letter-spacing: 0.34em; color: var(--text-soft); }
    .overview__list { display: flex; flex-direction: column; }
    .overview__row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
    .overview__row:last-child { border-bottom: 1px solid var(--line); }
    .overview__dt { font-size: 0.82rem; font-weight: 500; color: var(--text-mid); letter-spacing: 0.08em; }
    .overview__dd { font-size: 0.92rem; font-weight: 300; line-height: 1.9; color: var(--text); }

    /* ===== GALLERY ===== */
    .gallery-sec { padding-bottom: clamp(64px, 9vh, 120px); }
    .gallery-sec__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 4vh, 44px); }
    .gallery-sec__en { font-size: 11px; letter-spacing: 0.34em; color: var(--text-soft); white-space: nowrap; }
    .gallery-sec__line { flex: 1; height: 1px; background: var(--line); }
    .gallery { column-count: 2; column-gap: clamp(14px, 1.6vw, 22px); }
    .gallery__item { width: 100%; margin-bottom: clamp(14px, 1.6vw, 22px); break-inside: avoid; position: relative; overflow: hidden; cursor: pointer; background: var(--bg-soft); }
    .gallery__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
    .gallery__item::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.4s var(--ease); }
    .gallery__item:hover img { transform: scale(1.04); }
    .gallery__item:hover::after { background: rgba(0,0,0,0.05); }
    .gallery__zoom { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); z-index: 1; }
    .gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }
    .gallery__zoom::before, .gallery__zoom::after { content: ''; position: absolute; background: var(--text); }
    .gallery__zoom::before { width: 12px; height: 1px; }
    .gallery__zoom::after { width: 1px; height: 12px; }

    /* ===== LIGHTBOX ===== */
    .lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,15,15,0.92); display: flex; align-items: center; justify-content: center; padding: 5vw; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease); }
    .lightbox.is-open { opacity: 1; visibility: visible; }
    .lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; transform: scale(0.97); transition: transform 0.4s var(--ease); }
    .lightbox.is-open img { transform: none; }
    .lightbox__close { position: absolute; top: 24px; right: 28px; width: 40px; height: 40px; cursor: pointer; }
    .lightbox__close::before, .lightbox__close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 22px; height: 1.5px; background: #fff; }
    .lightbox__close::before { transform: translate(-50%,-50%) rotate(45deg); }
    .lightbox__close::after { transform: translate(-50%,-50%) rotate(-45deg); }

    /* ===== PREV/NEXT + CTA ===== */
    .worknav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(36px, 5vh, 56px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .worknav a, .worknav span { font-size: 12px; letter-spacing: 0.14em; color: var(--text-mid); display: inline-flex; align-items: center; gap: 12px; transition: color 0.4s var(--ease); }
    .worknav a:hover { color: var(--text); }
    .worknav__center { font-size: 11px; letter-spacing: 0.2em; color: var(--text); }

    .cta { padding: clamp(72px, 9vh, 110px) clamp(20px, 5vw, 56px) clamp(80px, 10vh, 120px); text-align: center; }
    .cta-pill { width: fit-content; max-width: 100%; margin: 0 auto; background: var(--text); color: #fff; padding: 15px 15px 15px 38px; border-radius: 999px; display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 52px); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
    .cta-pill:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,0,0,0.20); }
    .cta-pill__en { display: block; font-size: clamp(0.98rem, 1.3vw, 1.2rem); font-weight: 300; letter-spacing: 0.16em; }
    .cta-pill__ja { display: block; font-family: "Noto Serif JP", serif; font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-top: 5px; }
    .cta-pill__circle { width: 46px; height: 46px; border-radius: 50%; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.5s var(--ease); }
    .cta-pill__circle::before { content: ''; width: 8px; height: 8px; border-top: 1px solid var(--text); border-right: 1px solid var(--text); transform: rotate(45deg); }
    .cta-pill:hover .cta-pill__circle { transform: translateX(4px); }

    /* ===== FOOTER ===== */
    .footer { padding: clamp(64px, 9vh, 110px) clamp(20px, 5vw, 56px) 36px; border-top: 1px solid var(--line); }
    .footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; padding-bottom: clamp(40px, 6vh, 72px); border-bottom: 1px solid var(--line); }
    .footer__logo img { height: 22px; width: auto; }
    .footer__tagline { font-size: 11px; letter-spacing: 0.2em; color: var(--text-soft); margin-top: 18px; }
    .footer__nav { display: flex; flex-wrap: wrap; gap: 14px 40px; }
    .footer__nav a { font-size: 12.5px; font-weight: 400; letter-spacing: 0.08em; color: var(--text-mid); transition: color 0.4s var(--ease); }
    .footer__nav a:hover { color: var(--text); }
    .footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; }
    .footer__copy { font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-soft); }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 900px) { .overview { grid-template-columns: 1fr; gap: 18px; } }
    @media (max-width: 768px) {
      .header__nav { display: none; }
      .header__burger { display: block; z-index: 110; }
      .detail-main { aspect-ratio: 16 / 10; }
      .overview__row { grid-template-columns: 110px 1fr; gap: 14px; }
      .footer__top { flex-direction: column; gap: 28px; }
    }
    @media (max-width: 560px) { .gallery { column-count: 1; } }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
      .reveal { opacity: 1; transform: none; }
    }