@charset "utf-8";
.flow-chart {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.flow-step {
  width: 100%;
  min-height: 64px;
  background: #d9d9d9;
  color: #000;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 20px;
}

.flow-arrow {
  width: 0;
  height: 0;
  margin: 16px auto;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid #bfbfbf;
}






 
 .coe-page {
    width: 920px;
    margin: 0 auto;
    color: #111;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
    box-sizing: border-box;
  }

  .coe-page * {
    box-sizing: border-box;
  }

  .coe-flow {
    display: grid;
    grid-template-columns: 92px 1fr 92px;
    grid-template-rows:
      58px
      58px
      58px
      58px
      26px
      58px
      58px
      26px
      58px
      58px
      58px;
    column-gap: 42px;
    row-gap: 20px;
    align-items: center;
    position: relative;
  }

  .coe-left-box {
    grid-column: 1;
    grid-row: 1 / 12;
    background: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
  }

  .coe-right-box {
  grid-column: 3;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  justify-self: stretch;
  align-self: stretch;
}

  .coe-right-top { grid-row: 1 / 5; min-height: 270px;}
  .coe-right-mid { grid-row: 6 / 8; min-height: 120px;}
  .coe-right-bottom { grid-row: 9 / 12; min-height: 270px;}

  .coe-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

  .coe-vertical.small {
    font-size: 16px;
  }

  /* ステップの土台 */
  .coe-step {
    grid-column: 2;
    width: 344px;
    margin: 0 auto;
    position: relative;
    height: 58px;
  }

  /* 横線は土台に描く */
  .coe-step::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -108px;
    right: -108px;
    border-top: 1px solid #9a9a9a;
    transform: translateY(-50%);
    z-index: 1;
  }

  /* 矢印も土台に描く */
  .arrow-right::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -108px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #9a9a9a;
    border-right: 1px solid #9a9a9a;
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }

  .arrow-left::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -108px;
    width: 12px;
    height: 12px;
    border-left: 1px solid #9a9a9a;
    border-bottom: 1px solid #9a9a9a;
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }

  /* グレーの四角は別要素で前面 */
  .coe-step-box {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: #d9d9d9;
    padding: 12px 18px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
  }

  .step1 { grid-row: 1; }
  .step2 { grid-row: 2; }
  .step3 { grid-row: 3; }
  .step4 { grid-row: 4; }
  .step5 { grid-row: 6; }
  .step6 { grid-row: 7; }
  .step7 { grid-row: 9; }
  .step8 { grid-row: 10; }
  .step9 { grid-row: 11; }


  }









.ybcdoc-pc {
    display: block;
    width: 100%;
    color: #222;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  }

  .ybcdoc-pc * {
    box-sizing: border-box;
  }

  .ybcdoc-page {
    width: 960px;
    margin: 0 auto 32px;
    padding: 36px 42px 28px;
    background: #fff;
    border: 1px solid #d9d9d9;
  }

  .ybcdoc-center {
    text-align: center;
  }

  .ybcdoc-right {
    text-align: right;
  }

  .ybcdoc-title-top {
    margin: 0;
    font-size: 20px;
    line-height: 1.8;
    font-weight: 400;
  }

  .ybcdoc-title-main {
    margin: 0;
    font-size: 42px;
    line-height: 1.7;
    letter-spacing: 0.25em;
    font-weight: 400;
  }

  .ybcdoc-title-year {
    margin: 6px 0 0;
    font-size: 26px;
    line-height: 1.8;
    font-weight: 400;
  }

  .ybcdoc-gap-xxl { height: 90px; }
  .ybcdoc-gap-xl { height: 56px; }
  .ybcdoc-gap-lg { height: 36px; }
  .ybcdoc-gap-md { height: 22px; }

  .ybcdoc-heading {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.7;
    font-weight: 400;
  }

  .ybcdoc-subheading {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.7;
    font-weight: 400;
  }

  .ybcdoc-text {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 400;
  }

  .ybcdoc-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .ybcdoc-bullets li {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.9;
  }

  .ybcdoc-note {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.9;
  }

  .ybcdoc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .ybcdoc-table th{
background-color:#ccc;
border: 1px solid #666;
    padding: 10px 10px;
    font-size: 15px;
    line-height: 1.8;
    vertical-align: top;
    font-weight: 400;
}

  .ybcdoc-table td {
    border: 1px solid #666;
    padding: 10px 10px;
    font-size: 15px;
    line-height: 1.8;
    vertical-align: top;
    font-weight: 400;
  }

  .ybcdoc-table th {
    text-align: center;
  }

  .ybcdoc-table .center {
    text-align: center;
  }

  .ybcdoc-table .right {
    text-align: right;
  }

  .ybcdoc-table .middle {
    vertical-align: middle;
  }

  .ybcdoc-frame {
    border: 1px solid #666;
  }

  .ybcdoc-frame-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-bottom: 1px solid #666;
  }

  .ybcdoc-frame-row:last-child {
    border-bottom: none;
  }

  .ybcdoc-frame-cell-label,
  .ybcdoc-frame-cell-value {
    display: table-cell;
    padding: 11px 12px;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.8;
  }

  .ybcdoc-frame-cell-label {
    width: 230px;
    border-right: 1px solid #666;
  }

  .ybcdoc-flow-wrap {
    border: 1px solid #666;
    padding: 18px 18px 14px;
  }

  .ybcdoc-flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .ybcdoc-flow-item {
    min-height: 84px;
    border: 1px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    line-height: 1.7;
  }

  .ybcdoc-flow-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .ybcdoc-page-no {
    margin-top: 18px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
  }

  .ybcdoc-group-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .ybcdoc-box {
    border: 1px solid #666;
    padding: 14px 16px;
  }

  .ybcdoc-small {
    font-size: 14px;
    line-height: 1.8;
  }









.obc-block {
    width: 100%;
    color: #222;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  }

  .obc-title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
   text-align:center;
  }

  .obc-title-label {
    display: inline-block;
    padding: 2px 8px 3px;
    margin-right: 10px;
    background: #000;
    color: #fff;
    line-height: 1.2;
  }

  .obc-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .obc-table th,
  .obc-table td {
    border: 1px solid #777;
    vertical-align: top;
  }

  .obc-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
  }

  .obc-table td {
    padding: 12px 14px 14px;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 400;
  }

  .obc-subhead {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
  }

  .obc-subhead.space-top {
    margin-top: 18px;
  }

  .obc-item {
    margin: 0 0 12px;
  }

  .obc-item:last-child {
    margin-bottom: 0;
  }

/* ===================================================
   スマホ対応（レスポンシブ）用の追記
   画面幅が768px以下の場合に適用されます
=================================================== */
@media screen and (max-width: 768px) {

  /* 1. ページ全体の固定幅（960px・920px）を解除し、100%にする */
  .ybcdoc-page {
    width: 100%;
    padding: 20px 15px; /* スマホ用に余白を少し狭める */
  }
  .coe-page {
    width: 100%;
  }

  /* 2. 表（テーブル）が画面を押し広げないように横スクロールさせる */
  .ybcdoc-table,
  .obc-table {
    display: block; /* テーブルをブロック要素に変更 */
    width: 100%;
    overflow-x: auto; /* はみ出た部分を横スクロールさせる */
    -webkit-overflow-scrolling: touch; /* スムーズなスクロール */
    white-space: nowrap; /* 表内の文字の意図しない改行を防ぐ（必要に応じて外してください） */
  }

  /* 3. フレームレイアウト（.ybcdoc-frame-row など）を縦積みにする */
  .ybcdoc-frame-row {
    display: block;
    border-bottom: none; /* 元の下線を消す */
  }
  .ybcdoc-frame-cell-label,
  .ybcdoc-frame-cell-value {
    display: block;
    width: 100%; /* 横幅いっぱいにする */
  }
  .ybcdoc-frame-cell-label {
    border-right: none;
    border-bottom: 1px dashed #666; /* 見出しの下に点線を引くなど（任意） */
    padding-bottom: 5px;
  }
  .ybcdoc-frame-cell-value {
    border-bottom: 1px solid #666; /* 値の下に実線を引く */
    margin-bottom: 10px; /* 少し隙間を空ける */
  }

  /* 4. グリッドレイアウト（5列・3列・2列）の解除 */
  .ybcdoc-flow-grid,
  .ybcdoc-flow-grid-3,
  .ybcdoc-group-2col {
    grid-template-columns: 1fr; /* スマホでは1列（縦並び）にする */
  }

  /* 5. フローチャート（.coe-flow）の複雑なグリッドをスマホ用に縦並びに簡略化する */
  .coe-flow {
    display: flex; /* グリッドをやめてFlexbox（縦並び）に変更 */
    flex-direction: column;
    gap: 15px; /* 要素の隙間 */
  }
  
  /* フローチャートの装飾（横線など）が崩れるので非表示や調整を行う */
  .coe-left-box,
  .coe-right-box {
    display: none; /* スマホでは左右の大きな枠は非表示にするのが無難です */
  }
  .coe-step {
    width: 100%;
    height: auto;
  }
  .coe-step::before,
  .arrow-right::after,
  .arrow-left::after {
    display: none; /* スマホレイアウトで不要な横線や矢印を消す */
  }
  
}
  }