@charset "UTF-8";

/* ==========================================
   1. ルート設定・フォントサイズ切り替え制御
   ========================================== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html.font-large {
    font-size: 18px !important;
}

html.font-xlarge {
    font-size: 20px !important;
}

body.site-body {
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    background-color: #f9fafb;
    color: #1f2937;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    display: block;
}

@media (min-width: 768px) {
    body.site-body { padding: 2.5rem; }
}

/* ==========================================
   2. ヘッダー ＆ 文字サイズコントローラー
   ========================================== */
.site-header { 
    padding-top: 0.5rem; 
    padding-bottom: 1.5rem; 
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}
.header-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
@media (min-width: 640px) {
    .header-flex {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-title { 
    font-size: 2rem; 
    font-weight: 800; 
    color: #111827; 
    letter-spacing: -0.025em; 
}
@media (min-width: 768px) { .site-title { font-size: 2.5rem; } }
.site-subtitle { 
    font-size: 0.8125rem; 
    color: #6b7280; 
    margin-top: 0.25rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    font-weight: 600; 
}

.font-switcher {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}
.switcher-label {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 600;
    margin-right: 0.25rem;
}
.font-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    background-color: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}
.font-btn:hover { background-color: #e5e7eb; }
.font-btn.active { background-color: #111827; color: #ffffff; }

/* ==========================================
   3. 2カラムレイアウト（左メニュー ＆ 右コンテンツ）
   ========================================== */
.layout-container {
    display: block;
}

@media (min-width: 1024px) {
    .layout-container {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 2rem;
        align-items: start;
    }
}

.sidebar-nav {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar-nav {
        display: block;
        height: 100%;
    }

    .sticky-menu {
        position: -webkit-sticky;
        position: sticky;
        top: 2rem;
        z-index: 30;
        background-color: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 0.375rem;
        padding: 1.25rem;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    }
}

.menu-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.375rem;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: color 0.15s ease;
    display: block;
    padding: 0.25rem 0;
    white-space: nowrap;
}
.menu-link:hover { color: #2563eb; text-decoration: underline; }

.sub-item { padding-left: 0.75rem; }
.menu-sublink {
    font-size: 0.825rem;
    color: #6b7280;
    text-decoration: none;
    display: block;
    padding: 0.125rem 0;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.menu-sublink:hover { color: #2563eb; }

.site-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.site-footer { 
    padding-top: 4rem; 
    padding-bottom: 2rem; 
    text-align: center; 
    font-size: 0.8125rem; 
    color: #9ca3af; 
}

/* ==========================================
   4. カードおよび見出しの統一スタイル
   ========================================== */
.card {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    scroll-margin-top: 2rem;
}

.profile-card,
.hub-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .profile-card, .hub-card { padding: 2rem; }
}

.card-title-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
}
.status-dot { 
    width: 0.5rem; 
    height: 0.5rem; 
    border-radius: 9999px; 
    background-color: #4b5563; 
    flex-shrink: 0; 
}

.card-title-bar h2,
.card-header-flex h2,
.nsp-header h2 { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: #111827; 
    letter-spacing: -0.01em;
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1rem;
    color: #374151;
    line-height: 1.625;
}

.notice-box {
    color: #374151;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.875rem;
    border-radius: 0.375rem;
}

/* リンク色を青色（#2563eb）に指定 */
.link-external {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    transition: color 0.15s ease;
}
.link-external:hover { color: #1d4ed8; }
.icon-ext { width: 0.875rem; height: 0.875rem; display: inline; flex-shrink: 0; }

.tags-container {
    padding-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
}
.tag {
    padding: 0.25rem 0.625rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
}

.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    background-color: #f3f4f6; 
    color: #111827; 
    border: 1px solid #d1d5db;
}
.badge-muted { 
    background-color: #f9fafb; 
    color: #6b7280; 
    border-radius: 9999px; 
    font-size: 0.8125rem; 
    font-weight: 400; 
    padding: 0.25rem 0.625rem; 
    border: 1px solid #e5e7eb; 
}

.card-header-flex { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.desc-text { font-size: 1rem; color: #4b5563; line-height: 1.625; }

/* ==========================================
   5. サムネイル画像プレビュー領域
   ========================================== */
.thumbnail-wrapper { margin-top: 0.75rem; }
.thumbnail-note { font-size: 0.85rem; color: #9ca3af; margin-bottom: 0.375rem; }
.thumbnail-box {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background-color: #f3f4f6;
    height: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) { .thumbnail-box { height: 16rem; } }
.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: opacity 0.2s ease;
}
.thumbnail-box:hover .thumbnail-img { opacity: 0.9; }

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumbnail-box:hover .thumbnail-overlay { background-color: rgba(0, 0, 0, 0.2); }

.preview-btn {
    opacity: 0;
    background-color: rgba(17, 24, 39, 0.9);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.thumbnail-box:hover .preview-btn { opacity: 1; }
.icon-search { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

/* ==========================================
   6. NSPセクション固有スタイル
   ========================================== */
.nsp-card { overflow: hidden; }
.nsp-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f9fafb;
}
@media (min-width: 640px) {
    .nsp-header { flex-direction: row; align-items: center; justify-content: space-between; }
}
.nsp-subtitle { font-size: 0.85rem; color: #6b7280; margin-top: 0.125rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.625rem; width: 100%; }
@media (min-width: 640px) { .btn-group { width: auto; } }

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
@media (min-width: 640px) { .btn { flex: none; } }

.btn-primary { background-color: #111827; color: #ffffff; }
.btn-primary:hover { background-color: #1f2937; }
.btn-secondary { background-color: #ffffff; border: 1px solid #d1d5db; color: #374151; }
.btn-secondary:hover { background-color: #f9fafb; }

.icon-arrow, .icon-faq { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-arrow { margin-left: 0.25rem; }
.icon-faq { margin-right: 0.375rem; color: #6b7280; }

.nsp-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .nsp-content { padding: 2rem; } }

.nsp-section { scroll-margin-top: 2rem; }

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    border-left: 4px solid #111827;
    padding-left: 0.75rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}
.section-text { line-height: 1.625; color: #374151; padding-left: 0.25rem; font-size: 1rem; margin-top: 0.5rem; }

.feature-list {
    list-style: disc;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-left: 0.25rem;
    line-height: 1.625;
    color: #374151;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.sub-header { border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; }
.tool-intro {
    line-height: 1.625;
    font-weight: 500;
    color: #111827;
    background-color: #f9fafb;
    padding: 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    margin-top: 0.75rem;
    font-size: 1rem;
}

.grid-2col { display: grid; gap: 1rem; padding-top: 0.5rem; }
@media (min-width: 768px) { .grid-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.detail-box {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 1rem;
}
.detail-summary {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.detail-summary::-webkit-details-marker { display: none; }

.dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; display: inline-block; flex-shrink: 0; }
.dot-emerald { background-color: #111827; }
.dot-amber { background-color: #4b5563; }

.title-emerald { display: flex; align-items: center; gap: 0.375rem; color: #111827; }
.title-amber { display: flex; align-items: center; gap: 0.375rem; color: #374151; }

.arrow-icon { color: #9ca3af; transition: transform 0.2s ease; flex-shrink: 0; }
details[open] .arrow-icon { transform: rotate(180deg); }

.detail-list {
    list-style: disc;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.25rem;
    padding-top: 0.75rem;
    line-height: 1.625;
    font-size: 1rem;
    color: #374151;
}
.detail-list.text-muted { color: #4b5563; }

.summary-box {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    color: #1f2937;
    font-size: 1rem;
    margin-top: 1rem;
}
.summary-title { 
    font-weight: 700; 
    color: #111827; 
    font-size: 1.05rem; 
    margin-bottom: 0.25rem; 
}

/* ==========================================
   7. モーダル表示領域
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-overlay.flex { display: flex; }

.modal-card {
    position: relative;
    max-width: 72rem;
    width: 100%;
    background-color: #ffffff;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #111827;
    color: #ffffff;
}
.modal-title { font-size: 0.875rem; font-weight: 500; }
.modal-close-btn { color: #9ca3af; font-size: 1rem; font-weight: 700; padding: 0.25rem 0.5rem; }
.modal-close-btn:hover { color: #ffffff; }

.modal-body {
    padding: 0.5rem;
    background-color: #030712;
    overflow: auto;
    max-height: 85vh;
    display: flex;
    justify-content: center;
}
.modal-img { width: auto; height: auto; object-fit: contain; }