@charset "utf-8";

/*========== 事業内容 ==========*/

.jigyo_sp { display:block; width:100%; }
.jigyo_sp_top { max-width: 600px; margin: 0 auto; }
.jigyo_sp img { width:100%; }
.jigyo_sp { width:100%; display:block; margin-bottom:50px; }
.jigyo_box_link { display:none; }

.detail { padding:16px; border-bottom:1px solid #529535; display:flex; flex-wrap:wrap; margin-bottom:40px; }
.detail h2 { margin:0 0 8px; font-size:24px; color:#529535; margin-bottom:30px; }
.detail div { width:100%; }
.detail div p { text-align:justify; display: initial;}
.detail img { width:50%; max-width: 330px; margin-left:50%; margin-top:0; }
.detail:last-child { border-bottom:0; }
.close { display:none; }

@media (min-width:768px) and (max-width:1024px) {
  .detail div p { display: flex; gap: 40px; }
  .detail img { width: 220px; margin-left: 0; flex-shrink: 0; }
}

@media (min-width:1025px) {
   .none_pc { display: none !important; }

  .detail div { width:70%; }
  .detail img { width:25%; max-width: none; margin-left:auto; margin-top:0; object-fit: contain; }
  .detail { margin-bottom:0; }
  .jigyo_sp { display:none; }

  .jigyo_box { width:80vw; max-width:849px; aspect-ratio:1698/1418; height:auto; margin:0 auto 100px; position:relative; background:url(/img/company/business/jigyo.png) center/100% 100% no-repeat; }

  .jigyo_box_link { position:absolute; inset:0; margin:0; padding:0; list-style:none; color:#fff; font-weight:bold; line-height:1.7em; display:block; }

  .jigyo_box_link li { position:absolute; display:flex; align-items:center; }
  .jigyo_box_link li a { font-size:20px; letter-spacing:0.08em; line-height:1.7em; display:flex; align-items:center; text-align:center; }
  .jigyo_box_link .symbol { width:30px; padding:6px; margin-left:10px; }

  .jigyo_box_link li:nth-child(1) { top:9%; left:25%; }
  .jigyo_box_link li:nth-child(2) { top:9%; left:67%; }
  .jigyo_box_link li:nth-child(3) { top:45%; left:10%; }
  .jigyo_box_link li:nth-child(4) { top:45%; left:81%; }
  .jigyo_box_link li:nth-child(5) { top:80%; left:25%; }
  .jigyo_box_link li:nth-child(6) { top:80%; left:67%; }

  /* モーダルはPCでのみ有効化 */
  .modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  .modal-content {
    background: #fff;
    padding: 2em;
    max-width: 1080px;
    width: 80%;
    text-align: left;
    position: relative;
  }

  .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;         /* ← これを flex にする */
    align-items: center;   /* ← 縦中央揃え */
    gap: 4px;              /* 「×」と「閉じる」の間隔 */
}

button.close::before {
    content: "閉じる";
    font-size: 14px;
}

}





