/* -------------------------------------- */
/* 2025年8月28日追記_モバイルのドロワーメニュー */
/* -------------------------------------- */

@media screen and (min-width: 569px) {
  .p-mobile-drawer-btn,
  .p-mobile-drawer {
    display: none;
  }
}

@media screen and (max-width: 568px) {
  /* // スクロールロック（任意） */
  html.is-lock,
  body.is-lock {
    overflow: hidden;
    touch-action: none;
  }

  /* ドロワーナビを開いた場合に画面の1番手前に設定 */
  .container.is-drawer-on {
    position: relative;
    z-index: 10000;
  }

  .header {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    height: 55px;
  }

  .header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    background: #fff;
  }

  /* 既存のナビの固定を中止 */
  .navi.fixed {
    position: relative;
  }

  #navi .navi-in > .menu-mobile li {
    width: calc(100% / 4);
  }

  .logo-text {
    text-align: left;
    padding-left: 14px;
  }

  .header-in {
    z-index: 2000;
    position: relative;
  }

  .p-mobile-drawer-btn {
    display: block;
    border: unset;
    background: unset;
    padding: unset;
    transition: opacity 300ms;
    cursor: pointer;
    width: 32px;
    height: 42px;
    position: absolute;
    top: 5px;
    right: 14px;
    z-index: 2100;
  }

  .p-mobile-drawer-btn:hover {
    opacity: 0.7;
  }

  .p-mobile-drawer-btn__icon {
    display: block;
    background: url(./images/mobile-drawer-menu/icon_home.svg) no-repeat 50% 50% /
      contain;
    width: 30px;
    height: 26px;
    margin-inline: auto;
  }

  .p-mobile-drawer-btn[data-menu="open"] .p-mobile-drawer-btn__icon {
    background: url(./images/mobile-drawer-menu/icon_close.svg) no-repeat 50%
      50% / 20px 20px;
  }

  .p-mobile-drawer-btn__label {
    display: block;
    position: relative;
    width: 32px;
    height: 14px;
    margin-top: 2px;
  }

  .p-mobile-drawer-btn__label::before {
    display: block;
    content: "MENU";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    color: #c50012;
    text-align: center;
    font-family: "Hiragino Kaku Gothic Pro", "游ゴシック体", "Yu Gothic",
      "Meiryo", sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.5px;
  }

  .p-mobile-drawer-btn[data-menu="open"] .p-mobile-drawer-btn__label::before {
    content: "CLOSE";
  }

  .p-mobile-drawer {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(143, 0, 13, 0.9);
    z-index: 1000;
    translate: 100% 0;
    transition: translate 300ms;
    overflow: scroll;
  }

  .p-mobile-drawer[data-menu="open"] {
    translate: 0%;
  }

  .p-mobile-drawer__inner {
    padding-inline: 15px;
    padding-block: 30px;
  }

  /* 親：2カラム＆ギャップをCSS変数で一元管理 */
  .p-mobile-drawer-nav__flex {
    --col-gap: 9px; /* カラム間隔 */
    display: flex;
    justify-content: center;
    gap: var(--col-gap);
  }

  /* 2カラム */
  .p-mobile-drawer-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    width: calc((100% - var(--col-gap)) / 2);
    display: flex;
    flex-direction: column;
    gap: 15px; /* 行間 */
  }

  .p-mobile-drawer-nav__item {
  }

  /* リンクの基本 */
  .p-mobile-drawer-nav__link {
    display: block;
    text-decoration: none;
    width: 100%;
    transition: opacity 300ms;
    position: relative;
    padding-bottom: 2px; /* 罫線ぶんの余白 */
		height: 30px;
  }
  .p-mobile-drawer-nav__link:hover {
    opacity: 0.7;
  }

  .p-mobile-drawer-nav__flex
    > .p-mobile-drawer-nav__list
    .p-mobile-drawer-nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transform: translateZ(0); /* iOSアンチエイリアス安定化 */
  }

  /* 既存の「各リンクごとに引く線」は無効化（ズレの原因） */
  .p-mobile-drawer-nav__link::after {
    content: none;
  }

  /* 文字まわり（元のまま） */
  .p-mobile-drawer-nav__label {
    color: #fff;
    font-family: "Hiragino Kaku Gothic Pro";
    font-size: clamp(10px, 3.5vw, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.42px;
		position: static;
  }

  /* サブリンク */
  .p-mobile-drawer-nav__link2-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 11px;
  }
  .p-mobile-drawer-nav__link2-wrap--1 {
		height: 79px;
  }
  .p-mobile-drawer-nav__link2-wrap--2 {
    height: 34px;
  }

  .p-mobile-drawer-nav__link2 {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: opacity 300ms;
  }
  .p-mobile-drawer-nav__link2:hover {
    opacity: 0.7;
  }

  .p-mobile-drawer-nav__link2::before {
    content: "–";
    display: block;
    color: #fff;
    font-family: "Hiragino Kaku Gothic Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.7px;
  }

  .p-mobile-drawer-nav__label2 {
    color: #fff;
    font-family: "Hiragino Kaku Gothic Pro";
    font-size: clamp(10px, 3.2vw, 13px);
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.65px;
  }

  .p-mobile-drawer-cta {
    margin-top: 30px;
  }

  .p-mobile-drawer-cta__flex {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .p-mobile-drawer-cta__btn {
    display: grid;
    place-content: center;
    text-decoration: unset;
    width: 50%;
    height: 47px;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    transition: opacity 300ms;
    position: relative;
  }

  .p-mobile-drawer-cta__btn::before {
    content: "";
    display: block;
    width: 5px;
    height: 100%;
    flex-shrink: 0;
    background: #c42919;
    position: absolute;
    left: 0;
    top: 0;
  }

  .p-mobile-drawer-cta__btn:hover {
    opacity: 0.7;
  }

  .p-mobile-drawer-cta__label {
    color: #c42919;
    font-family: "Hiragino Kaku Gothic Pro";
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.75px;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .p-mobile-drawer-cta__label--home {
    gap: 5px;
  }

  .p-mobile-drawer-cta__label::before {
    content: "";
    display: block;
    background: url(./images/mobile-drawer-menu/icon_document.svg) no-repeat 50%
      50% / contain;
    width: 14px;
    height: 17px;
  }

  .p-mobile-drawer-cta__label--home::before {
    content: "";
    display: block;
    background: url(./images/mobile-drawer-menu/icon_home2.svg) no-repeat 50%
      50% / contain;
    width: 18px;
    height: 17px;
  }
}
