@import url('./header.css');
@import url('./footer.css');
@import url('./sidebar.css');
@import url('./reset.css');
@import url('./components.css');

:root {
  /* fonts */
  --font-zen-kaku-new-type: "Zen Kaku Gothic New", sans-serif;
  --font-noto-sans-jp: "Noto Sans JP", sans-serif;
  --font-rubik: "Rubik", sans-serif;
  
  /* color */
  --white: #fff;
  --black: #000;
  --blue: #0860A8;
  --darkBlue: #0054A7;
  --navy: #025496;
  --hardNavy: #003F72;
  --red: #FF3C1E;
  --orange: #FD8832;
  --light-orange: #FFEFE8;
  --hardOrange: #C53A00;
  --yellow: #FAFF00;
  --hardYellow: #D69B06;
  --base-color: #FF6525;
  --text-color: #2E2825;
  --light-text-color: #706764;
  --secondary-color: #BDB5A6;
  --global-bg-color: #F0EEE9;
  --page-title-bg-color: #5E5A54;
  --lightGray: #B7AEAE;
  --border-color: #D3CBB8;
}

.sp {
  display: none!important;
}

.global {
  margin: 0 auto;
  background-color: var(--global-bg-color);
  padding: 40px 0;
}

.wrapper {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  background-color: var(--global-bg-color);
}

.main {
  max-width: 1200px;
}

.page-sidebar .sidebar {
  position: fixed;
  z-index: 100;
  height: calc(100% - 32px);
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-sidebar .sidebar::-webkit-scrollbar {
  display: none;
}

.page-sidebar {
  width: 184px;
  margin-right: 16px;
  position: relative;
}

/* pagenation */
.pagination ul.page-numbers {
  margin-top: 72px;
}

.pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.pagination .page-numbers.current {
  background-color: var(--blue);
  color: var(--white);
}

.pagination .page-numbers li {
  display: flex;
  align-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  font-size: 16px;
  color: var(--blue);
  font-family: var(--font-rubik);
  font-style: normal;
  font-weight: 400;
  line-height: 100%; 
}

.pagination .page-numbers li:last-child {
  margin-right: 0;
}

.page-reason, .page-service {
  margin-top: 64px;
}

.page-reason__title, .page-service__title {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  position: relative;
  padding-left: 24px;
  margin-bottom: 64px;
}

.page-reason__title::before, .page-service__title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: var(--base-color);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.page-reason__info, .page-service__info {
  max-width: 1200px;
  border-radius: 15px;
  padding: 48px;
  margin-bottom: 96px;
  background-color: var(--white);
}

.page-service__info {
  padding-bottom: 80px;
}

.page-reason__top, .page-service__top {
  display: flex;
  position: relative;
}

.page-reason__top_left {
  max-width: 664px;
  width: 60%;
}

.page-reason__top_left-title,
.page-service__top_left-title {
  color: var(--base-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%; /* 51.2px */
  letter-spacing: 0.64px;
  margin-bottom: 32px;
}

.page-reason__top_left-content,
.page-service__top_left-content {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 180%;
}

.page-reason__top_left-content.first {
  margin-bottom: 24px;
}

.page-reason__top_right,
.page-service__top_right {
  position: absolute;
  right: 0;
}

.page-reason__top_right {
  max-width: 400px;
  width: 37%;
  height: 530px;
  top: -180px;
}

.page-reason__top_right img,
.page-service__top_right img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.page-reason__bottom,
.page-service__bottom {
  margin-top: 72px;
}

.page-reason__bottom_title,
.page-service__bottom_title {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%; /* 39.2px */
  letter-spacing: 0.56px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.page-reason__bottom_title::before,
.page-service__bottom_title::before {
  content: "";
  position: absolute;
  bottom: -2px;
  border-bottom: 2px solid var(--base-color);
  width: 4%;
}

/* その他の選ばれる理由 */
.page-reason__other,
.page-service__other {
  margin-bottom: 120px;
  padding: 0 48px;
}

.page-reason__other_title,
.page-service__other_title {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 48px;
}

.page-reason__other_list,
.page-service__other_list {
  display: flex;
  justify-content: space-between;
}

.page-reason__other_item {
  max-width: 532px;
  width: 49%;
}

.page-service__other_item {
  max-width: 258px;
  width: 24%;
}

.page-reason__other_item a {
  display: flex;
  align-items: center;
}

.page-reason__other_item img {
  width: 180px;
  height: 180px;
}

.page-service__other_item img {
  width: 100%;
  height: 258px;
  object-fit: cover;
  border-radius: 10px;
}

.page-reason__other_item-right {
  width: 328px;
  margin-left: 24px;
}

.page-reason__other_item-right--title,
.page-service__other_item-title {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%;
  margin-bottom: 16px;
}

.page-reason__other_item-right--content {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
}

.page-service__top {
  min-height: 191px;
  margin-bottom: 102px;
}

.page-service__top_left {
  max-width: 580px;
  width: 50%;
  margin-right: 40px;
}

.page-service__top_right {
  max-width: 580px;
  height: 387px;
  width: 50%;
  top: -130px;
}

.page-service__other_item-top {
  display: flex;
  flex-direction: column;
}

.page-service__other_item-top img {
  margin-bottom: 20px;
}

.page-service__other_item-right--content {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
}

@media screen and (min-width: 1441px) {
  .wrapper {
    max-width: 100%;
    width: 100%;
  }
}

@media screen and (max-width: 1439px) {
  .page-sidebar {
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 1439px) {
  .global {
    padding-right: 0;
    padding: 40px 20px;
  }
}

@media screen and (max-width: 767px) {
  .sp{
    display: block!important;
  }
  .pc {
    display: none!important;
  }

  .global {
    padding: 12px 0;
  }

  .wrapper {
    padding: 0 12px;
    margin-top: 83px;
  }

  /* pagenation */
  .pagination ul.page-numbers {
    margin-top: 48px;
  }

  /* page */
  .page-reason__bottom_title::before {
    width: 23px;
  }

  .page-service__bottom_title {
    font-size: 24px;
  }

  .page-reason__other,
  .page-service__other {
    padding: 0 12px;
  }

  .page-reason__other_title,
  .page-service__other_title {
    font-size: 24px;
  }

  .page-reason {
    margin-top: 48px;
  }
  .page-reason__title,
  .page-service__title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .page-reason__info,
  .page-service__info {
    max-width: 100%;
    padding: 32px 20px;
    margin: 0 auto;
    margin-bottom: 64px;
  }

  .page-reason__top_right,
  .page-service__top_right {
    max-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
    margin-bottom: 8px;
  }

  .page-reason__top,
  .page-service__top {
    display: block;
  }

  .page-service__top {
    margin-bottom: 24px;
  }

  .page-reason__top_left,
  .page-service__top_left  {
    max-width: 100%;
    width: 100%;
  }
  
  .page-reason__top_left-title,
  .page-service__top_left-title {
    font-size: 28px;
  }

  .page-service__top_left-title {
    margin-bottom: 20px;
  }

  .page-reason__top_left-content,
  .page-service__top_left-content {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .page-service__top_left-content {
    margin-bottom: 32px;
  }
  
  .page-reason__bottom,
  .page-service__bottom {
    margin-top: 64px;
  }

  .page-reason__other_list,
  .page-service__other_list {
    display: block;
  }

  .page-reason__other_item {
    max-width: 351px;
    width: 100%;
    margin-bottom: 32px;
  }

  .page-reason__other_item a {
    display: block;
  }

  .page-reason__other_item img {
    width: 96px;
    height: 96px;
  }
  
  .page-reason__other_item-right {
    width: 100%;
    margin-left: 0;
    display: flex;
    align-items: center;
  }

  .page-reason__other_item-right--title {
    margin-left: 20px;
    margin-bottom: 12px;
  }

  .page-reason__other_item-right--content {
    margin-top: 12px;
  }

  /* service other */
  .page-service__other_item {
    width: 100%;
    max-width: 100%;
    margin-bottom: 32px;
  }
  .page-service__other_item-top {
    flex-direction: row;
    align-items: center;
    margin-bottom: 12px;
  }

  .page-service__other_item img {
    width: 96px;
    height: 96px;
    margin-bottom: 0;
  }

  .page-service__other_item-title {
    margin-bottom: 0;
    margin-left: 20px;
  }

  .page-service__other_item-right--content {
    font-size: 14px;
  }
}