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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
}

/* ヘッダープレースホルダー: レイアウトシフト防止 */
.header-placeholder {
    min-height: 120px; /* タイトル + 言語セレクター + パディング/マージンの概算高さ */
    margin-bottom: 30px;
}

/* コンポーネントがマウントされたら非表示 */
#app:has(header) .header-placeholder {
    display: none;
}

header {
    border-bottom: 2px solid #0066cc;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    font-size: 2em;
    color: #0066cc;
    margin-bottom: 15px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.language-selector label {
    font-weight: 600;
    font-size: 0.9em;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.2s;
}

.language-selector select:hover {
    border-color: #0066cc;
}

.language-selector select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.content {
    padding: 20px 0;
}

.section {
    margin-bottom: 30px;
}

h2 {
    font-size: 1.5em;
    color: #0066cc;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

h3 {
    font-size: 1.2em;
    color: #333;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

.article {
    margin-bottom: 25px;
}

.article-number {
    font-weight: 600;
    color: #0066cc;
}

/* 項番付き段落のスタイル */
.article p.item {
    display: flex;
    margin-bottom: 15px;
}

.article p.item .number {
    flex-shrink: 0;
    min-width: 1em;
    font-weight: normal;
}

.article p.item .text {
    flex: 1;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
}

/* サブ項目（(1) (2) など）のスタイル */
.article ul li.subitem {
    display: flex;
    margin-left: 0.67em;
}

.article ul li.subitem .number {
    flex-shrink: 0;
    min-width: 1.17em;
    font-weight: normal;
}

.article ul li.subitem .text {
    flex: 1;
}

.article ul li.item-block {
    margin-left: 0.67em;
    margin-bottom: 15px;
}

.article ul li.item-block .item-head {
    display: flex;
    margin-bottom: 8px;
}

.article ul li.item-block .item-head .number {
    flex-shrink: 0;
    min-width: 1.17em;
    font-weight: normal;
}

.article ul li.item-block .item-head .text {
    flex: 1;
}

.article ul li.item-block .item-body {
    margin-left: 1.17em;
}

.article ul li.item-block .item-body p:last-child,
.article ul li.item-block .item-body ul:last-child,
.article ul li.item-block .item-body ol:last-child {
    margin-bottom: 0;
}

.article ul.nested-item-list {
    margin-left: 0;
}

.article ul.nested-item-list li.nested-item-block {
    margin-left: 0.67em;
    margin-bottom: 12px;
}

.article ul.nested-item-list li.nested-item-block .nested-item-head {
    display: flex;
    margin-bottom: 8px;
}

.article ul.nested-item-list li.nested-item-block .nested-item-head .number {
    flex-shrink: 0;
    min-width: 1.17em;
    font-weight: normal;
}

.article ul.nested-item-list li.nested-item-block .nested-item-head .text {
    flex: 1;
}

.article ul.nested-item-list li.nested-item-block .nested-item-body {
    margin-left: 1.17em;
}

.article ul.nested-item-list li.nested-item-block .nested-item-body p:last-child {
    margin-bottom: 0;
}

footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}
