/* ミカタノート マニュアル - メインスタイル */
/* カラーはミカタシリーズ デザイン標準（/Users/akira/claudepj/MIKATA_DESIGN.md）準拠 */
:root {
    --primary: #C0392B;        /* ミカタレッド（アクセント） */
    --primary-hover: #A93226;  /* 赤のhover・濃色 */
    --primary-pale: #FDEDEC;   /* 赤の薄い背景（選択中・hover・タグ下地） */
    --bg: #E8E9EB;
    --card-bg: #FFFFFF;
    --text: #333333;
    --text-light: #6B7A90;
    --border-strong: #9CA3AF;  /* ボーダー標準（入力欄・表など見えるべき線） */
    --border: #D0D3D8;         /* ボーダー薄（区切り線など控えめな線） */
    --input-bg: #F2F3F4;
    --danger: #DC2626;         /* 危険・削除（ブランド赤と使い分け） */
    --warning: #D97706;        /* 注意・警告（アンバー） */
    --warning-pale: #FEF3E2;
    --success: #1AAF7A;
    --success-pale: #E6F8F2;
    --info: #2563A8;           /* 情報・選択中の青 */
    --info-pale: #EBF2FB;
    --code-bg: #2d2d2d;        /* コードブロック背景 */
    --code-text: #f8f8f2;      /* コードブロック文字色 */
    --radius: 5px;
    --max-width: 1148px;
}

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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ヘッダー */
/* 高さ・ロゴ・文字サイズは管理画面の上バー（56px/ロゴ30px）と統一 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    display: flex;
}
.header-logo {
    background: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.site-logo:hover {
    text-decoration: none;
}
.site-logo img {
    height: 30px;
    width: auto;
}
.logo-manual {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-left: 1px solid var(--border);
    padding-left: 10px;
}
.header-nav {
    background: var(--primary);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 0;
}
.site-nav {
    display: flex;
    gap: 0;
}
.site-nav a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 56px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s;
}
.site-nav a:hover,
.site-nav a.active {
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-admin-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 20px;
    background: var(--text);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    transition: opacity 0.15s;
}
.header-admin-btn:hover {
    opacity: 0.85;
    text-decoration: none !important;
}
.header-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #fff;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    transition: opacity 0.15s;
}
.header-contact-btn:hover {
    opacity: 0.85;
    text-decoration: none !important;
}

/* ナビ ドロップダウン */
.nav-dropdown {
    position: relative;
}
.nav-dropdown__trigger {
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 56px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s;
    cursor: pointer;
}
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger.active {
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
/* サブカテゴリ開閉ボタン（モバイルドロワー専用。PCはホバーで開くため非表示） */
.nav-dropdown__toggle {
    display: none;
}
.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--card-bg);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 200;
    padding: 8px;
    flex-direction: column;
}
.nav-dropdown:hover .nav-dropdown__menu {
    display: flex;
}
.nav-dropdown__item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 30px 5px 16px;
    color: var(--text) !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.1s;
    height: auto;
    background: none;
    border-radius: 4px;
}
.nav-dropdown__item-wrap {
    position: relative;
}
.nav-dropdown__item-wrap.has-submenu > .nav-dropdown__item::after {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
}
.nav-dropdown__item:hover {
    background: var(--input-bg) !important;
    text-decoration: none;
    color: var(--primary) !important;
}
.nav-dropdown__submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 4px;
    z-index: 210;
}
.nav-dropdown__item-wrap.has-submenu:hover > .nav-dropdown__submenu {
    display: flex;
    flex-direction: column;
}
.nav-dropdown__subitem {
    display: block !important;
    height: auto !important;
    padding: 10px 10px !important;
    color: var(--text) !important;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.1s;
    border-radius: 4px;
}
.nav-dropdown__subitem:hover {
    background: var(--input-bg) !important;
    text-decoration: none;
    color: var(--primary) !important;
}

/* メインレイアウト */
.main-content {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1 0 auto;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.breadcrumb a {
    color: var(--text-light);
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb .separator {
    color: var(--border);
}

/* ページタイトル */
.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

/* カード */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

/* 記事一覧 */
.article-list {
    list-style: none;
}
.article-list li {
    border-bottom: 1px solid var(--border);
}
.article-list li:last-child {
    border-bottom: none;
}
.article-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.15s;
}
.article-list a:hover {
    background: var(--input-bg);
    text-decoration: none;
}
.article-list .article-date {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 16px;
}
.article-list .arrow {
    color: var(--border);
    margin-left: 8px;
    flex-shrink: 0;
}

/* 記事詳細 */
.article-header {
    margin-bottom: 32px;
}
.article-header__date {
    color: var(--text-light);
    font-size: 14px;
    margin: 8px 0 0;
}
.article-header h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}
.back-to-category {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.back-to-category__btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.back-to-category__btn:hover {
    background: var(--primary-hover);
    text-decoration: none;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding: 10px 16px;
    background: var(--input-bg);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 12px;
    padding: 6px 0 6px 14px;
    border-left: 3px solid var(--primary);
}
.article-body h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--text);
    position: relative;
    padding-left: 12px;
}
.article-body h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}
.article-body p {
    margin-bottom: 16px;
}
.article-body ul, .article-body ol {
    margin: 0 0 16px 24px;
}
.article-body li {
    margin-bottom: 4px;
}
.article-body .checklist {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px 0;
}
.article-body .checklist .checklist__item {
    position: relative;
    padding-left: 28px;
    margin-bottom: 6px;
    line-height: 1.6;
}
.article-body .checklist .checklist__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 17px;
    height: 17px;
    border: 2px solid #c0c0c0;
    border-radius: 3px;
    box-sizing: border-box;
}
.article-body .checklist .checklist__item--checked::before {
    content: '✓';
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-size: 12px;
    line-height: 13px;
    text-align: center;
}
.article-body figure.article-image {
    margin: 24px 0;
}
.article-body figure.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.article-body figure.article-image figcaption {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}
/* 画像配置オプション */
.article-body figure.article-image img {
    display: inline-block;
}
.article-body figure.article-image--stretched img {
    width: 100%;
    display: block;
}
.article-body figure.article-image--bordered img {
    border: 2px solid var(--text);
}
.article-body figure.article-image--bg {
    background: var(--input-bg);
    padding: 16px;
    border-radius: var(--radius);
}
/* クリックして拡大表示（画像ブロック設定でON時、JSはtemplate.php） */
.article-body figure.article-image--lightbox img {
    cursor: zoom-in;
}
/* リンク付き画像（画像ブロック設定→リンク設定。拡大表示より優先） */
.article-body figure.article-image--linked .article-image__link {
    display: inline-block;
    line-height: 0;
}
/* リンク付き・拡大表示の画像はホバーで薄く（クリックできる合図） */
.article-body figure.article-image--lightbox img,
.article-body figure.article-image--linked img {
    transition: opacity 0.2s ease;
}
.article-body figure.article-image--lightbox img:hover,
.article-body figure.article-image--linked img:hover {
    opacity: 0.7;
}
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 24px;
    cursor: zoom-out;
}
.image-lightbox--open {
    display: flex;
}
.image-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
body.lightbox-open {
    overflow: hidden;
}
/* 注意・禁止ボックス */
.article-body .callout {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 16px 0;
}
.article-body .callout-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.article-body .callout-body {
    flex: 1;
}
.article-body .callout-caution {
    background: var(--warning-pale);
    border-left: 4px solid var(--warning);
}
.article-body .callout-danger {
    background: var(--primary-pale);
    border-left: 4px solid var(--primary);
}
/* ステップ */
.article-body .steps {
    margin: 16px 0;
}
.article-body .step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.article-body .step:last-child {
    border-bottom: none;
}
.article-body .step-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.article-body .step-text {
    flex: 1;
    padding-top: 2px;
}

/* 引用: H2（赤ライン+背景）と区別するため、グレー縦線+大きな引用符マークの構成 */
.article-body blockquote {
    position: relative;
    border-left: 3px solid var(--border);
    padding: 8px 20px 8px 56px;
    margin: 16px 0;
}
.article-body blockquote::before {
    content: "\201C";
    position: absolute;
    left: 16px;
    top: 4px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 44px;
    line-height: 1;
    color: var(--border);
}
.article-body blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-style: normal;
    color: var(--text-light);
}
.article-body blockquote cite::before {
    content: "\2014 ";
}
.article-body pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 16px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
}
.article-body hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 32px 0;
}
/* 記事一覧ウィジェット */
.article-list-widget {
    margin: 24px 0;
}
.article-list-widget__empty {
    color: #6B7A90;
    padding: 16px 0;
}
.article-list-widget__items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.article-list-widget__items li {
    border-bottom: 1px solid var(--border);
}
.article-list-widget__link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 7px 8px;
    color: var(--text);
    text-decoration: none;
}
.article-list-widget__link:hover {
    background: var(--input-bg);
    color: var(--primary);
    text-decoration: none;
}
.article-list-widget__date {
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}
.article-list-widget__title {
    font-size: 15px;
}
.article-list-widget__title::before {
    content: '・';
}

/* ボタンブロック */
.btn-block {
    display: flex;
    margin: 24px 0;
}
.btn-block--left { justify-content: flex-start; }
.btn-block--center { justify-content: center; }
.btn-block--right { justify-content: flex-end; }
.btn-block__btn {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.btn-block__btn:hover {
    opacity: 0.85;
    text-decoration: none;
}
.btn-block__btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn-block__btn--outline {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-block__btn--dark {
    background: var(--text);
    color: #fff;
}

/* 余白ブロック */
.article-body .spacer--small {
    height: 16px;
}
.article-body .spacer--large {
    height: 48px;
}
.article-body .callout-warning {
    /* 警告はアイコンなし構造（strong+p）のため.calloutのflex横並びを解除
       （flexのままだとタイトルと本文が2カラム状に並んでしまう） */
    display: block;
    background: var(--warning-pale);
    border-left: 4px solid var(--warning);
}
.article-body .callout-warning strong {
    display: block;
    margin-bottom: 4px;
}
.article-body .table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
}
/* 横スクロール指定の表: 案内文（箱の外）とセットで使う
   実際に表がはみ出しているときだけJS（template.php）が--visibleを付けて表示する */
.article-body .table-scroll-hint {
    display: none;
    font-size: 12px;
    color: var(--text-light);
    margin: 16px 0 0;
}
.article-body .table-scroll-hint--visible {
    display: block;
}
.article-body .table-scroll-hint--visible + .table-wrapper {
    margin-top: 6px;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
}
.article-body th, .article-body td {
    border: 1px solid var(--border-strong);
    padding: 10px 14px;
    text-align: left;
}
.article-body th {
    background: var(--input-bg);
    font-weight: 600;
    color: var(--text);
}

/* お問い合わせフォーム */
.contact-form__row {
    margin-bottom: 20px;
}
.contact-form__row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.contact-form__row .required {
    color: var(--primary);
}
.contact-form__row input,
.contact-form__row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.15s;
}
.contact-form__row input:focus,
.contact-form__row textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-form__row textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form__actions {
    text-align: center;
    padding-top: 8px;
}
.contact-form__actions .btn {
    display: inline-block;
    padding: 12px 48px;
    font-size: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.contact-form__actions .btn:hover {
    background: var(--primary-hover);
}

/* お問い合わせ完了・エラー */
.contact-success {
    text-align: center;
    padding: 60px 32px;
}
.contact-success__icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.contact-success__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
.contact-success__text {
    color: var(--text-light);
}
.contact-success__btn {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
}
.contact-success__btn:hover {
    background: var(--primary-hover);
}
/* お問い合わせフォームのエラー表示（管理画面の.alert-errorとは別物。名前衝突回避のため接頭辞付き） */
.contact-alert-error {
    background: var(--primary-pale);
    color: var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* このページを編集ボタン */
.edit-page-btn {
    margin-left: auto;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background 0.15s;
}
.edit-page-btn:hover {
    background: var(--primary-hover);
    text-decoration: none !important;
}

/* ファイル添付 */
.attachment-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    margin: 12px 0;
    transition: border-color 0.15s;
}
.attachment-block:hover {
    border-color: var(--primary);
    text-decoration: none;
}
.attachment-block__icon {
    font-size: 28px;
    flex-shrink: 0;
}
.attachment-block__info {
    flex: 1;
    min-width: 0;
}
.attachment-block__name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attachment-block__meta {
    font-size: 12px;
    color: var(--text-light);
}
.attachment-block__dl {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* フッター */
.site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-light);
    font-size: 13px;
    margin-top: auto;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}
.footer-links a {
    font-size: 12px;
    color: var(--text-light);
}
.footer-links a:hover {
    color: var(--text);
}
/* カラムレイアウト */
.article-body .columns {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}
.article-body .columns--2 {
    grid-template-columns: 1fr 1fr;
}
.article-body .columns--3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.article-body .columns__col {
    min-width: 0;
}
.article-body .columns__col > *:first-child {
    margin-top: 0;
}
.article-body .columns__col > *:last-child {
    margin-bottom: 0;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.nav-overlay.active {
    display: block;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        height: auto;
        position: relative;
    }
    .header-logo {
        padding: 12px 16px;
        justify-content: center;
    }
    .hamburger {
        display: block;
    }
    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh; /* iPhone Safariの下部ツールバー分を除いた高さ（未対応ブラウザは上の100vh） */
        flex-direction: column;
        padding: 48px 0 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }
    /* 編集画面の空ナビ（PCでは青帯の装飾）はドロワー化しても開けないため非表示 */
    .header-nav--empty {
        display: none;
    }
    .header-nav.open {
        transform: translateX(0);
    }
    .site-nav {
        flex-direction: column;
    }
    .site-nav::before {
        content: 'MENU';
        display: block;
        padding: 8px 20px;
        font-size: 11px;
        font-weight: 700;
        color: rgba(255,255,255,0.35);
        letter-spacing: 2px;
    }
    .site-nav > a,
    .nav-dropdown__trigger {
        padding: 0 20px !important;
        height: 40px !important;
        min-height: 0 !important;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-dropdown__trigger {
        padding-right: 48px !important; /* 右端の∨ボタンとテキストの重なり防止 */
    }
    .nav-dropdown__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 40px;
        padding: 0;
        background: none;
        border: none;
        border-left: 1px solid rgba(255,255,255,0.15);
        cursor: pointer;
    }
    .nav-dropdown__toggle::before {
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        border-right: 2px solid rgba(255,255,255,0.6);
        border-bottom: 2px solid rgba(255,255,255,0.6);
        transform: rotate(45deg);
        transition: transform 0.2s;
    }
    .nav-dropdown.open .nav-dropdown__toggle::before {
        transform: rotate(-135deg);
    }
    .nav-dropdown__menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-dropdown:hover .nav-dropdown__menu {
        max-height: 0;
    }
    .nav-dropdown.open .nav-dropdown__menu {
        max-height: 300px;
    }
    .nav-dropdown__item {
        color: rgba(255,255,255,0.75) !important;
        padding: 0 20px !important;
        height: 36px !important;
        min-height: 0 !important;
        display: flex;
        align-items: center;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        background: none;
    }
    .nav-dropdown__item-wrap.has-submenu > .nav-dropdown__item::after {
        display: none;
    }
    .nav-dropdown__item::before {
        content: '└';
        margin-right: 8px;
        color: rgba(255,255,255,0.3);
        font-size: 13px;
    }
    .nav-dropdown__item:hover {
        background: rgba(255,255,255,0.08) !important;
        color: #fff !important;
    }
    .nav-dropdown__submenu {
        display: none !important;
    }
    .header-actions {
        padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
        justify-content: center;
    }
    .header-contact-btn {
        padding: 10px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    .site-logo img {
        height: 26px;
    }
    .logo-manual {
        font-size: 13px;
    }
    .main-content {
        padding: 20px 16px;
    }
    .card {
        padding: 20px;
    }
    .page-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    .article-list a {
        padding: 16px 12px;
        font-size: 15px;
    }
    .article-list .article-date {
        font-size: 12px;
    }
    .article-header h1 {
        font-size: 22px;
    }
    .article-body h2 {
        font-size: 18px;
        margin: 28px 0 12px;
    }
    .article-body h3 {
        font-size: 16px;
    }
    .article-body pre {
        font-size: 13px;
        padding: 12px 14px;
    }
    .article-body .columns--2,
    .article-body .columns--3 {
        grid-template-columns: 1fr;
    }
    .article-list-widget__items li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 8px;
    }
    .attachment-block {
        padding: 10px 14px;
        gap: 10px;
    }
    .attachment-block__name {
        font-size: 14px;
    }
    .attachment-block__dl {
        display: none;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
