/* --- 共通土台 --- */
body { background-color: #f7fafc; margin: 0; font-family: sans-serif; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* --- ナビゲーション (在庫管理と統一) --- */
nav {
    background: #2d3748; 
    color: white; 
    padding: 0 25px;
    height: 50px; /* 64pxから50pxに修正 */
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 30px; 
    border-radius: 0; /* 角丸を解除して帯状に */
    box-sizing: border-box;
    position: relative; 
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo { 
    font-size: 20px; 
    font-weight: 800; 
    color: white; 
    letter-spacing: 0.5px;
}

.nav-right { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    height: 100%; 
}

.nav-link, .nav-right a {
    color: #edf2f7; 
    text-decoration: none; 
    font-size: 16px; /* 14pxから16pxに大きく */
    font-weight: bold;
    padding: 0 10px;
    height: 100%;
    display: flex; 
    align-items: center;
    transition: all 0.2s; 
    line-height: 1;
}

.nav-link.active, .nav-right a:hover { 
    color: #3182ce; /* 背景を塗らずに文字色を変えるスタイルに変更（inventory合わせ） */
}

/* ハンバーガーボタン */
.menu-toggle {
    display: none; 
    flex-direction: column; 
    justify-content: space-around;
    width: 28px; 
    height: 20px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 0;
}
.menu-toggle span { width: 100%; height: 3px; background: white; border-radius: 2px; }

/* --- スマホ対応 --- */
@media (max-width: 768px) {
    nav { margin-bottom: 10px; padding: 0 15px; }
    .menu-toggle { display: flex; }

    .nav-right {
        display: none !important;
        flex-direction: column;
        gap: 0 !important;
        position: absolute;
        top: 50px; /* 帯の高さに合わせる */
        left: 0; 
        width: 100%;
        background-color: #2d3748 !important;
        padding: 0 !important;
        z-index: 99999 !important;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }
    .nav-right.open { display: flex !important; }

    .nav-link, .nav-right a {
        width: 100% !important;
        padding: 20px 25px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #4a5568 !important;
        display: block !important;
        background-color: #2d3748 !important;
        box-sizing: border-box;
    }
}

/* --- コンテンツエリア (既存維持) --- */
.section-title { font-size: 22px; margin: 35px 0 25px 0; font-weight: bold; border-left: 5px solid #3182ce; padding-left: 15px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.app-card { background: white; padding: 35px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.btn-primary { background: #3182ce; color: white; border: none; display: inline-block; text-align: center; padding: 12px 24px; border-radius: 8px; font-weight: bold; text-decoration: none; }

/* 法的文書ページ用スタイル */
.legal-page-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 30px 0;
    line-height: 1.8;
    color: #2d3748;
}
.legal-page-card h1 { border-bottom: 2px solid #3182ce; padding-bottom: 10px; margin-bottom: 30px; }
.legal-page-card h2 { font-size: 20px; margin-top: 30px; color: #4a5568; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.legal-table th, .legal-table td { padding: 15px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.legal-table th { background: #f7fafc; width: 30%; color: #4a5568; }
