/* ===================================
   カフェマニュアル - リニューアルスタイルシート
   温かみのあるカフェ風デザイン
   Cafe Foam Design System
   =================================== */

/* ===================================
   カスタムフォント読み込み
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=DM+Mono:wght@400;500&display=swap');

/* ===================================
   CSS変数定義
   =================================== */
:root {
    /* カラーパレット - カフェテーマ（デザインガイドライン準拠） */
    --color-cream: #F5E6D3;
    --color-cream-dark: #F5EDE3;
    --color-latte: #C4A77D;
    --color-coffee-light: #C4A77D;
    --color-coffee: #8B6914;
    --color-coffee-dark: #6B4F3A;
    --color-espresso: #3C2415;
    --color-mocha: #5C4033;
    --color-terracotta: #C67B5C;
    --color-caramel: #D2691E;
    --color-moss: #6B7B5F;
    --color-sage: #9CAF88;
    --color-matcha: #7B9971;
    --color-houji: #8B6914;

    /* 機能カラー */
    --color-success: #7B9971;
    --color-warning: #8B6914;
    --color-danger: #C67B5C;
    --color-info: #7B9AAF;

    /* テキストカラー（デザインガイドライン準拠） */
    --text-primary: #2D2926;
    --text-secondary: #5C5552;
    --text-muted: #8C8580;
    --text-light: #FFFEF9;

    /* 背景（デザインガイドライン準拠） */
    --bg-primary: #FFFEF9;
    --bg-secondary: #FAF6F0;
    --bg-card: #FFFFFF;
    --bg-accent: linear-gradient(135deg, #3C2415 0%, #6B4F3A 100%);

    /* シャドウ - より温かみのある影 */
    --shadow-sm: 0 2px 8px rgba(60, 36, 21, 0.06);
    --shadow-md: 0 4px 20px rgba(60, 36, 21, 0.08);
    --shadow-lg: 0 8px 32px rgba(60, 36, 21, 0.12);
    --shadow-hover: 0 16px 48px rgba(60, 36, 21, 0.16);
    --shadow-glow: 0 0 40px rgba(196, 167, 125, 0.15);

    /* ボーダー */
    --border-color: rgba(60, 36, 21, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* レイアウト */
    --header-height: 80px;
    --nav-width: 300px;
    --container-max: 1400px;
    --spacing-unit: 8px;

    /* 難易度カラー */
    --difficulty-easy: #7B9971;
    --difficulty-medium: #8B6914;
    --difficulty-hard: #D2691E;
}

/* ===================================
   リセット & ベーススタイル
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 15% 85%, rgba(196, 167, 125, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(123, 153, 113, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(60, 36, 21, 0.02) 0%, transparent 60%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* 装飾的な背景パターン */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233C2415' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* ===================================
   タイポグラフィ
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Shippori Mincho', 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-espresso);
    position: relative;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--color-coffee-dark);
}

h4 {
    font-size: 1.125rem;
    color: var(--color-mocha);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-coffee);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--color-caramel);
}

/* 価格・数字用フォント */
.price, .number, [data-price] {
    font-family: 'DM Mono', 'Source Code Pro', monospace;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===================================
   コンテナ
   =================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

/* ===================================
   ヘッダー
   =================================== */
header {
    background: linear-gradient(135deg, var(--color-espresso) 0%, var(--color-coffee-dark) 100%);
    color: var(--text-light);
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    backdrop-filter: blur(10px);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 20L20 0L40 20L20 40z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

header h1:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 56px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-normal);
}

header h1:hover .logo-image {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transform: rotate(-3deg);
}

.logo-text {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: 'Shippori Mincho', 'Cormorant Garamond', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.menu-toggle:hover::before {
    opacity: 1;
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* ===================================
   ハンバーガーアイコンアニメーション
   =================================== */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-line:nth-child(1) {
    top: 5px;
}

.hamburger-line:nth-child(2) {
    top: 11px;
}

.hamburger-line:nth-child(3) {
    top: 17px;
}

/* メニューオープン時のXアニメーション */
.menu-toggle.active .hamburger-line:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ホバー時のハンバーガーアニメーション */
.menu-toggle:hover .hamburger-line:nth-child(1) {
    width: 18px;
}

.menu-toggle:hover .hamburger-line:nth-child(3) {
    width: 14px;
}

.menu-toggle.active:hover .hamburger-line:nth-child(1),
.menu-toggle.active:hover .hamburger-line:nth-child(3) {
    width: 22px;
}

/* ===================================
   ナビゲーション
   =================================== */
nav {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--nav-width);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    z-index: 99;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                box-shadow 0.4s ease;
    transform: translateX(-105%);
    opacity: 0;
    border-right: 1px solid var(--border-color);
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-espresso), var(--color-latte), var(--color-matcha));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

nav.open {
    transform: translateX(0);
    opacity: 1;
    box-shadow: var(--shadow-hover), 20px 0 60px rgba(60, 36, 21, 0.15);
}

nav.open::before {
    transform: scaleX(1);
}

/* ナビゲーションアイテムのスタガードアニメーション */
nav > ul > li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

nav.open > ul > li {
    opacity: 1;
    transform: translateX(0);
}

nav.open > ul > li:nth-child(1) { transition-delay: 0.1s; }
nav.open > ul > li:nth-child(2) { transition-delay: 0.15s; }
nav.open > ul > li:nth-child(3) { transition-delay: 0.2s; }
nav.open > ul > li:nth-child(4) { transition-delay: 0.25s; }
nav.open > ul > li:nth-child(5) { transition-delay: 0.3s; }
nav.open > ul > li:nth-child(6) { transition-delay: 0.35s; }
nav.open > ul > li:nth-child(7) { transition-delay: 0.4s; }
nav.open > ul > li:nth-child(8) { transition-delay: 0.45s; }
nav.open > ul > li:nth-child(9) { transition-delay: 0.5s; }
nav.open > ul > li:nth-child(10) { transition-delay: 0.55s; }

/* カスタムスクロールバー */
nav::-webkit-scrollbar {
    width: 6px;
}

nav::-webkit-scrollbar-track {
    background: transparent;
}

nav::-webkit-scrollbar-thumb {
    background: var(--color-latte);
    border-radius: 3px;
}

nav::-webkit-scrollbar-thumb:hover {
    background: var(--color-coffee-light);
}

nav > ul {
    list-style: none;
    padding: calc(var(--spacing-unit) * 2) 0;
}

nav > ul > li {
    margin: 0;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    opacity: 0;
    width: 6px;
    height: 6px;
    background: var(--color-coffee);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

nav ul li a:hover {
    background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
    color: var(--color-coffee-dark);
    border-left-color: var(--color-caramel);
    padding-left: 1.75rem;
}

nav ul li a:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

nav ul li a.active {
    background: linear-gradient(90deg, rgba(60, 36, 21, 0.1) 0%, transparent 100%);
    color: var(--color-espresso);
    border-left-color: var(--color-espresso);
    font-weight: 600;
}

nav ul li a.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    background: var(--color-espresso);
}

nav ul li a i {
    width: 22px;
    text-align: center;
    font-size: 1rem;
    color: var(--color-coffee-light);
    transition: all var(--transition-fast);
}

nav ul li a:hover i {
    color: var(--color-caramel);
    transform: scale(1.15);
}

nav ul li a.active i {
    color: var(--color-espresso);
}

/* ナビゲーションカテゴリー */
.nav-category {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.nav-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    user-select: none;
    font-size: 0.95rem;
    position: relative;
    background: transparent;
}

.nav-category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(196, 167, 125, 0.2), transparent);
    transition: width var(--transition-normal);
}

.nav-category-header:hover {
    background: var(--bg-secondary);
}

.nav-category-header:hover::before {
    width: 100%;
}

.nav-category-header i:first-child {
    color: var(--color-coffee);
    width: 22px;
    text-align: center;
    transition: all var(--transition-bounce);
}

.nav-category-header:hover i:first-child {
    transform: scale(1.2);
    color: var(--color-caramel);
}

.nav-category-header i.toggle-icon {
    transition: transform var(--transition-normal);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.nav-category.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* サブメニュー */
.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background: rgba(245, 237, 227, 0.5);
}

.nav-category.collapsed .nav-submenu {
    max-height: 0;
}

.nav-submenu li a {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-submenu li a:hover {
    background: var(--bg-secondary);
}

/* ナビゲーションオーバーレイ */
.nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(60, 36, 21, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* オーバーレイのパルスエフェクト */
.nav-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(196, 167, 125, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.nav-overlay.active::before {
    width: 150vmax;
    height: 150vmax;
}

/* ===================================
   メインコンテンツ
   =================================== */
main {
    padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4);
    min-height: calc(100vh - var(--header-height) - 100px);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ===================================
   ページ
   =================================== */
.page {
    display: none;
    animation: pageIn 0.4s ease-out;
}

.page.active {
    display: block;
}

.page > h2:first-child {
    margin-top: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 2px solid var(--color-latte);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--color-coffee-dark);
}

.page-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header h2 i {
    color: var(--color-coffee);
    font-size: 0.9em;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* メニュー一覧に戻るボタン */
.btn-back-to-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back-to-menu i {
    transition: transform var(--transition-fast);
}

.btn-back-to-menu:hover i {
    transform: translateX(-3px);
}

/* ===================================
   ボタン
   =================================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-mocha) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(107, 79, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 79, 58, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--color-coffee-dark);
    border: 2px solid var(--color-latte);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--color-coffee-light);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #B86A4D 100%);
    color: var(--text-light);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 123, 92, 0.4);
}

/* ===================================
   メニュー一覧アクションボタン
   =================================== */
.menu-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 3);
    align-items: center;
}

.btn-manual {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-manual i.fa-file-pdf {
    color: var(--color-terracotta);
    font-size: 1.1em;
    transition: color var(--transition-fast);
}

.btn-manual:hover i.fa-file-pdf {
    color: var(--color-caramel);
}

@media (max-width: 480px) {
    .menu-list-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-list-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   ダッシュボード
   =================================== */
.dashboard-branding {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--color-espresso);
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

#dashboard > p {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* メインメニューカード */
.dashboard-main-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin: calc(var(--spacing-unit) * 4) 0;
}

.dashboard-main-menu.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .dashboard-main-menu.two-col {
        grid-template-columns: 1fr;
    }
}

.main-menu-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 4);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.main-menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-coffee-dark) 0%, var(--color-coffee-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.main-menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

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

.main-menu-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
    background: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-mocha) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 16px rgba(107, 79, 58, 0.2);
}

.main-menu-card:hover .main-menu-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(107, 79, 58, 0.3);
}

.main-menu-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.main-menu-card h3 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-espresso);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.main-menu-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.dashboard-checklist {
    margin-top: calc(var(--spacing-unit) * 5);
}

/* ダッシュボードグリッド */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 3);
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* セクションカード */
.section-card {
    background: var(--bg-card);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.section-card:hover {
    box-shadow: var(--shadow-lg);
}

.section-card h3 {
    font-size: 1.25rem;
    color: var(--color-espresso);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: calc(var(--spacing-unit) * 1.5);
    border-bottom: 2px solid var(--color-latte);
}

.section-card h3 i {
    color: var(--color-coffee);
}

/* ===================================
   メニューボタン
   =================================== */
.menu-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

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

@media (max-width: 600px) {
    .menu-buttons {
        grid-template-columns: 1fr;
    }
}

.menu-btn {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 130px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-mocha) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.menu-btn:hover {
    border-color: var(--color-coffee-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.menu-btn:hover::before {
    opacity: 1;
}

.menu-btn i {
    font-size: 2rem;
    color: var(--color-coffee);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.menu-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color var(--transition-normal);
    position: relative;
    z-index: 1;
}

.menu-btn small {
    font-size: 0.85rem;
    color: var(--color-coffee);
    font-weight: 600;
    transition: color var(--transition-normal);
    position: relative;
    z-index: 1;
}

.menu-btn:hover i,
.menu-btn:hover span,
.menu-btn:hover small {
    color: var(--text-light);
}

/* ===================================
   チェックリスト
   =================================== */
.checklist-summary {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--color-latte) 100%);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    text-align: center;
}

.checklist-summary p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.checklist-summary span {
    color: var(--color-coffee-dark);
}

/* ===================================
   メニューページ
   =================================== */
.menu-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.info-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-card p {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-espresso);
}

.info-card .price {
    color: var(--color-coffee);
    font-family: 'Inter', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
}

/* ===================================
   印刷用スタイル
   =================================== */
@media print {
    @page {
        margin: 12mm;
    }

    body {
        background: #fff !important;
        color: #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    header,
    nav,
    footer,
    .menu-toggle,
    .nav-overlay,
    .btn,
    .page-actions {
        display: none !important;
    }

    main {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .page {
        display: block !important;
        break-after: page;
        page-break-after: always;
        padding: 0;
        margin: 0 0 12mm 0;
    }

    .dashboard-grid,
    .menu-content,
    .service-content,
    .hygiene-section,
    .cleaning-section,
    .troubleshooting-section {
        box-shadow: none !important;
        border: 1px solid #ccc;
        background: #fff !important;
    }

    .section-card,
    .info-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .menu-buttons,
    .tabs,
    .tab-btn {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .mermaid-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* メニューコンテンツ */
.menu-content {
    background: var(--bg-card);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.ingredients-section,
.equipment-section,
.warnings-section,
.allergens-section,
.quality-section,
.variations-section,
.cleaning-section,
.references-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid var(--border-color);
}

.ingredients-section:last-child,
.equipment-section:last-child,
.warnings-section:last-child,
.allergens-section:last-child,
.quality-section:last-child,
.variations-section:last-child,
.cleaning-section:last-child,
.references-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ingredients-section h3,
.equipment-section h3,
.warnings-section h3,
.allergens-section h3,
.quality-section h3,
.variations-section h3,
.cleaning-section h3,
.references-section h3 {
    color: var(--color-espresso);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.ingredients-section h3 i,
.equipment-section h3 i {
    color: var(--color-coffee);
}

.warnings-section h3 i {
    color: var(--color-warning);
}

.allergens-section h3 i {
    color: var(--color-danger);
}

.ingredients-list,
.equipment-list,
.warnings-list,
.allergens-list,
.quality-list,
.variations-list,
.cleaning-list,
.references-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li,
.equipment-list li,
.quality-list li,
.variations-list li,
.cleaning-list li,
.references-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.ingredients-list li:last-child,
.equipment-list li:last-child,
.quality-list li:last-child,
.variations-list li:last-child,
.cleaning-list li:last-child,
.references-list li:last-child {
    border-bottom: none;
}

.ingredients-list li::before,
.equipment-list li::before,
.quality-list li::before,
.variations-list li::before,
.cleaning-list li::before,
.references-list li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 700;
    flex-shrink: 0;
}

.warnings-list li,
.allergens-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.warnings-list li {
    background: rgba(212, 165, 116, 0.15);
    border-left: 3px solid var(--color-warning);
}

.warnings-list li::before {
    content: '⚠';
    color: var(--color-warning);
    flex-shrink: 0;
}

.allergens-list li {
    background: rgba(198, 123, 92, 0.1);
    border-left: 3px solid var(--color-danger);
}

.allergens-list li::before {
    content: '!';
    background: var(--color-danger);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===================================
   ステップUI
   =================================== */
.steps-section h3 {
    color: var(--color-espresso);
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.steps-section h3 i {
    color: var(--color-coffee);
}

.step {
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 3);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-coffee-dark);
    position: relative;
    transition: all var(--transition-fast);
}

.step:hover {
    box-shadow: var(--shadow-md);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.step-number {
    background: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-mocha) 100%);
    color: var(--text-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(107, 79, 58, 0.3);
    font-family: 'Cormorant Garamond', serif;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-espresso);
    font-family: 'Cormorant Garamond', serif;
}

.step-content {
    padding-left: calc(48px + 1rem);
}

.step-description {
    margin-bottom: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.step-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin: 1rem 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.step-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.step-tips {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    margin-top: 1rem;
    border-left: 4px solid var(--color-warning);
    box-shadow: var(--shadow-sm);
}

.step-tips h4 {
    color: var(--color-coffee);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.step-tips h4 i {
    color: var(--color-warning);
}

.step-tips ul {
    margin: 0;
    padding-left: 1.25rem;
}

.step-tips li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   トラブルシューティング
   =================================== */
.troubleshooting-section {
    margin-top: calc(var(--spacing-unit) * 4);
}

.troubleshooting-section h3 {
    color: var(--color-espresso);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.troubleshooting-section h3 i {
    color: var(--color-info);
}

.troubleshooting-item {
    background: var(--bg-card);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: calc(var(--spacing-unit) * 2);
    border-left: 4px solid var(--color-terracotta);
    transition: all var(--transition-fast);
}

.troubleshooting-item:hover {
    box-shadow: var(--shadow-md);
}

.troubleshooting-item h3 {
    color: var(--color-terracotta);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.troubleshooting-item .problem {
    font-weight: 600;
    color: var(--color-espresso);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.troubleshooting-item .problem i {
    color: var(--color-terracotta);
    margin-top: 0.2rem;
}

.troubleshooting-item .solution {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    margin-top: 0.75rem;
    line-height: 1.7;
}

.troubleshooting-item .solution strong {
    color: var(--color-success);
}

/* ===================================
   タブ
   =================================== */
.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 2px solid var(--color-latte);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--color-coffee);
    background: var(--bg-secondary);
}

.tab-btn.active {
    color: var(--color-coffee-dark);
    border-bottom-color: var(--color-coffee-dark);
    font-weight: 600;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   清掃タスク
   =================================== */
.cleaning-task {
    background: var(--bg-card);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.cleaning-task:hover {
    box-shadow: var(--shadow-md);
}

.cleaning-task.completed {
    opacity: 0.7;
    background: var(--bg-secondary);
}

.task-checkbox {
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.task-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--color-coffee-dark);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-espresso);
    margin-bottom: 0.5rem;
}

.task-description {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.task-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.task-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.task-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.task-completion {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   清掃カレンダー
   =================================== */
.cleaning-calendar {
    margin-top: calc(var(--spacing-unit) * 5);
    background: var(--bg-card);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.cleaning-calendar h3 {
    color: var(--color-espresso);
    margin-bottom: calc(var(--spacing-unit) * 3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cleaning-calendar h3::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-coffee);
}

.cleaning-calendar iframe {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.calendar-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(123, 154, 175, 0.1);
    border-left: 4px solid var(--color-info);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-note i {
    color: var(--color-info);
    font-size: 1.1rem;
}

.calendar-note a {
    color: var(--color-info);
    font-weight: 500;
}

.calendar-note a:hover {
    text-decoration: underline;
}

/* ===================================
   設定
   =================================== */
.settings-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
}

.setting-card {
    background: var(--bg-card);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.setting-card h3 {
    color: var(--color-espresso);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.setting-card h3 i {
    color: var(--color-coffee);
}

.setting-card .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
}

.setting-card .btn:last-child {
    margin-bottom: 0;
}

.setting-description {
    color: var(--text-muted);
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.calendar-setup-steps {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    margin: 1rem 0;
}

.calendar-setup-steps h4 {
    color: var(--color-coffee-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.calendar-setup-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.calendar-setup-steps li {
    margin: 0.6rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.calendar-setup-steps small {
    color: var(--text-muted);
}

#calendarEmbedCode {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 0.5rem;
    transition: border-color var(--transition-fast);
}

#calendarEmbedCode:focus {
    outline: none;
    border-color: var(--color-coffee);
    box-shadow: 0 0 0 3px rgba(107, 79, 58, 0.1);
}

.setting-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.save-status {
    margin-top: 1rem;
    min-height: 30px;
}

.save-status p {
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    margin: 0;
}

/* スイッチ */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    margin-right: 0.75rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-latte);
    transition: var(--transition-normal);
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-normal);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-mocha) 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ===================================
   モーダル
   =================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(61, 41, 20, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation: modalZoom 0.3s ease;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-light);
    font-size: 36px;
    font-weight: 300;
    transition: var(--transition-fast);
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-light);
    padding: 1rem 0;
    font-size: 0.95rem;
}

/* ===================================
   フッター
   =================================== */
footer {
    background: linear-gradient(135deg, var(--color-espresso) 0%, var(--color-coffee-dark) 100%);
    color: var(--text-light);
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
    margin-top: calc(var(--spacing-unit) * 6);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===================================
   提供方法ページ
   =================================== */
.service-content {
    max-width: 1200px;
}

.service-section {
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding: calc(var(--spacing-unit) * 3);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.service-section h3 {
    color: var(--color-espresso);
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 1.5);
    border-bottom: 2px solid var(--color-latte);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-section h3 i {
    color: var(--color-coffee);
}

.service-section h4 {
    color: var(--color-mocha);
    margin: 1.25rem 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-section ul {
    margin: 0.9rem 0;
    padding-left: 1.5rem;
}

.service-section li {
    margin: 0.5rem 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.service-section ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.service-figure {
    margin: 1.5rem 0;
    text-align: center;
}

.service-figure img.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

/* テーブル */
.facilities-table,
.congestion-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.facilities-table thead,
.congestion-table thead {
    background: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-mocha) 100%);
    color: var(--text-light);
}

.facilities-table th,
.facilities-table td,
.congestion-table th,
.congestion-table td {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.facilities-table tbody tr:nth-child(even),
.congestion-table tbody tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

.facilities-table tbody tr:hover,
.congestion-table tbody tr:hover {
    background-color: var(--color-latte);
}

/* フローノート */
.flow-notes {
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(212, 165, 116, 0.1);
    border-left: 4px solid var(--color-warning);
    border-radius: var(--border-radius-sm);
}

.flow-notes ul,
.flow-notes ol {
    margin: 0.5rem 0 0.5rem 1.2rem;
    padding-left: 0.5rem;
}

/* 役割カード */
.role-card {
    margin: 1rem 0;
    padding: 1.25rem;
    background: rgba(123, 154, 175, 0.08);
    border-left: 4px solid var(--color-info);
    border-radius: var(--border-radius-sm);
}

.role-card h4 {
    color: var(--color-coffee-dark);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* フローステップ */
.flow-step {
    margin: 1rem 0;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.flow-step strong {
    color: var(--color-coffee-dark);
    display: block;
    margin-bottom: 0.5rem;
}

/* オペレーションカード */
.operation-card {
    margin: 1rem 0;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-card);
}

.operation-card h4 {
    color: var(--color-coffee-dark);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.operation-card .tips {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
}

.operation-card .tips i {
    color: var(--color-warning);
    margin-right: 0.5rem;
}

.expression {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--color-espresso);
}

/* サブセクション */
.subsection {
    margin: 1rem 0;
}

.subsection h4 {
    color: var(--color-coffee-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* フローリスト */
.flow-list {
    counter-reset: flow-counter;
    list-style: none;
    padding-left: 0;
}

.flow-list li {
    counter-increment: flow-counter;
    margin: 1rem 0;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.flow-list li::before {
    content: counter(flow-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-mocha) 100%);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Mermaidコンテナ */
.mermaid-container {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.mermaid-container h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-espresso);
}

.mermaid {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    display: inline-block;
    text-align: left;
}

/* 安全カード */
.safety-card {
    margin: 1rem 0;
    padding: 1.25rem;
    background: rgba(198, 123, 92, 0.08);
    border-left: 4px solid var(--color-terracotta);
    border-radius: var(--border-radius-sm);
}

.safety-card h4 {
    color: var(--color-terracotta);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* 掲示物カード */
.sign-card {
    margin: 1rem 0;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.sign-card h4 {
    color: var(--color-coffee-dark);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.sign-text {
    background: var(--bg-card);
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    white-space: pre-wrap;
    margin: 0;
    line-height: 1.7;
}

/* チェックリスト */
.checklist-period {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.checklist-period h4 {
    color: var(--color-coffee-dark);
    margin-top: 0;
    margin-bottom: 1rem;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    margin: 0.75rem 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.checklist li input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--color-coffee-dark);
}

.notes {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(123, 154, 175, 0.08);
    border-left: 4px solid var(--color-info);
    border-radius: var(--border-radius-sm);
}

.notes strong {
    color: var(--color-coffee-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.notes ul {
    margin: 0;
}

/* ===================================
   ビデオ関連
   =================================== */
.video-embed {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0.5rem auto;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-md);
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0.5rem auto;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
}

.video-thumb .thumb-image {
    width: 100%;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
}

.video-thumb .thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(61, 41, 20, 0);
    color: var(--text-light);
    font-weight: 600;
    opacity: 0;
    transition: all var(--transition-normal);
}

.video-thumb .thumb-overlay i {
    font-size: 3rem;
}

.video-thumb:hover .thumb-overlay {
    background: rgba(61, 41, 20, 0.6);
    opacity: 1;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
}

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

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

.video-figure-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-espresso);
}

.video-figure-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-secondary);
}

.video-figure-notes {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* ===================================
   衛生マニュアル
   =================================== */
.hygiene-header {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.hygiene-header h3 {
    color: var(--color-espresso);
    margin-bottom: 0.5rem;
}

.hygiene-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hygiene-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 1rem;
}

.hygiene-item {
    background: var(--bg-card);
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius-lg);
    margin-bottom: calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.hygiene-item h4 {
    color: var(--color-espresso);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hygiene-item h4 i {
    color: var(--color-coffee);
}

.hygiene-item ul {
    padding-left: 1.5rem;
    margin: 0;
}

.hygiene-item li {
    margin: 0.5rem 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hygiene-subsection {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.hygiene-subsection h5 {
    color: var(--color-mocha);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* ===================================
   印刷スタイル（デザインガイドライン準拠）
   =================================== */
@media print {
    @page {
        margin: 15mm;
        size: A4;
    }

    /* 不要要素の非表示 */
    header,
    nav,
    .page-actions,
    .menu-toggle,
    footer,
    .nav-overlay,
    .fab,
    .toast,
    .modal,
    .btn,
    button:not(.print-keep) {
        display: none !important;
    }

    /* ベーススタイル */
    body {
        background: white !important;
        background-image: none !important;
        color: #2D2926;
        font-size: 10pt;
        line-height: 1.5;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body::before {
        display: none;
    }

    /* ページ表示 */
    .page {
        display: block !important;
    }

    .page:not(.active) {
        display: none !important;
    }

    main {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* カードスタイル */
    .step,
    .section-card,
    .menu-content,
    .service-section,
    .info-card,
    .main-menu-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
        background: white !important;
    }

    .step::before,
    .section-card::before,
    .main-menu-card::before,
    .main-menu-card::after,
    .info-card::before {
        display: none;
    }

    /* ヘッダースタイル */
    .page-header {
        border-bottom: 2px solid #3C2415;
        margin-bottom: 1.5em;
    }

    .page-header h2 {
        color: #3C2415;
        font-size: 16pt;
    }

    /* ステップ */
    .step {
        padding: 1em;
        margin-bottom: 1em;
        border-left: 3px solid #3C2415;
    }

    .step-number {
        background: #3C2415 !important;
        color: white !important;
        width: 32px;
        height: 32px;
        font-size: 12pt;
    }

    .step-title {
        font-size: 12pt;
    }

    .step-content {
        padding-left: 0;
    }

    /* メニュー情報 */
    .menu-info {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5em;
    }

    .info-card {
        padding: 0.75em;
    }

    .info-card h4 {
        font-size: 8pt;
    }

    .info-card p,
    .info-card .price {
        font-size: 11pt;
    }

    /* リスト */
    .ingredients-list li,
    .equipment-list li,
    .quality-list li {
        padding: 0.4em 0;
    }

    .warnings-list li,
    .allergens-list li {
        padding: 0.5em;
        margin-bottom: 0.3em;
    }

    /* Tips */
    .step-tips {
        background: #f5f5f5 !important;
        border-left: 3px solid #8B6914;
        padding: 0.75em;
    }

    /* ダッシュボード */
    .dashboard-main-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
    }

    .main-menu-card {
        padding: 1em;
    }

    .main-menu-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5em;
    }

    .main-menu-icon i {
        font-size: 1.25rem;
    }

    .main-menu-card h3 {
        font-size: 12pt;
    }

    .main-menu-card p {
        font-size: 9pt;
    }

    /* セクションカード */
    .section-card h3 {
        font-size: 11pt;
        border-bottom: 1px solid #ccc;
    }

    /* 画像 */
    img {
        max-width: 100%;
        height: auto;
    }

    .step-image {
        max-width: 400px;
    }

    /* リンク表示 */
    a[href]::after {
        content: none;
    }

    /* ページ区切り */
    .page-break {
        break-before: page;
        page-break-before: always;
    }

    h2, h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    /* 難易度表示 */
    .difficulty-indicator,
    .difficulty-badge {
        background: none !important;
        border: 1px solid #8B6914;
    }

    /* チェックリスト */
    .checklist li {
        padding: 0.3em 0;
    }

    .checklist li input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

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

    .menu-buttons {
        grid-template-columns: 1fr;
    }

    .settings-section {
        grid-template-columns: 1fr;
    }

    .step-content {
    padding-left: 0;
        margin-top: 1rem;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .setting-actions .btn {
        width: 100%;
    }

    #cleaningCalendar iframe {
        height: 400px !important;
    }

    .tabs {
        flex-wrap: nowrap;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.1rem;
    }

    .logo-image {
        height: 44px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .page-header h2 {
        font-size: 1.25rem;
    }

    .section-card {
        padding: calc(var(--spacing-unit) * 2);
    }

    .menu-btn {
        padding: 1rem;
        min-height: 100px;
    }

    .menu-btn i {
        font-size: 1.75rem;
    }

    .step {
        padding: calc(var(--spacing-unit) * 2);
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .main-menu-card {
        padding: calc(var(--spacing-unit) * 3);
    }

    .main-menu-icon {
        width: 64px;
        height: 64px;
    }

    .main-menu-icon i {
        font-size: 1.5rem;
    }

    .main-menu-card h3 {
        font-size: 1.25rem;
    }
}

/* ===================================
   アニメーション用クラス
   =================================== */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ホバーエフェクト */
.hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* フォーカス状態 */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-coffee);
    outline-offset: 2px;
}

/* ===================================
   難易度インジケーター
   =================================== */
.difficulty-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    background: rgba(196, 167, 125, 0.1);
}

.difficulty-indicator .star {
    transition: transform var(--transition-bounce);
}

.difficulty-indicator .star.filled {
    color: var(--color-houji);
}

.difficulty-indicator .star.empty {
    color: var(--color-latte);
    opacity: 0.5;
}

.difficulty-indicator:hover .star {
    transform: scale(1.1);
}

/* 難易度バッジ */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.difficulty-badge.easy {
    background: linear-gradient(135deg, rgba(123, 153, 113, 0.15) 0%, rgba(123, 153, 113, 0.08) 100%);
    color: var(--difficulty-easy);
    border: 1px solid rgba(123, 153, 113, 0.3);
}

.difficulty-badge.medium {
    background: linear-gradient(135deg, rgba(139, 105, 20, 0.15) 0%, rgba(139, 105, 20, 0.08) 100%);
    color: var(--difficulty-medium);
    border: 1px solid rgba(139, 105, 20, 0.3);
}

.difficulty-badge.hard {
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.15) 0%, rgba(210, 105, 30, 0.08) 100%);
    color: var(--difficulty-hard);
    border: 1px solid rgba(210, 105, 30, 0.3);
}

/* ===================================
   メニューカード拡張
   =================================== */
.menu-btn {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-height: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-accent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.menu-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left var(--transition-slow);
}

.menu-btn:hover::after {
    left: 150%;
}

.menu-btn:hover {
    border-color: var(--color-espresso);
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.menu-btn:hover::before {
    opacity: 1;
}

.menu-btn:active {
    transform: translateY(-2px) scale(0.99);
}

/* メニューカードの難易度表示 */
.menu-btn .difficulty-stars {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 2px;
    z-index: 2;
}

.menu-btn .difficulty-stars .star {
    font-size: 0.7rem;
    color: var(--color-houji);
    transition: all var(--transition-fast);
}

.menu-btn:hover .difficulty-stars .star {
    color: var(--text-light);
    transform: scale(1.2);
}

/* ===================================
   ステップUI拡張
   =================================== */
.steps-container {
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 48px;
    bottom: 48px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-latte), var(--color-coffee-light), var(--color-latte));
    border-radius: 1px;
}

.step {
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 3);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-coffee-dark);
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-left-color: var(--color-caramel);
}

.step-number {
    background: linear-gradient(135deg, var(--color-espresso) 0%, var(--color-coffee-dark) 100%);
    color: var(--text-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(60, 36, 21, 0.25);
    font-family: 'Shippori Mincho', serif;
    position: relative;
    z-index: 2;
    transition: all var(--transition-bounce);
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(60, 36, 21, 0.35);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-espresso);
    font-family: 'Shippori Mincho', serif;
    position: relative;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-caramel);
    transition: width var(--transition-normal);
}

.step:hover .step-title::after {
    width: 100%;
}

/* ステップTips拡張 */
.step-tips {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(196, 167, 125, 0.08) 100%);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    margin-top: 1rem;
    border-left: 4px solid var(--color-houji);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.step-tips::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(139, 105, 20, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.step-tips h4 {
    color: var(--color-houji);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.step-tips h4 i {
    color: var(--color-houji);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===================================
   メインメニューカード拡張
   =================================== */
.main-menu-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: calc(var(--spacing-unit) * 4);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.main-menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-espresso) 0%, var(--color-latte) 50%, var(--color-matcha) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.main-menu-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(196, 167, 125, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, 30%);
    transition: transform var(--transition-slow);
}

.main-menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
}

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

.main-menu-card:hover::after {
    transform: translate(20%, 20%) scale(1.2);
}

.main-menu-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto calc(var(--spacing-unit) * 2.5);
    background: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
    box-shadow: 0 6px 20px rgba(60, 36, 21, 0.2);
    position: relative;
    z-index: 1;
}

.main-menu-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed var(--color-latte);
    opacity: 0;
    transition: all var(--transition-normal);
}

.main-menu-card:hover .main-menu-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 10px 30px rgba(60, 36, 21, 0.3);
}

.main-menu-card:hover .main-menu-icon::before {
    opacity: 1;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-menu-icon i {
    font-size: 2.25rem;
    color: var(--text-light);
}

.main-menu-card h3 {
    font-family: 'Shippori Mincho', serif;
    color: var(--color-espresso);
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.main-menu-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===================================
   セクションカード拡張
   =================================== */
.section-card {
    background: var(--bg-card);
    padding: calc(var(--spacing-unit) * 3.5);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-espresso), var(--color-latte), transparent);
}

.section-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.section-card h3 {
    font-size: 1.3rem;
    color: var(--color-espresso);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: calc(var(--spacing-unit) * 1.5);
    border-bottom: 2px solid var(--color-cream);
    font-family: 'Shippori Mincho', serif;
}

.section-card h3 i {
    color: var(--color-coffee);
    font-size: 1.1em;
}

/* ===================================
   インフォカード拡張
   =================================== */
.info-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-latte);
    transition: background var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card:hover::before {
    background: var(--color-coffee);
}

.info-card h4 {
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Noto Sans JP', sans-serif;
}

.info-card p {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-espresso);
}

.info-card .price {
    color: var(--color-coffee);
    font-family: 'DM Mono', monospace;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===================================
   スクロールバーカスタム
   =================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-latte), var(--color-coffee-light));
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-coffee-light), var(--color-coffee));
}

/* ===================================
   読み込みアニメーション
   =================================== */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--color-cream) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-md);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===================================
   装飾要素
   =================================== */
.decorative-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-espresso), var(--color-latte));
    border-radius: 2px;
    margin: 1rem 0;
}

.decorative-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 1rem 0;
}

.decorative-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-latte);
}

.decorative-dots span:nth-child(2) {
    background: var(--color-coffee);
}

/* ===================================
   成功・完了状態
   =================================== */
.success-state {
    background: linear-gradient(135deg, rgba(123, 153, 113, 0.1) 0%, rgba(123, 153, 113, 0.05) 100%);
    border: 1px solid rgba(123, 153, 113, 0.3);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-state i {
    color: var(--color-matcha);
    font-size: 1.25rem;
}

.success-state span {
    color: var(--color-matcha);
    font-weight: 600;
}

/* ===================================
   ページ遷移アニメーション拡張
   =================================== */
@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.page.active {
    display: block;
    animation: pageIn 0.5s ease-out;
}

/* ===================================
   フローティングアクションボタン
   =================================== */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-accent);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-bounce);
    z-index: 50;
}

.fab:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-hover);
}

.fab:active {
    transform: scale(0.95);
}

/* ===================================
   トースト通知
   =================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-espresso);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--color-matcha);
}

.toast.warning {
    background: var(--color-houji);
}

.toast.error {
    background: var(--color-danger);
}

/* ===================================
   NG行動カード（接客の注意ページ）
   =================================== */
.ng-behavior-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 2);
}

@media (min-width: 1200px) {
    .ng-behavior-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .ng-behavior-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }
}

.ng-behavior-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-terracotta);
    transition: all var(--transition-normal);
    position: relative;
}

.ng-behavior-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-terracotta), var(--color-danger));
}

.ng-behavior-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-danger);
}

.ng-behavior-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.ng-behavior-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 2;
}

.ng-behavior-card:hover .ng-behavior-image img {
    transform: scale(1.05);
}

/* 画像プレースホルダー（共通） */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--color-cream) 100%);
    color: var(--text-muted);
    z-index: 1;
}

.image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.7;
}

/* NGプレースホルダー専用スタイル */
.ng-placeholder {
    background: linear-gradient(135deg, #fce8e4 0%, #f5d5cf 100%);
}

.ng-placeholder i {
    color: var(--color-terracotta);
}

/* 画像読み込みエラー時 - プレースホルダーを表示 */
.ng-behavior-image.image-error img,
.service-flow-image.image-error img {
    display: none;
}

.ng-behavior-image.image-error .image-placeholder,
.service-flow-image.image-error .image-placeholder {
    z-index: 3;
}

.ng-behavior-content {
    padding: calc(var(--spacing-unit) * 2);
    position: relative;
}

.ng-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-danger));
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(198, 123, 92, 0.3);
}

.ng-behavior-content p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* 印刷時のNG行動カードスタイル */
@media print {
    .ng-behavior-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ng-behavior-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--color-terracotta);
    }

    .ng-behavior-card::before {
        display: none;
    }

    .ng-behavior-image {
        aspect-ratio: 16 / 9;
    }

    .ng-badge {
        background: var(--color-terracotta);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===================================
   接客フローカード（接客方法ページ）
   =================================== */
.service-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 2);
}

@media (min-width: 1200px) {
    .service-flow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .service-flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .service-flow-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }
}

.service-flow-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-latte);
    transition: all var(--transition-normal);
    position: relative;
}

.service-flow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-matcha), var(--color-latte));
}

.service-flow-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-matcha);
}

.service-flow-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.service-flow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 2;
}

.service-flow-card:hover .service-flow-image img {
    transform: scale(1.05);
}

/* 接客フロープレースホルダー専用スタイル */
.service-flow-image .image-placeholder {
    background: linear-gradient(135deg, #e8f5e3 0%, #d4e8cf 100%);
}

.service-flow-image .image-placeholder i {
    color: var(--color-matcha);
}

.service-flow-content {
    padding: calc(var(--spacing-unit) * 2.5);
    position: relative;
}

.step-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-matcha), var(--color-moss));
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(123, 153, 113, 0.3);
}

.flow-title {
    color: var(--color-espresso);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    font-family: 'Shippori Mincho', serif;
    line-height: 1.4;
}

.flow-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* 旧形式の場合のスタイル */
.service-flow-card.legacy {
    border-color: var(--border-color);
}

.service-flow-card.legacy::before {
    background: var(--color-latte);
}

/* 印刷時の接客フローカードスタイル */
@media print {
    .service-flow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-flow-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--color-latte);
    }

    .service-flow-card::before {
        display: none;
    }

    .service-flow-image {
        aspect-ratio: 16 / 9;
    }

    .step-badge {
        background: var(--color-matcha);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===================================
   在庫管理ページ
   =================================== */

/* API接続ステータス */
.api-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    margin-left: auto;
    margin-right: calc(var(--spacing-unit) * 2);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* 確認中 - 点滅オレンジ */
.status-indicator.status-checking {
    background: #f59e0b;
    animation: pulse-checking 1.5s ease-in-out infinite;
}

@keyframes pulse-checking {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* 接続成功 - 緑 */
.status-indicator.status-connected {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: pulse-connected 2s ease-in-out infinite;
}

@keyframes pulse-connected {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); }
}

/* オフライン/エラー - 赤 */
.status-indicator.status-offline {
    background: #ef4444;
}

/* キャッシュ使用 - 青 */
.status-indicator.status-cached {
    background: #3b82f6;
}

/* API未設定 - グレー */
.status-indicator.status-unconfigured {
    background: #9ca3af;
}

.api-status.status-connected-wrapper {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

.api-status.status-offline-wrapper {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.api-status.status-cached-wrapper {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

.api-status.status-unconfigured-wrapper {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
    color: #6b7280;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .api-status {
        margin-left: 0;
        margin-right: 0;
        margin-top: calc(var(--spacing-unit) * 1);
        order: 3;
        width: 100%;
        justify-content: center;
    }

    #inventory .page-header {
        flex-wrap: wrap;
    }
}

/* 在庫サマリー */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.summary-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 1.5);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.summary-card.summary-warning {
    border-left: 4px solid var(--color-terracotta);
    background: rgba(198, 123, 92, 0.08);
}

.summary-card.summary-in-progress {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.summary-card.summary-ok {
    border-left: 4px solid var(--color-matcha);
    background: rgba(123, 153, 113, 0.08);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-latte) 0%, var(--color-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-espresso);
}

.summary-card.summary-warning .summary-icon {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #e8a88a 100%);
    color: white;
}

.summary-card.summary-in-progress .summary-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.summary-card.summary-ok .summary-icon {
    background: linear-gradient(135deg, var(--color-matcha) 0%, #a3c299 100%);
    color: white;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-espresso);
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* 在庫コンテンツ */
.inventory-content,
.storage-content {
    min-height: 200px;
}

/* ローディングスピナー */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 4);
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--color-coffee);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

/* オフライン通知 */
.offline-notice {
    background: rgba(198, 123, 92, 0.15);
    border: 1px solid var(--color-terracotta);
    border-radius: var(--border-radius-md);
    padding: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-terracotta);
    font-size: 0.9rem;
}

.offline-notice i {
    font-size: 1.1rem;
}

/* エラーメッセージ */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 4);
    color: var(--color-terracotta);
    text-align: center;
}

.error-message i {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.error-message .btn {
    margin-top: calc(var(--spacing-unit) * 2);
}

/* 在庫カテゴリ */
.inventory-category {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-espresso);
    font-size: 1.15rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-bottom: calc(var(--spacing-unit) * 1);
    border-bottom: 2px solid var(--color-latte);
}

.category-title i {
    color: var(--color-coffee);
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: auto;
}

/* 在庫アイテム */
.inventory-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.inventory-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.inventory-item:hover {
    box-shadow: var(--shadow-md);
}

.inventory-item.status-order {
    border-left: 4px solid var(--color-terracotta);
    background: rgba(198, 123, 92, 0.05);
}

.inventory-item.status-ok {
    border-left: 4px solid var(--color-matcha);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.item-name {
    font-weight: 600;
    color: var(--color-espresso);
    font-size: 1rem;
    line-height: 1.3;
}

.item-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.item-status.status-order {
    background: rgba(198, 123, 92, 0.2);
    color: var(--color-terracotta);
}

.item-status.status-ok {
    background: rgba(123, 153, 113, 0.2);
    color: var(--color-matcha);
}

.item-details {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.item-stock {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.stock-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-espresso);
    font-family: 'Inter', sans-serif;
}

.stock-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.item-order-point {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 在庫バー */
.stock-bar-container {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.stock-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stock-bar.bar-ok {
    background: linear-gradient(90deg, var(--color-matcha) 0%, #a3c299 100%);
}

.stock-bar.bar-warning {
    background: linear-gradient(90deg, var(--color-terracotta) 0%, #e8a88a 100%);
}

.stock-bar.bar-danger {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

/* 発注アラートセクション */
.order-alert-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.order-alert-title {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-alert-title i {
    animation: pulse-alert 1.5s ease-in-out infinite;
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
}

.order-item {
    background: white;
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ef4444;
}

.order-item-name {
    font-weight: 600;
    color: var(--color-espresso);
}

.order-item-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-item-info strong {
    color: #dc2626;
    font-weight: 700;
}

/* カテゴリアラートバッジ */
.category-alert {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

/* 残少ステータス */
.inventory-item.status-low {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.item-status.status-low {
    color: #d97706;
}

/* 在庫率表示 */
.stock-ratio {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

/* 閾値表示 */
.item-thresholds {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.threshold-ideal {
    color: var(--color-matcha);
}

.threshold-order {
    color: var(--color-terracotta);
}

/* 仕入れ状況 */
.item-purchase-status {
    font-size: 0.8rem;
    color: var(--color-matcha);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: calc(var(--spacing-unit) * 0.5);
    padding-top: calc(var(--spacing-unit) * 0.5);
    border-top: 1px dashed var(--border-color);
}

.item-purchase-status i {
    font-size: 0.75rem;
}

.item-supplier {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.item-supplier i {
    font-size: 0.75rem;
}

/* 保管場所テーブル */
.storage-table-container {
    overflow-x: auto;
    margin-top: calc(var(--spacing-unit) * 1);
}

.storage-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.storage-table thead {
    background: linear-gradient(135deg, var(--color-coffee-dark) 0%, var(--color-mocha) 100%);
    color: var(--text-light);
}

.storage-table th,
.storage-table td {
    padding: calc(var(--spacing-unit) * 1.5);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.storage-table th {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.storage-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.storage-table tbody tr:hover {
    background: rgba(196, 167, 125, 0.1);
}

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

.storage-name {
    font-weight: 600;
    color: var(--color-espresso);
}

.storage-location {
    white-space: pre-line;
}

.storage-expiry {
    white-space: nowrap;
}

/* 読み取り専用の注意 */
.inventory-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(196, 167, 125, 0.15);
    border: 1px solid var(--color-latte);
    border-radius: var(--border-radius-md);
    padding: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 3);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.inventory-notice i {
    color: var(--color-coffee);
    font-size: 1.1rem;
}

/* データなし表示 */
.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: calc(var(--spacing-unit) * 4);
    font-size: 0.95rem;
}

/* 在庫ページのレスポンシブ */
@media (max-width: 768px) {
    .inventory-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-card {
        padding: calc(var(--spacing-unit) * 1.5);
    }

    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .summary-value {
        font-size: 1.35rem;
    }

    .inventory-items {
        grid-template-columns: 1fr;
    }

    .storage-table {
        font-size: 0.85rem;
    }

    .storage-table th,
    .storage-table td {
        padding: calc(var(--spacing-unit) * 1);
    }
}

@media (max-width: 480px) {
    .inventory-summary {
        grid-template-columns: 1fr 1fr;
        gap: calc(var(--spacing-unit) * 1);
    }

    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .summary-label {
        font-size: 0.75rem;
    }
}

/* ===================================== */
/* v2.3: 仕入れ状況ベースのステータススタイル */
/* ===================================== */

/* === 未申請（赤）=== */
.status-pending-section,
.order-alert-section.status-pending-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.inventory-item.status-pending {
    border-left: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.item-status.status-pending {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.item-purchase-status.status-pending {
    color: #dc2626;
}

.stock-bar.bar-pending {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.category-alert.category-pending {
    background: #ef4444;
    color: white;
}

.status-pending-item {
    border-left: 4px solid #ef4444;
}

/* === 仕入れ申請中（オレンジ）=== */
.status-in-progress-section,
.in-progress-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--border-radius-lg);
    padding: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.in-progress-title {
    color: #d97706;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.in-progress-title i {
    animation: pulse-progress 2s ease-in-out infinite;
}

@keyframes pulse-progress {
    0%, 100% { opacity: 1; transform: rotate(0deg); }
    50% { opacity: 0.7; transform: rotate(180deg); }
}

.in-progress-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 1);
}

.in-progress-item,
.status-in-progress-item {
    background: white;
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #f59e0b;
}

.in-progress-item-name {
    font-weight: 600;
    color: var(--color-espresso);
}

.in-progress-item-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.in-progress-item-info strong {
    color: #d97706;
    font-weight: 700;
}

.inventory-item.status-in-progress {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.item-status.status-in-progress {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.item-purchase-status.status-in-progress {
    color: #d97706;
}

.stock-bar.bar-in-progress {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.category-alert.category-in-progress {
    background: #f59e0b;
    color: white;
    margin-left: 0.5rem;
}

/* === 完了（緑）=== */
.inventory-item.status-completed {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.item-status.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.item-purchase-status.status-completed {
    color: #059669;
}

.stock-bar.bar-completed {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

/* 印刷時の在庫スタイル */
@media print {
    .inventory-summary {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

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

    .inventory-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .inventory-notice {
        display: none;
    }

    .storage-table {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
