main {
    padding-top: 82px;
}

/* ===== page head ===== */
.page-hero {
    padding: 64px 0 40px;
    background: linear-gradient(180deg, #fff 0%, #fff7f3 100%);
    border-bottom: 1px solid #f1f1f1;
}
.eyebrow {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    color: #888;
}
.page-hero h1 {
    margin: 0.2em 0 0.1em;
    line-height: 1.2;
    font-size: clamp(28px, 4.2vw, 44px);
}
.lead {
    color: #444;
    max-width: 70ch;
}

/* ===== achievements (3列カード + hover overlay) ===== */
.achv-container {
    width: 94.15vw;
}
.achv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) {
    .achv-grid {
        grid-template-columns: 1fr;
    }
}
.achv-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    transform: translateZ(0);
}

.achv-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.achv-card.show {
  opacity: 1;
  transform: none;
}

.achv-thumb {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}


.achv-card::after {
    /* 黒レイヤーを中央から上下に “伸ばす” */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    transform: scaleY(0); /* 最初は見えない */
    transform-origin: 50% 50%; /* 中央から上下に広がる */
    transition: transform 0.36s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
    pointer-events: none;
    z-index: 1; /* タイトルの下に配置 */
}

.achv-title {
    position: absolute;
    inset: auto 16px 14px 16px;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.28s ease 0.06s, transform 0.28s ease 0.06s; /* 少し遅れて出現 */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    z-index: 2; /* レイヤーより上 */
}

.achv-card:hover .achv-thumb {
    transform: scale(1.04);
}
.achv-card:hover::after {
    transform: scaleY(1);
} /* 全面を覆う */
.achv-card:hover .achv-title {
    opacity: 1;
    transform: none;
}

/* --- Mobile/Tablet: 1タップでプレビュー表示（.peek） --- */
.achv-card.peek::after {
    transform: scaleY(1);
}
.achv-card.peek .achv-title {
    opacity: 1;
    transform: none;
}
.achv-card.peek .achv-thumb {
    transform: scale(1.04);
}

/* hoverを使えない環境では :hover 表示を無効化（誤作動防止） */
@media (hover: none), (max-width: 980px) {
    /* .achv-card:hover::after {
        transform: scaleY(0);
    }
    .achv-card:hover .achv-title {
        opacity: 0;
        transform: translateY(6px);
    }
    .achv-card:hover .achv-thumb {
        transform: none;
    } */
}

/* 低モーション環境に配慮（任意） */
@media (prefers-reduced-motion: reduce) {
    .achv-thumb {
        transition: none;
    }
    .achv-card::after {
        transition: none;
    }
    .achv-title {
        transition: none;
    }
}

/* ===== client logos strip ===== */
.clients {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.04);
}
.clients h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}
.client-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: center;
}
.client {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    place-items: center;
}
.client img {
    max-height: 34px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.9;
}
@media (max-width: 980px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* single */
.work-hero {
    position: relative;
    height: calc(100vh - 82px);
    background: #000;
    overflow: hidden;
}
.work-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    filter: brightness(0.6);
    animation: zoomOut 1.7s 0.1s ease forwards;
}
@keyframes zoomOut {
    to {
        transform: scale(1);
        filter: brightness(1);
    }
}
.work-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    color: #fff;
}
.work-hero__meta {
    max-width: 70%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.9) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1em 4em;
}
.hashtags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.hashtags span {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
}
.work-hero__title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin: 0;
}
.visit-link {
    margin-left: auto;
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    padding: 0.5em 1em;
    font-weight: 700;
    color: #fff;
}
.back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(75, 75, 75, 0.6);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    text-decoration: none;
}
.back-btn:hover {
    background: var(--accent-2);
}
.back-btn__link {
    color: #fff;
}
.back-btn svg {
    vertical-align: middle;
    margin-right: 6px;
    fill: #fff;
    width: 16px;
    height: 16px;
}
@media (max-width: 680px) {
    .work-hero .work-fv__thumbnail {
        height: calc(90vh - 82px);
    }
    .work-hero__meta {
        max-width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 0.5em;
    }
    .visit-link {
        position: absolute;
        bottom: 10vh;
        right: 0;
    }
}

