/* 技術コラム共通。色と書体は製品ページ（cad.html など）に合わせる */
* { box-sizing: border-box; }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333333;
    margin: 0;
    line-height: 1.8;
    background-color: #f8fafc;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-color: #0a2540;
    padding: 14px 0;
    border-bottom: 4px solid #0055ea;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.logo-text {
    color: #ffffff;
    font-size: 15pt;
    font-weight: bold;
    text-decoration: none;
}

.back-link {
    color: #fbd38d;
    text-decoration: none;
    font-size: 9.5pt;
    font-weight: bold;
    border: 1px solid #fbd38d;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.back-link:hover {
    background-color: #fbd38d;
    color: #0a2540;
}

.breadcrumb {
    font-size: 9pt;
    color: #64748b;
    padding: 14px 0 0;
    margin: 0;
}

.breadcrumb a {
    color: #0a2540;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 6px;
    color: #94a3b8;
}

.list-intro,
.article-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 28px 28px 32px;
    margin: 18px 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.article-kicker {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 9pt;
    font-weight: bold;
    letter-spacing: 0.06em;
    color: #ea580c;
}

.list-intro h1,
.article-card h1 {
    font-size: 18pt;
    line-height: 1.45;
    color: #0a2540;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.list-intro h1::after,
.article-card h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 56px;
    height: 3px;
    background-color: #ea580c;
}

.list-intro p,
.article-meta {
    margin: 0;
    font-size: 10pt;
    color: #64748b;
}

.article-meta { margin-bottom: 8px; }

.article-card h2 {
    font-size: 13.5pt;
    line-height: 1.5;
    color: #0a2540;
    margin: 32px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.article-card h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 42px;
    height: 3px;
    background-color: #ea580c;
}

.article-card p,
.article-card li {
    font-size: 10.5pt;
    color: #333333;
}

.article-card p { margin: 0 0 14px; }

.article-card ul,
.article-card ol {
    margin: 0 0 14px;
    padding-left: 1.35em;
}

.article-card li { margin-bottom: 6px; }

.article-card a { color: #0a2540; }

.article-card a:hover { color: #ea580c; }

.diagram {
    margin: 6px 0 18px;
    padding: 16px 16px 14px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #ea580c;
    border-radius: 4px;
}

.diagram figcaption {
    font-weight: bold;
    color: #0a2540;
    font-size: 10pt;
    margin-bottom: 10px;
}

.flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.flow li {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #0a2540;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 9.5pt;
    font-weight: bold;
    color: #0a2540;
}

.rule-compare {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rule-compare > div {
    flex: 1 1 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 12px;
}

.rule-name {
    margin: 0;
    font-weight: bold;
    color: #0a2540;
    font-size: 11pt;
}

.rule-line {
    height: 0;
    margin: 10px 0;
}

.rule-cut { border-top: 3px solid #0a2540; }

.rule-crease { border-top: 3px dashed #ea580c; }

.rule-note {
    margin: 0;
    font-size: 9.5pt;
    color: #475569;
    line-height: 1.6;
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
    background: #ffffff;
}

.simple-table th,
.simple-table td {
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.simple-table th {
    background: #0a2540;
    color: #ffffff;
    font-weight: bold;
    width: 28%;
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 28px;
}

.column-item {
    display: block;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #ea580c;
    border-radius: 6px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.column-item:hover {
    border-color: #ea580c;
}

.column-item:focus-visible {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}

.column-item .kicker {
    margin: 0 0 6px;
    font-size: 8.5pt;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #ea580c;
}

.column-item h2 {
    margin: 0 0 8px;
    font-size: 13pt;
    line-height: 1.5;
    color: #0a2540;
}

.column-item:hover h2 { color: #ea580c; }

.column-item p {
    margin: 0;
    font-size: 10pt;
    line-height: 1.7;
    color: #475569;
}

.related {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px 18px;
    margin: 0 0 28px;
}

.related h2 {
    margin: 0 0 10px;
    font-size: 11pt;
    color: #0a2540;
}

.related ul {
    margin: 0;
    padding-left: 1.2em;
    font-size: 10pt;
}

.related a { color: #0a2540; }

.related a:hover { color: #ea580c; }

.footer {
    background-color: #051322;
    color: #a0aec0;
    text-align: center;
    padding: 16px;
    font-size: 8.5pt;
}

.site-footer-nav {
    margin: 0 0 8px;
    line-height: 1.9;
}

.site-footer-nav a {
    display: inline-block;
    color: #cbd5e1;
    text-decoration: none;
    margin: 3px 8px;
    font-size: 9pt;
}

.site-footer-nav a:hover,
.site-footer-nav a[aria-current="page"] { color: #fbd38d; }

.sns-links {
    margin: 2px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.sns-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #cbd5e1;
    text-decoration: none;
    border: 1px solid #334155;
    border-radius: 50%;
}

.sns-links a:hover {
    color: #fbd38d;
    border-color: #fbd38d;
    background-color: rgba(251, 211, 141, 0.08);
}

.sns-links svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer p { margin: 0; }

@media (max-width: 768px) {
    .nav-content { flex-wrap: wrap; }
    .logo-text { font-size: 13.5pt; }
    .back-link { font-size: 8.5pt; padding: 4px 8px; }
    .list-intro,
    .article-card { padding: 20px 16px 24px; }
    .list-intro h1,
    .article-card h1 { font-size: 15.5pt; }
    .simple-table th { width: auto; }
}
