/* 基本設定 */
:root {
  /* フォント */
  --main-font: "M PLUS 1", sans-serif;
  --sub-font: "Roboto Condensed", sans-serif;
  --point-font: "Noto Sans JP", sans-serif;
  /* 色  */
  --main-color: #4d4d4d;
  --sub-color: #e6e6e6;
  --point-color: #d9d9d9;
  /* 影  */
  --main-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
  --point-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
}

body {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--main-color);
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 共通 */

.l-main {
  overflow: hidden;
}

.l-page {
  padding-top: 20px;
}

[class*="section_content"] {
  margin-bottom: 80px;
  overflow: visible;
}

.cont_space {
  width: calc(100% - 20px);
  margin-inline: auto;
}

.ttl_wrap {
  margin-bottom: 24px;
}

.cont_ttl {
  font-size: 32px;
  font-weight: bold;
  color: var(--main-color);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  font-family: var(--sub-font);
}

.cont_ttl span {
  font-size: 16px;
  font-weight: 400;
  color: var(--main-color);
}

/* ボタン */

.btn_list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ui-btn {
  width: 256px;
  height: 48px;
  background-color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  padding-left: 24px;
  margin: 0 auto;
}

/* PCサイズ*/
@media (min-width: 768px) {

  [class*="section_content"]:not(:last-child) {
    margin-bottom: 80px;
  }

  .cont_space {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
  }

  .btn_list {
    flex-direction: row;
  }

  .btn_item {
    flex: 1 1 256px;
    /* ← 幅256pxを基準に可変 */
    max-width: 256px;
  }

  .ui-btn {
    color: var(--main-color);
    background: none;
    width: 256px;
    height: 48px;
    margin: 0;
    padding-left: 0;
    position: relative;
    background: transparent;
    z-index: 2;
    overflow: hidden;
    isolation: isolate;
    /* 疑似要素の下地レイヤ分離 */
    transition: color .35s ease;
  }

  .ui-btn::before {
    content: "";
    width: 4px;
    height: 32px;
    background: var(--main-color);
    display: block;
    margin-right: 8px;
    transition: opacity .25s ease, transform .35s ease;
  }

  /* 伸びる背景（初期は幅0、左から右へ伸びる） */
  .ui-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--main-color);
    transform-origin: top center;
    /* ← 上を支点に下へ */
    transform: scaleY(0);
    transition: transform .45s cubic-bezier(.77, 0, .175, 1);
    z-index: -1;
  }

  .ui-btn:hover {
    color: #fff;
  }

  .ui-btn:hover::after,
  .ui-btn.is-active::after {
    transform: scaleY(1);
  }

  .ui-btn:hover::before,
  .ui-btn.is-active::before {
    opacity: 0;
    transform: translateY(6px);
  }

}