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

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

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

  .l-contents {
    width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .l-side {
    width: 300px;
  }
}

/* PC表示（950px〜1199px）：2カラム可変 */
@media screen and (min-width: 950px) and (max-width: 1199px) {
  .l-main {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .l-contents {
    flex: 1 1 auto;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .l-side {
    flex: 0 0 clamp(240px, 30vw, 300px);
  }
}

/* SP表示（〜639px）：縦並び */
@media screen and (max-width: 639px) {
  .header_menu .label-pc {
    display: none;
  }

  .header_menu .label-sp {
    display: inline;
  }

  .c-breadcrumb {
    display: none;
  }

  .l-title .inner_title {
    position: relative;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
  }

  .sp-side-toggle {
    display: block;
  }

  .side-modal-ready .l-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 {
    left: 0;
  }

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

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

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

  .l-contents {
    box-sizing: border-box;
    width: 100%;
    padding: 0 10px;
  }

  .footer_menu {
    gap: 20px;
  }

  .footer_menu li a {
    width: 80px;
  }
}

/* 640px〜949px：PC表示（横並び）だが l-side はモーダル */ /*640px:photoのgridが3つ以上になるため */
@media screen and (min-width: 640px) and (max-width: 949px) {
  .c-breadcrumb {
    display: none;
  }

  .l-title .inner_title {
    position: relative;
    padding-right: 50px; /* トグルの逃げ */
    width: 100%;
  }

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

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

  /* サイドはモーダルで隠す前提なので、本文は全幅 */
  .l-contents {
    box-sizing: border-box;
    width: 100%;
    padding: 0 10px;
  }

  /* モーダル制御自体は .side-modal-ready が付いた時のみ適用 */
  .side-modal-ready .l-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 {
    left: 0;
  }

  .sp-side-toggle {
    display: block;
  }

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