/* ================================================
   @ak2lab/engine — base.css
   設計基盤（CSS変数・リセット・レイアウト・ユーティリティ）

   このファイルはエンジンの「土台」です。
   サイト固有の背景画像・コピーライトテキスト等は
   店舗側の CSS で上書き・追記してください。
   プラグイン固有 CSS は src/plugins/{name}/{name}.css で管理します。
   ================================================ */

/* --- CSS Variables & Reset --- */
:root {
    --color-primary:       #025DCC;
    --color-secondary:     #00C6FF;
    --color-dark:          #0f172a;
    --color-text:          #334155;
    --color-text-light:    #475569;
    --color-text-lighter:  #cbd5e1;
    --color-bg-light:      #f8fafc;
    --color-white:         #ffffff;

    --font-sans:    "Noto Serif JP", serif;
    --font-english: "Lato", sans-serif;
    --font-mono:    "Roboto Mono", monospace;

    /* グラスモーフィズム */
    --glass-bg:     rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-blur:   20px;

    --container-width: 1240px;
    --header-height:   80px;

    /* Z-Index */
    --z-header:    50;
    --z-nav:       40;
    --z-content:   10;
    --z-card:       5;
    --z-waves:      3;
    --z-particles:  1;
    --z-shapes:     0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: var(--z-content);
}
.section { padding: 120px 0; position: relative; overflow: hidden; }

/* セクションヘッダー */
.section-header { text-align: center; margin-bottom: 80px; position: relative; z-index: var(--z-content); }
.section-header__subtitle {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}
.section-header__title {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0;
    display: inline-block;
    position: relative;
}
.section-header__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    margin: 1.2rem auto 0;
    border-radius: 2px;
}
.section--dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}
.section--dark .section-header__title { color: var(--color-white); }
.section--dark .section-header__subtitle { opacity: 0.8; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}
@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
.float-animation { animation: gentle-float 5s ease-in-out infinite; }

@keyframes gentle-fade-in-up {
    0%   { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Background Shapes (装飾ぼかし図形) --- */
.bg-shape-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: var(--z-shapes);
    pointer-events: none;
}
.bg-shape-item {
    position: absolute;
    border-radius: 40px;
    filter: blur(80px);
    opacity: 0.8;
    animation: rotate-float 30s infinite linear;
}
@keyframes rotate-float {
    0%   { transform: translate(0, 0) rotate(0deg); }
    33%  { transform: translate(40px, -60px) rotate(120deg); }
    66%  { transform: translate(-30px, 30px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* --- Cards (基本グリッド・グラス) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
}
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    z-index: var(--z-card);
    display: flex;
    flex-direction: column;
}
.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.8);
}
.card-title {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-text { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.8; }

/* --- Philosophy Section (グリッドラッパー) --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: var(--z-content);
}
.philosophy-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 2.2;
    font-size: 1.05rem;
    position: relative;
    z-index: var(--z-content);
}
.philosophy-sub {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-family: var(--font-mono);
}

/* --- Concept Section --- */
.section--concept-detail { background-color: #ffffff; }

/* --- Stance Section (ラッパー) --- */
.section--stance {
    background-color: #f8fafc;
    border-top: 1px dashed rgba(2, 93, 204, 0.2);
    border-bottom: 1px dashed rgba(2, 93, 204, 0.2);
}
.stance-infographic {
    width: 100%;
    height: 300px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 4rem;
    color: #64748b;
    font-weight: 700;
    font-size: 1.2rem;
}
.stance-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Target Section --- */
.section--target { background-color: var(--color-white); position: relative; }
.target-footer {
    text-align: center;
    margin-top: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    position: relative;
    z-index: var(--z-content);
}

/* --- Service Section (ラッパー) ---
   背景画像は店舗側 CSS で上書きしてください:
   .section--service { background-image: url('/images/your-image.jpg'); }
*/
.section--service {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
.section--service::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    position: relative;
    z-index: var(--z-content);
}
@media(min-width: 800px) {
    .service-grid { grid-template-columns: 1fr 1fr; }
}
.tech-note-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #64748b;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    z-index: var(--z-content);
}
.tech-note__title { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); margin-bottom: 0.8rem; }

/* --- Samples / Library / Apps Sections --- */
.section--samples {
    background-color: #f8fafc;
    background-image: linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}
.section--library {
    background-color: #f0f9ff;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.7) 10px, rgba(255,255,255,0.7) 20px);
}
.section--apps {
    background-color: var(--color-dark);
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 30px 30px;
    color: white;
}
.centered-content { text-align: center; max-width: 800px; margin: 0 auto; }
.content-placeholder {
    background: white;
    border: 2px dashed #cbd5e1;
    padding: 4rem 2rem;
    border-radius: 16px;
    color: var(--color-text-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.content-placeholder__title { font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; }
.content-placeholder__note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}
.apps-intro { max-width: 800px; margin: 0 auto 2rem; color: var(--color-text-lighter); }
.apps-note { margin-bottom: 2rem; color: #94a3b8; font-family: var(--font-mono); }

/* --- Comics Section --- */
.section--comics { background-color: #fff; }

/* --- Greeting Section (ラッパー) ---
   ウォーターマークは店舗側 CSS で追加してください:
   .section--greeting::before { content: 'YOUR_LABEL'; ... }
*/
.section--greeting { background-color: #f8fafc; }

/* --- FAQ Section --- */
.section--faq { background-color: #ffffff; }

/* --- Contact Section --- */
.section--contact {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

/* --- Buttons --- */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-sans);
}
.btn-primary {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--color-primary), #004eb3);
    color: white;
    box-shadow: 0 8px 20px rgba(2, 93, 204, 0.25);
    letter-spacing: 0.05em;
    border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(2, 93, 204, 0.3); color: white; }
.btn-outline {
    padding: 0.8rem 2.5rem;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}
.btn-outline:hover { background: var(--color-primary); color: white; box-shadow: 0 5px 15px rgba(2, 93, 204, 0.2); }

/* --- Active Nav --- */
.nav-menu__link.is-active { color: var(--color-primary); }
.nav-menu__link.is-active::after { width: 100%; }

/* --- Utility Buttons (追加) --- */
.btn-ghost {
    padding: 0.8rem 2.5rem;
    border: 2px solid transparent;
    color: var(--color-primary);
    background: transparent;
}
.btn-ghost:hover { background: rgba(2,93,204,0.05); color: var(--color-primary); }
.btn-light {
    padding: 0.8rem 2.5rem;
    background: white;
    color: var(--color-dark);
    border: 2px solid rgba(255,255,255,0.6);
    margin-top: 1.5rem;
    display: inline-block;
}
.btn-light:hover { background: #f1f5f9; color: var(--color-primary); }
.btn-secondary {
    padding: 0.8rem 2.5rem;
    background: #f1f5f9;
    color: var(--color-text);
    border: 2px solid #e2e8f0;
}
.btn-secondary:hover { background: #e2e8f0; color: var(--color-dark); }
.btn-gradient {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 8px 20px rgba(2,93,204,0.25);
    border: none;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(2,93,204,0.35); color: white; }
.btn-gradient-warm {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    box-shadow: 0 8px 20px rgba(245,158,11,0.25);
    border: none;
}
.btn-gradient-warm:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(245,158,11,0.35); color: white; }
.btn-sm { padding: 0.6rem 1.8rem; font-size: 0.85rem; }
.btn-lg { padding: 1.2rem 3.5rem; font-size: 1.05rem; }
.btn-icon { display: inline-flex; align-items: center; gap: 0.5rem; }

/* --- Card Variants (追加) --- */
.section--white { background: #ffffff; }

.card-border {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.card-border::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}
.card-border:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); border-color: transparent; }
.card-border:hover::before { transform: scaleY(1); }

.card-gradient {
    background: linear-gradient(135deg, var(--color-primary), #004eb3);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(2,93,204,0.3);
}
.card-gradient:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(2,93,204,0.4); }

.card-elevated {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-elevated:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06); }

.card-horizontal {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}
.card-horizontal:hover { transform: translateX(6px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); border-color: var(--color-secondary); }
.card-horizontal__icon { flex-shrink: 0; }
.card-horizontal__body { flex: 1; }

.card-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(2,93,204,0.08);
    color: var(--color-primary);
    padding: 0.2em 0.8em;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.card-badge--outline { background: transparent; border: 1px solid var(--color-primary); }
.card-badge--light { background: rgba(255,255,255,0.2); color: white; }
.card-badge--elevated { background: rgba(2,93,204,0.06); }

/* --- Samples Hero --- */
.section--samples-hero {
    background: #f8fafc;
    background-image:
        linear-gradient(rgba(203,213,225,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(203,213,225,0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Samples Grid --- */
.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
@media(min-width: 1024px) { .samples-grid { grid-template-columns: 1fr 1fr; } }

/* Tag */
.tag {
    display: inline-block;
    font-size: 0.75rem;
    background: #f1f5f9;
    color: var(--color-text-light);
    padding: 0.2em 0.8em;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* Features Grid (samples page) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
@media(min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Parts Hero --- */
.section--parts-hero {
    min-height: 70vh;
    background: var(--color-dark);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(2,93,204,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,198,255,0.1) 0%, transparent 40%);
}
.section--parts-hero .section-header__subtitle { color: var(--color-secondary); }
.section--parts-hero .page-hero__title { color: white; }
.section--parts-hero .page-hero__lead { color: #94a3b8; }

/* TypeWriter */
.typewriter-wrapper {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: #94a3b8;
}
.typewriter-prefix { color: #64748b; }
.typewriter-container {
    display: inline-grid;
    justify-items: start;
}
.typewriter-container > * {
    grid-area: 1 / 1;
    white-space: pre-wrap;
    word-break: break-word;
}
.typewriter-placeholder {
    color: transparent;
    pointer-events: none;
    user-select: none;
    visibility: hidden;
}
.typewriter-text {
    color: var(--color-secondary);
    font-weight: 700;
}
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--color-secondary);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
    margin-bottom: 0.1em;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* Parts Stats */
.parts-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.parts-stat { text-align: center; }
.parts-stat__number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.parts-stat__label { font-size: 0.8rem; color: #64748b; }

/* Parts Sub Title */
.parts-sub-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Typography Showcase */
.typo-font-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.typo-font-block {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.typo-font-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.typo-font-sample { font-size: 1.4rem; color: var(--color-dark); line-height: 1.5; margin-bottom: 1rem; }
.typo-font-desc { font-size: 0.85rem; color: var(--color-text-light); }

.typo-scale { display: flex; flex-direction: column; gap: 0; }
.typo-scale-row {
    display: flex; align-items: baseline;
    gap: 1.5rem; padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.ts-label {
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
    color: var(--color-secondary); width: 40px; flex-shrink: 0;
}
.ts-size {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: #94a3b8; width: 60px; flex-shrink: 0;
}
.ts-sample { color: var(--color-dark); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Color System */
.color-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.color-group { display: flex; flex-direction: column; gap: 0.8rem; }
.color-swatch-large {
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 80px;
    justify-content: flex-end;
    cursor: default;
}
.color-swatch-hex { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; }
.color-swatch-name { font-size: 0.75rem; opacity: 0.8; }

/* Glassmorphism Demo */
.glass-demo-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
@media(max-width: 700px) { .glass-demo-wrap { grid-template-columns: 1fr; } }
.glass-demo-bg {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe, #dbeafe);
    border-radius: 16px;
    padding: 2rem;
    display: flex; align-items: center; justify-content: center;
    min-height: 160px;
}
.glass-demo-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
}
.glass-code {
    background: #0f172a;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #94a3b8;
    display: flex; align-items: center;
}
.glass-code code { color: #7dd3fc; }

/* Button Showcase */
.btn-showcase { margin-bottom: 2rem; }
.btn-showcase-row {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; padding: 1.5rem;
    background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0;
}

/* Cards Showcase */
.cards-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
@media(min-width: 1024px) { .cards-showcase-grid { grid-template-columns: repeat(4, 1fr); } }

/* Effects Showcase */
.effects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
@media(min-width: 1200px) { .effects-showcase-grid { grid-template-columns: repeat(3, 1fr); } }
.effect-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s ease;
}
.effect-card:hover { border-color: rgba(0,198,255,0.3); }
.effect-card--coming { opacity: 0.5; }
.effect-card__header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.effect-card__header svg { width: 24px; height: 24px; }
.effect-card__title { font-size: 1.1rem; font-weight: 700; color: white; }
.effect-card__desc { font-size: 0.9rem; color: #94a3b8; line-height: 1.7; margin-bottom: 1.2rem; }
.effect-card__code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-secondary);
    background: rgba(0,198,255,0.05);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(0,198,255,0.1);
}
.effect-card--new { border-color: rgba(0,198,255,0.15); }
.effect-card__badge {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-secondary);
    background: rgba(0,198,255,0.12);
    border: 1px solid rgba(0,198,255,0.25);
    border-radius: 3px;
    padding: 2px 6px;
    margin-left: auto;
}
.effect-card__demo {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--color-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,198,255,0.3);
    transition: border-color 0.2s ease;
}
.effect-card__demo:hover { border-color: var(--color-secondary); }

/* Background Overlay Catalog */
.overlay-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}
.overlay-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.3s ease;
}
.overlay-card:hover { border-color: rgba(0,198,255,0.25); }
.overlay-card--coming { opacity: 0.5; }
.overlay-card__icon { font-size: 1.6rem; line-height: 1; margin-bottom: 0.2rem; }
.overlay-card__title { font-size: 0.95rem; font-weight: 700; color: white; }
.overlay-card__desc { font-size: 0.82rem; color: #94a3b8; line-height: 1.6; flex: 1; }
.overlay-card__link {
    margin-top: 0.5rem;
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--color-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,198,255,0.3);
    width: fit-content;
    transition: border-color 0.2s ease;
}
.overlay-card__link:hover { border-color: var(--color-secondary); }
.overlay-card__link--soon {
    color: #475569;
    border-bottom-color: transparent;
    pointer-events: none;
}

/* Motion Showcase */
.motion-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.motion-item {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.motion-item:last-child { border-bottom: none; }
@media(max-width: 700px) { .motion-item { flex-direction: column; gap: 1.5rem; } }
.motion-demo {
    flex: 0 0 420px;
    display: flex; align-items: center; justify-content: center;
    min-height: 100px;
}
.motion-info { flex: 1; }
.motion-title { font-size: 1.15rem; font-weight: 700; color: var(--color-dark); margin-bottom: 0.5rem; }
.motion-desc { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.7; margin-bottom: 0.8rem; }
.motion-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-secondary);
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.wave-demo-strip { width: 100%; overflow: hidden; }
.shine-demo {
    width: 200px; height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.shine-bar {
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine-loop 2.5s ease-in-out infinite;
}
@keyframes shine-loop {
    0%   { left: -60%; }
    100% { left: 120%; }
}

/* --- Parts Category Cards --- */
.parts-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
@media (min-width: 1024px) { .parts-category-grid { grid-template-columns: repeat(3, 1fr); } }
.parts-category-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.parts-category-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}
.parts-category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); border-color: transparent; }
.parts-category-card:hover::before { transform: scaleY(1); }
.parts-category-card__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
}
.parts-category-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
}
.parts-category-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    flex: 1;
}
.parts-category-card__link {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-weight: 700;
}

/* --- Breadcrumb --- */
.breadcrumb {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: #94a3b8;
    margin-bottom: 2rem;
}
.breadcrumb a { color: var(--color-secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 0.5rem; color: #475569; }

/* Form Additions */
.form-select { cursor: pointer; }
.check-group { display: flex; flex-direction: column; gap: 0.8rem; }
.check-label {
    display: flex; align-items: center; gap: 0.7rem;
    font-size: 0.95rem; color: var(--color-text); cursor: pointer;
}
.check-input {
    width: 18px; height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.form-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}
@media(max-width: 700px) { .form-showcase-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* --- Apps Hero --- */
.section--apps-hero {
    min-height: 55vh;
    background: var(--color-dark);
    background-image:
        radial-gradient(circle at 70% 60%, rgba(2,93,204,0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 30%, rgba(0,198,255,0.12) 0%, transparent 40%);
}

/* Font Tester */
.font-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 0;
}
.font-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
}
.font-card__label {
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
    color: var(--color-secondary); letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.font-card__sample { font-size: 1.3rem; color: var(--color-dark); line-height: 1.5; margin-bottom: 1rem; min-height: 3em; }
.font-card__desc { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.6; }

/* Modular Scale */
.ms-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media(max-width: 500px) { .ms-controls { grid-template-columns: 1fr; } }
.ms-scale { display: flex; flex-direction: column; gap: 0; }
.ms-row {
    display: flex; align-items: baseline; gap: 1.5rem;
    padding: 0.6rem 0; border-bottom: 1px solid #f1f5f9;
}
.ms-name { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--color-secondary); width: 50px; flex-shrink: 0; }
.ms-size { font-family: var(--font-mono); font-size: 0.75rem; color: #94a3b8; width: 60px; flex-shrink: 0; }
.ms-sample { color: var(--color-dark); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* core/core-engine.css */
/* ================================================================
   core-engine.css
   AK²-Engine 描画用 Canvas のスタイル
   ================================================================ */

/* セクション背景 Canvas（section-effects.js で使用） */
.section-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* エフェクトプレビュー Canvas（card-preview.js で使用） */
.effect-preview-canvas {
    display: block;
    width: 100%;
    height: 180px;
    background: transparent;
    border-radius: 8px 8px 0 0;
}

/* エフェクトカタログカード（プレビュー付きカード） */
.effect-catalog-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.effect-catalog-card:hover { border-color: rgba(0,198,255,0.3); }
.effect-catalog-card--coming { opacity: 0.45; }
.effect-catalog-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.effect-catalog-card__cat {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(0,198,255,0.1);
    border: 1px solid rgba(0,198,255,0.2);
    border-radius: 3px;
    padding: 2px 7px;
    display: inline-block;
    margin-bottom: 0.6rem;
    align-self: flex-start;
}
.effect-catalog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}
.effect-catalog-card__desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 0.8rem;
}
.effect-catalog-card__code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-secondary);
    background: rgba(0,198,255,0.05);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    border: 1px solid rgba(0,198,255,0.1);
    margin-bottom: 0.6rem;
}
.effect-catalog-card__demo {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #060c18;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
    background: var(--color-secondary);
    margin-top: 0.6rem;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.effect-catalog-card__demo:hover {
    filter: brightness(1.15);
    opacity: 0.92;
}

/* トグルボタン（ダーク/ライト切替） */
.effect-card-toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.08rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
    padding: 0;
}
.effect-card-toggle:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.45);
}

/* エフェクトカタロググリッド */
.effects-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 1200px) { .effects-catalog-grid { grid-template-columns: repeat(3, 1fr); } }

/* plugins/block-button-liquid/block-button-liquid.css */
/* ================================================================
   block-button-liquid.css
   Liquid Morphing Button
   ================================================================ */

.liquid-btn-host {
  display: inline-flex;
  vertical-align: middle;
}

.liquid-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

.liquid-btn svg {
  display: block;
  overflow: visible;
}

.liquid-btn .btn-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* plugins/block-button-stagger/block-button-stagger.css */
/* ================================================================
   block-button-stagger.css
   Stagger Typography Button
   ================================================================ */

.stagger-btn-host {
  display: inline-flex;
  vertical-align: middle;
}

/* plugins/block-button-stroke/block-button-stroke.css */
/* ================================================================
   block-button-stroke.css
   Stroke Draw Button
   ================================================================ */

.stroke-btn-host {
  display: inline-flex;
  vertical-align: middle;
}

/* plugins/block-button-wave/block-button-wave.css */
/* ================================================================
   block-button-wave.css
   SVG ウェーブ遷移ボタン
   ================================================================ */

/* ── ボタン本体 ─────────────────────────────────────────────── */

.ak2-wave-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border: 1.5px solid color-mix(in srgb, var(--wave-text-color, var(--color-primary)) 40%, transparent);
  border-radius: 40px;
  background: transparent;
  color: var(--wave-text-color, var(--color-primary));
  font-family: var(--font-english);
  font-size: 0.85rem;
  letter-spacing: 0.10em;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease,
              background 0.3s ease,
              transform 0.2s ease;
}

.ak2-wave-btn:hover {
  border-color: var(--wave-text-color, var(--color-primary));
  background: color-mix(in srgb, var(--wave-text-color, var(--color-primary)) 6%, transparent);
}

.ak2-wave-btn:active { transform: scale(0.97); }

.ak2-wave-btn__arrow {
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
.ak2-wave-btn:hover .ak2-wave-btn__arrow { transform: translateX(4px); }

/* ── ウェーブ SVG オーバーレイ ──────────────────────────────── */

.ak2-wave-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

.ak2-wave-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* plugins/block-card-feature/block-card-feature.css */
/* ================================================================
   block-card-feature.css
   特長アイテム
   ================================================================ */

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}
.feature-item:hover { transform: translateY(-4px); }
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(2,93,204,0.07);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-title { font-size: 1.05rem; font-weight: 700; color: var(--color-dark); margin-bottom: 0.5rem; }
.feature-text { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.7; }

/* plugins/block-card-kinetic/block-card-kinetic.css */
/* ================================================================
   block-card-kinetic.css
   キネティック 3D ティルトカード
   ================================================================ */

/* ── グリッドレイアウト ─────────────────────────────────────── */

.ak2-kinetic-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--kc-min, 300px), 1fr));
  gap: var(--kc-gap, 40px);
}

/* ── カード基本 ─────────────────────────────────────────────── */

.ak2-kinetic-card {
  position: relative;
  border-radius: 16px;
  background-color: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-dark) 8%, transparent);
  overflow: hidden;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  will-change: transform;
}

/* ダークテーマ */
.ak2-kinetic-card--dark {
  background-color: #14141c;
  border-color: rgba(255, 255, 255, 0.05);
}
.ak2-kinetic-card--dark .ak2-kinetic-card__title { color: #f0f0f5; }
.ak2-kinetic-card--dark .ak2-kinetic-card__body  { color: #777788; }
.ak2-kinetic-card--dark .ak2-kinetic-card__link  { color: var(--color-primary); }
.ak2-kinetic-card--dark .ak2-kinetic-card__content { background-color: #14141c; }

/* ── グレア（光の反射）────────────────────────────────────── */

.ak2-kinetic-card__glare-wrap {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden; border-radius: 16px; pointer-events: none; z-index: 10;
}

.ak2-kinetic-card__glare {
  position: absolute; top: 50%; left: 50%;
  width: 200%; height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.20) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ── 画像 ────────────────────────────────────────────────── */

.ak2-kinetic-card__img-wrap {
  position: relative;
  width: 100%; height: 200px;
  transform-style: preserve-3d;
  overflow: hidden;
  flex-shrink: 0;
}

.ak2-kinetic-card__img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translateZ(-20px) scale(1.05);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.6s ease;
  filter: brightness(1);
}

.ak2-kinetic-card:hover .ak2-kinetic-card__img {
  filter: brightness(1.08);
  transform: translateZ(-20px) scale(1.1);
}

/* ── コンテンツ ─────────────────────────────────────────── */

.ak2-kinetic-card__content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  transform: translateZ(40px);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.ak2-kinetic-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.ak2-kinetic-card__body {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  flex: 1;
}

.ak2-kinetic-card__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.ak2-kinetic-card__link:hover { opacity: 0.7; }

/* ── タッチデバイス: 3D エフェクト無効 ──────────────────── */

@media (hover: none) {
  .ak2-kinetic-card { transition: box-shadow 0.3s ease; }
  .ak2-kinetic-card__content { transform: none; }
  .ak2-kinetic-card__img { transform: scale(1); }
}

/* plugins/block-card-philosophy/block-card-philosophy.css */
/* ================================================================
   block-card-philosophy.css
   Philosophy カード（AK² 理念: A / K / ² / Lab）
   ================================================================ */

.philosophy-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.philosophy-card:hover { transform: translateY(-5px); }
.philosophy-char {
    font-family: var(--font-english);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.philosophy-term {
    display: block;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}
.philosophy-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* plugins/block-card-sample/block-card-sample.css */
/* ================================================================
   block-card-sample.css
   サンプルサイト紹介カード
   ================================================================ */

.sample-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
    border: 1px solid #f1f5f9;
}
.sample-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.sample-card__image-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.sample-card__image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sample-card:hover .sample-card__image { transform: scale(1.05); }
.sample-card__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.sample-card__theme {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: white;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.sample-card__body { padding: 2rem; }
.sample-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.sample-card__title { font-size: 1.3rem; font-weight: 700; color: var(--color-dark); margin-bottom: 1.2rem; }
.sample-card__features { list-style: none; margin-bottom: 1.5rem; }
.sample-card__features li { font-size: 0.9rem; color: var(--color-text-light); padding: 0.3rem 0; display: flex; align-items: center; }
.sample-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.sample-card__pages { font-size: 0.85rem; color: var(--color-text-light); font-family: var(--font-mono); }

/* plugins/block-card-service/block-card-service.css */
/* ================================================================
   block-card-service.css
   サービス説明カード
   ================================================================ */

.service-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 2.5rem;
    border-top: 5px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: translateY(-3px); }
.service-card__title { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--color-dark); font-weight: 700; }
.service-card__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    background: var(--color-text-light);
    padding: 0.2em 0.8em;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    align-self: flex-start;
    font-family: var(--font-mono);
}
.service-card__price {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1;
}
.service-card__desc { flex-grow: 1; color: var(--color-text); }

/* plugins/block-card-stance/block-card-stance.css */
/* ================================================================
   block-card-stance.css
   横型スタンスカード
   ================================================================ */

.stance-card-horizontal {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}
.stance-card-horizontal:hover {
    transform: translateX(5px);
    border-color: var(--color-secondary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.stance-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    padding-top: 5px;
}
.stance-icon svg { width: 32px; height: 32px; }
.stance-content { flex-grow: 1; }
.stance-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-dark);
}
.stance-body { font-size: 0.95rem; line-height: 1.8; color: var(--color-text); }
@media(max-width: 600px) {
    .stance-card-horizontal { flex-direction: column; gap: 1rem; }
}

/* plugins/block-card-target/block-card-target.css */
/* ================================================================
   block-card-target.css
   縦型ターゲットカード（ガラスモーフィズム）
   ================================================================ */

.target-card-vertical {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    position: relative;
    z-index: var(--z-card);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.target-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.9);
}
.target-icon-wrapper {
    width: 70px; height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    color: var(--color-secondary);
}
.target-icon-wrapper svg { width: 32px; height: 32px; }
.target-title {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}
.target-text { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.6; }

/* plugins/block-concept-standard/block-concept-standard.css */
/* ================================================================
   block-concept-standard.css
   コンセプトブロック（画像＋テキスト 左右レイアウト）
   ================================================================ */

.concept-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}
.concept-layout:last-child { margin-bottom: 0; }
@media(min-width: 900px) {
    .concept-layout { flex-direction: row; align-items: center; }
    .concept-layout.reverse { flex-direction: row-reverse; }
}
.concept-visual {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    min-height: 300px;
}
.concept-text-area { flex: 1; }
.concept-head {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}
.concept-body { font-size: 1rem; line-height: 2; color: var(--color-text); }
.concept-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1rem;
    font-family: var(--font-mono);
}

/* plugins/block-cta-standard/block-cta-standard.css */
/* ================================================================
   block-cta-standard.css
   CTA セクション
   ================================================================ */

.cta-title { font-size: 2rem; font-weight: 700; color: var(--color-dark); margin-bottom: 1.5rem; line-height: 1.3; }
.cta-text { font-size: 1rem; color: var(--color-text); line-height: 2; margin-bottom: 2.5rem; }

/* plugins/block-faq-accordion/block-faq-accordion.css */
/* ================================================================
   block-faq-accordion.css
   FAQ アコーディオン
   ================================================================ */

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.faq-item:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.faq-summary {
    padding: 1.5rem 2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-dark);
    list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon {
    transition: transform 0.3s ease;
    color: #94a3b8;
    font-style: normal;
    font-size: 1.2rem;
}
details[open] .faq-icon { transform: rotate(180deg); color: var(--color-primary); }
.faq-answer {
    padding: 0 2rem 2rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.8;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

/* plugins/block-form-contact/block-form-contact.css */
/* ================================================================
   block-form-contact.css
   コンタクトフォーム
   ================================================================ */

.contact-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: var(--z-content);
}
.contact-intro__lead {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    position: relative;
    z-index: var(--z-content);
}
@media(max-width: 600px) { .contact-form { padding: 2rem; } }
.form-group { margin-bottom: 1.8rem; }
.form-label { display: block; margin-bottom: 0.8rem; font-weight: 700; font-size: 0.95rem; color: var(--color-dark); }
.form-input, .form-textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--color-primary); }
.form-textarea { height: 180px; resize: vertical; }
.form-actions { text-align: center; margin-top: 3rem; }

/* plugins/block-imagecontent-standard/block-imagecontent-standard.css */
/* ================================================================
   block-imagecontent-standard.css
   画像＋テキスト 横並びブロック
   ================================================================ */

.greeting-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: var(--z-content);
}
@media(min-width: 900px) {
    .greeting-layout { flex-direction: row; align-items: flex-start; }
}
.greeting-visual {
    flex: 0 0 350px;
    position: relative;
}
.greeting-visual img { border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.greeting-content { flex: 1; }
.greeting-headline {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

/* plugins/effect-cursor-magnetic/effect-cursor-magnetic.css */
/* ================================================================
   effect-cursor-magnetic.css
   カスタムカーソル + 磁力エフェクト
   ================================================================ */

/* data-cursor-area 内ではデフォルトカーソルを非表示 */
[data-cursor-area] { cursor: none; }
[data-cursor-area] * { cursor: none; }

/* ── カーソル要素 ────────────────────────────────────────────── */

.ak2-cursor-dot,
.ak2-cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%; pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.ak2-cursor-dot {
  width: 6px; height: 6px;
  background-color: var(--color-primary);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
}

.ak2-cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 50%, transparent);
  /* transform の transition は JS (Lerp) で処理するため設定しない */
  transition: width 0.3s ease, height 0.3s ease,
              background-color 0.3s ease, border-color 0.3s ease,
              opacity 0.3s ease;
}

/* カスタムカーソルエリア内に入ったら表示 */
body.is-custom-cursor .ak2-cursor-dot,
body.is-custom-cursor .ak2-cursor-ring { opacity: 1; }

/* ホバー状態 */
.ak2-cursor-dot.is-hover  { width: 0; height: 0; }
.ak2-cursor-ring.is-hover {
  width: 60px; height: 60px;
  background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-color: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* マグネット適用要素 */
[data-magnetic] { display: inline-block; transition: transform 0.15s linear; }

/* plugins/layout-footer-kinetic/layout-footer-kinetic.css */
/* ================================================================
   layout-footer-kinetic.css
   AK² Lab キネティック風フッター
   ================================================================ */

.site-footer {
    background: var(--color-dark);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
@media(max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 3rem; } }
.footer-logo { display: inline-block; margin-bottom: 1.5rem; }
.footer-desc { color: var(--color-text-lighter); font-size: 0.9rem; line-height: 1.8; margin-bottom: 2rem; }
.footer-heading {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}
.footer-links li { margin-bottom: 1rem; }
.footer-links a {
    color: var(--color-text-lighter);
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
}
.footer-links a:hover { color: white; transform: translateX(5px); }
.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 0.8rem;
    font-family: var(--font-english);
}

/* plugins/layout-header-kinetic/layout-header-kinetic.css */
/* ================================================================
   layout-header-kinetic.css
   AK² Lab キネティック風ヘッダー
   ================================================================ */

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: all 0.4s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    height: 70px;
}
.site-header.is-transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}
.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ブランドロゴ */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand__logo-svg {
    height: 40px;
    width: 40px;
    transition: transform 0.3s ease;
}
.brand:hover .brand__logo-svg { transform: scale(1.05); }
.brand__text {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.brand__name {
    font-family: var(--font-english);
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    line-height: 1;
}
.brand__sub {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 400;
    line-height: 1;
}

/* ナビゲーション */
.nav-menu { display: flex; gap: 1.5rem; }
.nav-menu__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
    font-family: var(--font-mono);
}
.nav-menu__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}
.nav-menu__link:hover { color: var(--color-primary); }
.nav-menu__link:hover::after { width: 100%; }
.nav-menu__link.is-active { color: var(--color-primary); }
.nav-menu__link.is-active::after { width: 100%; }

/* ── ハンバーガーボタン ─────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.hamburger__bar {
    display: block;
    width: 24px;
    height: 3px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.2s ease;
    transform-origin: center;
}
.hamburger.is-open .hamburger__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open .hamburger__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-open .hamburger__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── モバイル表示 ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .hamburger { display: flex; }

    /* nav アコーディオン：ヘッダー直下にスライドダウン */
    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(8, 20, 50, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        z-index: var(--z-nav);
        pointer-events: none;
        transition: max-height 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .site-nav.is-open {
        max-height: 350px;
        pointer-events: auto;
    }

    /* nav リンク */
    .site-nav .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
    }
    .site-nav .nav-menu__link {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        font-weight: 400;
        letter-spacing: 0.05em;
        color: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: color 0.2s ease, background 0.2s ease;
    }
    .site-nav .nav-menu__link::after { display: none; }
    .site-nav .nav-menu__link:hover,
    .site-nav .nav-menu__link.is-active {
        color: var(--color-secondary);
        background: rgba(255, 255, 255, 0.04);
    }

    /* メニュー開放中はヘッダー背景を不透明に（ハンバーガーが見えるように） */
    .site-header.menu-open {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        box-shadow: none !important;
    }

    /* その他モバイル調整 */
    .brand__text { flex-direction: column; align-items: flex-start; gap: 4px; }
    .brand__sub { display: none; }
}

/* plugins/layout-header-nav/layout-header-nav.css */
/* ================================================================
   layout-header-nav.css
   AK² グローバルヘッダーナビゲーション
   ================================================================ */

/* ── Custom Properties (AK² vars → nav vars) ─────────────────── */

:root {
  --nav-bg:        var(--color-white);
  --nav-text:      var(--color-dark);
  --nav-sub:       var(--color-text-light);
  --nav-accent:    var(--color-primary);
  --nav-icon:      var(--color-dark);
  --nav-drawer-bg: var(--color-white);
}

/* ── Header ──────────────────────────────────────────────────── */

.ak2-nav-header {
  max-width: var(--container-width); height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  margin: auto; gap: 20px;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--nav-bg) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--nav-text) 10%, transparent);
  transition: padding-right 0.3s ease, height 0.4s ease, background 0.4s ease,
              box-shadow 0.4s ease;
}
.ak2-nav-header.is-scrolled {
  background: color-mix(in srgb, var(--nav-bg) 97%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: 70px;
}
.ak2-nav-header.is-transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
.ak2-nav-header.nav-bg-solid {
  background: var(--nav-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ak2-nav-header.nav-bg-solid.is-scrolled {
  background: var(--nav-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Header: item order (brand / global / toggle) ────────────── */

.ak2-nav-header .ak2-nav-brand    { order: 1; flex-grow: 1; }
.ak2-nav-header #ak2-nav-global   { order: 2; }
.ak2-nav-header #ak2-nav-toggle-wrap { order: 3; }

/* Toggle-left variant: toggle | brand | global */
.ak2-nav-header.toggle-pos-left .ak2-nav-brand       { order: 2; }
.ak2-nav-header.toggle-pos-left #ak2-nav-toggle-wrap { order: 1; }
.ak2-nav-header.toggle-pos-left #ak2-nav-global      { order: 3; margin-left: auto; }

/* ── Brand ───────────────────────────────────────────────────── */

.ak2-nav-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.ak2-nav-brand svg,
.ak2-nav-brand img { height: 40px; width: 40px; flex-shrink: 0; transition: transform 0.3s ease; }
.ak2-nav-brand:hover svg,
.ak2-nav-brand:hover img { transform: scale(1.05); }
.ak2-nav-brand__text { display: flex; align-items: baseline; gap: 12px; }
.ak2-nav-brand__name {
  font-family: var(--font-english); font-weight: 700;
  color: var(--nav-text); font-size: 1.3rem; letter-spacing: 0.05em; line-height: 1;
}
.ak2-nav-brand__sub {
  font-size: 0.8rem; color: var(--nav-sub); font-weight: 400; line-height: 1;
}

/* ── Global Nav (base) ───────────────────────────────────────── */

.ak2-nav-global {
  display: flex; align-items: center; gap: 30px; position: relative;
}
.ak2-nav-global a {
  color: var(--nav-sub); text-decoration: none;
  font-family: var(--font-english);
  font-size: 0.85rem; letter-spacing: 0.06em; font-weight: 500;
  padding: 8px 12px; transition: color 0.3s; position: relative; z-index: 1;
}
.ak2-nav-global a:hover,
.ak2-nav-global a.is-active { color: var(--nav-text); }

/* Underline indicator */
.ak2-nav-indicator--line {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: var(--nav-accent);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none; opacity: 0;
}

/* Pill indicator */
.ak2-nav-indicator--pill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: color-mix(in srgb, var(--nav-accent) 15%, transparent);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none; opacity: 0;
}

/* Bracket variant */
.ak2-nav-global--bracket a { padding: 8px 24px; transition: all 0.3s ease; }
.ak2-nav-global--bracket a::before,
.ak2-nav-global--bracket a::after {
  position: absolute; opacity: 0; color: var(--nav-accent);
  transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
.ak2-nav-global--bracket a::before { content: '['; left: 8px; transform: translateX(5px); }
.ak2-nav-global--bracket a::after  { content: ']'; right: 8px; transform: translateX(-5px); }
.ak2-nav-global--bracket a:hover::before,
.ak2-nav-global--bracket a.is-active::before { opacity: 1; transform: translateX(0); }
.ak2-nav-global--bracket a:hover::after,
.ak2-nav-global--bracket a.is-active::after  { opacity: 1; transform: translateX(0); }

/* Shift variant */
.ak2-nav-global--shift a {
  overflow: hidden; display: inline-flex; flex-direction: column;
  height: 20px; padding: 0 12px;
}
.ak2-nav-global--shift a span { transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1); line-height: 20px; }
.ak2-nav-global--shift a::after {
  content: attr(data-text); color: var(--nav-accent); position: absolute;
  top: 100%; left: 0; width: 100%; text-align: center; line-height: 20px;
  transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
}
.ak2-nav-global--shift a:hover span   { transform: translateY(-100%); }
.ak2-nav-global--shift a:hover::after { transform: translateY(-100%); }

/* Dot variant */
.ak2-nav-global--dot a::before {
  content: ''; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px; height: 4px; border-radius: 50%; background: var(--nav-accent);
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
.ak2-nav-global--dot a:hover::before,
.ak2-nav-global--dot a.is-active::before { transform: translateX(-50%) scale(1); }

/* ── Toggle Button ───────────────────────────────────────────── */

#ak2-nav-toggle-wrap {
  display: flex; justify-content: center; align-items: center;
  width: 48px; height: 48px;
  z-index: calc(var(--z-header) + 1);
}

.ak2-nav-toggle {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--nav-icon) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--nav-icon) 10%, transparent);
  position: relative; display: flex; justify-content: center; align-items: center;
  cursor: pointer; outline: none; padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.ak2-nav-toggle:hover { background: color-mix(in srgb, var(--nav-icon) 10%, transparent); }

.ak2-nav-toggle-lines { position: relative; width: 30px; height: 20px; }

/* 1. Geometric Morph */
.ak2-nav-toggle--geometric span {
  display: block; position: absolute; width: 100%; height: 3px;
  background-color: var(--nav-icon); border-radius: 3px; left: 0;
  transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.8, 0, 0.2, 1),
              top 0.4s cubic-bezier(0.8, 0, 0.2, 1),
              background-color 0.3s;
}
.ak2-nav-toggle--geometric span:nth-child(1) { top: 0; }
.ak2-nav-toggle--geometric span:nth-child(2) { top: 8.5px; }
.ak2-nav-toggle--geometric span:nth-child(3) { top: 17px; }
.ak2-nav-toggle.is-active .ak2-nav-toggle--geometric span:nth-child(1) { top: 8.5px; transform: rotate(45deg); background-color: var(--nav-accent); }
.ak2-nav-toggle.is-active .ak2-nav-toggle--geometric span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ak2-nav-toggle.is-active .ak2-nav-toggle--geometric span:nth-child(3) { top: 8.5px; transform: rotate(-45deg); background-color: var(--nav-accent); }

/* 2. Magnetic Elastic */
.ak2-nav-toggle--magnetic-wrapper { pointer-events: all; }
.ak2-nav-toggle--magnetic {
  width: 30px; height: 20px; position: relative;
  pointer-events: none; transition: transform 0.1s linear;
}
.ak2-nav-toggle--magnetic span {
  display: block; position: absolute; width: 100%; height: 3px;
  background-color: var(--nav-icon); border-radius: 3px; left: 0;
  transition: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
.ak2-nav-toggle--magnetic span:nth-child(1) { top: 0; }
.ak2-nav-toggle--magnetic span:nth-child(2) { top: 8.5px; }
.ak2-nav-toggle--magnetic span:nth-child(3) { top: 17px; }
.ak2-nav-toggle--magnetic-wrapper.is-active .ak2-nav-toggle--magnetic span:nth-child(1) { top: 8.5px; transform: rotate(135deg); background-color: var(--nav-accent); }
.ak2-nav-toggle--magnetic-wrapper.is-active .ak2-nav-toggle--magnetic span:nth-child(2) { opacity: 0; transform: rotate(90deg) scale(0); }
.ak2-nav-toggle--magnetic-wrapper.is-active .ak2-nav-toggle--magnetic span:nth-child(3) { top: 8.5px; transform: rotate(-135deg); background-color: var(--nav-accent); }

/* 3. Liquid Filter (Gooey) */
.ak2-nav-toggle--liquid {
  filter: url('#ak2-nav-gooey'); width: 30px; height: 20px; position: relative;
}
.ak2-nav-toggle--liquid span {
  display: block; position: absolute; width: 100%; height: 3px;
  background-color: var(--nav-icon); border-radius: 3px; left: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ak2-nav-toggle--liquid span:nth-child(1) { top: 0; }
.ak2-nav-toggle--liquid span:nth-child(2) { top: 8.5px; }
.ak2-nav-toggle--liquid span:nth-child(3) { top: 17px; }
.ak2-nav-toggle.is-active .ak2-nav-toggle--liquid span:nth-child(1) { top: 8.5px; transform: rotate(45deg); background-color: var(--nav-accent); }
.ak2-nav-toggle.is-active .ak2-nav-toggle--liquid span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.ak2-nav-toggle.is-active .ak2-nav-toggle--liquid span:nth-child(3) { top: 8.5px; transform: rotate(-45deg); background-color: var(--nav-accent); }

/* 4. Kinetic Particle (Hybrid) */
#ak2-nav-hybrid-wrap {
  position: relative; width: 48px; height: 48px;
}
#ak2-nav-hybrid-wrap .ak2-nav-toggle {
  position: absolute; top: 0; left: 0; z-index: 2;
  transition: opacity 0.2s, background 0.3s, border-color 0.3s;
}
#ak2-nav-particle-canvas {
  position: absolute; top: -36px; left: -36px;
  width: 120px; height: 120px; z-index: 1; pointer-events: none;
}

/* ── Drawer (base) ───────────────────────────────────────────── */

.ak2-nav-drawer {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--nav-drawer-bg);
  z-index: calc(var(--z-header) - 1);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  pointer-events: none;
}
.ak2-nav-drawer ul { list-style: none; text-align: center; }
.ak2-nav-drawer li { margin: 20px 0; overflow: hidden; }
.ak2-nav-drawer a {
  display: inline-block; color: var(--nav-text); text-decoration: none;
  font-family: var(--font-english);
  font-size: 36px; font-weight: 300; letter-spacing: 4px;
  transition: color 0.3s;
}
.ak2-nav-drawer a:hover,
.ak2-nav-drawer a.is-active { color: var(--nav-accent); }

/* Circular Reveal (default: right-side origin) */
/* 48px = モバイル padding 24px + ボタン半幅 24px */
.ak2-nav-drawer--circular {
  clip-path: circle(0% at calc(100% - 48px) 40px);
  transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1);
}
.ak2-nav-drawer--circular.is-open {
  clip-path: circle(150% at calc(100% - 48px) 40px);
  pointer-events: auto;
}
/* Left-side origin */
body.ak2-nav-toggle-pos-left .ak2-nav-drawer--circular         { clip-path: circle(0% at 48px 40px); }
body.ak2-nav-toggle-pos-left .ak2-nav-drawer--circular.is-open { clip-path: circle(150% at 48px 40px); }

.ak2-nav-drawer--circular a { transform: translateY(100%); opacity: 0; transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.6s ease; }
.ak2-nav-drawer--circular.is-open a { transform: translateY(0); opacity: 1; }
.ak2-nav-drawer--circular.is-open li:nth-child(1) a { transition-delay: 0.20s; }
.ak2-nav-drawer--circular.is-open li:nth-child(2) a { transition-delay: 0.27s; }
.ak2-nav-drawer--circular.is-open li:nth-child(3) a { transition-delay: 0.34s; }
.ak2-nav-drawer--circular.is-open li:nth-child(4) a { transition-delay: 0.41s; }
.ak2-nav-drawer--circular.is-open li:nth-child(5) a { transition-delay: 0.48s; }
.ak2-nav-drawer--circular.is-open li:nth-child(6) a { transition-delay: 0.55s; }
.ak2-nav-drawer--circular.is-open li:nth-child(7) a { transition-delay: 0.62s; }
.ak2-nav-drawer--circular.is-open li:nth-child(8) a { transition-delay: 0.69s; }

/* Slide Down */
.ak2-nav-drawer--slide-down { transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1); }
.ak2-nav-drawer--slide-down.is-open { transform: translateY(0); pointer-events: auto; }
.ak2-nav-drawer--slide-down a { transform: translateY(-50px); opacity: 0; transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease; }
.ak2-nav-drawer--slide-down.is-open a { transform: translateY(0); opacity: 1; }
.ak2-nav-drawer--slide-down.is-open li:nth-child(1) a { transition-delay: 0.30s; }
.ak2-nav-drawer--slide-down.is-open li:nth-child(2) a { transition-delay: 0.37s; }
.ak2-nav-drawer--slide-down.is-open li:nth-child(3) a { transition-delay: 0.44s; }
.ak2-nav-drawer--slide-down.is-open li:nth-child(4) a { transition-delay: 0.51s; }
.ak2-nav-drawer--slide-down.is-open li:nth-child(5) a { transition-delay: 0.58s; }
.ak2-nav-drawer--slide-down.is-open li:nth-child(6) a { transition-delay: 0.65s; }
.ak2-nav-drawer--slide-down.is-open li:nth-child(7) a { transition-delay: 0.72s; }
.ak2-nav-drawer--slide-down.is-open li:nth-child(8) a { transition-delay: 0.79s; }

/* Slide Up */
.ak2-nav-drawer--slide-up { transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1); }
.ak2-nav-drawer--slide-up.is-open { transform: translateY(0); pointer-events: auto; }
.ak2-nav-drawer--slide-up a { transform: translateY(50px); opacity: 0; transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease; }
.ak2-nav-drawer--slide-up.is-open a { transform: translateY(0); opacity: 1; }
.ak2-nav-drawer--slide-up.is-open li:nth-child(1) a { transition-delay: 0.30s; }
.ak2-nav-drawer--slide-up.is-open li:nth-child(2) a { transition-delay: 0.37s; }
.ak2-nav-drawer--slide-up.is-open li:nth-child(3) a { transition-delay: 0.44s; }
.ak2-nav-drawer--slide-up.is-open li:nth-child(4) a { transition-delay: 0.51s; }
.ak2-nav-drawer--slide-up.is-open li:nth-child(5) a { transition-delay: 0.58s; }
.ak2-nav-drawer--slide-up.is-open li:nth-child(6) a { transition-delay: 0.65s; }
.ak2-nav-drawer--slide-up.is-open li:nth-child(7) a { transition-delay: 0.72s; }
.ak2-nav-drawer--slide-up.is-open li:nth-child(8) a { transition-delay: 0.79s; }

/* Glass Scale Blur */
.ak2-nav-drawer--glass {
  background: color-mix(in srgb, var(--nav-drawer-bg) 70%, transparent);
  backdrop-filter: blur(20px);
  opacity: 0; transition: opacity 0.5s ease;
}
.ak2-nav-drawer--glass.is-open { opacity: 1; pointer-events: auto; }
.ak2-nav-drawer--glass a { transform: scale(0.8) translateZ(0); opacity: 0; transition: transform 0.7s cubic-bezier(0.1, 1, 0.2, 1), opacity 0.7s ease; }
.ak2-nav-drawer--glass.is-open a { transform: scale(1) translateZ(0); opacity: 1; }
.ak2-nav-drawer--glass.is-open li:nth-child(1) a { transition-delay: 0.10s; }
.ak2-nav-drawer--glass.is-open li:nth-child(2) a { transition-delay: 0.17s; }
.ak2-nav-drawer--glass.is-open li:nth-child(3) a { transition-delay: 0.24s; }
.ak2-nav-drawer--glass.is-open li:nth-child(4) a { transition-delay: 0.31s; }
.ak2-nav-drawer--glass.is-open li:nth-child(5) a { transition-delay: 0.38s; }
.ak2-nav-drawer--glass.is-open li:nth-child(6) a { transition-delay: 0.45s; }
.ak2-nav-drawer--glass.is-open li:nth-child(7) a { transition-delay: 0.52s; }
.ak2-nav-drawer--glass.is-open li:nth-child(8) a { transition-delay: 0.59s; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .ak2-nav-header    { padding: 0 24px; }
  .ak2-nav-global    { display: none !important; }
  #ak2-nav-toggle-wrap { display: flex !important; }
}
@media (min-width: 769px) {
  .ak2-nav-global    { display: flex !important; }
  #ak2-nav-toggle-wrap { display: none !important; }
}

/* plugins/layout-hero-kinetic/layout-hero-kinetic.css */
/* ================================================================
   layout-hero-kinetic.css
   AK² Lab キネティック風ヒーロー + ページヒーロー
   ================================================================ */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg-light);
}
.hero-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: var(--z-particles);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: var(--z-content);
    text-align: center;
    max-width: 1000px;
    padding: 0 24px 80px;
    margin: 0 auto;
}

/* ロゴアニメーション */
.hero-logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}
.brand-path {
    fill-opacity: 0;
    stroke-width: 50;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.brand-path.filled {
    fill-opacity: 1;
    stroke-width: 10;
    transition: all 1.5s ease;
}
.shining-effect {
    stroke-width: 200;
    stroke-opacity: 1;
    fill: none;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(0, 198, 255, 0.8));
}
@keyframes loopShine {
    0%   { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20000; }
}

.hero-brand-name {
    font-family: var(--font-english);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}
.hero-headline {
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    letter-spacing: 0.05em;
    font-size: clamp(2rem, 8vw, 44pt);
    line-height: 1.2;
    opacity: 0;
    animation: gentle-fade-in-up 1.2s ease-out forwards;
    animation-delay: 0.3s;
}
.hero-concept-en {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    font-weight: 700;
}
.hero-description {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 4rem;
    line-height: 2.2;
    font-weight: 300;
}

/* SVG Wave (Heroの底辺) */
.waves-container {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    z-index: var(--z-waves);
    pointer-events: none;
    margin-bottom: -1px;
    overflow: hidden;
}
.waves { width: 100%; min-width: 1800px; height: 100%; }
.parallax > use { animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite; }
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 54s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 33s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 15s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 11s; }
@keyframes move-forever {
    0%   { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(86px,0,0); }
}

/* --- Page Hero（内部ページ共通） --- */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}
.page-hero__inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 0;
}
.page-hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--color-dark);
    margin: 0.8rem 0 1.5rem;
    line-height: 1.2;
}
.page-hero__lead {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 2;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.page-hero__note {
    display: inline-block;
    background: rgba(2,93,204,0.06);
    border: 1px solid rgba(2,93,204,0.15);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-family: var(--font-mono);
    margin-top: 1rem;
}

/* plugins/layout-hero-particle/layout-hero-particle.css */
/* ================================================================
   layout-hero-particle.css
   テキストパーティクル ヒーローセクション
   ================================================================ */

.ak2-hero-particle {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ak2-hero-particle__canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ak2-hero-particle__content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.ak2-hero-particle__subtitle {
  font-size: 0.75rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 24px;
  opacity: 0.85;
}

.ak2-hero-particle__title {
  /* opacity: 0 はインラインで設定。Canvas にサンプリング後も非表示のまま */
  line-height: 1;
  user-select: none;
  /* color は JS でも参照しないので任意の色を指定可 */
  color: transparent;
}

/* スマホでもキャンバスを表示（共鳴アニメーションで常時動作） */

/* sandbox/sandbox.css */
/* ================================================================
   sandbox.css
   Sandbox 専用スタイル
   — エンジン本体（style.css）とは別に管理するサンドボックス固有CSS
   ================================================================ */

/* ── セクション バリアント ─────────────────────────────────── */

/** キネティックヒーロー（layout/index.md のトップヒーロー） */
.section--kinetic-hero {
  min-height: 100vh;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/** Stagger ボタンセクション背景 */
.section--stagger-bg {
  background: #f7f6f2;
}

/* ── テストページカード バリアント（index.md） ──────────────── */

.parts-category-card--effects {
  border-color: rgba(0, 198, 255, 0.2);
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}
.parts-category-card--effects .parts-category-card__num  { color: var(--color-secondary); }
.parts-category-card--effects .parts-category-card__title { color: white; }
.parts-category-card--effects .parts-category-card__desc  { color: #94a3b8; }
.parts-category-card--effects .parts-category-card__link  { color: var(--color-secondary); }

.parts-category-card--layout {
  border-color: rgba(2, 93, 204, 0.15);
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.parts-category-card--layout .parts-category-card__num  { color: var(--color-primary); }
.parts-category-card--layout .parts-category-card__link { color: var(--color-primary); }

.parts-category-card--buttons {
  border-color: rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, #faf5ff, #ede9fe);
}
.parts-category-card--buttons .parts-category-card__num  { color: #7c3aed; }
.parts-category-card--buttons .parts-category-card__link { color: #7c3aed; }

/* ── ENGINE STATS ダーク glass-card（index.md） ───────────────── */

.glass-card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.glass-card--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.glass-card--dark .card-title { color: var(--color-secondary); }
.glass-card--dark .card-text  { color: #94a3b8; }

/** ボタンプラグイン専用のバイオレット card-title */
.card-title--violet { color: #a78bfa; }

/* ── 共通テキスト ───────────────────────────────────────────── */

/** セクションリード文（明るい背景用） */
.sb-lead {
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

/** ダーク背景セクションの説明文 */
.sb-desc--muted {
  color: #94a3b8;
  margin-bottom: 2rem;
}

/* ── エフェクト一覧（effects/index.md） ──────────────────────── */

/** 「全エフェクトキー一覧」サブ見出し */
.sb-section-subtitle {
  margin: 4rem 0 2rem;
  font-size: 1.4rem;
  color: var(--color-dark);
}

/** エフェクトキーバッジの横並びラッパー */
.sb-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/** .card-badge サイズオーバーライド（エフェクト一覧用） */
.sb-effect-badge {
  font-size: 0.8rem;
  padding: 0.4em 1em;
}

/** バッジ内のクラス名（薄色） */
.sb-badge-value {
  color: #94a3b8;
  font-weight: 400;
}

/* ── セクションエフェクト デモ（effects/index.md） ────────────── */

/** 2カラムグリッド */
.sb-canvas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/** canvas 上部のラベルテキスト */
.sb-canvas-label {
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/** プレビュー用 canvas 共通スタイル */
.sb-preview-canvas {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── FAQ ラッパー（blocks/index.md） ─────────────────────────── */

.sb-faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* ── ボタンデモ行（buttons/index.md） ────────────────────────── */

/** ボタンを横並びにするフレックス行（gap: 28px） */
.sb-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-bottom: 3rem;
}

/** Stagger ボタン行（gap: 24px） */
.sb-btn-row--md { gap: 24px; }

/** Stroke ボタン行（gap: 20px）と背景パネルを兼ねる */
.sb-btn-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #fafaf8;
  border-radius: 12px;
}

/* ── パラメーターテーブル（buttons/index.md） ────────────────── */

/** テーブル見出し（h3） */
.sb-param-title {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

/** 横スクロール対応ラッパー */
.sb-table-wrap {
  overflow-x: auto;
}

/** パラメーターテーブル基盤 */
.sb-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.sb-param-table th,
.sb-param-table td {
  padding: 0.5em 1em;
  text-align: left;
}
.sb-param-table th {
  padding-top: 0.6em;
  padding-bottom: 0.6em;
}

/** ライトテーマ（白・グレー系）ヘッダー */
.sb-param-table--light thead tr {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.sb-param-table--light tbody tr {
  border-bottom: 1px solid #f1f5f9;
}
.sb-param-table--light tbody tr:last-child {
  border-bottom: none;
}

/** ウォームテーマ（パーチメント系）ヘッダー */
.sb-param-table--warm thead tr {
  background: #f0ede6;
  border-bottom: 2px solid #e2d9c8;
}
.sb-param-table--warm tbody tr {
  border-bottom: 1px solid #ede9df;
}
.sb-param-table--warm tbody tr:last-child {
  border-bottom: none;
}

/* ── ダーク glass-card 内のコードブロック（buttons/index.md） ── */

.sb-code-pre {
  color: #e2e8f0;
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
  margin: 0;
}

/* ── Article Page（concept/ 等の記事ページ） ─────────────────── */

.article-page__hero {
  padding: 100px 0 64px;
  background: #fff;
  border-bottom: 1px solid #e8edf4;
  position: relative;
}
.article-page__hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.article-page__category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.6rem;
}
.article-page__category::before,
.article-page__category::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.5;
}

.article-page__title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.45;
  margin-bottom: 1.6rem;
  text-align: center;
}

.article-page__lead {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 2;
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}

.article-page__body {
  padding: 72px 0 120px;
  background: #fff;
}

/* ── Prose（記事本文タイポグラフィ） ──────────────────────────── */

.prose {
  max-width: 960px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--color-text);
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 4rem 0 1.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  line-height: 1.5;
}
.prose h2::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}
.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 2.8rem 0 1.1rem;
}

.prose p {
  margin-bottom: 1.6em;
}
.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--color-dark);
  font-weight: 700;
}

.prose ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 1.5em 0 2em;
}
.prose ul > li {
  margin-bottom: 1em;
  line-height: 1.9;
}
.prose ul > li:last-child {
  margin-bottom: 0;
}
.prose ul > li > p {
  margin-bottom: 0.4em;
}
.prose ul > li > p:last-child {
  margin-bottom: 0;
}

/* ── Prose テーブル ─────────────────────────────────────────── */

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5em 0;
}
.prose th,
.prose td {
  padding: 0.55em 1em;
  text-align: left;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}
.prose th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--color-dark);
  border-bottom: 2px solid #cbd5e1;
}
.prose tbody tr:nth-child(even) td {
  background: #f8fafc;
}
@media (max-width: 768px) {
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* ── アンカージャンプ時のヘッダーオフセット ──────────────────── */

[id] {
  scroll-margin-top: calc(var(--header-height) + 8px);
}

/* ── TOC（記事内自動目次） ───────────────────────────────────── */

.article-page__toc {
  max-width: 960px;
  margin: 0 auto 3.5rem;
}

.toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  padding: 1.2rem 1.8rem 1.4rem;
}

.toc__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.9rem;
}

.toc__list {
  margin: 0;
  padding-left: 1.6em;
  list-style: decimal;
}

.toc__item {
  margin: 0.35em 0;
  line-height: 1.7;
}

.toc__item--sub {
  margin-left: 1.4em;
  list-style-type: disc;
}

.toc__link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.toc__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
