:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Meiryo', 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', sans-serif;
    background-color: gainsboro;
    color: #6b6b6b;
}

a {
    color: inherit;
}

/* サイト全体のシェル(サイドバー+ページ本体) */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* サイドバー(shared/sidebar.jsが#sidebar-rootへ内容を描画する) */
.sidebar {
    flex: 0 0 220px;
    width: 220px;
    background-color: white;
    border-right: 1px solid gainsboro;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: block;
    font-family: "游ゴシック", 'ヒラギノ角ゴ ProN W3', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #4b4b4b;
    text-decoration: none;
    margin-bottom: 8px;
}

.sidebar-label {
    margin: 24px 0 8px;
    font-size: 12px;
    color: #9a9a9a;
    letter-spacing: 0.05em;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #4b4b4b;
    text-decoration: none;
}

.sidebar-menu a:hover {
    background-color: whitesmoke;
}

.sidebar-menu a.active {
    background-color: whitesmoke;
    box-shadow: inset 3px 0 0 #888888;
    font-weight: bold;
}

/* サイドバー以外のページ本体。ヘッダーと本文が縦に並ぶだけなので通常のブロックレイアウトでよい。
   (display:flexにすると、本文側のmargin:autoによる中央寄せがstretchと衝突して幅が縮んでしまう) */
.page {
    flex: 1;
    min-width: 0;
}

.page-header {
    width: 100%;
    padding: 20px 4%;
    background-color: white;
    border-bottom: 1px solid gainsboro;
}

.page-header h1 {
    margin: 0;
    padding: 0;
    font-size: 25px;
    font-family: "游ゴシック", 'ヒラギノ角ゴ ProN W3', sans-serif;
}

.page-header a {
    text-decoration: none;
    color: #4b4b4b;
}

/* 白背景のカード(パネル)。ホームのツールカードや各ツールの操作パネルで使う */
.panel {
    background-color: white;
    border-radius: 4px;
    border: 1px solid gainsboro;
    padding: 20px 24px;
}

/* ホーム画面 */
.home-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 16px 60px;
}

.home-content .lede {
    margin: 0 0 12px;
    font-size: 18px;
    font-family: "游ゴシック", 'ヒラギノ角ゴ ProN W3', sans-serif;
    color: #4b4b4b;
}

.home-content .readme {
    margin: 0 0 32px;
    font-size: 13px;
    line-height: 1.8;
    color: #888888;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.tool-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease;
}

.tool-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tool-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-family: "游ゴシック", 'ヒラギノ角ゴ ProN W3', sans-serif;
    color: #4b4b4b;
}

.tool-card p {
    margin: 0;
    font-size: 13px;
    color: #9a9a9a;
}

.booth-lead {
    margin: 32px 0 8px;
    font-size: 13px;
    color: #888888;
}

.booth-banner {
    margin-top: 0;
}
