/* Force bold across the entire site */
*,
*::before,
*::after {
    font-weight: 550 !important;
}

/* Design tokens */
:root {
    /* Palette: warm neutral, museum-like */
    --color-bg: #faf7f2;          /* Body: soft ivory */
    --color-surface: #ffffff;     /* Card / gallery surface */
    --color-panel: #f3efe8;       /* Subtle panel for accent sections */
    --color-line: rgba(0, 0, 0, 0.12);
    --color-line-soft: rgba(0, 0, 0, 0.06);

    /* Text colors tuned for WCAG 2.1 AA contrast on --color-bg / --color-surface */
    --color-text: #1f1c18;        /* >= 14.5:1 */
    --color-text-muted: #5a554d;  /* >= 7:1   (AAA for normal) */
    --color-text-subtle: #6f6a61; /* >= 4.7:1 (AA for normal) */
    --color-accent: #1a1a1a;
    --color-focus: #1a73e8;       /* High-contrast focus ring color */

    /* Typography */
    --font-sans: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Arial, sans-serif;
    --font-serif: 'Times New Roman', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(20, 18, 14, 0.06);
    --shadow-lg: 0 24px 60px rgba(20, 18, 14, 0.10);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-pill: 999px;

    /* Motion */
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-base: 0.6s;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global focus indicator (WCAG 2.4.7) */
:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip link (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-text);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    z-index: 2000;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Visually hidden but available to assistive tech */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 3vw, 24px);
}

/* Header */
header {
    background-color: rgba(250, 247, 242, 0.82);
    border-bottom: 1px solid var(--color-line-soft);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 68px;
    padding: 12px clamp(12px, 2vw, 24px);
    gap: 16px;
}

.header-left {
    flex: 1;
}

.site-title {
    color: var(--color-text);
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.04em;
    font-family: var(--font-serif);
}

.header-center {
    flex: 2;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: clamp(12px, 2vw, 22px);
    flex-wrap: wrap;
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

nav a:hover {
    color: var(--color-accent);
}

nav a[aria-current="page"] {
    color: var(--color-accent);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 50%;
    text-align: center;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.icon-link:hover {
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.05);
}

.icon {
    font-size: 14px;
    line-height: 1;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.06em;
    color: currentColor;
    white-space: nowrap;
}

.icon-text-ebay {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
.hero {
    position: relative;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    /* Match other sections: 96px bottom so the gap to the next section is
       consistent with the rest of the page rhythm. */
    padding-bottom: 96px;
}

.hero-image {
    width: 100%;
    height: 56vh;
    max-height: 560px;
    background-color: var(--color-panel);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.hero-caption {
    position: static;
    text-align: center;
    color: var(--color-text);
    z-index: auto;
    padding: 48px 24px 56px;
    max-width: 100%;
    width: 100%;
    /* Match the hero image background so the representative work and its
       caption read as one continuous block, visually separated from the
       carousel that follows below. */
    background-color: var(--color-panel);
}

.hero-label {
    display: block;
    font-size: 0.82rem;
    line-height: 1.55;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--color-text-subtle);
    font-family: var(--font-sans);
}

.hero-copy {
    font-size: clamp(0.95rem, 5vw, 2rem);
    line-height: 1.25;
    margin-bottom: 0;
    max-width: 100%;
    color: var(--color-text);
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-title-link {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-title-link:hover,
.hero-title-link:focus-visible {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.hero-actions {
    display: none;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 300;
    letter-spacing: 0.03em;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn:hover::after,
.btn:focus-visible::after {
    opacity: 1;
}

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

.btn.primary:hover {
    background-color: #000;
}

.btn.secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-line);
}

.btn.secondary:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Sections */
section {
    padding: 96px 0;
}

/* Alternating gallery rhythm: white "gallery wall" for accent sections */
.information,
.sub-contents {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-line-soft);
    border-bottom: 1px solid var(--color-line-soft);
}

.section-head {
    text-align: left;
    margin: 0 auto 56px;
    max-width: 760px;
}

.section-label {
    display: block;
    font-size: 0.82rem;
    line-height: 1.55;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin-bottom: 18px;
    text-align: center;
}

.section-head-single-title .section-label {
    display: none;
}

.section-head-single-title h1,
.section-head-single-title h2 {
    margin-top: 0;
}

.section-head h1,
.section-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    color: var(--color-text);
    text-align: center;
}

.section-description {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.section-description a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

.section-description a:hover,
.section-description a:focus-visible {
    color: var(--color-text);
}

.works-showcase-header {
    margin-top: 96px;
    text-align: center;
}

.works-showcase-title {
    display: inline-block;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.works-showcase {
    --carousel-gap: 24px;
    --carousel-item-width: 300px;
    position: relative;
    margin-top: 32px;
    display: block;
}

.carousel-viewport {
    overflow: hidden;
    min-width: 0;
    padding-left: var(--carousel-gap);
    padding-right: var(--carousel-gap);
}

.works-scroll {
    display: flex;
    gap: var(--carousel-gap);
    padding: 4px 0;
    transition: transform 0.6s var(--ease-out-quint);
    will-change: transform;
}

.works-scroll.no-transition {
    transition: none;
}

.work-item {
    position: relative;
    flex: 0 0 var(--carousel-item-width);
    width: var(--carousel-item-width);
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-line-soft);
    transition: box-shadow 0.4s var(--ease-out-quint);
}

.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    border-radius: inherit;
    z-index: 1;
}

.work-item:hover,
.work-item:focus-within {
    box-shadow: var(--shadow-md);
}

.work-item:hover::after,
.work-item:focus-within::after {
    opacity: 1;
}

.work-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
    background-color: var(--color-surface);
}

.work-item h3 {
    padding: 16px 20px 18px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    margin: 0;
    color: var(--color-text);
    border-top: 1px solid var(--color-line-soft);
}

/* Anchor that wraps the entire card and opens the generated detail page.
    Inherit color and remove default underline so the card visuals stay identical. */
.work-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work-link:hover,
.work-link:focus {
    color: inherit;
    text-decoration: none;
}

.work-link:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: var(--radius-md);
}

/* Placeholder shown when a work has no image set. Keeps the 4:3 ratio so
   neighboring cards in the carousel remain perfectly aligned. */
.work-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--color-panel);
    display: block;
}

/* When there are no works at all, hide the empty viewport so the page does
   not show a hollow box. The footer link/Information section still render. */
.works-showcase.is-empty .carousel-viewport {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-text);
    border: 1px solid var(--color-text);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}

.scroll-btn > span {
    display: inline-block;
    line-height: 1;
}

.scroll-btn.left > span { transform: translateX(-1px); }
.scroll-btn.right > span { transform: translateX(1px); }

.scroll-btn.left { left: -22px; }
.scroll-btn.right { right: -22px; }

.scroll-btn:hover {
    background: #000000;
    transform: translateY(-50%) scale(1.06);
    box-shadow: var(--shadow-lg);
}

.scroll-btn:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.scroll-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.works-footer {
    width: 100%;
    max-width: 100%;
    margin-top: 56px;
    text-align: center;
    overflow: hidden;
}

.shop-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 64px;
}

.shop-section h3 {
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    text-align: center;
    flex-basis: 100%;
}

.shop-section {
    display: flex;
    flex: 0 1 360px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
}

.shop-image {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.shop-image-btn,
.shop-image-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    margin: 0;
    background: none;
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
    line-height: 0;
}

.shop-image-btn:hover,
.shop-image-link:hover,
.shop-image-btn:focus-visible,
.shop-image-link:focus-visible {
    box-shadow: var(--shadow-md);
}

.shop-image-btn::after,
.shop-image-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.shop-image-btn:hover::after,
.shop-image-link:hover::after,
.shop-image-btn:focus-visible::after,
.shop-image-link:focus-visible::after {
    opacity: 1;
}

.shop-image-btn:focus-visible,
.shop-image-link:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 4px;
}

.shop-link {
    display: inline;
    margin: 0 14px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.shop-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-text);
}

.shop-link:first-of-type {
    margin-left: 0;
}

.shop-link:last-of-type {
    margin-right: 0;
}

.sub-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.sub-link {
    display: inline-flex;
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    min-height: 44px;
    color: var(--color-text);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 8px 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.sub-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-text);
}

.about-logo-heading {
    line-height: 0;
}

.about-logo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.about-text {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-text-muted);
    line-height: 1.95;
    font-size: 1rem;
    text-align: left;
}

/* Information */
.info-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 920px;
}

.info-item {
    display: grid;
    grid-template-columns: 120px 132px 1fr;
    gap: 24px;
    align-items: center;
    padding: 20px 8px;
    border-top: 1px solid var(--color-line-soft);
}

.info-item:last-child {
    border-bottom: 1px solid var(--color-line-soft);
}

.info-item.is-hidden {
    display: none;
}

.info-date {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    color: var(--color-text-subtle);
    white-space: nowrap;
}

.info-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.info-type-new-release {
    color: #7a3f00;
    background-color: #fff0d6;
    border-color: #efc577;
}

.info-type-blog {
    color: #24533b;
    background-color: #e2f3e9;
    border-color: #a9d7bc;
}

.info-type-information {
    color: #27466f;
    background-color: #e5edf7;
    border-color: #b7cbe5;
}

.info-type-other {
    color: #5b5363;
    background-color: #efedf1;
    border-color: #d3ced9;
}

.info-title {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.info-title:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.info-footer {
    margin-top: 36px;
    text-align: center;
}

.info-more {
    min-width: 220px;
    gap: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-more .info-more-icon {
    transition: transform 0.3s var(--ease-out-quint);
    font-size: 1rem;
    line-height: 1;
}

.info-more:hover .info-more-icon {
    transform: translate(2px, -2px);
}

/* Information page */
.page-information {
    padding-top: 140px;
}

.information-detail {
    padding-top: 140px;
}

.information-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.information-detail-body {
    max-width: 820px;
    margin: 0 auto;
}

.information-detail-paragraph {
    margin: 0 0 24px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.95;
}

.information-detail-figure {
    margin: 36px auto;
    text-align: center;
}

.information-detail-image {
    display: block;
    max-width: min(100%, 720px);
    max-height: 520px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.information-detail-image-link {
    display: inline-block;
}

.information-detail-image-text-link,
.information-detail-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.information-detail-link {
    margin: 8px 0 24px;
}

.information-detail-back {
    max-width: 820px;
    margin: 48px auto 0;
    text-align: center;
}

/* Works page */
.page-works {
    padding-top: 140px;
}

.page-works .section-head {
    max-width: none;
}

.page-works .section-description {
    max-width: none;
    margin: 0;
}

/* Apps page */
.page-webapps {
    padding-top: 140px;
}

.page-document {
    padding-top: 140px;
}

.page-novels,
.page-novel-detail {
    padding-top: 140px;
}

.webapps-list {
    max-width: 960px;
    margin: 0 auto;
}

.novels-list {
    max-width: 1100px;
    margin: 0 auto;
}

.page-webapps .section-head {
    max-width: 960px;
}

.page-novels .section-head,
.page-novel-detail .section-head {
    max-width: 1100px;
}

.page-webapps .section-description {
    max-width: none;
    margin: 0;
}

.document-head {
    max-width: 960px;
}

.document-head .section-description {
    max-width: none;
    margin: 0;
}

.document-updated {
    margin-top: 14px;
    color: var(--color-text-subtle);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.document-body {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 0 0;
}

.document-section {
    padding: 34px 0;
    border-top: 1px solid var(--color-line-soft);
}

.document-section:first-child {
    border-top: 0;
}

html[lang="ja"] [data-document-lang="en"],
html[lang="en"] [data-document-lang="ja"] {
    display: none;
}

.document-section h2 {
    margin-bottom: 16px;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.document-section p {
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.95;
}

.document-section p + p {
    margin-top: 12px;
}

.document-section ul {
    margin: 14px 0 0;
    padding-left: 1.2em;
    color: var(--color-text-muted);
}

.document-section li {
    margin-top: 8px;
    line-height: 1.85;
}

.document-language-label {
    margin-bottom: 10px;
    color: var(--color-text-subtle);
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.document-callout {
    margin: 18px 0 0;
    padding: 18px 20px;
    border: 1px solid var(--color-line-soft);
    background: var(--color-surface);
}

.document-callout + p {
    margin-top: 18px;
}

.document-email {
    word-break: break-word;
}

.apps-policy-link {
    max-width: 960px;
    margin: 28px auto 0;
    text-align: center;
}

.apps-policy-link a {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 0.2s ease;
}

.apps-policy-link a:hover {
    color: var(--color-text);
}

.app-policy-detail {
    margin-top: 14px;
    border-top: 1px solid var(--color-line-soft);
    border-bottom: 1px solid var(--color-line-soft);
    background-color: var(--color-surface);
}

.app-policy-detail summary {
    min-height: 56px;
    padding: 16px 20px;
    color: var(--color-text);
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.06rem;
    letter-spacing: 0.04em;
}

.app-policy-detail summary::marker {
    color: var(--color-text-subtle);
}

.app-policy-detail-body {
    padding: 0 20px 22px;
}

.page-novels .section-description {
    max-width: none;
    margin: 0;
}

.webapps-search {
    max-width: 960px;
    margin: 0 auto 20px;
}

.novels-search {
    max-width: 1100px;
    margin: 0 auto 20px;
}

.webapps-search input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: 0.98rem;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.novels-search input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: 0.98rem;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.webapps-search input[type="search"]:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-color: var(--color-focus);
}

.novels-search input[type="search"]:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-color: var(--color-focus);
}

.webapps-mobile-sort {
    display: none;
}

.webapps-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-line-soft);
    border-bottom: 1px solid var(--color-line-soft);
    font-size: 0.95rem;
}

.novels-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-line-soft);
    border-bottom: 1px solid var(--color-line-soft);
    font-size: 0.95rem;
}

.webapps-table thead th {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: left;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-line-soft);
    background-color: transparent;
    white-space: nowrap;
}

.novels-table thead th {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: left;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-line-soft);
    background-color: transparent;
    white-space: nowrap;
}

.webapp-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.webapp-sort-button:hover,
.webapp-sort-button:focus-visible {
    color: var(--color-text);
}

.webapp-sort-indicator {
    font-size: 0.9em;
    letter-spacing: 0;
}

.webapps-table tbody tr {
    border-bottom: 1px solid var(--color-line-soft);
    transition: background-color 0.3s var(--ease-out-quint);
}

.novels-table tbody tr {
    border-bottom: 1px solid var(--color-line-soft);
    transition: background-color 0.3s var(--ease-out-quint);
}

.webapps-table tbody tr:last-child {
    border-bottom: none;
}

.novels-table tbody tr:last-child {
    border-bottom: none;
}

.webapps-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

.novels-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

.webapp-cell {
    padding: 22px 24px;
    vertical-align: middle;
    text-align: left;
    font-weight: 400;
}

.novel-cell {
    padding: 22px 24px;
    vertical-align: middle;
    text-align: left;
    font-weight: 400;
}

.webapp-cell-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-text);
    width: 24%;
    letter-spacing: 0.02em;
}

.webapp-cell-type {
    width: 18%;
}

.webapp-cell-desc {
    color: var(--color-text-muted);
    line-height: 1.85;
}

.webapp-cell-link {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.novel-cell-cover {
    width: 112px;
}

.novel-cover-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.novel-cell-name {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    color: var(--color-text);
    width: 19%;
    letter-spacing: 0.02em;
}

.novel-cell-published {
    width: 12%;
    white-space: nowrap;
    color: var(--color-text-subtle);
}

.novel-cell-genre {
    width: 16%;
    color: var(--color-text-subtle);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.novel-cell-desc {
    color: var(--color-text-muted);
    line-height: 1.85;
}

.novel-cell-favorite {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.novel-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s var(--ease-out-quint), background-color 0.2s var(--ease-out-quint), border-color 0.2s var(--ease-out-quint);
}

.novel-favorite-button:hover,
.novel-favorite-button:focus-visible {
    color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.04);
    border-color: var(--color-line-soft);
}

.novel-favorite-button[aria-pressed="true"] {
    color: #b87800;
}

.novel-cell-link {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.webapp-name-link {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s var(--ease-out-quint);
}

.webapp-name-link:hover,
.webapp-name-link:focus-visible {
    border-bottom-color: var(--color-text);
}

.novel-cover-image,
.novel-detail-cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.novel-cover-image {
    max-width: 72px;
}

.novel-cover-placeholder {
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.03));
}

.webapp-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.webapp-type-business {
    color: #7a3f00;
    background-color: #fff0d6;
    border-color: #efc577;
}

.webapp-type-hobby {
    color: #24533b;
    background-color: #e2f3e9;
    border-color: #a9d7bc;
}

.webapp-type-game {
    color: #7b2f52;
    background-color: #f7e3ee;
    border-color: #dfb4c9;
}

.webapp-type-other {
    color: #5b5363;
    background-color: #efedf1;
    border-color: #d3ced9;
}

.webapp-open-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--color-line-soft);
    border-radius: 999px;
    transition: border-color 0.3s var(--ease-out-quint),
                background-color 0.3s var(--ease-out-quint),
                transform 0.3s var(--ease-out-quint);
}

.webapp-open-link:hover,
.webapp-open-link:focus-visible {
    border-color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.03);
}

.webapp-open-icon {
    display: inline-block;
    transition: transform 0.3s var(--ease-out-quint);
}

.webapp-open-link:hover .webapp-open-icon {
    transform: translate(2px, -2px);
}

.webapp-open-coming {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.webapp-row.is-coming .webapp-cell-name {
    color: var(--color-text-muted);
}

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

.webapp-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 48px 16px;
    margin: 0;
}

.novel-detail-back {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.novel-detail-back:hover,
.novel-detail-back:focus-visible {
    border-bottom-color: var(--color-text);
}

.novel-theme-toggle-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 20px;
}

.novel-theme-toggle-wrap-detail {
    justify-content: flex-start;
    margin: 0 0 20px;
}

.novel-theme-toggle {
    appearance: none;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    background-color: var(--color-surface);
    color: var(--color-text);
    min-height: 40px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.novel-cache-clear-button {
    appearance: none;
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-pill);
    background-color: transparent;
    color: var(--color-text-muted);
    min-height: 40px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.novel-theme-toggle:hover,
.novel-theme-toggle:focus-visible,
.novel-cache-clear-button:hover,
.novel-cache-clear-button:focus-visible {
    background-color: var(--color-panel);
}

.novel-cache-clear-button:hover,
.novel-cache-clear-button:focus-visible {
    color: var(--color-text);
    border-color: var(--color-line);
}

body.novels-dark-mode {
    --color-bg: #121212;
    --color-surface: #1b1b1b;
    --color-panel: #252525;
    --color-line: rgba(255, 255, 255, 0.14);
    --color-line-soft: rgba(255, 255, 255, 0.08);
    --color-text: #f3efe7;
    --color-text-muted: #d3cabf;
    --color-text-subtle: #b0a79b;
    --color-accent: #f3efe7;
    --color-focus: #8fb8ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.46);
}

body.novels-dark-mode header {
    background-color: rgba(18, 18, 18, 0.82);
}

body.novels-dark-mode .novel-detail-body pre {
    background-color: #202020;
}

body.novels-dark-mode .novel-cover-image,
body.novels-dark-mode .novel-detail-cover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

body.novels-dark-mode .novels-table,
body.novels-dark-mode .novels-search input[type="search"] {
    background-color: var(--color-surface);
}

body.novels-dark-mode .work-lightbox-close {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(18, 18, 18, 0.92);
    color: #f8f5ef;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

body.novels-dark-mode .work-lightbox-close:hover,
body.novels-dark-mode .work-lightbox-close:focus-visible {
    background: rgba(34, 34, 34, 0.96);
}

body.novels-dark-mode .novels-table,
body.novels-dark-mode .novels-table th,
body.novels-dark-mode .novels-table td,
body.novels-dark-mode .novels-search input[type="search"] {
    border-color: var(--color-line);
}

.novel-detail {
    max-width: 1100px;
    margin: 0 auto;
}

.novel-detail-cover-wrap {
    max-width: 280px;
}

.novel-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.novel-detail-stack h1 {
    margin: 0;
}

.novel-detail-description {
    margin: 0;
    line-height: 1.9;
    color: var(--color-text-muted);
}

.novel-detail-body {
    max-width: 820px;
    margin: 0;
    color: var(--color-text);
    line-height: 2.1;
    font-size: 1rem;
}

.novel-detail-body h1,
.novel-detail-body h2,
.novel-detail-body h3,
.novel-detail-body h4,
.novel-detail-body h5,
.novel-detail-body h6 {
    font-family: var(--font-serif);
    margin: 56px 0 18px;
    line-height: 1.5;
}

.novel-detail-body h1:first-child,
.novel-detail-body h2:first-child,
.novel-detail-body h3:first-child {
    margin-top: 0;
}

.novel-detail-body p,
.novel-detail-body ul,
.novel-detail-body ol,
.novel-detail-body blockquote,
.novel-detail-body pre {
    margin: 0 0 22px;
}

.novel-detail-body .novel-centered-divider {
    margin: 2lh 0;
}

.novel-detail-body ul,
.novel-detail-body ol {
    padding-left: 1.4em;
}

.novel-detail-body blockquote {
    padding: 16px 20px;
    border-left: 3px solid var(--color-line);
    background-color: var(--color-surface);
    color: var(--color-text-muted);
}

.novel-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.novel-detail-body code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.92em;
}

.novel-detail-body pre {
    overflow-x: auto;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background-color: #f5f3ef;
}

@media (max-width: 720px) {
    .webapps-mobile-sort {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 18px;
        padding: 14px 16px;
        background-color: var(--color-surface);
        border: 1px solid var(--color-line-soft);
        border-radius: var(--radius-md);
    }

    .webapps-mobile-sort-label {
        color: var(--color-text-subtle);
        font-size: 0.82rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .webapps-mobile-sort-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .webapp-sort-button-mobile {
        width: auto;
        padding: 10px 14px;
        border: 1px solid var(--color-line-soft);
        border-radius: var(--radius-pill);
        background-color: var(--color-bg);
        font-size: 0.78rem;
    }

    .webapps-table,
    .webapps-table thead,
    .webapps-table tbody,
    .webapps-table tr,
    .webapps-table th,
    .webapps-table td {
        display: block;
        width: 100%;
    }

    .novels-table,
    .novels-table thead,
    .novels-table tbody,
    .novels-table tr,
    .novels-table th,
    .novels-table td {
        display: block;
        width: 100%;
    }

    .webapps-table {
        border: none;
    }

    .novels-table {
        border: none;
    }

    .webapps-table thead {
        position: absolute;
        left: -9999px;
        top: -9999px;
    }

    .novels-table thead {
        position: absolute;
        left: -9999px;
        top: -9999px;
    }

    .webapps-table tbody tr {
        padding: 20px 0;
        border-bottom: 1px solid var(--color-line-soft);
    }

    .novels-table tbody tr {
        padding: 20px 0;
        border-bottom: 1px solid var(--color-line-soft);
    }

    .webapps-table tbody tr:first-child {
        border-top: 1px solid var(--color-line-soft);
    }

    .novels-table tbody tr:first-child {
        border-top: 1px solid var(--color-line-soft);
    }

    .webapp-cell {
        padding: 6px 0;
        text-align: left;
    }

    .novel-cell {
        padding: 6px 0;
        text-align: left;
    }

    .webapp-cell-name {
        width: auto;
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .novel-cell-name {
        width: auto;
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .webapp-cell-type {
        width: auto;
    }

    .novel-cell-cover {
        width: auto;
        margin-bottom: 10px;
    }

    .novel-cover-image,
    .novel-cover-placeholder {
        width: 96px;
        max-width: 96px;
    }

    .novel-cell-genre {
        width: auto;
    }

    .novel-cell-published,
    .novel-cell-favorite {
        width: auto;
    }

    .novel-cell-favorite {
        text-align: left;
    }

    .webapp-type {
        min-width: 0;
    }

    .webapp-cell-link {
        width: auto;
        text-align: left;
        white-space: normal;
        margin-top: 8px;
    }

    .novel-detail-cover-wrap {
        max-width: 220px;
    }
}

.works-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px 20px;
    align-items: end;
    margin: 0 0 24px;
    padding: 24px 24px 28px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-md);
}

.works-control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.works-control-group label {
    font-size: 0.82rem;
    line-height: 1.45;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.works-control-group input[type="search"],
.works-control-group select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    letter-spacing: 0.02em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.works-control-group select {
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
        linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

.works-control-group input[type="search"]:focus-visible,
.works-control-group select:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-color: var(--color-focus);
}

.works-control-group.works-search {
    grid-column: span 2;
}

.works-control-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

.works-control-actions .btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.9rem;
}

.works-result-meta {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    margin: 0 0 24px;
    text-align: right;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin: 0 0 16px;
}

.works-card {
    position: relative;
    background-color: var(--color-surface);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.4s var(--ease-out-quint);
    display: flex;
    flex-direction: column;
}

.works-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    border-radius: inherit;
    z-index: 1;
}

.works-card:hover,
.works-card:focus-within {
    box-shadow: var(--shadow-md);
}

.works-card:hover::after,
.works-card:focus-within::after {
    opacity: 1;
}

.works-card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.works-card-link:hover,
.works-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.works-card-link:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: var(--radius-md);
}

.works-card-image,
.works-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    background-color: var(--color-surface);
    object-fit: cover;
}

.works-card-placeholder {
    background-color: var(--color-panel);
}

.works-card-body {
    padding: 28px 32px 32px;
    border-top: 1px solid var(--color-line-soft);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.works-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin: 0 0 6px;
    line-height: 1.45;
}

.works-card-meta {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* 制作年月 / シリーズ / 販売状態 を一行に表組み風にまとめるバー */
.works-card-meta-bar {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    color: var(--color-text-muted);
    font-size: 0.84rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.works-card-meta-item {
    padding: 2px 9px;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.025);
    border-radius: var(--radius-pill);
}

.works-card-meta-item:first-child {
    padding-left: 9px;
}

.works-card-meta-item + .works-card-meta-item {
    border-left: 0;
}

.works-card-meta-bar .works-card-status {
    margin: 0;
    padding: 2px 9px;
    background-color: rgba(0, 0, 0, 0.025);
    border-radius: var(--radius-pill);
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

.works-card-meta-bar .works-card-meta-item:first-child.works-card-status {
    padding-left: 9px;
}

.works-card-status {
    margin: 6px 0 0;
    align-self: flex-start;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: var(--color-panel);
    color: var(--color-text-muted);
}

.works-card-status-available {
    color: #1a4f9a;
}

.works-card-status-reserved {
    color: var(--color-text-muted);
}

.works-card-status-sold {
    color: var(--color-text-subtle);
}

.works-card-status-not-for-sale {
    color: var(--color-text-subtle);
}

.works-card-status-preparing {
    color: var(--color-text-subtle);
}

.works-card-sales {
    padding: 0 32px 28px;
    text-align: center;
}

.works-card-sales .sales-links {
    justify-content: center;
    margin-top: 0;
}

.works-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 48px 0;
    margin: 0;
}

/* Sales links (works card / works detail) */
.sales-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
}

.sales-region {
    min-width: 0;
    flex: 0 1 auto;
    text-align: center;
}

.sales-region + .sales-region {
    padding-left: 20px;
    border-left: 1px solid var(--color-line-soft);
}

.sales-region-label {
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin: 0 0 6px;
    white-space: nowrap;
}

.sales-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
}

.sales-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background-color: var(--color-text);
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.sales-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.sales-button:hover,
.sales-button:focus-visible {
    background-color: var(--color-text);
    color: #fff;
    text-decoration: none;
}

.sales-button:hover::after,
.sales-button:focus-visible::after {
    opacity: 1;
}

.sales-button:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.sales-button-disabled,
.sales-links.is-disabled .sales-button {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-text-subtle);
    border-color: var(--color-line-soft);
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.sales-status-note {
    margin: 0 0 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
    color: var(--color-text-subtle);
}

.sales-links-detail .sales-status-note {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.sales-links-compact .sales-status-note {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

/* Compact (works listing card) */
.sales-links-compact {
    margin-top: 14px;
    gap: 14px;
}

.sales-links-compact .sales-region + .sales-region {
    padding-left: 14px;
}

.sales-links-compact .sales-region-label {
    font-size: 0.74rem;
    letter-spacing: 0;
    margin-bottom: 5px;
}

.sales-links-compact .sales-button {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.sales-links-compact .sales-buttons {
    gap: 5px;
}

/* Detail (work detail page) */
.sales-links-detail {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-line-soft);
    gap: 48px;
    justify-content: center;
}

.sales-links-detail .sales-region + .sales-region {
    padding-left: 48px;
}

.sales-links-detail .sales-button {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
}

@media (max-width: 720px) {
    .sales-links-detail .sales-button {
        flex: 1 1 auto;
    }
}

/* Works detail page */
.page-work-detail {
    padding-top: 140px;
}

.work-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.work-detail-back:hover,
.work-detail-back:focus-visible {
    color: var(--color-text);
}

.work-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 56px);
    align-items: start;
}

.work-detail-media-block {
    min-width: 0;
}

.work-detail-media {
    background-color: var(--color-panel);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    line-height: 0;
}

.work-detail-image-button {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.work-detail-image-button:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: -4px;
}

.work-detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.work-detail-image-note {
    margin: 12px 0 0;
    padding: 0 16px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    letter-spacing: 0.06em;
    text-align: center;
}

.work-detail-image-note-sub {
    margin-top: 4px;
    color: var(--color-text-subtle);
    font-size: 0.78rem;
}

.work-lightbox[hidden] {
    display: none;
}

.work-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.work-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(20, 18, 14, 0.82);
    cursor: zoom-out;
}

.work-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-lightbox-image {
    display: block;
    max-width: min(96vw, 1400px);
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
    background-color: var(--color-surface);
}

.work-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s var(--ease-out-quint), transform 0.25s var(--ease-out-quint);
}

.work-lightbox-close:hover,
.work-lightbox-close:focus-visible {
    background-color: var(--color-surface);
    transform: translateY(-1px);
}

.work-detail-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--color-panel);
}

.work-detail-body {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-detail-series {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin: 0;
}

.work-detail-title {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0;
}

.work-detail-title-en {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    margin: -8px 0 0;
    font-style: italic;
}

.work-detail-status {
    align-self: flex-start;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: var(--color-panel);
    color: var(--color-text-muted);
    margin: 4px 0 0;
}

.work-detail-status.works-card-status-available {
    background-color: rgba(26, 115, 232, 0.08);
    color: #1a4f9a;
}

.work-detail-description {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
    margin: 8px 0 0;
    white-space: pre-line;
}

.work-detail-specs {
    margin: 18px 0 0;
    border-top: 1px solid var(--color-line-soft);
    display: grid;
    grid-template-columns: minmax(160px, auto) 1fr;
    row-gap: 10px;
    column-gap: 20px;
    padding-top: 18px;
}

.work-detail-specs dt {
    color: var(--color-text-subtle);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.work-detail-specs dd {
    margin: 0;
    color: var(--color-text);
    font-size: 0.96rem;
    line-height: 1.7;
}

.work-detail-tags {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.work-detail-tag {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    background-color: transparent;
    border: 1px solid var(--color-line-soft);
    padding: 3px 9px;
    border-radius: 999px;
}

.work-detail-link {
    margin: 28px 0 0;
}

.work-detail-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-line-soft);
}

.work-detail-nav-item {
    min-width: 0;
}

.work-detail-nav-item-next {
    text-align: right;
}

.work-detail-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.work-detail-nav-link:hover,
.work-detail-nav-link:focus-visible {
    color: var(--color-accent);
}

.work-detail-nav-link-next {
    justify-content: flex-end;
}

.work-detail-not-found {
    text-align: center;
    padding: 80px 0;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .work-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .work-detail-title {
        font-size: 1.6rem;
    }

    .work-detail-nav {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 720px) {
    .works-controls {
        grid-template-columns: 1fr 1fr;
        padding: 18px 16px 20px;
    }
    .works-control-group.works-search {
        grid-column: span 2;
    }
    .works-control-actions {
        grid-column: span 2;
        justify-content: stretch;
    }
    .works-control-actions .btn {
        width: 100%;
    }
    .works-result-meta {
        text-align: left;
    }
    .works-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .works-card-body {
        padding: 22px 22px 24px;
    }
    .works-card-title {
        font-size: 1.18rem;
    }
    .works-card-sales {
        padding: 0 22px 22px;
    }
}

.pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-btn:hover {
    background: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
}

.page-btn.is-current {
    background: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
    cursor: default;
}

.page-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.page-btn.page-nav {
    font-size: 0.75rem;
}

.page-ellipsis {
    color: var(--color-text-subtle);
    padding: 0 4px;
    user-select: none;
}

footer {
    padding: 48px 0 56px;
    border-top: 1px solid var(--color-line-soft);
    background-color: var(--color-bg);
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-nav {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

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

.footer-inner > p {
    color: var(--color-text-subtle);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

/* ========================================================= */
/* Large Tablets: 1100px and below                          */
/* ========================================================= */
@media (max-width: 1100px) {
    .shop-links {
        gap: 32px;
    }

    .section-head {
        max-width: 90%;
    }

    nav a {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
}

/* ========================================================= */
/* Tablets: 900px and below                                */
/* ========================================================= */
@media (max-width: 900px) {
    .header-inner {
        min-height: 64px;
        padding: 10px clamp(10px, 2vw, 20px);
    }

    .site-title {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    }

    nav a {
        font-size: 0.95rem;
        min-height: 40px;
        padding: 0 4px;
    }

    nav ul {
        gap: clamp(10px, 1.5vw, 18px);
    }

    .hero-copy {
        font-size: clamp(0.95rem, 4.5vw, 1.6rem);
    }

    section {
        padding: 80px 0;
    }

    .section-head h1,
    .section-head h2 {
        font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    }

    .works-showcase {
        --carousel-item-width: 280px;
        --carousel-gap: 20px;
    }

    .scroll-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 11px;
    }

    .scroll-btn.left { left: -2px; }
    .scroll-btn.right { right: -2px; }
}

@media (max-width: 820px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .header-right {
        display: none;
    }

    .header-center {
        display: none;
        flex-basis: 100%;
        order: 3;
    }

    .header-center.is-open {
        display: block;
    }

    .header-center .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 8px 0 16px;
    }

    .header-center .nav-list li {
        border-top: 1px solid var(--color-line-soft);
    }

    .header-center .nav-list a {
        display: block;
        padding: 14px 8px;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .hamburger.is-open span:nth-child(2) { opacity: 0; }
    .hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .hero-copy {
        font-size: 1.4rem;
    }

    section {
        padding: 72px 0;
    }

    .section-head h1,
    .section-head h2 {
        font-size: 1.9rem;
    }

    .works-showcase {
        --carousel-gap: 16px;
        --carousel-item-width: 100%;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .carousel-viewport {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 0;
        padding-right: 0;
        scroll-padding-inline: 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .works-scroll {
        gap: 0;
        width: 100%;
        min-width: 100%;
        transition: none;
        will-change: auto;
    }

    .work-item {
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .scroll-btn {
        display: flex;
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 11px;
        background: rgba(31, 28, 24, 0.86);
        border-color: rgba(31, 28, 24, 0.86);
        box-shadow: var(--shadow-sm);
    }

    .scroll-btn.left {
        left: 8px;
    }

    .scroll-btn.right {
        right: 8px;
    }

    .shop-links {
        gap: 24px;
    }

    .sub-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .hero-caption {
        bottom: 22px;
    }

    .hero-copy {
        font-size: 1.15rem;
    }

    .btn {
        width: min(100%, 360px);
    }

    .works-footer .btn {
        display: flex;
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        flex-direction: column;
    }

    .info-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 4px;
    }

    .info-date {
        font-size: 0.82rem;
    }

    .info-type {
        justify-content: flex-start;
        width: fit-content;
    }

    .works-showcase {
        --carousel-item-width: 100%;
        --carousel-gap: 14px;
        margin-top: 64px;
    }
}

/* ========================================================= */
/* Tablet/Small Devices: 480px and below                   */
/* ========================================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-inner {
        padding: 12px 12px;
        min-height: 60px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .hero-image {
        height: 45vh;
        max-height: 400px;
    }

    .hero-caption {
        padding: 32px 16px 40px;
        bottom: 16px;
    }

    .hero-copy {
        font-size: 1rem;
        line-height: 1.3;
    }

    .hero-label {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    section {
        padding: 56px 0;
    }

    .section-head {
        margin: 0 auto 40px;
        max-width: 100%;
    }

    .section-head h1,
    .section-head h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .section-label {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .section-description {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .works-showcase {
        --carousel-item-width: 100%;
        --carousel-gap: 12px;
        margin-top: 56px;
    }

    .info-item {
        padding: 12px 2px;
    }

    .information-list {
        gap: 16px;
    }

    .shop-section h2 {
        font-size: 1.6rem;
    }

    .shop-links {
        gap: 16px;
        flex-direction: column;
    }

    .shop-region-link {
        flex: 1;
        min-width: 100%;
    }

    .shop-region-link img {
        width: 100%;
        height: auto;
    }

    .subcontents-groups {
        gap: 32px;
    }

    .subcontents-group {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .subcontents-group a {
        font-size: 0.95rem;
    }

    .about-section {
        gap: 24px;
    }

    .about-section img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    footer {
        padding: 48px 0;
    }

    .footer-inner > p {
        font-size: 0.8rem;
    }
}

/* ========================================================= */
/* Extra Small Devices: 375px and below                    */
/* ========================================================= */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }

    .header-inner {
        padding: 10px 10px;
        min-height: 56px;
    }

    .site-title {
        font-size: 1.1rem;
        letter-spacing: 0.02em;
    }

    .header-center .nav-list a {
        font-size: 0.95rem;
        padding: 12px 6px;
    }

    nav a {
        font-size: 0.95rem;
        min-height: 40px;
    }

    .icon-link {
        width: 40px;
        height: 40px;
    }

    .icon-text {
        font-size: 0.65rem;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .hamburger span {
        width: 20px;
    }

    .hero-image {
        height: 40vh;
        max-height: 350px;
    }

    .hero-caption {
        padding: 24px 12px 32px;
    }

    .hero-copy {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .hero-label {
        font-size: 0.7rem;
        margin-bottom: 8px;
        letter-spacing: 0.16em;
    }

    section {
        padding: 40px 0;
    }

    .section-head {
        margin: 0 auto 32px;
    }

    .section-head h1,
    .section-head h2 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .section-label {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }

    .section-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .works-showcase {
        --carousel-item-width: 100%;
        --carousel-gap: 10px;
        margin-top: 40px;
    }

    .carousel-item-content h3 {
        font-size: 0.85rem;
    }

    .carousel-item-content p {
        font-size: 0.75rem;
    }

    .scroll-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 9px;
    }

    .info-item {
        padding: 10px 2px;
        gap: 6px;
    }

    .info-date {
        font-size: 0.75rem;
    }

    .info-type {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .information-list {
        gap: 12px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .shop-section h2 {
        font-size: 1.4rem;
    }

    .shop-description {
        font-size: 0.85rem;
    }

    .shop-links {
        gap: 12px;
    }

    .shop-region-link {
        flex: 1;
    }

    .shop-shipping-note {
        font-size: 0.75rem;
    }

    .subcontents-groups {
        gap: 24px;
    }

    .subcontents-group a {
        font-size: 0.9rem;
    }

    .about-section h2 {
        font-size: 1.4rem;
    }

    .about-section p {
        font-size: 0.85rem;
    }

    .about-section img {
        width: 100%;
        max-width: 100%;
    }

    footer {
        padding: 40px 0;
    }

    .footer-inner > p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* =========================================================
   Language Switch (JA / EN)
   ========================================================= */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    background-color: var(--color-surface);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
}

.lang-switch button {
    appearance: none;
    background: none;
    border: 0;
    min-width: 34px;
    min-height: 28px;
    padding: 5px 8px;
    margin: 0;
    cursor: pointer;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: 1;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch button:hover,
.lang-switch button:focus-visible {
    color: var(--color-text);
}

.lang-switch button:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.lang-switch button.is-active,
.lang-switch button[aria-pressed="true"] {
    color: var(--color-text);
    background-color: var(--color-panel);
}

.lang-switch-sep {
    color: var(--color-text-subtle);
    font-size: 0.76rem;
    user-select: none;
}

/* Shop shipping note (small inline text under each region image) */
.shop-shipping-note {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-align: center;
}

/* モバイル: ソーシャルアイコンは非表示にしつつ、言語切替は表示する */
@media (max-width: 820px) {
    .header-right {
        display: inline-flex;
        flex: 0 0 auto;
        gap: 8px;
        margin-left: auto;
        margin-right: 8px;
    }
    .header-right .icon-link {
        display: none;
    }
    .header-right .lang-switch {
        display: inline-flex;
    }
}
