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

[hidden] {
    display: none !important;
}

:root {
    --surface: rgba(255, 255, 255, 0.7);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --surface-soft: rgba(247, 242, 232, 0.78);
    --text: #203040;
    --muted: #596a7c;
    --line: rgba(133, 111, 85, 0.16);
    --primary: #4a84c3;
    --primary-dark: #27588a;
    --accent: #f4c97d;
    --shadow: 0 24px 60px rgba(77, 90, 103, 0.13);
    --shadow-soft: 0 16px 36px rgba(77, 90, 103, 0.09);
    --radius-lg: 32px;
    --radius-md: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Yu Gothic UI", "Hiragino Sans", "Yu Gothic", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 22%),
        radial-gradient(circle at 84% 12%, rgba(224, 239, 250, 0.5), transparent 24%),
        radial-gradient(circle at 8% 42%, rgba(246, 232, 206, 0.42), transparent 24%),
        linear-gradient(180deg, #f1f7fc 0%, #edf4f8 38%, #f8f6f1 100%);
    line-height: 1.75;
}

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

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

.profile-card p a,
.work-entry-client a,
.work-entry-content h3 a {
    text-decoration: underline;
    text-decoration-color: rgba(74, 132, 195, 0.28);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.profile-card p a:hover,
.profile-card p a:focus-visible,
.work-entry-client a:hover,
.work-entry-client a:focus-visible,
.work-entry-content h3 a:hover,
.work-entry-content h3 a:focus-visible {
    color: var(--primary-dark);
    text-decoration-color: currentColor;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(90deg, rgba(250, 252, 253, 0.94), rgba(226, 236, 244, 0.88) 48%, rgba(249, 251, 252, 0.92));
    border-bottom: 1px solid rgba(150, 170, 188, 0.24);
    box-shadow: 0 10px 28px rgba(70, 86, 102, 0.08);
}

.header-inner,
.section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.site-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5ch;
    font-weight: 700;
}

.site-logo-main {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.site-logo-sub {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.12em;
}

.global-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.global-nav a {
    position: relative;
    font-weight: 600;
    color: var(--muted);
}

.global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
    transform: scaleX(1);
}

main {
    padding: 36px 0 88px;
}

.section {
    padding: 46px 0;
}

.section-heading {
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    line-height: 1.25;
}

.section-heading h1 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    max-width: 12em;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    max-width: 14em;
}

.hero-card,
.profile-card,
.video-card,
.work-entry {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero-visual {
    position: relative;
    min-height: 0;
    isolation: isolate;
    overflow: hidden;
    background: #f0dfc5;
}

/*
.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(250, 239, 214, 0.28) 0%, rgba(246, 226, 190, 0.18) 45%, rgba(255, 255, 255, 0.02) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(255, 248, 236, 0.18) 100%);
}
*/

.hero-visual img {
    width: 100%;
    height: auto;
    background: #f0dfc5;
}

.profile-layout {
    padding: 34px;
}

.profile-row1 {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding: 8px 0 4px;
}

.left-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 8px 8px 8px 0;
}

.group-icon {
    display: grid;
    place-items: center;
    width: 120px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #dff0ff, #94c7f2);
    box-shadow: 0 18px 34px rgba(72, 119, 170, 0.22);
}

.group-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(50, 83, 122, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 28px rgba(50, 83, 122, 0.16);
}

.icon-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.icon-link-x {
    background: #111;
    color: #fff;
}

.group-copy p {
    margin: 0;
}

.group-copy {
    padding: 4px 0;
    text-align: left;
}

.group-description {
    margin-top: 6px;
    max-width: 78ch;
    font-size: 1rem;
    text-align: left;
}

.group-lead {
    line-height: 1.9;
}

.group-genre-block {
    margin-top: 18px;
}

.group-genre-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.group-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 10px;
}

.group-genres span {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 13px;
    color: #31475c;
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.group-genres span::before {
    content: "";
    position: absolute;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(74, 132, 195, 0.55);
}

.profile-panel {
    margin-top: 34px;
}

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

.profile-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(153, 184, 213, 0.32);
    border-radius: 26px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.9), transparent 18%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 246, 255, 0.82));
    box-shadow: 0 16px 34px rgba(39, 77, 116, 0.1);
}

.profile-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -46px;
    right: -36px;
    width: 132px;
    height: 132px;
    border-radius: 999px;
    background: rgba(126, 187, 238, 0.22);
}

#memberA {
    border-color: rgba(236, 217, 42, 0.24);
    background:
        radial-gradient(circle at 90% 14%, rgba(255, 238, 42, 0.28), transparent 20%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.9));
}

#memberB {
    border-color: rgba(86, 178, 236, 0.24);
    background:
        radial-gradient(circle at 90% 14%, rgba(92, 199, 255, 0.26), transparent 20%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.9));
}

#memberA::before {
    background: rgba(255, 238, 42, 0.2);
}

#memberB::before {
    background: rgba(92, 199, 255, 0.18);
}

.profile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    min-height: 52px;
}

.member-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.member-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 22px rgba(39, 77, 116, 0.12);
    object-fit: cover;
}

#memberA .member-avatar {
    box-shadow:
        0 0 0 6px rgba(255, 238, 42, 0.52),
        0 12px 24px rgba(132, 94, 32, 0.12);
}

#memberB .member-avatar {
    box-shadow:
        0 0 0 6px rgba(92, 199, 255, 0.48),
        0 12px 24px rgba(54, 96, 132, 0.12);
}

.profile-heading h3 {
    min-width: 0;
    font-size: 1.28rem;
    letter-spacing: 0.04em;
}

.member-name-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.38em;
    min-width: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.member-name {
    white-space: nowrap;
}

.member-name-link:hover,
.member-name-link:focus-visible {
    color: var(--primary-dark);
}

.member-reading {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    vertical-align: middle;
}

.member-button-slot {
    display: inline-flex;
    align-items: center;
}

.member-social-link {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.member-social-link svg {
    width: 20px;
    height: 20px;
}

.profile-card h3,
.video-body h3,
.work-entry-body h3 {
    margin: 0;
}

.profile-role {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.86rem;
}

.profile-card p,
.video-body p,
.work-entry-body p {
    margin: 0;
    color: var(--muted);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 34px 22px;
}

.content-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: -4px 0 26px;
}

.content-filter-button {
    padding: 7px 13px;
    border: 1px solid rgba(74, 132, 195, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.content-filter-button:hover,
.content-filter-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(74, 132, 195, 0.32);
    background: rgba(255, 255, 255, 0.82);
}

.content-filter-button.is-active {
    border-color: rgba(39, 88, 138, 0.2);
    background: var(--primary-dark);
    color: #fff;
}

.content-filter-button-all {
    border-color: rgba(74, 132, 195, 0.18);
    background: rgba(255, 255, 255, 0.56);
    color: var(--primary-dark);
    box-shadow: none;
}

.content-filter-button-all.is-active {
    border-color: rgba(215, 105, 45, 0.38);
    background: linear-gradient(135deg, #e0643a, #f0a64f);
    color: #fff;
    box-shadow: 0 10px 20px rgba(214, 103, 45, 0.2);
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 28%),
        linear-gradient(135deg, #b8d9f6, #7fb1dd);
    box-shadow: 0 12px 22px rgba(34, 62, 90, 0.14);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-thumb-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.video-thumb-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.video-thumb-link:hover img {
    transform: scale(1.04);
    filter: saturate(1.04) brightness(1.02);
}

.video-platform-badge {
    position: absolute;
    z-index: 1;
    top: 9px;
    right: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(25, 29, 34, 0.7);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.video-body {
    padding: 10px 2px 0;
}

.video-body h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #182a3b;
    font-size: clamp(1rem, 1.24vw, 1.16rem);
    line-height: 1.35;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.video-tags span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(74, 132, 195, 0.1);
    color: var(--primary-dark);
    font-size: 0.76rem;
    line-height: 1.4;
}

.video-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    padding-top: 0;
}

.video-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 11px;
    border: 1px solid rgba(39, 88, 138, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--primary-dark);
    box-shadow: 0 8px 16px rgba(39, 88, 138, 0.1);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.video-links a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.video-links a:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 12px 20px rgba(39, 88, 138, 0.16);
}

.section-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.section-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid rgba(120, 164, 205, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 20px rgba(50, 83, 122, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.section-more-button:hover,
.section-more-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(50, 83, 122, 0.14);
    background: rgba(255, 255, 255, 0.95);
}

.works-list {
    display: grid;
}

.works-scroll {
    position: relative;
    max-height: min(68vh, 620px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(73, 113, 154, 0.42) rgba(255, 255, 255, 0.45);
}

.works-scroll::-webkit-scrollbar {
    width: 10px;
}

.works-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.works-scroll::-webkit-scrollbar-thumb {
    background: rgba(73, 113, 154, 0.36);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.works-mobile-more {
    display: none;
}

.works-list-hybrid {
    gap: 4px;
    border: 1px solid rgba(126, 154, 184, 0.32);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(126, 154, 184, 0.32);
}

.work-entry {
    overflow: hidden;
}

.work-entry-hybrid {
    padding: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.work-entry-grid {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.work-entry-client-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-right: 1px solid rgba(126, 154, 184, 0.32);
    background: rgba(247, 251, 255, 0.76);
}

.work-entry-client {
    margin: 0;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.work-entry-client a {
    color: inherit;
}

.work-entry-content {
    min-width: 0;
    padding: 7px 10px 8px;
}

.work-entry-content h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.work-entry-content h3 a,
.work-entry-title-text {
    color: var(--text);
}

.work-entry-content h3 a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.work-entry-content h3 a::after {
    content: "↗";
    color: var(--primary);
    font-size: 0.78rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.work-entry-content h3 a:hover::after,
.work-entry-content h3 a:focus-visible::after {
    transform: translate(2px, -2px);
    color: currentColor;
}

.work-entry-description {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.work-entry-inline-image {
    width: auto;
    max-width: min(100%, 500px);
    height: auto;
    margin: 5px 0 4px;
    border: 1px solid rgba(126, 154, 184, 0.28);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.55);
}

.work-entry-banner {
    display: inline-block;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(126, 154, 184, 0.28);
    max-width: 100%;
    background: rgba(255, 255, 255, 0.55);
}

.work-entry-banner img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

a.work-entry-banner img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

a.work-entry-banner:hover img,
a.work-entry-banner:focus-visible img {
    transform: scale(1.035);
    filter: saturate(1.04) brightness(1.02);
}

.work-entry-banner-featured {
    margin-top: 4px;
    max-width: min(100%, 500px);
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 42px;
    color: var(--muted);
    text-align: center;
}

.site-footer small {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

@media (max-width: 900px) {
    .profile-row1 {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 4px 0;
    }

    .group-description {
        max-width: 100%;
    }

    .group-copy {
        padding: 10px 0 0;
    }

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

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-entry-grid {
        grid-template-columns: 180px minmax(0, 1fr);
    }

}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        min-height: 0;
        padding: 10px 0 9px;
    }

    .site-logo-main {
        font-size: 1.06rem;
    }

    .site-logo-sub {
        font-size: 0.7rem;
    }

    .global-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .global-nav a {
        font-size: 0.92rem;
    }

    main {
        padding-top: 12px;
    }

    .section {
        padding: 38px 0;
        scroll-margin-top: 50px;
    }

    .section-heading h1 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .section-heading h2 {
        font-size: clamp(1.35rem, 6vw, 1.9rem);
    }

    .hero-visual {
        min-height: 0;
        background: #efe1c8;
    }

    .profile-layout {
        padding: 24px 20px;
    }

    .profile-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .member-name-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.08em;
    }

    .member-reading {
        font-size: 0.66rem;
        letter-spacing: 0.14em;
    }

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

    .work-entry-hybrid {
        padding: 0;
    }

    .work-entry-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .work-entry-client-col {
        justify-content: flex-start;
        padding: 7px 10px 0;
        border-right: 0;
        background: transparent;
    }

    .work-entry-client {
        text-align: left;
        font-size: 0.84rem;
    }

    .work-entry-content {
        padding: 2px 10px 8px;
    }

    .work-entry-content h3 {
        font-size: 0.95rem;
    }

    .work-entry-description {
        font-size: 0.88rem;
    }

    .work-entry-banner-featured {
        margin-top: 4px;
        max-width: 100%;
    }

    .works-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .works-mobile-more {
        display: flex;
    }

}
