@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
    --color-bg: #f5f5f7;
    --color-surface: #ffffff;
    --color-text-main: #1a1a1a;
    --color-text-sub: #4b5563;
    --color-accent: #d2a654;
    --color-accent-hover: #b69249;
    --font-main: "Inter", "Noto Sans JP", sans-serif;
    --section-spacing: clamp(80px, 10vw, 160px);
    --container-width: 1200px;
    --header-height: 80px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out-expo);
}

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

ul,
ol {
    list-style: none;
}

iframe {
    width: 100%;
    max-width: 100%;
    border: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

.sp-only {
    display: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 80px);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 20px auto 0px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0px auto;
    padding: 0px 24px;
}

.container.is-narrow {
    max-width: 800px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: medium;
}

.btn-primary {
    background-color: var(--color-accent-hover);
    color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 0%;
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.4s var(--ease-out-expo);
    z-index: -1;
}

.btn-primary:hover,
.btn-primary:active {
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 30px;
}

.btn-primary:hover::before,
.btn-primary:active::before {
    width: 100%;
}

.btn-submit {
    background-color: var(--color-accent);
    color: rgb(255, 255, 255);
    width: 100%;
    padding: 18px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 99px;
    cursor: pointer;
    transition: 0.3s;
    border: medium;
    display: block;
    text-align: center;
}

.btn-submit:hover,
.btn-submit:active {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: rgba(197, 160, 89, 0.3) 0px 10px 20px;
}

.pagelink {
    text-decoration: underline;
    color: var(--color-accent);
    font-weight: 500;
}

header {
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 1000;
    padding: 20px 0px;
    transition: all 0.3s var(--ease-out-expo);
}

header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: height 0.3s;
}

header.is-scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0px;
    height: 1px;
    bottom: -4px;
    left: 0px;
    background-color: var(--color-accent);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a:active::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: medium;
    padding: 10px;
    z-index: 2000;
    position: relative;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-text-main);
    margin-bottom: 6px;
    transition: 0.3s;
}

.page-header {
    padding: 120px 0px 40px;
    background-color: var(--color-bg);
    color: rgb(0, 0, 0);
    text-align: center;
    margin-bottom: 0px;
}

.page-header.is-black {
    background-color: rgb(17, 17, 17);
    color: rgb(255, 255, 255);
}

.page-header.is-black .page-title {
    color: rgb(255, 255, 255);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    color: rgb(156, 163, 175);
    font-size: 1rem;
    opacity: 0.9;
}

.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
}

.hero-bg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: 20s infinite alternate zoomOut;
}

.hero-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0px 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: rgba(0, 0, 0, 0.3) 0px 10px 30px;
    color: rgb(255, 255, 255);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 48px;
    opacity: 0.9;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.scroll-down {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgb(255, 255, 255);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .scroll-down {
        bottom: 140px;
    }
}

.scroll-down-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
    animation: 2s infinite scrollLine;
}

.hero-circle-badge {
    position: absolute;
    bottom: -100px;
    right: 50px;
    z-index: 5;
    width: 400px;
    height: 400px;
    pointer-events: none;
}

.circle-text-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-text-wrapper svg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    animation: 30s linear infinite rotateCircle;
}

.circle-center-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    opacity: 0.9;
}

@keyframes rotateCircle {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: center top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: center top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: center bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: center bottom;
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

section,
.content-section {
    padding: var(--section-spacing) 0;
    background-color: rgb(255, 255, 255);
}

.content-section {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.03) 0px 4px 20px;
    padding: 60px 40px;
    margin-bottom: 60px;
}

.content-section h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.5rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 16px;
    margin: 40px 0px 24px;
}

.profile {
    background-color: var(--color-surface);
}

.profile-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
}

.profile-img {
    width: 85%;
    aspect-ratio: 1 / 1;
    border-radius: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 25px;
    background-color: rgb(238, 238, 238);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.profile-card:hover .profile-img img,
.profile-card:active .profile-img img {
    transform: scale(1.05);
}

.profile-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.profile-role {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-text p {
    color: var(--color-text-sub);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tag {
    font-size: 0.8rem;
    padding: 6px 16px;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 99px;
    color: var(--color-text-sub);
    transition: 0.3s;
}

.tag:hover,
.tag:active {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.profile-section {
    padding: 80px 0px;
    background-color: var(--color-surface);
}

.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.profile-image-large {
    width: 100%;
}

.profile-image-large img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 25px;
}

.bio-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-accent);
    padding-left: 15px;
    line-height: 1.4;
}

.bio-text p {
    margin-bottom: 24px;
    color: var(--color-text-sub);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 2px;
    background: rgb(229, 231, 235);
}

.timeline-item {
    padding-left: 40px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid rgb(255, 255, 255);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-year {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.work {
    background-color: var(--color-bg);
}

.work-grid,
.work-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 55px;
}

@media (min-width: 900px) {
    .work-grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.work-card,
.work-item {
    background-color: rgb(51, 51, 51);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 6px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.work-card:hover,
.work-item:hover,
.work-card:active,
.work-item:active {
    transform: translateY(-8px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 40px;
}

.work-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: rgb(229, 229, 229);
    position: relative;
    overflow: hidden;
    border-radius: 0px;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.work-card:hover .work-thumb img,
.work-item:hover .work-thumb img,
.work-card:active .work-thumb img,
.work-item:active .work-thumb img {
    transform: scale(1.08);
}

.work-slider .work-item:hover,
.work-slider .work-item:active {
    transform: none;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 6px;
}

.work-slider .work-item:hover .work-thumb img,
.work-slider .work-item:active .work-thumb img {
    transform: none;
}

.work-slider .work-item:hover .work-title,
.work-slider .work-item:active .work-title {
    color: inherit;
}

.work-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--color-text-main);
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    z-index: 2;
}

.work-info,
.work-content {
    padding: 24px;
    flex-grow: 1;
}

.work-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.work-card:hover .work-title,
.work-card:active .work-title {
    color: var(--color-accent);
}

.work-desc {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

.work-type {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.work-client {
    font-size: 0.85rem;
    color: rgb(102, 102, 102);
    margin-bottom: 10px;
    display: block;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.client-tag {
    background: rgb(255, 255, 255);
    border: 1px solid rgb(221, 221, 221);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

.category-title {
    font-size: 1.5rem;
    margin: 60px 0px 30px;
    padding-bottom: 15px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(238, 238, 238);
}



.flow-list {
    counter-reset: flow-counter 0;
    list-style: none;
    margin: 40px 0px;
}

.flow-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.flow-list li::before {
    counter-increment: flow-counter 1;
    content: counter(flow-counter);
    position: absolute;
    left: 0px;
    top: 0px;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: rgb(255, 255, 255);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    font-size: 0.9rem;
}

.flow-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.note-box {
    background: rgb(255, 248, 225);
    border: 1px solid rgb(255, 224, 130);
    padding: 24px;
    border-radius: 8px;
    color: rgb(133, 100, 4);
    margin: 30px 0px;
}

.company-section {
    padding: 60px 0px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.info-table th,
.info-table td {
    padding: 20px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(238, 238, 238);
    text-align: left;
}

.info-table th {
    width: 30%;
    font-weight: 700;
    color: var(--color-text-main);
    background-color: rgb(249, 250, 251);
}

.info-table td {
    color: var(--color-text-sub);
}

.company-map {
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 10px;
}

.contact-form {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.required {
    color: rgb(239, 68, 68);
    margin-left: 6px;
    font-size: 0.8rem;
    background: rgb(254, 226, 226);
    padding: 2px 8px;
    border-radius: 4px;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 16px;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    background: rgb(249, 250, 251);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: currentcolor;
    border-color: var(--color-accent);
    background: rgb(255, 255, 255);
    box-shadow: rgba(197, 160, 89, 0.15) 0px 0px 0px 4px;
}

textarea {
    height: 200px;
    resize: vertical;
}

.confirm-box {
    background: rgb(255, 255, 255);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 50px;
    border: 1px solid rgb(229, 231, 235);
    box-shadow: rgba(0, 0, 0, 0.02) 0px 4px 6px;
}

.confirm-item {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(243, 244, 246);
}

.work {
    background-color: rgb(17, 17, 17);
    color: rgb(255, 255, 255);
    padding-top: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(60px, 8vw, 100px);
}

.work-title {
    color: rgb(255, 255, 255);
}

.work-desc {
    color: rgba(255, 255, 255, 0.8);
}

.social {
    background-color: var(--color-bg);
    color: var(--color-text);
    text-align: center;
    padding: clamp(60px, 8vw, 100px) 0px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.social-icon {
    font-size: 2rem;
    color: var(--color-text-light);
    transition: 0.3s;
}

.social-icon:hover,
.social-icon:active {
    color: var(--color-primary);
    transform: scale(1.1);
}

.section-separator {
    position: relative;
    width: 100%;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    line-height: 0;
    height: 120px;
    margin-top: -119px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.section-separator::before,
.section-separator::after {
    content: "";
    display: block;
    flex-grow: 1;
    flex-basis: 0px;
    height: 60%;
    background-color: var(--color-surface);
}

.section-separator svg {
    display: block;
    width: 1100px;
    max-width: 140%;
    height: 100%;
    flex-shrink: 0;
    margin-left: -1px;
    margin-right: -1px;
}

.separator-shoulder,
.separator-center {
    display: none;
}

@media (max-width: 768px) {
    .section-separator {
        height: 60px;
        margin-top: -59px;
    }
}

.film-separator {
    height: 40px;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='40' viewBox='0 0 30 40'%3E%3Cpath fill='%23111111' fill-rule='evenodd' d='M0,0H30V40H0Z M8,10a2,2 0 0,0-2,2v16a2,2 0 0,0 2,2h14a2,2 0 0,0 2-2V12a2,2 0 0,0-2-2Z'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center top;
    margin-top: -1px;
    position: relative;
    z-index: 10;
}

footer {
    background-color: rgb(10, 10, 10);
    color: rgb(156, 163, 175);
    padding: 80px 0px 40px;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgb(34, 34, 34);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a:hover,
.footer-links a:active {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgb(34, 34, 34);
    padding-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s var(--ease-out-expo), transform 1.5s var(--ease-out-expo);
    will-change: opacity, transform;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0px);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgb(255, 255, 255);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s var(--ease-out-expo);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0px;
        opacity: 1;
        visibility: visible;
    }

    .hamburger.active span {
        background-color: var(--color-text-main);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .profile-img {
        max-width: 200px;
        margin: 0px auto;
    }

    .profile-tags {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .btn,
    .btn-submit {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        background: none;
        padding-bottom: 5px;
        color: var(--color-accent);
    }

    .info-table td {
        padding-top: 0px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-image-large {
        max-width: 400px;
        margin: 0px auto;
    }

    .hero-circle-badge {
        width: 200px;
        height: 200px;
        bottom: -50px;
        right: -50px;
    }

    .work-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .work-grid::-webkit-scrollbar {
        height: 8px;
    }

    .work-grid::-webkit-scrollbar-track {
        background: none;
    }

    .work-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.12);
        border-radius: 4px;
    }

    .work-card {
        min-width: 280px;
        flex: 0 0 85%;
    }

    .work-card .work-info {
        padding: 18px;
    }

    .sp-only {
        display: inline;
    }

    .work-card.fade-in-up {
        opacity: 1;
        transform: translateY(0px);
        transition: none;
    }
}

.is-white {
    color: rgb(234, 234, 234);
}

.profile {
    padding-top: clamp(15px, 4vw, 50px);
    padding-bottom: clamp(40px, 5vw, 80px);
}

.work {
    padding-top: clamp(40px, 5vw, 80px);
}

.film-top {
    margin-top: 0px;
    margin-bottom: -1px;
}

.ticket-separator {
    height: 40px;
    width: 100%;
    position: relative;
    background: rgb(255, 255, 255);
}

.ticket-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, rgb(204, 204, 204) 50%, transparent 50%);
    background-size: 20px 100%;
    transform: translateY(-50%);
}

.ticket-separator::before {
    content: "";
    position: absolute;
    top: 53%;
    left: 70%;
    transform: translate(-50%, -50%) rotate(181deg);
    width: 70px;
    height: 55px;
    clip-path: polygon(0% 0%, 25% 40%, 50% 0%, 75% 40%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
    filter: drop-shadow(rgba(0, 0, 0, 0.1) 1px 1px 1px);
    background-color: var(--color-bg);
}

.work-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
}

.work-slider .work-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    max-width: 600px;
    margin: 0px auto;
}

.work-slider::-webkit-scrollbar {
    height: 8px;
}

.work-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0px auto;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: medium;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text-main);
    z-index: 10;
    transition: 0.3s;
}

.slider-nav:hover {
    background-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: -24px;
}

.slider-nav.next {
    right: -24px;
}

@media (max-width: 768px) {
    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }
}

.profile-section .work-item {
    background-color: rgb(255, 255, 255);
    color: rgb(51, 51, 51);
    border: 1px solid rgb(238, 238, 238);
}

.profile-section .work-item .work-title {
    color: rgb(17, 17, 17);
}

.profile-section .work-item .work-desc {
    color: rgb(102, 102, 102);
}

.tv-wrapper {
    position: relative;
    max-width: 960px;
    margin: 80px auto 40px;
    padding-top: 40px;
}

.tv-antenna {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}

.antenna-rod {
    width: 5px;
    height: 80px;
    background-color: rgb(93, 64, 55);
    position: absolute;
    bottom: 0px;
    border-radius: 4px;
    transform-origin: center bottom;
}

.antenna-rod.left {
    left: 50%;
    transform: rotate(-35deg);
}

.antenna-rod.right {
    left: 50%;
    transform: rotate(35deg);
}

.antenna-base {
    width: 40px;
    height: 20px;
    background-color: rgb(78, 52, 46);
    border-radius: 50% 50% 0px 0px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.tv-body {
    background-color: rgb(196, 84, 44);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.02) 10px, rgba(0, 0, 0, 0.02) 20px);
    border-radius: 30px;
    padding: 30px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 50px, rgba(0, 0, 0, 0.1) 0px 0px 60px inset, rgba(255, 255, 255, 0.2) 2px 2px 5px inset;
    border: 6px solid rgb(93, 64, 55);
    display: flex;
    align-items: stretch;
    gap: 20px;
    position: relative;
    transition: transform 0.3s;
}

.tv-body:hover {
    transform: translateY(-2px);
}

.tv-screen-frame {
    flex: 1 1 0%;
    background-color: rgb(34, 34, 34);
    border-radius: 20px;
    padding: 15px;
    box-shadow: rgba(0, 0, 0, 0.8) 0px 0px 10px inset;
    min-width: 0px;
}

.tv-screen-content {
    background-color: rgb(252, 252, 252);
    border-radius: 12px;
    height: 100%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 40px inset;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    padding: 30px;
}

.tv-content-upper {
    flex: 1 1 0%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.media-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding: 0px 40px;
}

.media-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.media-slider::-webkit-scrollbar {
    display: none;
}

.media-slider .work-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    margin: 0px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 5px;
}

@media (min-width: 768px) {
    .media-slider .work-item {
        flex: 0 0 calc(50% - 10px);
    }
}

.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    color: rgb(85, 85, 85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: medium;
    transition: 0.3s;
    z-index: 5;
}

.media-nav:hover {
    background: var(--color-accent);
    color: rgb(255, 255, 255);
}

.media-nav.prev {
    left: 0px;
}

.media-nav.next {
    right: 0px;
}

.client-list-fixed {
    margin-top: 20px;
    padding-top: 20px;
    border-top-width: 2px;
    border-top-style: dashed;
    border-top-color: rgb(224, 224, 224);
    text-align: center;
}

.client-list-fixed p {
    font-size: 0.85rem;
    color: rgb(136, 136, 136);
    margin-bottom: 10px;
    font-weight: 700;
}

.client-list-fixed .client-list {
    justify-content: center;
    gap: 8px;
    margin: 0px;
}

.client-list-fixed .client-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgb(240, 240, 240);
    border: medium;
}

.tv-controls {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-shrink: 0;
    padding: 20px 0px;
}

.tv-dial {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgb(215, 204, 200);
    border: 4px solid rgb(161, 136, 127);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(93, 64, 55);
    font-size: 1.5rem;
}

.tv-dial::after {
    display: none;
}

.tv-dial:hover {
    transform: scale(0.95);
    background-color: rgb(215, 204, 200);
    border-color: rgb(141, 110, 99);
}

.tv-dial:active {
    transform: scale(0.9);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px inset;
}

.tv-speaker {
    width: 70px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speaker-hole {
    width: 100%;
    height: 6px;
    background-color: rgb(62, 39, 35);
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 2px inset;
    opacity: 0.6;
}

.tv-legs {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 600px;
    margin: 0px auto;
}

.tv-leg {
    width: 30px;
    height: 40px;
    background-color: rgb(93, 64, 55);
    transform: skewX(-10deg);
    border-radius: 0px 0px 10px 10px;
    margin-top: -5px;
}

.tv-leg.right {
    transform: skewX(10deg);
}

@media (max-width: 900px) {
    .tv-body {
        flex-direction: column;
        padding: 20px;
        gap: 0px;
    }

    .tv-screen-frame {
        margin-bottom: 20px;
    }

    .tv-controls {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 10px 0px 0px;
        justify-content: center;
        gap: 40px;
    }

    .tv-dial {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .tv-speaker {
        display: none;
    }

    .tv-screen-content {
        padding: 20px 10px;
    }

    .media-slider .work-item {
        flex: 0 0 100%;
    }

    .media-nav {
        display: none !important;
    }

    .media-slider-wrapper {
        padding: 0px;
    }

    .client-list-fixed .client-tag {
        font-size: 0.5rem;
        padding: 4px;
    }

    .tv-content-upper .section-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .work-info,
    .work-content {
        padding: 10px;
    }

    .client-list-fixed {
        margin-top: 10px;
        padding-top: 10px;
    }

    .tv-content-upper {
        max-height: 285px;
    }
}

/* =========================================
   B2B TIE-UP PAGE STYLES (Updated V2)
   ========================================= */

/* B2B Hero Section */
.b2b-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-image: url('img/WorkArchive_DeskSetUp.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 追加: 左右中央寄せ */
    margin-top: -80px;
    /* Header分ネガティブマージン */
    padding-top: 80px;
}

.b2b-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.b2b-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    /* 追加: テキストとボタンを中央揃え */
    margin: 0 auto;
    /* 追加: コンテナ自体を中央へ */
}

.hero-label {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.b2b-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: #fff;
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Metrics Strip */
.metrics-strip {
    background: #111;
    color: #fff;
    padding: 40px 0;
    margin-top: -60px;
    /* Heroに重ねる */
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-item:last-child {
    border-right: none;
}

.metric-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
}

.metric-value .unit {
    font-size: 1rem;
    color: #fff;
    margin-left: 4px;
}

/* Trust Section */
.section-trust {
    padding: 80px 0 40px;
    text-align: center;
}

.section-title-sm {
    font-size: 1rem;
    color: var(--color-text-sub);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.client-logos-img {
    margin: 0 auto;
    max-width: 100%;
    /* 修正: 最初からカラー表示 */
    opacity: 1;
    filter: none;
    transition: 0.3s;
}

.client-logos-img:hover {
    opacity: 0.9;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-accent);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--color-bg);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Menu Grid */
.bg-gray {
    background-color: #f9fafb;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.menu-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

.menu-header {
    background: #111;
    color: #fff;
    padding: 20px 30px;
}

.menu-header h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.menu-header span {
    font-size: 0.85rem;
    opacity: 0.8;
    color: var(--color-accent);
}

.menu-body {
    padding: 30px;
}

.check-list {
    margin-top: 20px;
}

.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Flow Steps */
.flow-steps {
    display: grid;
    /* 修正: 5ステップ用レイアウト */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.flow-step {
    position: relative;
    text-align: center;
    padding: 10px;
}

.flow-step::after {
    content: '\f054';
    /* arrow right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -12px;
    top: 30%;
    color: #ddd;
    font-size: 1.2rem;
}

.flow-step:last-child::after {
    display: none;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f3f4f6;
    line-height: 1;
    margin-bottom: -15px;
    position: relative;
    z-index: 1;
}

.flow-step h4 {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    margin-bottom: 10px;
}

.flow-step p {
    font-size: 0.85rem;
    color: var(--color-text-sub);
}

/* CTA Section */
.section-cta {
    padding: 80px 0;
    background: #fff;
}

.policy-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #856404;
    margin-bottom: 60px;
}

.policy-box h5 {
    color: #856404;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-wrapper {
    text-align: center;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    padding: 60px 40px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-wrapper h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-wrapper p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 20px 60px;
    font-size: 1.2rem;
}

.cta-note {
    font-size: 0.85rem !important;
    margin-top: 20px;
    margin-bottom: 0 !important;
    opacity: 0.6;
}

/* Responsive Tweaks */
@media (max-width: 900px) {
    .flow-steps {
        grid-template-columns: repeat(3, 1fr);
        /* 中画面で3列 */
        gap: 30px;
    }

    .flow-step:nth-child(3)::after {
        display: none;
        /* 3つ目で折り返し */
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .metric-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 15px 0;
    }

    .flow-steps {
        grid-template-columns: 1fr;
        /* スマホで1列 */
        gap: 40px;
    }

    .flow-step::after {
        content: '\f078';
        /* arrow down */
        right: 50%;
        top: auto;
        bottom: -30px;
        transform: translateX(50%);
    }

    .flow-step:nth-child(3)::after {
        display: block;
        /* 復活 */
    }

    .flow-step:last-child::after {
        display: none;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .b2b-hero {
        height: auto;
        padding: 200px 0 80px;
        text-align: center;
    }

    .b2b-hero-content {
        margin: 0 auto;
    }
}

/* =========================================
   Secondary Button (For Tie-up Page)
   ========================================= */
.btn-secondary {
    background-color: #ffffff;
    color: var(--color-text-main);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* WORK PAGE MODERN STYLES */

/* Filters */
.work-filter-container {
    padding-bottom: 40px;
    text-align: center;
}

.work-filters {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-sub);
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Modern Grid */
.bg-dark {
    background-color: #111;
    color: #fff;
    padding: 60px 0;
}

.work-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.work-card-modern {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

/* Filter Animation Classes */
.work-card-modern.hide {
    display: none;
    /* Simple toggle, or use opacity/transform for animation */
}

.work-card-modern.show {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-card-thumb {
    width: 100%;
    height: 100%;
    position: relative;
}

.work-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Effect: Zoom & Overlay */
.work-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.work-card-modern:hover .work-card-thumb img {
    transform: scale(1.1);
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Always show overlay title on SP, or show on hover for PC */
.work-card-modern:hover .work-card-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .work-card-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    }
}

.work-cat-label {
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.work-card-overlay h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.work-card-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.client-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

/* =========================================
   WORK PAGE FIXED STYLES (Grid & Overlay)
   ========================================= */

/* Filter Buttons */
.work-filter-container {
    padding-bottom: 40px;
    text-align: center;
}

.work-filters {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-sub);
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* =========================================
   WORK PAGE FIXED STYLES (Grid & Overlay)
   ========================================= */

/* Filter Buttons */
.work-filter-container {
    padding-bottom: 40px;
    text-align: center;
}

.work-filters {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-sub);
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Other Work Grid & Items (Consolidated) */
.otherwork-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);

    /* Scrollable Box Style */
    overflow-y: auto;
    max-height: 850px;
    /* Approx 4 rows */
    border: 1px solid #e5e7eb;
    background-color: #fafafa;
    padding: 20px;
    border-radius: 12px;
}

/* Scrollbar Customization */
.otherwork-grid::-webkit-scrollbar {
    width: 8px;
}

.otherwork-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.otherwork-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.otherwork-grid::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.otherwork-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio Hack */
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: block;
    cursor: pointer;
}

.otherwork-item:hover {
    transform: translateY(-5px);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.otherwork-item:hover .otherwork-thumb img {
    transform: scale(1.08);
    /* slight zoom */
}

@media (max-width: 900px) {
    .otherwork-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .otherwork-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 380px;
    }
}

/* Image Wrapper Fix (Absolute Positioning) */
/* Image Wrapper Fix (Absolute Positioning) */
.otherwork-thumb {
    position: absolute;
    /* 親要素に合わせて強制配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.otherwork-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 枠いっぱいにトリミングして表示 */
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}