/* cure_style.css - cure.php専用スタイルシート */
/* 依存ファイル: common.css（共通スタイル） */
/* 呼び出し元: cure.php */
/* 呼び出し先: なし */
/* ※ common.cssで定義済みのクラスは記載しない */

/* cure.php固有：h3に緑左ボーダー */
.articleleft_aboutus_article h3 {
    border-left: 5px #359535 solid;
    padding: 0 0 0 5px;
    color: #196519;
}

/* ================================================
   フローチャート関連（cure.php専用）
   ================================================ */

#cure_flow {
    margin: 0 0 5em 0;
}

#cure_flow th {
    text-align: center;
}

#cure_flow td {
    text-align: center;
}

.flow_box {
    background: #eee;
    border-radius: 10px;
    padding: 5px;
}

/* 矢印 */
.arrow {
    position: relative;
    display: inline-block;
    padding: 0 0 0 16px;
    color: #000;
    vertical-align: middle;
    text-decoration: none;
    font-size: 15px;
    margin: 0 0 10px 0;
}

.arrow::before,
.arrow::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    content: "";
    vertical-align: middle;
}

.arrow::before {
    width: 20px;
    height: 20px;
    border-radius: 25%;
    background: #359535;
}

.arrow-down::after {
    left: 4px;
    top: 6px;
    box-sizing: border-box;
    width: 6px;
    height: 6px;
    border: 6px solid transparent;
    border-top: 6px solid #fff;
}

.arrow-right::before {
    margin: 0 0 0 10px;
}

.arrow-right::after {
    margin: 4px 0 0 10px;
    left: 8px;
    box-sizing: border-box;
    width: 3px;
    height: 3px;
    border: 6px solid transparent;
    border-left: 6px solid #fff;
}

.arrow-fix-4 {
    padding: 0 0 0 4px;
    right: 2px;
}

.arrow-fix-20 {
    padding-left: 20px !important;
}

.arrow_show {
    display: block;
}

#arrow-fix {
    display: block;
}

/* ツールチップ */
.tooltip {
    margin: 100px 0 0;
    list-style: none;
}

.tooltip td {
    margin: 0 10px;
    position: relative;
    text-align: center;
}

.tooltip a {
    display: block;
    text-decoration: underline;
    font-weight: bold;
    width: 120px;
}

.tooltip td span {
    background: #359535;
    color: #fff;
    border-radius: 10px;
    height: 50px;
    width: 180px;
    position: absolute;
    top: -85px;
    left: 10px;
    text-align: center;
    padding: 10px;
    z-index: 2;
    display: none;
    font-size: 12px;
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    #cure_flow table {
        font-size: 14px;
    }

    .flow_box {
        font-size: 14px;
        padding: 8px;
    }

    .arrow {
        font-size: 13px;
    }
}
/* ================================================
   Mermaidフローチャート ラッパースタイル
   cure.php の html セクション用
   ================================================ */

.cure-flow-section {
    margin: 2em 0 3em;
}

.cure-flow-title {
    text-align: center;
    color: #2d5a3d;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    margin-bottom: 32px;
    border-left: none;   /* common.css の h2 ボーダーを無効化 */
}

.cure-flow-wrap {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 40px 20px;
    overflow-x: auto;
    display: flex;
    justify-content: center;  /* ラッパーごと中央揃え */
}

/* Mermaid が生成するSVGを中央揃え */
.cure-flow-wrap .mermaid {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Mermaidがインラインで書く max-width を !important で強制上書き */
.cure-flow-wrap svg {
    max-width: 320px !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;               /* SVG自体も中央揃え */
}

@media (max-width: 480px) {
    .cure-flow-wrap svg {
        max-width: 100% !important;
    }
}
