@charset "UTF-8";

/* ==============================================
   Startup Support Article Style (v3.0)
   Wrapper Class: .stf-article-body
   ============================================== */

/* --- Base Reset & Typography --- */
.stf-article-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
    font-size: 16px;
}

.stf-article-body p {
    margin-top: 0 !important;
    margin-bottom: 1.5em !important;
    padding: 0 !important;
    font-size: 1rem;
    line-height: 1.8;
}

/* --- Headings --- */
.stf-article-body h2 {
    font-size: 1.6em;
    border: none !important;
    border-bottom: 2px solid #2ea650 !important;
    padding: 0 0 0.5em 0 !important;
    margin-top: 2.5em !important;
    margin-bottom: 1.5em !important;
    color: #2e3330;
    line-height: 1.4;
    background: none !important;
    clear: both;
}

.stf-article-body h3 {
    font-size: 1.3em;
    border: none !important;
    border-left: 5px solid #2ea650 !important;
    padding: 0 0 0 0.8em !important;
    margin-top: 2em !important;
    margin-bottom: 1.2em !important;
    color: #2e3330;
    line-height: 1.4;
    clear: both;
}

.stf-article-body h4 {
    font-size: 1.1em;
    border: none !important;
    padding: 0 !important;
    margin-top: 1.8em !important;
    margin-bottom: 1em !important;
    color: #333;
    font-weight: bold;
    clear: both;
}

/* --- Lists (ul, ol, dl) --- */
.stf-article-body ul,
.stf-article-body ol {
    margin-top: 0 !important;
    margin-bottom: 1.5em !important;
    padding-left: 1.5em !important;
}

.stf-article-body ul {
    list-style: disc !important;
}

.stf-article-body ol {
    list-style: decimal !important;
}

.stf-article-body li {
    margin-bottom: 0.5em !important;
    margin-top: 0 !important;
}

/* Definition List (用語定義) */
.stf-article-body dl {
    margin-top: 0 !important;
    margin-bottom: 1.5em !important;
}

.stf-article-body dt {
    font-weight: bold !important;
    margin-top: 1em !important;
    margin-bottom: 0.2em !important;
    color: #2ea650; /* テーマカラー */
}

.stf-article-body dd {
    margin-left: 1em !important;
    margin-bottom: 1em !important;
    padding-left: 0 !important;
    border: none !important; /* 親テーマのリセット */
}

/* --- Tables --- */
/* スマホ用横スクロールラッパー */
.stf-article-body .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0 !important;
    border: 1px solid #ddd; /* 外枠 */
}

.stf-article-body table {
    width: 100%;
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 !important; /* ラッパーでマージンを取るため */
    min-width: 600px; /* スマホでも折れずにスクロールさせる */
}

.stf-article-body th,
.stf-article-body td {
    padding: 1em !important;
    border: 1px solid #ddd !important;
    vertical-align: top !important;
    line-height: 1.6 !important;
}

.stf-article-body th {
    background-color: #f5f9f5 !important; /* 薄い緑 */
    color: #333 !important;
    font-weight: bold !important;
    text-align: left !important;
    white-space: nowrap; /* 見出しは改行させない */
    width: 20%; /* デフォルト幅 */
}

.stf-article-body td {
    background-color: #fff !important;
}

/* --- Links & Text Highlights --- */
.stf-article-body a {
    color: #2ea650;
    text-decoration: underline;
}

.stf-article-body a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.stf-article-body strong {
    color: #2ea650;
    font-weight: 700;
    background: linear-gradient(transparent 70%, #d4f7dc 70%); /* マーカー風 */
}

.stf-article-body small {
    font-size: 0.85em;
    color: #666;
}

/* --- Images --- */
.stf-article-body .article-figure {
    margin: 2em 0 !important;
    text-align: center;
    padding: 0 !important;
}

.stf-article-body .article-image {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 5px;
    margin: 0 !important;
}

.stf-article-body .article-caption {
    margin-top: 0.5em !important;
    font-size: 0.9em;
    color: #666;
    text-align: center;
    display: block;
}

/* --- Components --- */

/* Blockquotes */
.stf-article-body blockquote {
    background-color: #f4f9f6 !important;
    border: none !important;
    border-left: 4px solid #b2d8c0 !important;
    margin: 1.5em 0 !important;
    padding: 1.5em !important;
    color: #555;
    position: relative;
}

.stf-article-body blockquote p {
    margin-bottom: 0.5em !important;
}

.stf-article-body blockquote cite {
    display: block;
    text-align: right;
    font-size: 0.85em;
    color: #777;
    font-style: normal;
}

/* Summary Boxes */
.stf-article-body .bridge-summary {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #2ea650;
    padding: 1em 1.5em;
    margin: 2em 0;
}

.stf-article-body .bridge-summary p {
    margin: 0 !important;
    font-size: 0.95em;
    color: #444;
}

.stf-article-body .macro-summary {
    background-color: #e8f5e9;
    border-left: 5px solid #2ea650;
    padding: 1.5em 2em;
    margin: 2em 0;
    font-style: normal;
}

/* Internal Link Card */
.stf-article-body .internal-link-card {
    margin: 2em 0; 
    border: 1px solid #ddd; 
    background-color: #fff; 
    border-radius: 5px; 
    overflow: hidden; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.stf-article-body .internal-link-header {
    background-color: #f5f5f5; 
    margin: 0 !important; 
    padding: 0.8em 1em !important; 
    font-weight: bold; 
    color: #555; 
    font-size: 0.9em; 
    border-bottom: 1px solid #eee;
}
.stf-article-body .internal-link-body {
    padding: 1.5em; 
    display: flex; 
    align-items: flex-start; 
    gap: 1.5em;
}
.stf-article-body .internal-link-thumb {
    min-width: 100px; 
    width: 100px; 
    height: 75px; 
    background-color: #eee; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 4px;
}
.stf-article-body .internal-link-thumb img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 4px;
}
.stf-article-body .internal-link-text {
    flex: 1;
}
.stf-article-body .internal-link-title {
    font-weight: bold; 
    font-size: 1.05em; 
    line-height: 1.4; 
    color: #2ea650; 
    text-decoration: underline; 
    display: block; 
    margin-bottom: 0.5em !important;
}

/* Highlight Box */
.stf-article-body .highlight-box {
    border: 1px dashed #2ea650;
    background-color: #fff;
    padding: 1.5em;
    border-radius: 5px;
    margin: 1.5em 0;
}

/* Step Flow */
.stf-article-body .step-flow {
    text-align: center;
    background: #fdfdfd;
    padding: 1.5em;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 1.5em 0;
}
.stf-article-body .step-flow p {
    margin-bottom: 0.5em !important;
    font-weight: bold;
    color: #555;
}

/* FAQ Details */
.stf-article-body details {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1em;
    background-color: #fff;
    transition: all 0.3s ease;
}

.stf-article-body summary {
    padding: 1em;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    list-style: none;
    position: relative;
    padding-right: 2.5em;
}

.stf-article-body summary::-webkit-details-marker {
    display: none;
}

.stf-article-body summary::after {
    content: "+";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #2ea650;
    font-weight: bold;
}

.stf-article-body details[open] summary::after {
    content: "-";
}

.stf-article-body details > div {
    padding: 1em;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.stf-article-body details p {
    margin: 0 !important;
}

/* Footer & References */
.stf-article-body hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 3em 0 !important;
}

.stf-article-body .references {
    font-size: 0.9em;
    color: #666;
    margin-top: 3em;
}

.stf-article-body .references ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.stf-article-body .references li {
    margin-bottom: 0.8em !important;
    word-break: break-all;
}

.stf-article-body .article-scope-note {
    margin-top: 3em;
    padding: 1.5em;
    background-color: #fff9e6;
    border: 1px solid #ffecb3;
    border-radius: 5px;
    font-size: 0.9em;
    color: #665b2d;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .stf-article-body .internal-link-body {
        flex-direction: column;
        gap: 1em;
    }
    .stf-article-body .internal-link-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}