/* responsive.css - メディアクエリ（スマホ/タブレット対応） */

/* ヘッダー Information 表示切り替え（JS依存をなくしてチラつき防止） */
.header_menu .label-sp {
  display: none;
}

@media screen and (max-width: 768px) {
  .header_menu .label-pc {
    display: none;
  }
  .header_menu .label-sp {
    display: inline;
  }
}

/* PC表示（768px以上）は従来通り横並び */
@media screen and (min-width: 769px) {
  .l-main {
    display: flex;
    flex-direction: row;
  }

  .l-main > .l-side {
    order: 1;
  }

  .l-main > .l-contents {
    order: 2;
  }
}

/* スマホ表示（768px以下）は縦並び */
@media screen and (max-width: 768px) {
  .side-modal-ready .l-title .inner_title {
    position: relative;
    padding-right: 50px;
    width: 100%;
  }

  .sp-side-toggle {
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
  }

  .sp-side-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px auto;
    background: #fff;
    transition: 0.25s;
  }

  .sp-side-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .sp-side-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .sp-side-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .sp-side-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .sp-side-overlay.is-open {
    display: block;
  }

  .side-modal-ready .l-side,
  .side-modal-ready #side {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    background-color: #539664;
    transition: left 0.3s ease;
    margin: 0;
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  }

  .side-modal-ready .l-side.is-open,
  .side-modal-ready #side.is-open {
    left: 0;
  }

  body.is-side-open {
    overflow: hidden;
  }

  .l-header {
    width: 100%;
  }

  .l-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 260px);
    padding: 10px;
  }

  .l-main {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  .l-side {
    width: 100%;
    margin-right: 0;
    margin-top: 20px;
    order: 2;
  }

  .side_list {
    border-left: none;
    border-top: 10px solid;
  }

  .l-contents {
    width: 100%;
    margin: 0;
    order: 1;
  }

  .l-footer {
    width: auto;
  }

  .footer_menu {
    gap: 20px;
  }

  .footer_menu li a {
    width: 80px;
  }

  .c-breadcrumb {
    display: none;
  }

  /*　旧パーツ：削除対象 */
  .contents {
    clear: both;
    width: 100%;
    height: auto;
    padding: 0 0 10px;
  }

  .side_menu {
    border-left: none;
    border-top: 10px solid;
  }
}
