/* main用 */
a {
  text-decoration: none;
}

ul,
li {
  list-style: none;
  white-space: normal;
  word-break: break-word;
}

p {
  white-space: normal;
  word-break: break-word;
}

body {
  font-family: "Noto Sans JP", sans-serif;
}

main {
  background-color: white;
  display: flex;
  flex-direction: column;
}

/* PC用表示 */
@media screen and (min-width: 960px) {
  main {
    background-color: white;
    display: flex;
    flex-direction: column;
  }
}

.main-top {
  position: relative;
  margin-top: 70px; /* ヘッダサイズ分下げる */
  width: 100%;
  height: 400px;
  overflow: hidden;
  z-index: 0;
}

/* PC用表示 */
@media screen and (min-width: 960px) {
  .main-top {
    position: relative;
    margin-top: 130px; /*ヘッダ分下げる*/
    width: 100%;
    height: 600px;
    overflow: hidden;
    z-index: 0;
  }
}

.main-top__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (min-width: 960px) {
  .main-top__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.main-top__title-conf {
  padding: 50px 20px;
  position: relative;
  z-index: 1;
}

/* PC用表示 */
@media screen and (min-width: 960px) {
  .main-top__title-conf {
    padding: 30px 50px;
  }
}

.main-top__title {
  color: #3de97f;
  font-size: 80px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 107, 41, 0.5);
}

/* PC用表示 */
@media screen and (min-width: 960px) {
  .main-top__title {
    color: #3de97f;
    font-size: 130px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 107, 41, 0.5);
  }
}

.main-top__title2 {
  color: white;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);

  width: 300px;
}

@media screen and (min-width: 960px) {
  .main-top__title2 {
    color: white;
    font-size: 80px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);

    width: 100%;
  }
}


.main-sub {
  background: white;
  margin: 380px auto;
  border-top-right-radius: 50px 1000px;

  width: 300px;
  height: 500px;
  position: absolute;
  left: 0;
  z-index: 998;
}

@media screen and (min-width: 960px) {
  .main-sub {
    background: white;
    margin: 530px auto;
    border-top-right-radius: 500px 200px;

    width: 1000px;
    height: 300px;
    position: absolute;
    left: 0;
    z-index: 998;
  }
}

.main-sub__title {
  color: black;
  font-size: 18px;
  font-weight: bold;
  margin-left: 10px;
  width: 280px;
  height: 50px;
  display: flex;
  align-items: flex-end;
}

@media screen and (min-width: 960px) {
  .main-sub__title {
    color: black;
    font-size: 36px;
    margin-left: 80px;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: flex-end;
  }
}

.main-sub__text {
  color: black;
  font-size: 18px;
  margin-left: 10px;
  height: 30px;
  display: flex;
  align-items: flex-end;
}

@media screen and (min-width: 960px) {
  .main-sub__text {
    color: black;
    font-size: 24px;
    margin-left: 80px;
    height: 50px;
    display: flex;
    align-items: flex-end;
  }
}

.main-base {
  position: relative;
  overflow: hidden;

  margin-top: 15px;

  /* main-base配下全体を中央揃えするために必要な設定 */
  /* 本設定がある前提で、配下は基本的に、width設定とmargin 0 autoで中央揃えになる */
  display: flex;
  flex-direction: column;
  align-items: center;

  z-index: 999;
}

/* 背景一部スクロール追従は、PC表示でのみ行う */
@media screen and (min-width: 960px) {
  .main-base::before {
    content: "";
    position: absolute;

    top: 15%;
    right: 0;
    width: 20%;
    height: 65%;

    background-image: url("../images/top/bg0-mv.png");
    background-size: 50%;
    background-position: right;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}


.main-base__center {
  background: white;

  position: relative;
  display: inline-block;
  width: min(100%, 350px);
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .main-base__center {
    background: white;

    position: relative;
    display: block;
    width: min(100%, 1000px);
    margin: 0 auto;
  }
}

.main-base__cate {
  color: green;
  font-size: 18px;
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  line-height: normal;
}

.main-base__title {
  color: black;
  font-size: 28px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;       /* 解像度が小さい場合、横並びから自動で縦並びにする */
  align-items: center;
}

.main-base__text {
  color: black;
  font-size: 16px;
  margin-left: 5%;
  width: min(100%, 350px);
  line-height: normal;
}

@media screen and (min-width: 960px) {
  .main-base__text {
    color: black;
    font-size: 16px;
    margin-left: 5%;
    width: min(100%, 800px);
    line-height: normal;
  }
}

.main-base__center img {
  color: black;
  font-size: 28px;
  margin-top: 10px;
  margin-left: 50px;
}

.main-base__gyokan30 {
  height: 30px;
}

.main-base__gyokan60 {
  height: 60px;
}

.main-base__gyokan80 {
  height: 80px;
}



.box3-side {
  display: flex;
  flex-wrap: wrap;       /* 解像度が小さい場合、横並びから自動で縦並びにする */
  align-items: center;
  justify-content: center;
  margin: auto;
  gap: 20px; /* ボックス同士の間隔 */
}

@media screen and (min-width: 960px) {
  .box3-side {
    display: flex;
    flex-wrap: wrap;       /* 解像度が小さい場合、横並びから自動で縦並びにする */
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 100px; /* ボックス同士の間隔 */
  }
}

.box {
  border: 1px none #333;
  padding: 20px;
  width: 280px; /* 幅を揃える */
  background: white;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* 影 */
}

.box-no2 {
  transform: translateY(50px);
}

.box-no3 {
  transform: translateY(100px);
}

.box3-side__title {
  color: black;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.box3-side__text {
  color: black;
  font-size: 16px;
  line-height: normal;
}


.main-base__theme {
  /* backgground-image */
  background-image:  url("../images/top/sp/sp_bar1.png");
  background-size: cover;
  background-position: center;

  padding: 100px 50px;

  margin-top: 100px;
  margin-left: 5%;
  margin-right: 5%;

  position: relative; /* 文字を画像上に重ねるために必要 */
}

@media screen and (min-width: 960px) {
  .main-base__theme {
    /* backgground-image */
    background-image:  url("../images/top/bar1.png");
    background-size: cover;
    background-position: center;

    padding: 150px 1000px;

    margin-top: 5%;
    margin-left: 5%;
    margin-right: 5%;

    position: relative; /* 文字を画像上に重ねるために必要 */
  }
}

.main-base__theme-conf {
  /* text */
  margin-left: 5%;
}

@media screen and (min-width: 960px) {
  .main-base__theme-conf {
    /* text */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(100%, 1000px);
    margin: 0 auto;
  }
}

.main-base__theme-title {
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: normal;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* 背景が見やすくなる */

  width: min(800px, 100%);
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .main-base__theme-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    line-height: normal;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* 背景が見やすくなる */

    width: min(800px, 100%);
    margin: 0 auto;
  }
}

.main-base__theme-text {
  color: white;
  font-size: 16px;
  line-height: normal;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* 背景が見やすくなる */

  width: min(800px, 100%);
  margin: 20px auto;
}

.main-base__kaigiken img {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: min(100%, 350px);
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .main-base__kaigiken img {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: min(100%, 1000px);
  }
}

.main-base__service {
  width: min(100%, 350px);
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .main-base__service {
    width: min(100%, 1000px);
    margin: 0 auto;
  }
}

.main-base__service-no {
  position: relative;
  background: green;
  color: white;
  padding: 10px 30px; /* 大きさ指定(height width) */
  font-size: 20px;
  display: inline-block;
  z-index: 998;
}

.main-base__service-no::before {
  content: "";
  position: absolute;
  right: 0; /* 端の幅 */
  top: 0;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-right: 10px solid white; /* 背景色でカットして見える */
}

.main-base__service-no::after {
  content: "";
  position: absolute;
  right: 0; /* 端の幅 */
  bottom: 0;
  width: 0;
  height: 0;
  border-bottom: 20px solid transparent;
  border-right: 10px solid white; /* 背景色でカットして見える */
}

.main_base__service-box {
  background: white;
  border: 1px solid #333;
  padding: 20px 10px;
  width: min(100%, 320px); /* 幅を揃える */
  margin-left: 5%;
  transform: translateY(-20px);
  display: flex;
  flex-wrap: wrap;       /* 解像度が小さい場合、横並びから自動で縦並びにする */
  gap: 20px; /* テキストと画像の間隔*/
  z-index: 999;
}

@media screen and (min-width: 960px) {
  .main_base__service-box {
    background: white;
    border: 1px solid #333;
    padding: 20px;
    width: min(100%, 800px); /* 幅を揃える */
    margin: 0 auto;
    transform: translateY(-20px);
    display: flex;
    flex-wrap: wrap;       /* 解像度が小さい場合、横並びから自動で縦並びにする */
    gap: 50px; /* テキストと画像の間隔*/
    z-index: 999;
  }
}

.main_base__service-box img {
  width: min(100%, 350px);
  height: 200px;
}

@media screen and (min-width: 960px) {
  .main_base__service-box img {
    width: min(100%, 350px);
    height: 200px;
  }
}

.main_base__service-box-conf {
  flex: 1;
  flex-direction: column; /* 左側を上下分割 */
}

.main-base__service-title {
  color: black;
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  line-height: normal;
}

@media screen and (min-width: 960px) {
  .main-base__service-title {
    color: black;
    font-size: 24px;
    font-weight: unset;
    margin-top: 10px;
    line-height: normal;
  }
}

.main-base__service-text {
  color: black;
  font-size: 16px;
  margin-top: 30px;
  line-height: normal;
}

.main-base__service-btn-base {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  margin-top: 20px;
}

.main-base__service-btn {
  padding: 16px 56px;
  background-color: #008035;
  color: white;

  border-radius: 9999px; /* ピル型 */
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-base__service-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-base__service-btn-arrow {
  font-size: 20px;
  line-height: 1;
}




.main-base__principles-base {
  background-image:  url("../images/top/bg2.png");
  background-size: cover;
  width: 100%;
  height: 1500px;
  margin: auto;
  position: relative; /* 文字を画像上に重ねるために必要 */
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .main-base__principles-base {
    background-image:  url("../images/top/bg2.png");
    background-size: cover;
    width: 100%;
    height: 1200px;
    margin: auto;
    position: relative; /* 文字を画像上に重ねるために必要 */
  }
}

.main-base__principles-center{
  width: min(100%, 350px);
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .main-base__principles-center{
    width: min(100%, 1000px);
    margin: 0 auto;
  }
}

.main-base__principles {
  text-align: center;
  padding: 60px 20px;
}

.main-base__principles-cate {
  color: green;
  font-size: 20px;
  line-height: normal;
  position: absolute; /* 画像の上に重ねる */
}

@media screen and (min-width: 960px) {
  .main-base__principles-cate {
    color: green;
    font-size: 20px;
    line-height: normal;
    position: absolute; /* 画像の上に重ねる */
  }
}

.main-base__principles-title {
  color: black;
  font-size: 20px;
  font-weight: bold;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute; /* 画像の上に重ねる */
}

@media screen and (min-width: 960px) {
  .main-base__principles-title {
    color: black;
    font-size: 28px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; /* 画像の上に重ねる */
  }
}

.principles-list {
  position: absolute; /* 画像の上に重ねる */
  border: 1px none white;
  background-color: white;
  border-radius: 12px 12px 12px 12px;
  padding: 20px 20px;
  width: min(100%, 300px);
  height: 1200px;
  margin-top: 50px;
  margin-left: 5%;
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .principles-list {
    position: absolute; /* 画像の上に重ねる */
    border: 1px none white;
    background-color: white;
    border-radius: 12px 12px 12px 12px;
    padding: 20px;
    width: min(100%, 800px);
    height: 900px;
    margin-top: 50px;
    margin-left: 5%;
  }
}

.principles-list__box {
  line-height: normal;
  gap: 50px; /* 左右の間隔*/
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .principles-list__box {
    line-height: normal;
    display: flex;
    gap: 50px; /* 左右の間隔*/
  }
}

.principles-list__box-conf {
  flex: 1;
  flex-direction: column; /* 右側を上下分割 */
  align-items: flex-start;
}

.principles-list__no {
  color: green;
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  margin-left: 10%;
}

@media screen and (min-width: 960px) {
  .principles-list__no {
    color: green;
    font-size: 48px;
    font-weight: bold;
    margin-left: 10%;
  }
}

.principles-list__title {
  color: black;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  height: 40px;
}

@media screen and (min-width: 960px) {
  .principles-list__title {
    color: black;
    font-size: 28px;
    font-weight: unset;
    text-align: unset;
    margin-top: 15px;
    height: 80px;
  }
}

.principles-list__text {
  color: black;
  font-size: 16px;
}

.principles-list__separate {
  border-bottom: 1px solid #ddd;
  margin-top: 20px;
  margin-bottom: 20px;
}


.main-base__customer-base {
  background-image:  url("../images/top/sp/sp_customer.png");
  background-size: cover;
  width: 100%;
  height: 280px;
  margin: auto;
  position: relative; /* 文字を画像上に重ねるために必要 */
}

@media screen and (min-width: 960px) {
  .main-base__customer-base {
    background-image:  url("../images/top/customer.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    margin: auto;
    position: relative; /* 文字を画像上に重ねるために必要 */
  }
}

.main-base__customer {
  text-align: center;
  padding: 20px 150px;
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  .main-base__customer {
    text-align: center;
    padding: 20px 600px;
    margin: 0 auto;
  }
}

.main-base__customer-cate {
  color: black;
  font-size: 20px;
  line-height: normal;
  position: absolute; /* 画像の上に重ねる */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.main-base__customer-title {
  color: black;
  font-size: 28px;
  font-weight: bold;
  height: 100px;
  display: flex;
  align-items: center;
  position: absolute; /* 画像の上に重ねる */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.main-base__customer-list {
  padding: 30px 20px;
  width: min(100%, 330px);
  display: grid;
  column-gap: 40px;
  row-gap: 24px;
  margin: auto;
}

/* widthが960以上の場合、横に表示 */
@media screen and (min-width: 960px) {
  .main-base__customer-list {
    padding: 80px 20px;
    width: min(100%, 800px);
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2カラム */
    column-gap: 40px;
    row-gap: 24px;
    margin: 0 auto;
  }
}

.customer-name {
  font-size: 14px;
  line-height: normal;
  padding-bottom: 8px;
  border-bottom: 1px dotted #999; /* 点線 */
}

@media screen and (min-width: 960px) {
  .customer-name {
    font-size: 16px;
    line-height: normal;
    padding-bottom: 8px;
    border-bottom: 1px dotted #999; /* 点線 */
  }
}


.main-base__contact-base {
  background-image:  url("../images/top/contact.png");
  background-size: 100% 100%;
  width: 100%;
  height: 425px;
  margin: auto;
}

.main-base__contact {
  padding: 50px 20px;
}

.main-base__contact-cate {
  color: white;
  font-size: 42px;
  font-weight: bold;
  margin-left: 20%;
  line-height: normal;
}

.main-base__contact-text {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin-top: 50px;
  margin-left: 5%;
  width: 300px;
  line-height: normal;
  display: flex;
  align-items: center;
  text-align: center;
}

@media screen and (min-width: 960px) {
  .main-base__contact-text {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-top: 50px;
    margin-left: 15%;
    width: 430px;
    line-height: normal;
    display: flex;
    align-items: center;
    text-align: center;
  }
}

.main-base__contact-btn-base {
  margin-top: 0px;
  margin-left: 5%;
}

@media screen and (min-width: 960px) {
  .main-base__contact-btn-base {
    margin-top: 0px;
    margin-left: 18%;
  }
}

.main-base__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 24px 64px;
  background-color: #ffffff;
  color: #000000;

  border-radius: 9999px; /* ピル型 */
  text-decoration: none;
  font-size: 28px;
  font-weight: 500;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-base__contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-base__btn-arrow {
  font-size: 20px;
  line-height: 1;
}



/* topに戻るボタン用 */
.Btn-backToTop {
  position: fixed;
  right: 15px;
  bottom: 15px;

  width: 50px;
  height: 50px;
  border: none;
  border-radius: 8px;

  background: #00b370;
  color: #fff;
  font-size: 22px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 見えない状態にする */
  opacity: 0;
  pointer-events: none;

  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;

  z-index: 1000;
}

@media screen and (min-width: 960px) {
  .Btn-backToTop {
    position: fixed;
    right: 15px;
    bottom: 15px;

    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;

    background: #00b370;
    color: #fff;
    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    /* 見えない状態にする */
    opacity: 0;
    pointer-events: none;

    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;

    z-index: 1000;
  }
}

/* 表示状態 */
.Btn-backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

.Btn-backToTop:hover {
  opacity: 0.9;
}


