/* =========================================================
   Menu List（メニュー一覧）
   2026-09 追加／既存の style.css の後に読み込む
   ========================================================= */

/* ---------- カード一覧 ---------- */
.menulist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* 行の高さをそろえる */
  border-top: 1px solid #a19c94;
  border-left: 1px solid #a19c94;
}

.menulist__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 23px;
  border-right: 1px solid #a19c94;
  border-bottom: 1px solid #a19c94;
}

/* 対象ラベル（どなたでも／ご新規様） */
.menulist__label {
  display: inline-block;
  font-size: 12px;
  line-height: 18px;
  color: #38342e;
  padding: 0 9px;
  border: 1px solid #a19c94;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.menulist__label--new {
  background-color: #ffffff;
}

/* メニュー名 */
.menulist__name {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.08em;
  color: #38342e;
  margin-bottom: 12px;
}

/* メニュー名は区切り（<wbr>）の位置だけで改行し、語の途中で折り返さない */
.menulist__nw {
  white-space: nowrap;
}

/* 説明文 */
.menulist__desc {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.08em;
  color: #38342e;
  margin-bottom: 12px;
  line-break: strict; /* 行頭の「ー」や小さい「ッ」などを避ける */
}

/* ---------- ボタン ---------- */
.menulist__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 194px;
  max-width: 100%;
  height: 30px;
  margin: auto auto 0; /* カードの下端・中央にそろえる */
  font-size: 13px;
  line-height: 1;
  color: #38342e;
  border: 1px solid #a19c94;
  border-radius: 9999px;
  transition: 0.3s ease-out border;
}

.menulist__btn-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  color: #38342e;
  transition: 0.3s ease-out;
}

.menulist__btn:hover {
  border: 1px solid rgba(161, 156, 148, 0.4);
}

.menulist__btn:hover .menulist__btn-icon {
  transform: translate(3px, -3px);
}

/* すべてのメニューを見る */
.menulist__more {
  margin-top: 40px;
}

.menulist__more .menulist__btn {
  justify-content: flex-start;
  padding-left: 15px;
  margin: 0 auto;
}

/* ---------- タブレット：1列 ---------- */
@media (max-width: 1024px) {
  .menulist {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 768px) {
  .menulist__item {
    padding: 24px 22px;
  }

  .menulist__name {
    font-size: 13px;
    line-height: 23px;
    letter-spacing: 0.064em;
  }

  .menulist__more {
    margin-top: 24px;
  }

  /* 上部タブ：4項目を「3＋1」の2段で表示 */
  .menu__sidebar {
    height: auto;
  }

  .menu__nav-list {
    flex-wrap: wrap;
  }

  .menu__nav-item:nth-child(4) {
    width: 100%;
  }

  .menu__nav-item:nth-child(4) a {
    border-top: #a19c94 solid 1px;
  }

  /* タブが2段になった分、各ブロックへ移動した時の余白を広げる */
  .service__block[id] {
    scroll-margin-top: 171px;
  }
}
