/* body {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    background-color: #fdfdfd;
}
h1, h2, h3 {
    border-bottom: 2px solid #005ab3;
    padding-bottom: 8px;
    margin-top: 40px;
}
h1 {
    font-size: 2em;
    text-align: center;
    color: #005ab3;
}
h2 {
    font-size: 1.6em;
    background-color: #eaf4ff;
    padding: 12px;
    border-left: 6px solid #005ab3;
}
h3 {
    font-size: 1.3em;
    border-bottom-style: dotted;
} */
.k060-container {
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    background-color: #fff;
}
.k060-formula-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    font-family: "Courier New", Courier, monospace;
    white-space: pre;
    text-align: center;
    font-size: 1.4em;
    border-radius: 5px;
}
.k060-input-group, .k060-output-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.k060-input-group label, .k060-output-group .label {
    flex: 0 0 200px; /* ラベルの幅を固定 */
    font-weight: bold;
}
.k060-input-group input[type="number"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
}
.k060-input-group .unit, .k060-output-group .unit {
    margin-left: 10px;
    font-weight: bold;
}
.k060-sub-input-group {
    padding-left: 30px;
    border-left: 3px solid #e0e0e0;
    margin: 10px 0 15px 30px;
}
.k060-sub-input-group p {
    margin-top: 0;
    color: #555;
}
#calculateButton {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 30px 0;
    transition: background-color 0.3s;
}
#calculateButton:hover {
    background-color: #0056b3;
}
.output-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #d9534f;
    padding: 5px 10px;
    background-color: #fcf8e3;
    border: 1px solid #fbeed5;
    border-radius: 4px;
    min-width: 100px;
    display: inline-block;
    text-align: right;
}
.k060-note {
    font-size: 0.9em;
    color: #666;
    margin-left: 10px;
}
.k060-footer {
    text-align: right;
    margin-top: 40px;
    font-size: 0.9em;
    color: #777;
}

/* 図のスタイル */
.illustration-container {
    text-align: center;
    margin: 20px 0;
}
.illustration-svg {
    max-width: 100%;
    height: auto;
}
.buckling-figure .column { fill: #d0d0d0; stroke: #555; stroke-width: 1.5; }
.buckling-figure .base { fill: #888; }
.buckling-figure .arrow-line { stroke: #d9534f; stroke-width: 3; }
.buckling-figure .arrow-head { fill: #d9534f; }
.buckling-figure .label-text { font-size: 16px; font-family: sans-serif; text-anchor: middle; }
.buckling-figure .caption-text { font-size: 18px; font-family: sans-serif; font-weight: bold; text-anchor: middle; }
.buckling-figure .buckled-path { fill: none; stroke: #555; stroke-width: 1.5; }

/* 追加した図のスタイル */
.boundary-conditions-figure .column-line { stroke: #666; stroke-width: 3; }
.boundary-conditions-figure .buckled-shape { stroke: #d9534f; stroke-width: 2.5; stroke-dasharray: 6 3; fill: none; }
.boundary-conditions-figure .support-base { fill: #888; stroke: #555; }
.boundary-conditions-figure .support-hinge { fill: #fff; stroke: #555; stroke-width: 1.5;}
.boundary-conditions-figure .text-label { font-size: 14px; font-family: sans-serif; text-anchor: middle; }
.boundary-conditions-figure .text-value { font-size: 16px; font-family: sans-serif; font-weight: bold; text-anchor: middle; color: #005ab3; }


/* D3.js 模式図用のスタイル */
#dependency-graph-container {
    position: relative;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}
#dependency-graph-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 5px;
    background: rgba(255,255,255,0.8);
    border-radius: 4px;
}
#dependency-graph-legend div {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}
#dependency-graph-legend .legend-color-box {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #ccc;
}
.graph-links line {
    stroke: #999;
    stroke-opacity: 0.6;
}
.graph-nodes text {
    pointer-events: none;
    font-size: 10px;
    font-family: sans-serif;
    text-anchor: middle;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 3px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
}
.graph-nodes circle {
    stroke: #fff;
    stroke-width: 1.5px;
    cursor: grab;
}
.k060-flex-io-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.k060-io-col {
    flex: 1 1 0;
    min-width: 220px;
    max-width: 340px;
    box-sizing: border-box;
}
@media (max-width: 1100px) {
    .k060-flex-io-row {
        flex-direction: column;
        gap: 0;
    }
    .k060-io-col {
        max-width: 100%;
        min-width: 0;
    }
}


/* 既存の .buckling-figure .buckled-path をこちらに置き換えるか、下記を追記してください */
.buckled-path {
    fill: none;
    stroke: #8ab4f8; /* 柱の色 */
    stroke-width: 25; /* 柱の太さ */
    stroke-linecap: round; /* 柱の端を丸める */
}

/* 凡例のテキストが読みやすいように調整 */
.boundary-conditions-figure .text-value { 
    font-size: 16px; 
    font-family: sans-serif; 
    font-weight: bold; 
    text-anchor: middle; 
    fill: #005ab3; /* テキスト色をfillで指定 */
}

/* ラベルテキストのスタイル */
.label-text { 
    font-size: 16px; 
    font-family: sans-serif;
    text-anchor: middle; 
}
/* キャプションテキストのスタイル */
.caption-text { 
    font-size: 18px; 
    font-family: sans-serif; 
    font-weight: bold; 
    text-anchor: middle; 
}
/* 矢印のスタイル */
.arrow-line { 
    stroke: #d9534f; 
    stroke-width: 3; 
    marker-end: url(#arrowP);
}
.arrow-head {
     fill: #d9534f; 
}
/* 土台のスタイル */
.base { 
    fill: #888;
    stroke: #555;
}