@media screen and (max-width: 768px) {
  /* ヘッダー */
  header .header-box-inner {
    height: 60px;
  }
  .header-box-inner .logo {
    width: 80px;
    z-index: 101;
  }
  .menu-open .logo {
    position: fixed;
    left: 0;
  }

  /* ハンバーガーメニュー */
  .nav-button {
    width: 70px;
    height: 50px;
    margin-left: auto;
    position: relative;
    cursor: pointer;
    z-index: 101;
  }
  .menu-open .nav-button {
    position: fixed;
    right: 0;
  }
  .nav-button span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #3a3a3a;
    position: absolute;
    left: 20px;
    transition: 0.5s;
  }
  .nav-button span:nth-child(1) {
    top: 12px;
  }
  .nav-button span:nth-child(2) {
    top: 23px;
  }
  .nav-button span:nth-child(3) {
    top: 34px;
  }

  /* メニュー開いたときのアニメーション */
  .menu-open .nav-button span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
  }
  .menu-open .nav-button span:nth-child(2) {
    width: 0;
    left: 50%;
  }
  .menu-open .nav-button span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
  }

  /* ナビゲーション表示切り替え */
  .menu-open {
    overflow: hidden;
  }
  .film-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: right 0.4s ease;
    z-index: 100;
  }
  .menu-open .film-nav {
    right: 0;
  }
  .primary-menu {
    flex-direction: column;
  }
  .film-nav ul {
    padding: 60px 20px;
    margin-top: 45px;
  }
  .primary-menu > li > a,
  .submenu-toggle {
    flex-direction: initial;
  }
  .primary-menu .en {
    margin-left: 7px;
  }
  ul.submenu {
    width: 100%;
    margin-top: 0;
    padding: 15px;
  }
  .film-nav li {
    margin-bottom: 20px;
    border-bottom: 1px solid #5a5a5a;
    width: 100%;
  }
  .submenu li {
    border-bottom: 1px solid #fafafa;
  }
  .menu-open a:hover {
    color: #fafafa;
  }

  header span {
    z-index: 100;
  }

  /* お問い合わせbtn */
  .pc-contact img {
    display: none;
  }
  .btn_contact {
    height: 60px;
    width: 125px;
    z-index: 100;
  }
  .menu-open header .btn_contact {
    position: fixed;
    /* top: 70%; */
    bottom: 0;
    width: 100%;
  }

  .koto-logo {
    width: 100%;
  }

  /* フィルムコマ */
  .film-frame {
    width: 145px;
    height: auto;
    aspect-ratio: 23 / 16;
  }
  .film-container {
    border-top: 6px dotted #fafafa;
    border-bottom: 6px dotted #fafafa;
    padding: 10px 0;
  }

  h1 {
    margin: 5px;
  }
  h2 {
    margin-bottom: 15px;
  }

  .top-linkbnr img {
    width: 100%;
  }

  /* フッター */
  footer .footer-boxarea {
    flex-wrap: wrap;
    padding: 7px 0;
  }
  footer .btn_contact {
    height: 45px;
  }
  footer .footer-nav {
    flex-wrap: wrap;
  }
  footer span {
    display: none;
  }
  footer .logo {
    /* 7/1コンテンツ増えたらこっちにする */
    top: -13%;
    /* top: -25%; */
  }

  /* お知らせ */
  .report-info {
    padding: 7px;
  }
  .report-list {
    gap: 7px;
    margin-bottom: 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .bnr img {
    margin: 30px auto;
  }

  /* ここから下層 */
  .layout {
    display: block;
  }
  .sidebar,
  .f_special .sidebar {
    width: 100%;
  }
  .sidebar .page-list {
    margin-top: 30px;
  }
  #crew section {
    margin-bottom: 30px;
  }
  .tab-1 > label,
  .tab-2 > label {
    text-orientation: upright;
    writing-mode: vertical-lr;
    text-align: justify;
  }
  .btn a {
    width: 80%;
  }

  /* 申請手続き */
  #Procedure .data-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  #Procedure .data-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ロケ実績 */
  #achievements table,
  #achievements table thead,
  #achievements table tbody,
  #achievements table th,
  #achievements table td,
  #achievements table tr {
    display: block;
    width: 100%;
    border: none;
  }

  #achievements table thead {
    display: none;
  }

  #achievements table tr {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
  }

  #achievements table td {
    position: relative;
    padding-left: 150px;
    border: none;
    border-bottom: 1px solid #eee;
  }

  #achievements table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 142px;
    font-weight: bold;
    color: #333;
  }

  /* 目次アコーディオン */
  .f_special .toc-title {
    cursor: pointer;
    position: relative;
  }
  .f_special .toc-title .toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s ease;
    display: none; /* デフォルトで非表示 */
  }
  .f_special #special-index {
    margin-top: 0;
    border: 1px solid #ddd;
    border-top: none;
    background-color: white;
    border-radius: 0 0 4px 4px;
  }
  .f_special #special-index li {
    border-bottom: 1px solid #eee;
    padding: 0;
  }
  .f_special #special-index li:last-child {
    border-bottom: none;
  }
  .f_special #special-index a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #3a3a3a;
  }
  
  /*****************
特集一覧ページ
******************/
  #f_special-detail-page .card {
    width: 94%;
    height: auto;
    margin-bottom: 1.25em;
    max-width: 500px;
  }

  #f_special-detail-page .card a {
    flex-direction: column;
    min-height: auto;
  }

  #f_special-detail-page .card figure {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
  }

  #f_special-detail-page .card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }

  #f_special-detail-page .card .card-section {
    padding: 1rem 1.25rem;
  }

  #f_special-detail-page .card .card-section::after {
    display: none;
  }

  #f_special-detail-page .card .card-section h3 {
    font-size: 1.1em;
    line-height: 1.4;
  }

  #f_special-detail-page .card .card-section p {
    font-size: 0.9em;
    line-height: 1.7;
  }
}

@media screen and (max-width: 600px) {
  .facility-table {
    min-width: 100%;
  }

  /* ロケ地検索 */
  #location .box img {
    width: 172px;
  }
  #location .box p {
    width: 172px;
  }
  #location .box_area .box_area_grid,
  .cont-inner .cont-List {
    justify-content: center;
  }
  .card {
    width: 172px;
  }
}
@media screen and (max-width: 480px) {
  .report-list {
    gap: 7px;
    margin-bottom: 20px;
    display: block;
  }

  .report-list li {
    margin-bottom: 20px;
  }
}
