/* ----------------------------------------- */
/* 396 FOLIO - Premium Minimalist Style     */
/* ----------------------------------------- */

:root {
    /* Core Colors */
    --color-indigo: #6E8CAB;
    --color-indigo-dark: #5A7A99;
    --color-bg: #F9FAFC;
    --color-surface: #FFFFFF;
    --color-text-main: #1D1D1F;
    --color-text-sub: #6E6E73;
    --color-accent: var(--color-indigo);
    --color-border: rgba(0, 0, 0, 0.03);

    /* Unified Gradient */
    --grad-main: linear-gradient(135deg, #6E8CAB 0%, #8DAEC7 100%);

    /* Unified Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(25px);
    --glass-shadow: 0 10px 40px rgba(70, 100, 130, 0.05);

    /* Header & Lightbox */
    --header-bg: rgba(255, 255, 255, 0.92);
    --lightbox-bg: rgba(255, 255, 255, 0.95);

    /* Spacing Grid (Compact & Airy) */
    --sp-section-top: 8rem;
    --sp-section-bottom: 6rem;
    --sp-card-p: 3.5rem 2.5rem;
    --max-width: 1000px;
}

/* --- Dark Mode Configuration --- */
:root[data-theme="dark"] {
    --color-bg: #0B0E14;
    --color-surface: #1A1F2B;
    --color-text-main: #E2E8F0;
    --color-text-sub: #94A3B8;
    --color-border: rgba(255, 255, 255, 0.06);

    --glass-bg: rgba(26, 31, 43, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

    --header-bg: rgba(11, 14, 20, 0.85);
    --lightbox-bg: rgba(11, 14, 20, 0.95);
}

:root[data-theme="dark"] .hero {
    background-color: var(--color-bg) !important;
}

:root[data-theme="dark"] .hero-bg {
    opacity: 0.3 !important;
}

:root[data-theme="dark"] footer {
    border-top: 1px solid var(--color-border) !important;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #0B0E14;
        --color-surface: #1A1F2B;
        --color-text-main: #E2E8F0;
        --color-text-sub: #94A3B8;
        --color-border: rgba(255, 255, 255, 0.06);

        --glass-bg: rgba(26, 31, 43, 0.7);
        --glass-border: rgba(255, 255, 255, 0.08);
        --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

        --header-bg: rgba(11, 14, 20, 0.85);
        --lightbox-bg: rgba(11, 14, 20, 0.95);
    }

    :root:not([data-theme="light"]) .hero {
        background-color: var(--color-bg) !important;
    }

    :root:not([data-theme="light"]) .hero-bg {
        opacity: 0.3 !important;
    }

    :root:not([data-theme="light"]) footer {
        border-top: 1px solid var(--color-border) !important;
    }
}


/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-main);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.85rem;
    z-index: 10001;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* --- Base Reset --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    /* スマホベース: 最小(0.75rem) = 12px */
}

@media (min-width: 850px) {
    html {
        font-size: 18px;
        /* PCベース: 以前より控えめにし、読みやすさを優先 */
    }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Inter", "Hiragino Kaku Gothic ProN", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.8;
    /* 行間を標準的かつ心地よい1.8へ */
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Layout Architecture --- */
main {
    padding-top: 40px;
    min-height: 100vh;
    /* 万が一コンテンツが空に見えても最小限の高さを確保 */
}

/* Fallback for browsers not supporting :has() */
.has-hero {
    padding-top: 0 !important;
}

main:has(.hero) {
    padding-top: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--sp-section-top) 0 var(--sp-section-bottom);
}

/* 余白を大幅に圧縮 */

/* Apple-style Light & Minimal Hero */
.hero {
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--color-bg), transparent);
    z-index: 1;
}

.hero-aura {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.5rem, 12vw, 8rem);
    font-weight: 100;
    letter-spacing: 0.3em;
    margin-right: -0.3em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-text-main);
    text-align: center;
}

.jump-o {
    display: inline-block;
    animation: jumpOnce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s forwards;
    will-change: transform;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-text-main);
}

.jump-o::before {
    content: '';
    position: absolute;
    top: 18%;
    left: 15%;
    width: 70%;
    height: 64%;
    border-radius: 50%;
    background: url('../img/hero/pencil_o.webp') center/cover no-repeat;
    opacity: 0.75;
    z-index: -1;
}

@keyframes jumpOnce {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-40px);
    }

    60% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.hero .sub-title {
    font-family: "Outfit", sans-serif;
    color: var(--color-text-sub);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-top: 2.5rem;
    letter-spacing: 0.5em;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
}

.hero-catchcopy {
    font-family: "Outfit", sans-serif;
    color: var(--color-text-sub);
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-top: 2.5rem;
    letter-spacing: 0.35em;
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: "Outfit", sans-serif;
    color: var(--color-text-sub);
    font-size: clamp(0.75rem, 1.5vw, 0.8rem);
    margin-top: 1rem;
    letter-spacing: 0.25em;
    font-weight: 300;
    text-align: center;
    opacity: 0.85;
}

.hero+section {
    margin-top: 8rem !important;
    /* 絶対的な余白を保証 */
}

.intro-section .glass-card,
.about-profile-section .glass-card,
.about-career-section .glass-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.about-profile-section .intro-achievements {
    background: transparent;
    border: none;
    border-radius: 0;
    border-left: 2px solid var(--color-indigo);
    padding: 0.5rem 0 0.5rem 1.5rem;
}

/* --- Brand Typography --- */
h1,
h2,
h3 {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    letter-spacing: 0.12em;
    margin: 0;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin: 5rem 0;
    text-transform: uppercase;
    color: var(--color-text-main);
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

p {
    font-size: 1rem;
    line-height: 1.8;
}

.sub-title {
    font-family: "Outfit", sans-serif;
    font-size: 0.75rem;
    color: var(--color-indigo);
    display: block;
    letter-spacing: 0.2em;
    font-weight: 400;
    text-transform: uppercase;
}

/* --- Reusable Components --- */
.glass-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: var(--sp-card-p);
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Content Blocks --- */
.content-block {
    flex: 1;
    min-width: 300px;
}

.gallery-thumb-wrap {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: var(--color-surface);
    flex-shrink: 0;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avatar-wrap {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.044);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* .gallery-thumb-wrap a:hover img {
    transform: scale(1.1);
} */

.gallery-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 850px) {
    .jump-o {
        color: var(--color-text-main);
        -webkit-text-stroke: 0;
    }

    .jump-o::before {
        display: none;
    }

    .content-block {
        min-width: 100%;
    }

    .gallery-thumb-wrap {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }

    .works-grid work-card:first-child .gallery-thumb-wrap {
        width: 200px;
        height: 200px;
    }
}

/* --- Data Table (Unified Tone & Manner) --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table tr {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.4s ease;
}

.data-table tr:hover {
    background: rgba(110, 140, 171, 0.02);
}

.data-table tr:last-child {
    border: none;
}

.data-table th,
.data-table td {
    padding: 1.5rem 1rem;
    text-align: left;
    vertical-align: baseline;
}

.data-table th {
    width: 10rem;
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    color: var(--color-indigo);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.data-table td {
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.data-table td a {
    color: var(--color-indigo);
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s;
}

.data-table td a:hover {
    opacity: 0.75;
}

@media (max-width: 600px) {

    .data-table th,
    .data-table td {
        display: block;
        width: 100%;
        padding: 0.6rem 1rem;
    }

    .data-table th {
        padding-top: 1.5rem;
        color: var(--color-indigo);
        font-weight: 500;
    }

    .data-table td {
        padding-bottom: 1.5rem;
    }
}

/* Skill Icons (Compact) */
.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.skill-icons img {
    width: 20px;
    height: 20px;
    opacity: 0.85;
    filter: grayscale(20%);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-icons img:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.15);
}

/* --- UI Elements --- */
.btn-cta {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 0.8rem 2rem 0.8rem 4rem;
    margin-top: 3rem;
    /* ボタンの上の余白を広げ、ゆとりを持たせる */
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-main);
    transition: 0.4s;
}

.btn-cta::after {
    content: "";
    position: absolute;
    left: 0;
    width: 3rem;
    height: 3rem;
    background: var(--grad-main);
    border-radius: 50%;
    z-index: -1;
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cta:hover {
    color: white;
    transform: translateX(5px);
}

.btn-cta:hover::after {
    width: 100%;
    border-radius: 2rem;
}

.btn-more {
    display: inline-block;
    margin: 2.5rem 0;
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    color: var(--color-indigo);
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: 0.3s;
}

.btn-more:hover {
    opacity: 0.75;
    transform: translateX(3px);
}

.btn-more--plain {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
}

/* --- Header & Footer (Ultra Compact) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    /* 極限まで短縮 */
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 0.3rem 0;
}

.logo {
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-decoration: none;
    color: var(--color-text-main);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.theme-toggle:hover {
    opacity: 1;
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle .fa-sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
    color: #FBBF24;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}



.nav-list a {
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--color-text-sub);
    text-decoration: none;
    transition: 0.3s;
}

.nav-list a:hover {
    color: var(--color-indigo);
}



footer {
    padding: 5rem 0 3rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.footer-sns {
    display: flex;
    gap: 2rem;
}

.footer-sns a {
    font-size: 1.4rem;
    display: inline-block;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.75;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-sns a:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.1);
}

.footer-copy {
    font-family: "Outfit", sans-serif;
    font-size: 0.75rem;
    color: var(--color-text-sub);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.reveal.active > *:nth-child(1) { transition-delay: 0s; }
.reveal.active > *:nth-child(2) { transition-delay: 0.08s; }
.reveal.active > *:nth-child(3) { transition-delay: 0.16s; }
.reveal.active > *:nth-child(4) { transition-delay: 0.24s; }
.reveal.active > *:nth-child(5) { transition-delay: 0.32s; }

/* スマホでの視認性向上のため、ヒーローの最初のアニメーションを少し早める */
.hero-content.reveal {
    transition-duration: 0.6s;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    display: none;
}

/* --- Hero Text Split Animation --- */
.hero h1 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    animation: charReveal 0.7s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

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

.hero .sub-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    animation: wordReveal 0.5s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

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

/* --- Nav Link Animated Underline --- */
.nav-list a {
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Work Card Image Hover --- */
.gallery-thumb-wrap img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-thumb-wrap:hover img {
    transform: scale(1.03);
}

/* --- Avatar Hover Glow --- */
.avatar-wrap {
    position: relative;
}

.avatar-wrap::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--grad-main);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.avatar-wrap:hover::after {
    opacity: 0.2;
}

/* --- Footer Reveal --- */
footer {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

footer.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-progress {
        display: none;
    }
    .hero h1 .char,
    .hero .sub-title .word {
        opacity: 1;
        transform: none;
        animation: none;
    }
    footer {
        opacity: 1;
        transform: none;
    }
}


/* --- Mobile Menu & Responsive Refinement --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-main);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    transform: translateY(-8.5px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 850px) {

    /* Layout Architecture */
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 5rem 0;
    }

    .hero+section {
        margin-top: 6rem !important;
        /* スマホでは空間を凝縮しつつも品格を保つ */
    }

    /* Grid & Card Rhythm */
    .flex-grid {
        flex-direction: column;
        align-items: center;
        /* コンテンツ自体（画像など）は中央へ */
        text-align: left;
        /* 本文の基本は左寄せ */
        gap: 3.5rem;
    }

    /* Centers images in works section on mobile */
    .flex-grid img {
        margin: 0 auto;
    }

    /* Introduction Card Typography */
    .flex-center {
        text-align: center;
        /* イントロなどの短い宣言は中央のままで心地よく */
    }

    .glass-card {
        padding: 3rem 1.5rem;
    }

    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--header-bg);
        backdrop-filter: blur(25px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 1050;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-list a {
        font-size: 1.3rem;
        font-weight: 300;
        letter-spacing: 0.2em;
    }

    /* Typography Refinement */
    .hero h1 {
        font-size: clamp(3rem, 18vw, 6rem) !important;
        letter-spacing: 0.2em;
        margin-right: -0.2em;
    }

    h2 {
        font-size: 1.5rem;
        margin: 3.5rem 0;
        text-align: center;
        /* セクションの顔は常に中央 */
    }

    h3 {
        font-size: 1.3rem;
        text-align: center;
        /* タイトルはスマホを考慮して中央寄せでリズムを作る */
        margin-bottom: 1.5rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.8;
        /* 長めの本文は左寄せにして、日本語の美しさを保つ */
        text-align: left;
    }

    .flex-center p {
        text-align: center;
        /* ただし、明示的に中央揃えを指定された箇所は中央のまま */
    }

    /* Career/News Table */
    .data-table th,
    .data-table td {
        padding: 1.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.8rem !important;
        letter-spacing: 0.15em;
        margin-right: -0.15em;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-sns {
        gap: 1.5rem;
    }
}

/* --- Gallery Integrated --- */
.filter-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 4rem;
    /* カテゴリ説明との間に十分な余白を確保 */
    margin-bottom: 4rem;
}

.filter-btn {
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-sub);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    text-transform: uppercase;
}

.filter-btn:hover {
    border-color: var(--color-indigo);
    color: var(--color-indigo);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--grad-main);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(110, 140, 171, 0.2);
}

.shuffle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 6rem;
    /* 作品グリッドとの間に大きなゆとりを */
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
}

/* Instagram Style Header */
.post-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.8rem;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-indigo);
    padding: 1px;
}

.post-username {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text-main);
}

.post-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.post-image-wrap::-webkit-scrollbar {
    display: none;
}

.post-image-wrap img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    scroll-snap-align: start;
    transition: transform 0.8s ease;
}

/* Carousel Indicators (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Multi-post hint */
.post-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 10px;
    z-index: 5;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
}

/* Instagram Style Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    font-size: 1.25rem;
    color: var(--color-text-main);
}

.post-actions-left {
    display: flex;
    gap: 1.2rem;
}

.post-actions i {
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-actions i:hover {
    transform: scale(1.15);
}

.post-actions i.active {
    animation: heartBeat 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-actions i.fa-heart.active {
    color: #ED4956;
    font-weight: 900;
}

.post-actions i.fa-bookmark.active {
    color: var(--color-indigo);
    font-weight: 900;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }

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

/* Big Center Heart Animation */
.big-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

.big-heart.active {
    animation: bigHeartShow 1s ease-out forwards;
}

@keyframes bigHeartShow {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    15% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.9;
    }

    30% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }

    80% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* Toast Message */
#gallery-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-indigo);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.1em;
    z-index: 2000;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(110, 140, 171, 0.3);
}

/* Particle System (Heart Shower) */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: 3000;
    font-size: 1.5rem;
    user-select: none;
    animation: particleFall linear forwards;
}

@keyframes particleFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(-20px) rotate(45deg) scale(1.2);
    }

    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* Feedback Bubble (Butler's Message) */
.feedback-bubble {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 0 20px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transform: translateY(30px);
    opacity: 0;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2500;
}

.feedback-bubble.active {
    transform: translateY(0);
    opacity: 1;
}

.feedback-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-indigo);
    background: #fff;
}

.feedback-text {
    font-size: 0.85rem;
    color: var(--color-text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.feedback-text b {
    display: block;
    color: var(--color-indigo);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

/* Like visual refinement */
.post-actions i.fa-heart:hover {
    color: #ED4956;
}

/* Instagram Style Caption */
.post-caption {
    padding: 0 1rem 1.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-main);
}

.username-bold {
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Gallery Caption Details */
.post-caption-title {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--color-text-main);
    margin-bottom: 0.3rem;
}

.post-caption-desc {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--color-text-sub);
    margin-bottom: 0.4rem;
}

.post-caption-medium {
    font-family: "Outfit", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--color-indigo);
    opacity: 0.85;
}

@media (max-width: 850px) {
    .gallery-grid {
        gap: 2.5rem;
    }
}

/* Filtering animation */
.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    position: absolute;
    pointer-events: none;
    visibility: hidden;
}

#category-info {
    max-width: 800px;
    margin: 0 auto 4rem;
    transition: 0.5s ease;
}

#category-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

#category-text {
    font-size: 0.95rem;
    color: var(--color-text-sub);
}

@media (max-width: 600px) {
    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* --- Lightbox (Premium Image Viewer) --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

/* Lightbox Caption */
.lightbox-caption {
    display: none;
    padding: 1rem 1.5rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.lightbox-caption-title {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--color-text-main);
    margin-bottom: 0.3rem;
}

.lightbox-caption-desc {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.lightbox-caption-medium {
    font-size: 0.75rem;
    color: var(--color-text-sub);
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* New Badge */
.badge-new {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    background: var(--grad-main);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    margin-right: 0.6rem;
    vertical-align: text-bottom;
    letter-spacing: 0.05em;
    line-height: 1.2;
    box-shadow: 0 2px 5px rgba(110, 140, 171, 0.3);
}

.hover-scale {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    will-change: transform;
}

.hover-scale:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Access Counter (Invisible) */
.hidden-counter {
    display: none !important;
    visibility: hidden;
    height: 0;
    width: 0;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}

/* Twitter Section Styles */
.twitter-container {
    width: 100%;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Native Fallback Card Base */
.sns-fallback-card {
    text-align: left;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.fallback-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.fallback-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Instagram Specific Styles */
.instagram-avatar {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fallback-user-info span {
    display: block;
}

.fallback-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.fallback-handle {
    font-size: 0.85rem;
    opacity: 0.75;
}

.fallback-content {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: auto;
    padding-bottom: 2rem;
    opacity: 0.95;
}

.fallback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .twitter-container {
        grid-template-columns: 1fr;
    }

    .sns-fallback-card {
        padding: 1.5rem;
    }
}

/* Diagnostic Overlay */
#diagnostic-overlay {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: monospace;
    font-size: 11px;
    padding: 1rem;
    border-radius: 8px;
    z-index: 9999;
    max-width: 300px;
    pointer-events: none;
    opacity: 0;
    transition: 0.5s;
}

#diagnostic-overlay.active {
    opacity: 1;
}

.diag-item {
    margin-bottom: 0.3rem;
    word-break: break-all;
}

.diag-item.error {
    color: #ff5555;
}

#twitter-timeline-wrapper {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

/* Ensure the iframe from Twitter respects our theme slightly better */
iframe[id^="twitter-widget-"] {
    border-radius: 12px !important;
}

/* --- Blog Article Styles --- */
.blog-article {
    max-width: 780px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.article-title {
    font-family: "Inter", "Hiragino Kaku Gothic ProN", sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    line-height: 1.6;
    letter-spacing: 0.02em !important;
    color: var(--color-text-main);
    margin-top: 1.5rem;
    text-align: center !important;
    overflow-wrap: break-word;
    word-break: auto-phrase;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--color-text-sub);
}

.article-category {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    border: 1px solid var(--color-indigo);
    color: var(--color-indigo);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.article-body {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-main);
}

.article-body h2 {
    font-size: 1.4rem;
    text-align: left;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-indigo);
    font-weight: 400;
}

.article-body h3 {
    font-size: 1.15rem;
    text-align: left;
    margin: 2.5rem 0 1rem;
    color: var(--color-indigo);
    font-weight: 400;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    font-weight: 600;
    color: var(--color-text-main);
}

.article-body a {
    color: var(--color-indigo);
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 140, 171, 0.3);
    transition: 0.3s;
}

.article-body a:hover {
    border-bottom-color: var(--color-indigo);
}

.article-body code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.85em;
    background: var(--glass-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.article-body pre {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-body blockquote {
    border-left: 3px solid var(--color-indigo);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--color-text-sub);
    font-style: italic;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    padding-bottom: 0;
    border-top: 1px solid var(--color-border);
    background: none;
}

.article-footer .btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Blog list on news page */
.blog-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.blog-list-item {
    display: block;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.blog-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-list-item-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
}

.blog-list-item-title {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
}

.blog-list-item-desc {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    margin-top: 0.3rem;
    line-height: 1.6;
}

@media (max-width: 850px) {
    .article-body h2 {
        font-size: 1.2rem;
    }

    .article-body h3 {
        font-size: 1.05rem;
    }
}

/* ========================================
   Skill Tooltip
   ======================================== */
.skill-tip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.skill-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    background: var(--color-text-main);
    color: var(--color-bg);
    font-size: 0.7rem;
    font-family: "Outfit", sans-serif;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.skill-tip:hover::after,
.skill-tip:active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   Contact Form
   ======================================== */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-sub);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--glass-bg);
    color: var(--color-text-main);
    transition: 0.3s;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--color-indigo);
    outline: none;
    background: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(110, 140, 171, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background: var(--grad-main);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.5;
    pointer-events: none;
    text-align: center;
}

.btn-submit.active {
    opacity: 1;
    pointer-events: auto;
}

.btn-submit.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(110, 140, 171, 0.3);
}

/* Contact examples & reply note */
/* Contact examples & reply note (Flattened version) */
.contact-examples {
    max-width: 850px;
    margin: 0 auto 3.5rem;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
    text-align: center;
}

.contact-examples__heading {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-indigo);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-examples__list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-examples__list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--color-text-main);
    max-width: 220px;
    flex: 1;
    text-align: center;
}

.contact-examples__list li span {
    display: block;
    text-align: center;
    width: 100%;
}

.contact-examples__list li i {
    font-size: 1.25rem;
    color: var(--color-indigo);
    opacity: 0.9;
    background: var(--glass-bg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

.contact-reply-note {
    font-size: 0.75rem;
    color: var(--color-text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    opacity: 0.8;
}

/* Contact page layout */
.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-note {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-sub);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
}

.github-link:hover {
    background: var(--color-surface);
    border-color: var(--color-indigo);
}

.contact-card-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-section {
    margin-top: 5rem;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-text-sub);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.social-icon-link:hover {
    color: var(--color-indigo);
    transform: translateY(-3px);
}

.form-note {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* ----------------------------------------- */
/* Services grid (about.html)               */
/* ----------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* gradient top bar — slides in on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(110, 140, 171, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(110, 140, 171, 0.1);
}

.service-card__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* icon in a rounded box */
.service-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(110, 140, 171, 0.12) 0%, rgba(110, 140, 171, 0.12) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-indigo);
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-card__icon {
    background: var(--grad-main);
    color: #fff;
}

.service-card__title {
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-main);
    line-height: 1.4;
}

.service-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.service-card__list li {
    font-size: 0.78rem;
    color: var(--color-text-sub);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.55;
}

/* gradient dot bullet */
.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--grad-main);
    opacity: 0.6;
}

.service-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.service-card__meta > div {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* pill badge */
.service-card__meta dt {
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(110, 140, 171, 0.12), rgba(110, 140, 171, 0.12));
    color: var(--color-indigo);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    margin-top: 0.1rem;
}

.service-card__meta dd {
    color: var(--color-text-sub);
}

/* ----------------------------------------- */
/* Flow timeline (about.html)               */
/* ----------------------------------------- */
.flow-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 580px;
    margin: 0 auto;
}

/* ---- mobile: vertical line ---- */
.flow-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 28px;
    width: 1px;
    background: linear-gradient(to bottom,
        rgba(110, 140, 171, 0.45),
        rgba(110, 140, 171, 0.45));
    pointer-events: none;
}

.flow-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding-bottom: 1.75rem;
    position: relative;
}

.flow-item--last { padding-bottom: 0; }

/* step number circle */
.flow-item__marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(110, 140, 171, 0.3);
    transition: box-shadow 0.25s, transform 0.25s;
}

.flow-item__marker--end {
    background: var(--color-surface);
    border: 2px solid var(--color-indigo);
    box-shadow: 0 4px 12px rgba(110, 140, 171, 0.15);
}

.flow-item__marker span {
    font-family: "Outfit", sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.04em;
}

.flow-item__marker--end span { color: var(--color-indigo); }

.flow-item__content {
    flex: 1;
    padding: 0.85rem 1.2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    margin-top: 0.2rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.flow-item__content:hover {
    border-color: rgba(110, 140, 171, 0.3);
    box-shadow: 0 6px 20px rgba(110, 140, 171, 0.07);
}

.flow-item__title {
    font-size: 0.86rem;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.flow-item__desc {
    font-size: 0.76rem;
    color: var(--color-text-sub);
    line-height: 1.75;
}

/* ---- desktop: horizontal stepper ---- */
@media (min-width: 700px) {
    .flow-timeline {
        flex-direction: row;
        align-items: flex-start;
        max-width: 100%;
        gap: 0;
    }

    /* hide vertical line, use per-step ::after instead */
    .flow-timeline::before { display: none; }

    .flow-item {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 0;
        gap: 0;
    }

    /* horizontal connector: right edge of this marker → center of next */
    .flow-item:not(.flow-item--last)::after {
        content: '';
        position: absolute;
        top: 19px;                        /* center of 40px marker */
        left: calc(50% + 20px);           /* right edge of this marker */
        width: calc(100% - 20px);         /* extends to center of next item */
        height: 1px;
        background: linear-gradient(to right,
            rgba(110, 140, 171, 0.45),
            rgba(110, 140, 171, 0.45));
        pointer-events: none;
    }

    .flow-item__marker {
        margin-bottom: 1.1rem;
    }

    /* hover: lift marker */
    .flow-item:hover .flow-item__marker {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(110, 140, 171, 0.4);
    }

    /* content: clean text, no box */
    .flow-item__content {
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0.5rem;
        margin-top: 0;
    }

    .flow-item__content:hover {
        border-color: transparent;
        box-shadow: none;
    }

    .flow-item__title {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }

    .flow-item__desc {
        font-size: 0.72rem;
        line-height: 1.7;
    }
}

/* ----------------------------------------- */
/* Work card actions & contact CTA          */
/* ----------------------------------------- */
.work-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.work-contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--color-indigo);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    padding-bottom: 1px;
    white-space: nowrap;
}

.work-contact-cta:hover {
    border-bottom-color: var(--color-indigo);
}

/* Work card meta (role / result) */
.work-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.85rem 0 1.1rem;
    padding: 0.75rem 1rem;
    border-left: 2px solid var(--color-indigo);
    background: var(--glass-bg);
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.work-meta__item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

.work-meta__item dt {
    flex-shrink: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--color-indigo);
    font-weight: 500;
    min-width: 2.5rem;
}

.work-meta__item dd {
    color: var(--color-text-sub);
}

/* ========================================
   Index page layout
   ======================================== */

/* ----------------------------------------- */
/* Needs-based navigation (index.html)      */
/* ----------------------------------------- */
.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.needs-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* gradient top bar slides in on hover */
.needs-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.needs-card:hover::before {
    transform: scaleX(1);
}

.needs-card:hover {
    border-color: rgba(110, 140, 171, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(110, 140, 171, 0.1);
}

.needs-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(110, 140, 171, 0.12), rgba(110, 140, 171, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-indigo);
    transition: background 0.3s, color 0.3s;
}

.needs-card:hover .needs-card__icon {
    background: var(--grad-main);
    color: #fff;
}

.needs-card__problem {
    font-size: 1.1rem;
    font-weight: 300;
    font-family: "Outfit", sans-serif;
    color: var(--color-text-main);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.needs-card__points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.needs-card__points li {
    font-size: 0.78rem;
    color: var(--color-text-sub);
    padding-left: 1rem;
    position: relative;
    line-height: 1.55;
}

.needs-card__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--grad-main);
    opacity: 0.7;
}

.needs-card__cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--color-indigo);
    margin-top: 0.25rem;
    transition: gap 0.2s;
}

.needs-card:hover .needs-card__cta {
    gap: 0.65rem;
}

/* Works filter tabs */
.works-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.works-filter__btn {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-sub);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.works-filter__btn:hover {
    border-color: var(--color-indigo);
    color: var(--color-indigo);
}

.works-filter__btn.active {
    background: var(--grad-main);
    border-color: transparent;
    color: #fff;
}

.marquee-strip {
    overflow: hidden;
    white-space: nowrap;
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: 5rem 0;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
    animation: marquee 22s linear infinite;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 100;
    letter-spacing: 0.2em;
    color: var(--color-text-main);
    opacity: 0.18;
}

.marquee-sep {
    color: var(--color-indigo);
    opacity: 0.6;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.works-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 851px) {
    /* 1枚目: フル幅・画像を大きく */
    .works-grid work-card:first-child .glass-card {
        flex-direction: column;
        text-align: center;
    }

    .works-grid work-card:first-child .gallery-thumb-wrap {
        width: 320px;
        height: 320px;
        margin: 0 auto 1rem;
    }

    /* 2・3枚目: 横並び */
    .works-grid work-card:not(:first-child) {
        display: inline;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .works-grid work-card:first-child {
        grid-column: 1;
    }

    /* 2・3枚目を横並びにするラッパー的な振る舞い */
    .works-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .works-grid work-card:first-child {
        grid-column: 1 / -1;
    }

    .works-grid work-card:first-child .gallery-thumb-wrap {
        width: 400px;
        height: 400px;
    }

    .works-grid work-card:not(:first-child) {
        display: flex;
    }

    .works-grid work-card:not(:first-child) .glass-card {
        flex-direction: column;
        text-align: center;
        flex: 1;
    }

    .works-grid work-card:not(:first-child) .glass-card p,
    .works-grid work-card:not(:first-child) .work-note,
    .works-grid work-card:not(:first-child) .work-meta {
        text-align: left;
    }

    .works-grid work-card:not(:first-child) .gallery-thumb-wrap {
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem;
    }
}

.sns-panel {
    width: 100%;
    min-height: 400px;
}

.news-more-wrap {
    margin-top: 5rem;
}

.text-italic {
    font-style: italic;
}

.social-link {
    color: var(--color-indigo);
    text-decoration: none;
    font-weight: 600;
}

.instagram-link {
    color: #e4405f;
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   Profile / Intro components
   ======================================== */
.avatar-wrap img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-text {
    max-width: 650px;
}

/* Introduction pillars */
.intro-pillars {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.intro-pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1.4rem 1.6rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 140px;
    flex: 1;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s, transform 0.3s, box-shadow 0.3s;
}

.intro-pillar:hover {
    border-color: var(--color-indigo);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.intro-pillar__icon {
    font-size: 1.65rem;
    color: var(--color-indigo);
}

.intro-pillar__title {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-main);
    letter-spacing: 0.03em;
}

.intro-pillar__desc {
    font-size: 0.73rem;
    color: var(--color-text-sub);
    line-height: 1.5;
}

.intro-body {
    max-width: 650px;
    text-align: center;
}

.intro-one-liner {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 300;
    color: var(--color-text-main);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.intro-lead {
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.intro-quote {
    font-weight: 500;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--color-indigo);
    letter-spacing: 0.05em;
}

.intro-lead {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 3rem;
    color: var(--color-indigo);
    font-weight: 400;
    letter-spacing: 0.08em;
}

.intro-achievements {
    text-align: left;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    margin-bottom: 3.5rem;
}

.intro-achievements p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: var(--color-text-main);
}

.intro-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-achievements li {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
    color: var(--color-text-sub);
}

.intro-achievements li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--color-indigo);
    font-weight: bold;
}

.intro-achievements strong {
    color: var(--color-text-main);
    font-weight: 600;
}

.intro-mission {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

/* ========================================
   About page specific
   ======================================== */
.role-links {
    margin-bottom: 2rem;
    color: var(--color-indigo);
    font-size: 0.9rem;
    text-align: center;
}

.role-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.skill-note {
    font-size: 0.75rem;
    color: var(--color-text-sub);
    text-align: center;
    margin-bottom: 3rem;
}

.skill-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.skill-icons--center {
    justify-content: center;
    margin-bottom: 1rem;
}

/* ========================================
   Work Card component (components.js)
   ======================================== */
.thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.btn-icon {
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.content-block .sub-title {
    margin-bottom: 2rem;
}

/* ========================================
   Utility pages (404, success)
   ======================================== */
.page-full {
    min-height: 80vh;
}

.page-cta {
    margin-top: 3rem;
}

.page-btn-row {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-title--accent {
    color: var(--color-indigo);
    margin: 0 0 1rem;
}

.page-title--success {
    color: var(--color-indigo);
    margin: 0 0 2rem;
}

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

.success-note {
    color: var(--color-text-sub);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Blog load more */
.load-more-wrap {
    margin-top: 2rem;
}

.mt-section {
    margin-top: 3rem;
}

/* --- Gallery page --- */
.gallery-loader {
    padding: 4rem;
    opacity: 0.8;
}

.gallery-load-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-top: 1rem;
}

#load-more-wrap {
    margin-top: 4rem;
}

/* --- Divider --- */
.divider {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   Case Study Page
   ======================================== */
.case-hero {
    margin: -1rem -1rem 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.case-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.case-tagline {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--color-text-sub);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.case-figure {
    margin: 2rem 0;
}

.case-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.case-figure figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-sub);
    margin-top: 0.8rem;
    font-style: italic;
}

/* ========================================
   Gallery Detail Link
   ======================================== */
.post-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-indigo);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.post-detail-link:hover {
    gap: 0.8rem;
}

/* ========================================
   Component Library (Catalog Page)
   ======================================== */
.catalog-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.catalog-swatch {
    text-align: center;
}

.catalog-swatch-color {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.catalog-swatch code {
    display: block;
    font-size: 0.65rem;
    color: var(--color-text-main);
    word-break: break-all;
}

.catalog-swatch-val {
    font-size: 0.6rem;
    color: var(--color-text-sub);
}

.catalog-gradient-preview {
    height: 80px;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.catalog-desc {
    color: var(--color-text-sub);
    margin: 0.8rem 0 2rem;
    font-size: 0.85rem;
    line-height: 1.8;
}

.catalog-preview {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

.catalog-preview glass-card {
    margin-bottom: 1rem;
}

.catalog-preview glass-card:last-child {
    margin-bottom: 0;
}

.catalog-glass-demo {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-glass-bg {
    position: absolute;
    inset: 0;
    background: var(--grad-main);
    opacity: 0.3;
}

pre {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    overflow-x: auto;
    margin-top: 1rem;
}

/* ----------------------------------------- */
/* Floating CTA Button                       */
/* ----------------------------------------- */

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--grad-main);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(110, 140, 171, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease, padding 0.25s ease;
    pointer-events: none;
}

.floating-cta--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta:hover {
    box-shadow: 0 12px 32px rgba(110, 140, 171, 0.5);
    transform: translateY(-2px);
}

.floating-cta__icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .floating-cta {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem;
        border-radius: 50%;
    }
    .floating-cta__label {
        display: none;
    }
}

pre code {
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--color-text-main);
    white-space: pre;
}

/* For-clients divider */
.for-clients-divider {
    max-width: var(--content-width, 900px);
    margin: 4rem auto 0;
    padding: 1.4rem 2rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.for-clients-divider__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-sub);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    padding: 0.35rem 1rem;
}

.for-clients-divider__label i {
    color: var(--color-indigo);
    font-size: 0.7rem;
}

.for-clients-divider__note {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--color-text-sub);
}

/* Stance Section — 制作スタンス（刷新版） */
.stance-section {
    margin-top: 4rem;
    text-align: center;
}

.stance-section__heading {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--color-indigo);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.stance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stance-card {
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stance-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-indigo);
}

.stance-card__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.stance-card__title i {
    color: var(--color-indigo);
    font-size: 1rem;
    opacity: 0.9;
}

.stance-card__desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--color-text-sub);
}

[data-theme="dark"] .stance-card {
    background: var(--color-surface);
}

/* Work Note — 制作のポイント callout */
.work-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    background: rgba(110, 140, 171, 0.07);
    border-left: 3px solid var(--color-indigo);
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--color-text-sub);
    text-align: left;
}

.work-note i {
    color: var(--color-indigo);
    flex-shrink: 0;
    margin-top: 0.15em;
}

.work-note a {
    color: var(--color-indigo);
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-theme="dark"] .work-note {
    background: rgba(110, 140, 171, 0.12);
}

