/* =========================================================
   X-HOOD Inc. — xhoodinc.com
   ========================================================= */

:root {
    --bg: #0b0b0e;
    --surface: rgba(16, 16, 21, 0.86);
    --surface-2: rgba(255, 255, 255, 0.045);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f4f4f7;
    --muted: #a6a6b3;
    --pink: #ff6ae6;
    --violet: #8d81fb;
    --indigo: #796aff;
    --accent: linear-gradient(100deg, var(--pink) 0%, var(--violet) 55%, var(--indigo) 100%);
    --radius: 14px;
    --header-h: 76px;
    --font-en: "Inter", "Noto Sans JP", system-ui, sans-serif;
    --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-ja);
    font-size: 16px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* 日本語は <wbr>（文節の区切り）でだけ改行し、単語の途中で折り返さない */
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-break: strict;
}

p,
li,
dd,
label {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

.input-field {
    word-break: normal;
}

.nw,
.tag-list li,
.case-tag,
.news-cat,
.req,
.btn,
.filter button,
.site-nav a {
    white-space: nowrap;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--violet);
    color: #fff;
}

.container {
    width: min(1120px, 100% - 48px);
    margin-inline: auto;
}

.pc-only {
    display: inline;
}

.sp-only {
    display: none;
}

/* ---------- 3D background ---------- */
#three {
    position: fixed;
    inset: 0;
    z-index: -1;
}

#three canvas {
    display: block;
}

/* ---------- header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background-color: rgba(11, 11, 14, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}

.header-inner {
    height: 100%;
    width: min(1120px, 100% - 48px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 96px;
    height: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-current {
    color: var(--text);
    background-color: var(--surface-2);
}

.site-nav .nav-cta {
    margin-left: 8px;
    color: #fff;
    background: var(--accent);
}

.site-nav .nav-cta:hover {
    background: var(--accent);
    filter: brightness(1.1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-ja);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s, background-color 0.2s, border-color 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: var(--accent);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 40px) 0 110px;
    background: linear-gradient(180deg, rgba(11, 11, 14, 0) 55%, rgba(11, 11, 14, 0.85) 100%);
}

.eyebrow {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--muted);
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(34px, 6.4vw, 76px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-lead {
    margin-top: 22px;
    max-width: 40em;
    font-size: clamp(15px, 1.5vw, 18px);
    color: #dcdce4;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.scroll-cue {
    position: absolute;
    right: max(24px, calc((100% - 1120px) / 2));
    bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-decoration: none;
    color: var(--muted);
    writing-mode: vertical-rl;
}

.scroll-cue::after {
    content: "";
    width: 1px;
    height: 56px;
    background: linear-gradient(var(--muted), transparent);
    animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- sections ---------- */
.section {
    position: relative;
    padding: 120px 0;
    background-color: var(--surface);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--line);
}

.section-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}

.section-title {
    text-wrap: balance;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 48px;
}

.sub-title {
    font-size: 20px;
    font-weight: 700;
    margin: 72px 0 24px;
}

/* ---------- about ---------- */
.mission {
    font-size: clamp(24px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.6;
}

.about-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 56px;
}

.about-text {
    color: #d6d6de;
    font-size: 16px;
}

/* ---------- services ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 40px 36px 34px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--accent);
    z-index: 2;
}

.service-kind {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.service-name {
    margin-top: 6px;
    font-family: var(--font-en);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.service-name span {
    display: inline-block;
    margin-left: 12px;
    font-family: var(--font-ja);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    vertical-align: middle;
}

.service-catch {
    margin: 18px 0 12px;
    font-size: 19px;
    font-weight: 700;
}

.service-card > p:not(.service-kind):not(.service-catch) {
    color: #d0d0d9;
}

.tag-list {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(141, 129, 251, 0.5);
    color: #e3defe;
    background: rgba(141, 129, 251, 0.1);
}

.service-meta {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.service-meta div {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 12px;
}

.service-meta dt {
    color: var(--muted);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.support-grid li {
    padding: 24px 22px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.support-grid h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.support-grid p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
}

/* ---------- works ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats li {
    padding: 36px 28px;
}

.stats li + li {
    border-left: 1px solid var(--line);
}

.stat-num {
    font-family: var(--font-en);
    font-size: clamp(44px, 5.4vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-num span {
    margin-left: 4px;
    font-family: var(--font-ja);
    font-size: 0.34em;
    font-weight: 700;
}

.stat-label {
    margin-top: 10px;
    font-weight: 700;
}

.stat-note {
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
}

.award {
    margin-top: 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4px 28px;
    align-items: baseline;
    padding: 28px 32px;
    border-radius: var(--radius);
    background: linear-gradient(100deg, rgba(255, 106, 230, 0.12), rgba(121, 106, 255, 0.12));
    border: 1px solid rgba(141, 129, 251, 0.4);
}

.award-label {
    grid-column: 1;
    grid-row: 1 / span 3;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--pink);
}

.award-title {
    font-size: 20px;
    font-weight: 700;
}

.award-sub {
    font-size: 14px;
    color: var(--muted);
}

.award-text {
    margin-top: 6px;
    color: #d0d0d9;
    font-size: 15px;
}

.filter {
    margin: 64px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-ja);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.filter button:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.35);
}

.filter button.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--accent);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.case-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: border-color 0.2s, transform 0.2s;
}

.case-card:hover {
    border-color: rgba(141, 129, 251, 0.6);
    transform: translateY(-2px);
}

.case-card[hidden] {
    display: none;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--font-en);
    font-size: 13px;
    color: var(--muted);
}

.case-tag {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tag-marinne {
    color: #ffd2f6;
    background: rgba(255, 106, 230, 0.16);
}

.tag-rxvu {
    color: #d9d4ff;
    background: rgba(121, 106, 255, 0.2);
}

.tag-cg {
    color: #e6e6ee;
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--font-ja);
}

.case-card h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.case-card p:not(.case-meta) {
    font-size: 14px;
    color: #c9c9d3;
    line-height: 1.8;
}

.media-note {
    margin-top: 32px;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- news ---------- */
.news-list {
    border-top: 1px solid var(--line);
}

.news-item {
    display: grid;
    grid-template-columns: 8em 6em 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
}

.news-item time {
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.news-cat {
    justify-self: start;
    padding: 2px 10px;
    border-radius: 4px;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    border: 1px solid var(--line);
    color: #d6d6de;
}

/* ---------- company ---------- */
.company-table {
    border-top: 1px solid var(--line);
}

.company-table > div {
    display: grid;
    grid-template-columns: 10em 1fr;
    gap: 16px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
}

.company-table dt {
    color: var(--muted);
    font-weight: 500;
}

.company-table .en {
    font-size: 14px;
    color: var(--muted);
}

.company-table a {
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
}

.plain-list li {
    position: relative;
    padding-left: 1.1em;
}

.plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
}

.purpose {
    margin-top: 16px;
    font-size: 14px;
    color: #c9c9d3;
}

.purpose summary {
    cursor: pointer;
    color: var(--muted);
    width: fit-content;
}

.purpose summary:hover {
    color: var(--text);
}

.purpose ol {
    margin-top: 12px;
    padding-left: 1.6em;
    list-style: decimal;
    display: grid;
    gap: 6px;
}

/* ---------- contact ---------- */
.contact-lead {
    margin-top: -24px;
    margin-bottom: 40px;
    color: #d6d6de;
    max-width: 44em;
}


.contact-form {
    max-width: 760px;
    padding: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field label {
    font-size: 14px;
    font-weight: 500;
}

.req {
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--pink);
    vertical-align: 1px;
}

.input-field {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: var(--font-ja);
    font-size: 16px;
    line-height: 1.6;
    transition: border-color 0.2s, background-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--violet);
    background: rgba(255, 255, 255, 0.09);
}

select.input-field {
    appearance: none;
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

select.input-field option {
    color: #111;
}

textarea.input-field {
    min-height: 200px;
    resize: vertical;
}

.input-field.is-invalid {
    border-color: var(--pink);
}

.contact-form.is-confirm .input-field {
    border-color: transparent;
    background: transparent;
    padding-left: 0;
    pointer-events: none;
}

.contact-form.is-confirm textarea.input-field {
    min-height: 0;
}

.contact-form.is-confirm select.input-field {
    background-image: none;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 13px;
    color: var(--muted);
}

.form-error {
    font-size: 14px;
    color: var(--pink);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.form-confirm {
    display: grid;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.form-confirm[hidden],
.form-actions[hidden] {
    display: none;
}

.form-confirm > p {
    text-align: right;
    font-weight: 500;
}

/* ---------- footer ---------- */
.site-footer {
    padding: 56px 0 40px;
    background-color: #060608;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    font-family: var(--font-en);
    font-size: 14px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--text);
}

.copyright {
    width: 100%;
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--muted);
}

/* ---------- reveal ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-cue::after {
        animation: none;
    }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 860px) {
    :root {
        --header-h: 64px;
    }

    .header-inner {
        width: calc(100% - 32px);
    }

    .logo img {
        width: 84px;
    }

    .nav-toggle {
        display: block;
        z-index: 2;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        padding: calc(var(--header-h) + 24px) 24px 40px;
        background: rgba(8, 8, 11, 0.96);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .nav-open .site-nav {
        opacity: 1;
        visibility: visible;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-nav a {
        padding: 14px 8px;
        font-size: 22px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
        background: none;
    }

    .site-nav a:hover,
    .site-nav a.is-current {
        background: none;
    }

    .site-nav .nav-cta {
        margin: 24px 0 0;
        text-align: center;
        border-radius: 999px;
        border-bottom: 0;
        font-size: 18px;
    }

    .nav-open {
        overflow: hidden;
    }

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

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: inline;
    }

    .hero {
        padding-bottom: 96px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .scroll-cue {
        display: none;
    }

    .section {
        padding: 84px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .service-card {
        padding: 30px 22px 26px;
    }

    .service-meta div {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .support-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

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

    .stats li {
        padding: 26px 4px;
    }

    .stats li + li {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .award {
        grid-template-columns: 1fr;
        padding: 24px 22px;
    }

    .award-label {
        grid-row: auto;
    }

    .filter {
        margin-top: 48px;
    }

    .news-item {
        grid-template-columns: auto 1fr;
        gap: 6px 12px;
        padding: 18px 2px;
    }

    .news-item p {
        grid-column: 1 / -1;
    }

    .company-table > div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 18px 2px;
    }

    .contact-lead {
        margin-top: -12px;
    }

    .contact-form {
        padding: 24px 18px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .form-actions .btn {
        flex: 1 1 auto;
    }

    .form-confirm > p {
        text-align: left;
    }
}

/* ---------- contact result page ---------- */
.result-page {
    background: radial-gradient(1200px 600px at 80% -10%, rgba(121, 106, 255, 0.18), transparent 60%), var(--bg);
}

.result {
    min-height: calc(100vh - 140px);
    padding: calc(var(--header-h) + 100px) 0 100px;
}

.result .section-title {
    margin-bottom: 20px;
}

.result-text {
    max-width: 40em;
    color: #d6d6de;
}

.result-text a {
    text-underline-offset: 3px;
}

/* ---------- photos & videos ---------- */
.photo-band {
    margin-top: 56px;
    display: grid;
    /* 横幅を画像の縦横比に合わせると、3枚の高さがそろう */
    grid-template-columns: 1.647fr 1.611fr 0.733fr;
    gap: 12px;
}

.photo-band figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #16161b;
}

.photo-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-media {
    position: relative;
    margin: -40px -36px 28px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #16161b;
    border-bottom: 1px solid var(--line);
}

.service-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(8, 8, 11, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-ja);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.media-play:hover {
    background: rgba(8, 8, 11, 0.9);
    border-color: #fff;
}

.media-play-icon {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
}

.media-play-icon::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 9px;
    border-left: 10px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.video-dialog {
    width: min(1120px, 100% - 32px);
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.video-dialog::backdrop {
    background: rgba(0, 0, 0, 0.82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.video-dialog-inner {
    position: relative;
}

.video-dialog video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #000;
}

.video-dialog-close {
    position: absolute;
    right: 0;
    top: -52px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(8, 8, 11, 0.6);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.video-dialog-close:hover {
    border-color: #fff;
}

@media (max-width: 640px) {
    .photo-band {
        margin-top: 40px;
        grid-template-columns: 1.611fr 0.733fr;
        gap: 8px;
    }

    .photo-band .pb-wide {
        grid-column: 1 / -1;
    }

    .service-media {
        margin: -30px -22px 22px;
    }

    .media-play {
        left: 12px;
        bottom: 12px;
        font-size: 13px;
    }
}

/* ---------- works: media in case cards ---------- */
.case-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #16161b;
    border-bottom: 1px solid var(--line);
}

.case-media img,
.case-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card[data-category="cg"] .case-media video {
    object-position: center 35%;
}

.case-media.is-logo {
    background: radial-gradient(120% 120% at 50% 0%, rgba(255, 106, 230, 0.22), transparent 60%), #1a1a21;
}

.case-media.is-logo img {
    object-fit: contain;
    padding: 18px;
}


.media-note {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #e8e8ee;
    font-size: 11px;
    white-space: nowrap;
}

.case-body {
    flex: 1;
    padding: 20px 24px 26px;
}

.award-title,
.award-sub,
.award-text {
    grid-column: 2;
}

.award-badge {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    width: 170px;
    height: auto;
}

@media (max-width: 640px) {
    .award-label,
    .award-title,
    .award-sub,
    .award-text,
    .award-badge {
        grid-column: 1;
        grid-row: auto;
    }

    .award-badge {
        width: 150px;
        margin-bottom: 8px;
    }

    .case-body {
        padding: 18px 20px 22px;
    }
}

.case-card p.case-credit {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- works: click to play reference video ---------- */
a.case-body {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.case-body.is-playable {
    cursor: pointer;
}

.case-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    transition: color 0.2s;
}

.case-play .media-play-icon {
    width: 24px;
    height: 24px;
}

.case-play .media-play-icon::after {
    left: 9px;
    top: 7px;
    border-left-width: 8px;
    border-top-width: 5px;
    border-bottom-width: 5px;
}

a.case-body.is-playable:hover .case-play,
a.case-body.is-playable:focus-visible .case-play {
    color: var(--pink);
}

a.case-body.is-playable:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: -4px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.case-card:has(a.case-body.is-playable:hover) {
    border-color: rgba(255, 106, 230, 0.6);
}

.video-dialog-title {
    margin: 0 0 12px;
    padding-right: 56px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.video-dialog video {
    max-height: 78vh;
    object-fit: contain;
}

.video-dialog.is-portrait {
    width: fit-content;
    max-width: 92vw;
}

.video-dialog.is-portrait video {
    width: auto;
    max-width: min(92vw, 440px);
    height: min(78vh, 760px);
    aspect-ratio: auto;
}

/* =========================================================
   Contact: theme cards
   ========================================================= */
.contact-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 0;
    margin-bottom: 24px;
    counter-reset: none;
}

.contact-steps li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #d6d6de;
}

.contact-steps li + li::before {
    content: "";
    width: 40px;
    height: 1px;
    margin: 0 14px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.45));
}

.contact-steps span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
}

.wish-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 56px;
}

.wish-grid > li {
    display: flex;
}

.wish-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px 22px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(121, 106, 255, 0.14), transparent 55%),
        rgba(255, 255, 255, 0.035);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.25s, background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.wish-card:hover {
    border-color: rgba(141, 129, 251, 0.6);
    box-shadow: 0 18px 40px -18px rgba(121, 106, 255, 0.55);
}

.wish-card[aria-pressed="true"] {
    border-color: transparent;
    background:
        linear-gradient(160deg, #24172e, #161424 60%) padding-box,
        var(--accent) border-box;
    border: 1px solid transparent;
    box-shadow: 0 18px 50px -18px rgba(255, 106, 230, 0.6);
}

.wish-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wish-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 106, 230, 0.22), rgba(121, 106, 255, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wish-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wish-card:hover .wish-icon {
    transform: rotate(-6deg) scale(1.08);
}

.wish-card .wish-num {
    font-family: var(--font-en);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.85;
}

.wish-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.wish-text {
    display: block;
    font-size: 14px;
    line-height: 1.75;
    color: #c4c4ce;
}

.wish-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 18px;
}

.wish-chips span {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    color: #e3defe;
    background: rgba(141, 129, 251, 0.14);
    border: 1px solid rgba(141, 129, 251, 0.35);
}

.wish-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.wish-cta-done {
    display: none;
}

.wish-card[aria-pressed="true"] .wish-cta-label {
    display: none;
}

.wish-card[aria-pressed="true"] .wish-cta-done {
    display: inline;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wish-arrow {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.wish-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-65%, -50%) rotate(45deg);
}

.wish-card:hover .wish-arrow {
    background: var(--accent);
    border-color: transparent;
    transform: translateX(3px);
}

.wish-card[aria-pressed="true"] .wish-arrow {
    background: var(--accent);
    border-color: transparent;
}

.wish-card[aria-pressed="true"] .wish-arrow::before {
    width: 12px;
    height: 7px;
    border-top: 0;
    border-right: 0;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -70%) rotate(-45deg);
}

.field.is-flash .input-field {
    animation: field-flash 1.2s ease;
}

@keyframes field-flash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 230, 0); }
    25% { box-shadow: 0 0 0 4px rgba(255, 106, 230, 0.45); border-color: var(--pink); }
}

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

@media (max-width: 640px) {
    .wish-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wish-card {
        padding: 20px 18px 16px;
    }

    .wish-icon {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .wish-icon svg {
        width: 32px;
        height: 32px;
    }

    .wish-card .wish-num {
        font-size: 36px;
    }

    .contact-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .contact-steps li {
        flex-direction: column;
        gap: 6px;
        padding: 10px 4px;
        border-radius: 10px;
        background: var(--surface-2);
        border: 1px solid var(--line);
        font-size: 12px;
        text-align: center;
    }

    .contact-steps li + li::before {
        display: none;
    }
}

/* =========================================================
   Works: external link cases
   ========================================================= */
a.case-body.is-link {
    cursor: pointer;
}

.link-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.link-icon::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.link-icon::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 11px;
    width: 9px;
    height: 2px;
    background: #fff;
    transform: rotate(-45deg);
    transform-origin: left center;
    left: 7px;
    top: 15px;
}

a.case-body.is-link:hover .case-play {
    color: var(--violet);
}

a.case-body.is-link:hover .link-icon {
    background: var(--accent);
    border-color: transparent;
}

.case-card:has(a.case-body.is-link:hover) {
    border-color: rgba(141, 129, 251, 0.7);
}

a.case-body.is-link:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: -4px;
    border-radius: 0 0 var(--radius) var(--radius);
}

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

/* =========================================================
   Interactions
   ========================================================= */

/* --- scroll progress --- */
.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 200;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform-origin: left center;
    transform: scaleX(var(--progress, 0));
    pointer-events: none;
}

/* --- header hides when scrolling down --- */
.site-header {
    transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s, transform 0.35s ease;
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.nav-open .site-header.is-hidden {
    transform: none;
}

/* --- nav underline --- */
.site-nav a:not(.nav-cta) {
    position: relative;
}

.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a.is-current::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* --- hero --- */
.hero {
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--hx, 70%) var(--hy, 40%), rgba(141, 129, 251, 0.22), transparent 60%);
    pointer-events: none;
    transition: background 0.2s;
}

.hero-inner {
    position: relative;
}

.hero-title .hl {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.hero-title .hl > span {
    display: inline-block;
    transform: translateY(105%);
    animation: hero-line 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title .hl:nth-child(2) > span {
    animation-delay: 0.15s;
}

.hero-lead,
.hero-actions,
.hero .eyebrow {
    opacity: 0;
    animation: hero-fade 0.9s ease forwards;
}

.hero .eyebrow { animation-delay: 0.05s; }
.hero-lead { animation-delay: 0.45s; }
.hero-actions { animation-delay: 0.6s; }

@keyframes hero-line {
    to { transform: none; }
}

@keyframes hero-fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

#three {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- buttons: press & shine --- */
.btn,
.media-play,
.filter button,
.wish-card,
.to-top {
    -webkit-tap-highlight-color: transparent;
}

.btn:active,
.media-play:active,
.filter button:active,
.wish-card:active {
    transform: scale(0.97);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background-size: 200% 100%;
    background-image: linear-gradient(100deg, var(--pink) 0%, var(--violet) 30%, var(--indigo) 50%, var(--violet) 70%, var(--pink) 100%);
    transition: transform 0.2s, filter 0.2s, background-position 0.6s ease;
}

.btn-primary:hover {
    background-position: 100% 0;
}

/* --- ripple --- */
.ripple-host {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    transform: scale(0);
    animation: ripple 0.65s ease-out forwards;
}

@keyframes ripple {
    to { transform: scale(var(--ripple-scale, 40)); opacity: 0; }
}

/* --- spotlight on cards --- */
[data-spot] {
    position: relative;
    isolation: isolate;
}

[data-spot]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

[data-spot]:hover::after {
    opacity: 1;
}

.case-card,
.service-card {
    will-change: transform;
}

.is-tilting {
    transition: transform 0.1s linear, border-color 0.2s !important;
}

.case-media img,
.case-media video,
.photo-band img,
.service-media video {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-card:hover .case-media img,
.case-card:hover .case-media video,
.photo-band figure:hover img,
.service-card:hover .service-media video {
    transform: scale(1.05);
}

.case-media.is-logo img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-card:hover .case-media.is-logo img {
    transform: scale(1.08) rotate(-2deg);
}

/* --- stats --- */
.stats li {
    transition: background-color 0.3s;
}

.stats li:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* --- support & news hover --- */
.support-grid li {
    transition: border-color 0.25s, transform 0.25s;
}

.support-grid li:hover {
    border-color: rgba(141, 129, 251, 0.55);
    transform: translateY(-3px);
}

.news-item {
    transition: background-color 0.25s, padding-left 0.25s;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 14px;
}

.tag-list li {
    transition: background-color 0.2s, transform 0.2s;
}

.tag-list li:hover {
    background: rgba(141, 129, 251, 0.3);
    transform: translateY(-2px);
}

/* --- form focus --- */
.field label {
    transition: color 0.2s;
}

.field:focus-within label {
    color: var(--pink);
}

.input-field:focus {
    box-shadow: 0 0 0 4px rgba(141, 129, 251, 0.18);
}

/* --- back to top --- */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(16, 16, 21, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background 0.25s, border-color 0.25s;
}

.to-top::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 54%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.to-top.is-shown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to-top:hover {
    background: var(--accent);
    border-color: transparent;
}

/* --- custom cursor (mouse only) --- */
.cursor,
.cursor-dot {
    display: none;
}

.has-cursor .cursor,
.has-cursor .cursor-dot {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    pointer-events: none;
    border-radius: 50%;
}

.has-cursor .cursor {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    transition: width 0.25s, height 0.25s, margin 0.25s, background-color 0.25s, border-color 0.25s, opacity 0.25s, scale 0.15s;
}

.has-cursor .cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: #fff;
    transition: opacity 0.2s;
}

.has-cursor .cursor.is-hover {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-color: rgba(255, 106, 230, 0.7);
    background: rgba(255, 106, 230, 0.08);
}

.has-cursor .cursor.has-label {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-color: transparent;
    background: linear-gradient(135deg, rgba(255, 106, 230, 0.78), rgba(121, 106, 255, 0.78));
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.has-cursor .cursor.has-label ~ .cursor-dot,
.has-cursor .cursor.is-hidden ~ .cursor-dot {
    opacity: 0;
}

.has-cursor .cursor.is-down {
    scale: 0.85;
}

.has-cursor .cursor.is-hidden {
    opacity: 0;
}

.cursor-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.cursor.has-label .cursor-label {
    opacity: 1;
}

/* --- works filter transition --- */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.25s;
}

.case-card.is-entering {
    animation: case-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes case-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* --- motion & touch fallbacks --- */
@media (prefers-reduced-motion: reduce) {
    .hero-title .hl > span,
    .hero-lead,
    .hero-actions,
    .hero .eyebrow {
        animation: none;
        transform: none;
        opacity: 1;
    }

    .ripple,
    .case-card.is-entering,
    .field.is-flash .input-field {
        animation: none;
    }
}

@media (max-width: 640px) {
    .to-top {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
    }
}

/* =========================================================
   Works — flashy edition
   ========================================================= */
@property --spin {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.works {
    overflow: hidden;
    isolation: isolate;
    background-color: rgba(10, 8, 18, 0.9);
}

.works > .container {
    position: relative;
    z-index: 2;
}

/* --- background: aurora blobs, grid lines, giant text --- */
.works-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.works-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: blob-drift 18s ease-in-out infinite alternate;
}

.works-bg .b1 {
    width: 620px;
    height: 620px;
    left: -180px;
    top: -120px;
    background: radial-gradient(circle, rgba(255, 106, 230, 0.75), transparent 65%);
}

.works-bg .b2 {
    width: 720px;
    height: 720px;
    right: -240px;
    top: 28%;
    background: radial-gradient(circle, rgba(121, 106, 255, 0.8), transparent 65%);
    animation-duration: 22s;
    animation-delay: -6s;
}

.works-bg .b3 {
    width: 560px;
    height: 560px;
    left: 20%;
    bottom: -200px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.45), transparent 65%);
    animation-duration: 26s;
    animation-delay: -12s;
}

@keyframes blob-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, 80px) scale(1.15); }
    100% { transform: translate(-60px, 160px) scale(0.95); }
}

.works-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

.works-giant {
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 1;
    display: flex;
    white-space: nowrap;
    font-family: var(--font-en);
    font-size: clamp(110px, 16vw, 240px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
    pointer-events: none;
    animation: marquee 60s linear infinite;
}

.works-giant span {
    padding-right: 0.3em;
}

/* --- heading --- */
.works-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.works-head .section-title {
    margin-bottom: 0;
}

.works-title {
    font-size: clamp(36px, 5.6vw, 72px);
    line-height: 1.15;
    background: linear-gradient(100deg, #fff 0%, #fff 30%, var(--pink) 50%, var(--violet) 65%, #fff 85%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text-sweep 6s ease-in-out infinite;
}

@keyframes text-sweep {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

.works-total {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-en);
    white-space: nowrap;
}

.works-total .count {
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 800;
    line-height: 1;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(255, 106, 230, 0.45));
}

.works-total-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: #fff;
}

/* --- stats as glowing cards --- */
.stats.is-flashy {
    gap: 18px;
    border: 0;
}

.stats.is-flashy li {
    position: relative;
    padding: 34px 30px 30px;
    border-radius: 20px;
    border: 1px solid transparent;
    background:
        linear-gradient(160deg, rgba(30, 22, 44, 0.95), rgba(14, 13, 22, 0.95)) padding-box,
        conic-gradient(from var(--spin), rgba(255, 106, 230, 0.9), rgba(121, 106, 255, 0.9), rgba(0, 210, 255, 0.7), rgba(255, 106, 230, 0.9)) border-box;
    animation: spin-border 6s linear infinite;
    box-shadow: 0 20px 60px -25px rgba(255, 106, 230, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.stats.is-flashy li + li {
    border-left: 1px solid transparent;
    border-top: 1px solid transparent;
}

.stats.is-flashy li:nth-child(2) { animation-delay: -2s; }
.stats.is-flashy li:nth-child(3) { animation-delay: -4s; }

.stats.is-flashy li:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 80px -25px rgba(255, 106, 230, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes spin-border {
    to { --spin: 360deg; }
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--accent);
    box-shadow: 0 8px 24px -6px rgba(255, 106, 230, 0.7);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stats.is-flashy .stat-num {
    font-size: clamp(64px, 7.4vw, 104px);
    background: linear-gradient(100deg, #fff 0%, #ffd1f6 30%, var(--pink) 55%, var(--violet) 80%, #fff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-sweep 5s ease-in-out infinite;
    filter: drop-shadow(0 0 22px rgba(255, 106, 230, 0.35));
}

.stats.is-flashy .stat-num .count {
    font-size: 1em;
    margin: 0;
}

.stats.is-flashy .stat-num span:not(.count) {
    font-size: 0.32em;
    margin-left: 6px;
}

.stats.is-flashy .stat-label {
    font-size: 17px;
}

/* --- award: gold --- */
.award {
    --gold-1: #fff2c4;
    --gold-2: #f5c04e;
    --gold-3: #c98a14;
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: 36px 40px;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        radial-gradient(120% 140% at 100% 50%, rgba(245, 192, 78, 0.22), transparent 55%),
        linear-gradient(120deg, #1d1710, #120f17 55%) padding-box,
        linear-gradient(110deg, var(--gold-3), var(--gold-1), var(--gold-2), var(--gold-3)) border-box;
    box-shadow: 0 24px 70px -28px rgba(245, 192, 78, 0.6);
}

.award-label {
    color: var(--gold-2);
}

.award-title {
    font-size: clamp(22px, 2.6vw, 30px);
    background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 45%, #fff 60%, var(--gold-2) 75%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text-sweep 4.5s ease-in-out infinite;
}

.award-sub {
    color: #d9c9a3;
}

.award-badge {
    width: 210px;
    filter: drop-shadow(0 0 18px rgba(245, 192, 78, 0.55));
    animation: badge-float 4s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

.award-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 236, 180, 0.22), transparent);
    transform: skewX(-20deg);
    animation: shine 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -40%; }
    55%, 100% { left: 130%; }
}

.spark {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    background: radial-gradient(circle, #fff 0 20%, transparent 22%), conic-gradient(from 45deg, transparent 0 20%, var(--gold-1) 22% 28%, transparent 30% 45%, var(--gold-1) 47% 53%, transparent 55% 70%, var(--gold-1) 72% 78%, transparent 80% 95%, var(--gold-1) 97%);
    -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%);
    mask: radial-gradient(circle, #000 35%, transparent 70%);
    animation: twinkle 2.6s ease-in-out infinite;
}

.spark.s1 { right: 22%; top: 18%; }
.spark.s2 { right: 6%; top: 70%; animation-delay: -0.8s; width: 10px; height: 10px; }
.spark.s3 { right: 30%; bottom: 14%; animation-delay: -1.5s; }
.spark.s4 { right: 3%; top: 14%; animation-delay: -2s; width: 18px; height: 18px; }
.spark.s5 { left: 45%; top: 12%; animation-delay: -1.1s; width: 9px; height: 9px; }

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(90deg); }
}

/* --- ticker --- */
.ticker {
    display: grid;
    gap: 10px;
    margin: 56px calc(50% - 50vw) 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(255, 106, 230, 0.08), rgba(121, 106, 255, 0.12), rgba(255, 106, 230, 0.08));
    transform: rotate(-1.2deg);
}

.ticker-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ticker-label {
    flex: none;
    position: relative;
    z-index: 1;
    padding: 4px 14px;
    margin-left: max(24px, calc(50vw - 560px));
    border-radius: 999px;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(10, 8, 18, 0.9);
}

.ticker-viewport {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
    display: flex;
    flex: none;
    gap: 0;
    animation: marquee 38s linear infinite;
}

.ticker-row.is-reverse .ticker-track {
    animation-direction: reverse;
    animation-duration: 46s;
}

.ticker-track li {
    display: flex;
    align-items: center;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}

.ticker-row.is-reverse .ticker-track li {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
    font-family: var(--font-en), var(--font-ja);
}

.ticker-track li::after {
    content: "✦";
    margin: 0 28px;
    font-size: 0.7em;
    color: var(--pink);
    -webkit-text-stroke: 0;
}

@keyframes marquee {
    to { transform: translateX(-100%); }
}

/* --- filter with counts --- */
.filter button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
}

.filter button.is-active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

.filter button.is-active {
    box-shadow: 0 10px 30px -10px rgba(255, 106, 230, 0.8);
}

/* --- case grid: bento, numbers, glowing borders --- */
.works .case-grid {
    grid-auto-flow: dense;
    gap: 20px;
    counter-reset: case;
}

.works .case-card {
    counter-increment: case;
    border-radius: 18px;
    background:
        linear-gradient(170deg, rgba(26, 22, 38, 0.96), rgba(14, 13, 22, 0.96)) padding-box,
        linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 18px 50px -30px rgba(0, 0, 0, 0.9);
    transition: box-shadow 0.35s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.works .case-card:hover {
    background:
        linear-gradient(170deg, rgba(30, 22, 44, 0.98), rgba(14, 13, 22, 0.98)) padding-box,
        conic-gradient(from var(--spin), var(--pink), var(--violet), #00d2ff, var(--pink)) border-box;
    animation: spin-border 2.4s linear infinite;
    box-shadow: 0 30px 80px -30px var(--glow, rgba(255, 106, 230, 0.75));
}

.works .case-card[data-category="marinne"] { --glow: rgba(255, 106, 230, 0.8); }
.works .case-card[data-category="rxvu"] { --glow: rgba(121, 106, 255, 0.85); }
.works .case-card[data-category="cg"] { --glow: rgba(0, 210, 255, 0.6); }

.works .case-card::before {
    content: counter(case, decimal-leading-zero);
    position: absolute;
    top: 10px;
    left: 14px;
    z-index: 3;
    font-family: var(--font-en);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: color 0.3s, transform 0.3s;
}

.works .case-card:hover::before {
    color: #fff;
    -webkit-text-stroke-color: transparent;
    transform: translateY(-2px) scale(1.05);
}

.works .case-media {
    border-radius: 17px 17px 0 0;
}

.works .case-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 8, 18, 0.45) 0%, transparent 30%, transparent 70%, rgba(10, 8, 18, 0.55) 100%);
    pointer-events: none;
}

.works .case-media video,
.works .case-media img {
    filter: saturate(1.05);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s;
}

.works .case-card:hover .case-media video,
.works .case-card:hover .case-media img:not(.is-logo img) {
    filter: saturate(1.35) contrast(1.05);
}

.works .case-tag {
    padding: 3px 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.works .tag-marinne { color: #fff; background: linear-gradient(90deg, #ff6ae6, #c46bff); box-shadow: 0 4px 14px -4px rgba(255, 106, 230, 0.8); }
.works .tag-rxvu { color: #fff; background: linear-gradient(90deg, #8d81fb, #5b6dff); box-shadow: 0 4px 14px -4px rgba(121, 106, 255, 0.8); }
.works .tag-cg { color: #06232b; background: linear-gradient(90deg, #6ff0ff, #b4fbff); box-shadow: 0 4px 14px -4px rgba(0, 210, 255, 0.7); }

.works .case-card h3 {
    font-size: 18px;
}

.works .case-play {
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.works a.case-body.is-playable:hover .case-play {
    color: #fff;
    background: var(--accent);
    border-color: transparent;
}

.works a.case-body.is-link:hover .case-play {
    color: #fff;
    background: linear-gradient(90deg, #8d81fb, #5b6dff);
    border-color: transparent;
}

.works a.case-body.is-playable:hover .media-play-icon {
    background: #fff;
}

.works a.case-body.is-playable:hover .media-play-icon::after {
    border-left-color: var(--pink);
}

/* feature (2×2) and wide (2×1) cards */
.works .case-card.is-feature {
    grid-column: span 2;
    grid-row: span 2;
}

.works .case-card.is-feature .case-media {
    aspect-ratio: auto;
    flex: 1;
    min-height: 380px;
}

.works .case-card.is-feature::before {
    font-size: 72px;
    top: 16px;
    left: 22px;
}

.works .case-card.is-feature h3 {
    font-size: clamp(22px, 2.2vw, 28px);
}

.works .case-card.is-feature .case-body {
    flex: none;
    padding: 26px 30px 30px;
}

.works .case-card.is-feature .case-body > p:not(.case-meta):not(.case-credit) {
    font-size: 15px;
}

.works .case-card.is-wide {
    grid-column: span 2;
    flex-direction: row;
}

.works .case-card.is-wide .case-media {
    flex: 0 0 56%;
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    border-radius: 17px 0 0 17px;
}

.works .case-card.is-wide .case-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.works .case-card.is-wide .case-play {
    align-self: flex-start;
}

.works .case-card.is-wide::before {
    font-size: 56px;
}

/* staggered 3D entrance */
.js .works .case-grid .reveal {
    opacity: 0;
    transform: perspective(1000px) translateY(60px) rotateX(14deg) scale(0.94);
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
    transition-delay: var(--stagger, 0s);
}

.js .works .case-grid .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js .works .stats .reveal {
    transform: translateY(40px) scale(0.92);
    transition-duration: 0.8s;
}

.js .works .stats .reveal.is-visible {
    transform: none;
}

.js .works .stats .reveal:nth-child(2) { transition-delay: 0.12s; }
.js .works .stats .reveal:nth-child(3) { transition-delay: 0.24s; }

/* responsive */
@media (max-width: 1024px) {
    .works .case-card.is-feature {
        grid-row: span 1;
    }

    .works .case-card.is-feature .case-media {
        min-height: 320px;
    }
}

@media (max-width: 860px) {
    .stats.is-flashy {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .works-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 32px;
    }

    .works-giant {
        top: 20px;
    }

    .stats.is-flashy li {
        padding: 26px 22px 24px;
    }

    .award {
        padding: 28px 22px;
    }

    .award-badge {
        width: 170px;
    }

    .ticker {
        margin-top: 40px;
    }

    .ticker-label {
        font-size: 10px;
        padding: 3px 10px;
        margin-left: 16px;
    }

    .works .case-card.is-feature,
    .works .case-card.is-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .works .case-card.is-feature .case-media {
        min-height: 0;
        aspect-ratio: 16 / 11;
        flex: none;
    }

    .works .case-card.is-feature::before {
        font-size: 52px;
    }

    .works .case-card.is-wide {
        flex-direction: column;
    }

    .works .case-card.is-wide .case-media {
        flex: none;
        aspect-ratio: 16 / 10;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 17px 17px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .works-bg .blob,
    .works-giant,
    .works-title,
    .stats.is-flashy li,
    .stats.is-flashy .stat-num,
    .award-title,
    .award-badge,
    .award-shine,
    .spark,
    .ticker-track,
    .works .case-card:hover {
        animation: none;
    }

    .js .works .case-grid .reveal,
    .js .works .stats .reveal {
        transform: none;
        transition: none;
    }
}

/* =========================================================
   Services: そのほかのご支援（写真つきのカード）
   ========================================================= */
.support-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 48px;
    margin: 104px 0 32px;
}

.support-head .section-label {
    margin-bottom: 10px;
}

.support-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.3;
}

.support-lead {
    max-width: 31em;
    font-size: 15px;
    color: var(--muted);
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.support-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 18px;
    border: 1px solid transparent;
    background:
        linear-gradient(170deg, rgba(26, 22, 38, 0.96), rgba(14, 13, 22, 0.96)) padding-box,
        linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) border-box;
    box-shadow: 0 18px 50px -30px rgba(0, 0, 0, 0.9);
    transition: box-shadow 0.35s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.support-card:hover,
.support-card:focus-within {
    background:
        linear-gradient(170deg, rgba(30, 22, 44, 0.98), rgba(14, 13, 22, 0.98)) padding-box,
        conic-gradient(from var(--spin), var(--pink), var(--violet), #00d2ff, var(--pink)) border-box;
    animation: spin-border 2.4s linear infinite;
    box-shadow: 0 30px 80px -30px var(--card-glow, rgba(255, 106, 230, 0.75));
}

/* 写真 */
.support-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
}

.support-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) brightness(0.88);
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s;
}

.support-card:hover .support-media img {
    transform: scale(1.08);
    filter: saturate(1.2) brightness(1);
}

.support-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 106, 230, 0.4), rgba(121, 106, 255, 0.25) 50%, rgba(0, 210, 255, 0.25));
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.support-card:hover .support-media::before {
    opacity: 0.8;
}

.support-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 8, 18, 0.45) 0%, transparent 32%, transparent 55%, rgba(18, 15, 28, 0.96) 100%);
    pointer-events: none;
}

.support-num {
    position: absolute;
    top: 10px;
    left: 14px;
    z-index: 2;
    font-family: var(--font-en);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: color 0.3s, transform 0.3s;
}

.support-card:hover .support-num {
    color: #fff;
    -webkit-text-stroke-color: transparent;
    transform: translateY(-2px) scale(1.05);
}

.support-place {
    position: absolute;
    right: 10px;
    bottom: 34px;
    z-index: 2;
    max-width: calc(100% - 20px);
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 8, 18, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 本文 */
.support-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: -28px;
    padding: 0 22px 20px;
}

.support-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 15px;
    border: 1px solid transparent;
    background:
        linear-gradient(160deg, rgba(44, 32, 66, 0.98), rgba(18, 16, 28, 0.98)) padding-box,
        var(--accent) border-box;
    box-shadow: 0 12px 30px -10px var(--card-glow, rgba(255, 106, 230, 0.75));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.support-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.support-card:hover .support-icon {
    transform: translateY(-4px) rotate(-6deg);
}

.support-body h4 {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.support-body > p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

.support-tags {
    margin: 14px 0 20px;
    gap: 6px;
}

.support-tags li {
    padding: 2px 10px;
    font-size: 12px;
}

.support-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: none;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.support-arrow {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.support-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 8px;
    height: 8px;
    margin: auto;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translateX(-1px) rotate(45deg);
}

.support-card:hover .support-arrow,
.support-cta:focus-visible .support-arrow {
    border-color: transparent;
    background: var(--accent);
    box-shadow: 0 6px 20px -6px var(--card-glow, rgba(255, 106, 230, 0.75));
    transform: translateX(3px);
}

.support-cta:focus-visible {
    outline: none;
}

.support-cta:focus-visible .support-arrow {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .support-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* スマホ：横にスワイプして見るカード */
@media (max-width: 640px) {
    .support-head {
        margin-top: 80px;
    }

    .support-cards {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 84%;
        gap: 12px;
        margin-inline: -16px;
        padding: 6px 16px 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .support-cards::-webkit-scrollbar {
        display: none;
    }

    .support-card {
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-card:hover,
    .support-card:focus-within {
        animation: none;
    }

    .support-card:hover .support-media img,
    .support-card:hover .support-icon {
        transform: none;
    }
}

/* =========================================================
   Company: 代表の写真
   ========================================================= */
.company-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 40px 56px;
    align-items: start;
}

.ceo-card {
    position: relative;
    margin: 0;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid transparent;
    background:
        linear-gradient(160deg, rgba(30, 22, 44, 0.96), rgba(14, 13, 22, 0.96)) padding-box,
        conic-gradient(from var(--spin), var(--pink), var(--violet), #00d2ff, var(--pink)) border-box;
    animation: spin-border 6s linear infinite;
    box-shadow: 0 30px 80px -30px rgba(255, 106, 230, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.ceo-photo {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 5;
    background: #1a1824;
}

.ceo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ceo-card:hover .ceo-photo img {
    transform: scale(1.04);
}

.ceo-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(10, 8, 18, 0.55) 72%, rgba(10, 8, 18, 0.92) 100%);
    pointer-events: none;
}

.ceo-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 2;
    display: grid;
    gap: 2px;
    color: #fff;
}

.ceo-role {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #e3defe;
}

.ceo-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
}

.ceo-name-en {
    width: fit-content;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 860px) {
    .company-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ceo-card {
        order: -1;
        width: min(100%, 300px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ceo-card {
        animation: none;
    }

    .ceo-card:hover .ceo-photo img {
        transform: none;
    }
}

/* =========================================================
   紹介動画のカード（MARINNE・RxVU）：押しやすさ優先
   映像の拡大・カードの傾き・ボタンの動きを止め、映像全体を押せるようにする
   ========================================================= */
.service-media {
    cursor: pointer;
}

.service-card:hover .service-media video {
    transform: none;
}

.media-play:active {
    transform: none;
}

.service-media:hover .media-play {
    background: rgba(8, 8, 11, 0.9);
    border-color: #fff;
}

/* クリック時の波紋用クラス（.ripple-host）が position: relative を付けるため、
   位置を固定しているボタンは元の配置を保つ（押した瞬間にボタンが動く不具合の対策） */
.media-play.ripple-host {
    position: absolute;
}

.to-top.ripple-host {
    position: fixed;
}

/* 紹介動画（下のロゴ帯を切り落とした横長の映像）は、黒い余白が出ないよう映像の比率に合わせる */
#marinne-promo video,
#rxvu-promo video {
    aspect-ratio: 1280 / 564;
}

/* =========================================================
   事例カード：映像・画像の部分を押しても、参考映像（またはリンク先）が開く
   ========================================================= */
.works .case-media.is-clickable {
    cursor: pointer;
}

.works .case-media.is-clickable::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23ffffff'/%3E%3C/svg%3E") 54% 50% / 26px no-repeat,
        var(--accent);
    box-shadow: 0 14px 40px -10px rgba(255, 106, 230, 0.8);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.works .case-media.is-clickable[data-action="open"]::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L16 8M9.5 8H16v6.5'/%3E%3C/svg%3E") 50% 50% / 26px no-repeat,
        var(--accent);
}

.works .case-card:hover .case-media.is-clickable::before {
    opacity: 1;
    transform: scale(1);
}

.works .case-media.is-clickable:active::before {
    transform: scale(0.92);
}

/* マウスのない端末（スマホ・タブレット）では、右上に小さく常に表示 */
@media (hover: none) {
    .works .case-media.is-clickable::before {
        left: auto;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        margin: 0;
        background-size: 18px, auto;
        opacity: 0.95;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .works .case-media.is-clickable::before {
        transition: none;
    }
}
