html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper {
  overflow-x: hidden;
}

.contact-form-text {
  text-align: center;
}

.contact-form-text .time {
  background: -webkit-linear-gradient(0deg, #19b1e8, #196db5);
          background-clip: text;
  font-size: 18px;
  font-weight: normal;
  display: inline-block;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.formTable th {
  white-space: nowrap;
}

.consultation-img-box {
  margin-bottom: 100px;
}

@media screen and (min-width:769px) {
  .header {
    width: 100%;
  }

  .header .logo {
    width: 350px;
    height: 100px;
  }

  .header .tel1 {
    float: right;
    width: 500px;
    height: 80px;
    margin: 10px;
  }

  .top-img {
    width: 100%;
  }

  .header-topic {
    margin: 0 12%;
  }

  .our-mission {
    display: flex;
  }

  .our-mission h1 {
    color: #c7e3ed;
    font-family: "Quando", serif;
    font-size: 80px;
    letter-spacing: -6px;
  }

  .our-mission span {
    font-family: "Quando", serif;
    font-size: 16px;
    letter-spacing: 0;
  }

  .our-mission p {
    color: #212121;
    font-family: "Noto Sans JP", sans-serif;
    letter-spacing: 2px;
    float: right;
    margin-top: 100px;
    margin-top: 88px;
    margin-left: 90px;
  }

  .five-content {
    display: flex;
    padding: 0;
  }

  .content {
    width: 20%;
    height: 100px;
  }

  .content img {
    width: 80%;
  }

  .news {
    display: flex;
    margin-top: 200px;
    margin-left: 10%;
  }

  .news h1 {
    color: #c7e3ed;
    font-family: "Quando", serif;
    font-size: 52px;
  }

  .left-news {
    width: 25%;
  }

  .right-news {
    border-left: 1px solid #000;
    width: 75%;
  }

  .news-topic {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    display: flex;
    margin-left: 5%;
  }

  .news-topic p {
    height: 35px;
    margin-right: 5%;
    vertical-align: bottom;
  }

  .news-square {
    background: linear-gradient(to right, #73cef0, #73a7d3);
    border-radius: 20px;
    display: -webkit-flex;
    display:         flex;
            justify-content: center;
            align-items: center;
    width: 18%;
    height: 35px;
    margin-left: 6%;

    -webkit-align-items: center;
    -webkit-justify-content: center;
  }

  .recruit {
    background: linear-gradient(to right, #ca92f0, #a775c2);
  }

  .media {
    background: linear-gradient(to right, #73ed94, #73d588);
  }

  .date {
    letter-spacing: 1.5px;
  }

  .service-title {
    color: #c7e3ed;
    font-family: "Quando", serif;
    font-size: 75px;
    line-height: 40px;
    text-align: center;
  }

  .service h1 span {
    font-size: 16px;
  }

  .service-back-img {
    position: absolute;
    z-index: -2;
  }

  .service-content {
    width: 100%;
    height: 600px;
    position: relative;
  }

  .service-content img {
    width: 530px;
    height: 400px;
  }

  .img-inheritance {
    position: absolute;
    top: 10%;
    left: 10%;
    z-index: -1;
  }

  .service-content-text {
    background-color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    text-align: center;
    width: 50%;
    height: 330px;
    position: absolute;
    top: 30%;
    left: 40%;
    z-index: 2;
  }

  .left-text {
    text-align: left;
    margin: 0 15%;
  }

  .service-more {
    background: linear-gradient(to right, #4cbfeb, #4c8fc7);
    /* display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center; */
    border-radius: 20px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 100;
    letter-spacing: 3px;
    width: 30%;
    height: 45px;
    position: absolute;
    left: 35%;
  }

  .service-more a {
    color: #fff;
    line-height: 45px;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
  }

  .service-content-text p {
    letter-spacing: 1px;
  }

  .service-topic-text h1 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 30px;
    margin-left: 30px;
  }

  .service-topic-text p {
    color: #ddd;
    font-family: "Quando", serif;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: -30px;
  }

  .img-will {
    position: absolute;
    left: 55%;
  }

  .service-content-text-will {
    position: absolute;
    top: 20%;
    left: 10%;
  }

  .img-adult-guardianship {
    position: absolute;
    top: 10%;
    left: 9%;
  }

  .service-content-text-adult-guardianship {
    position: absolute;
    top: 0;
    left: 40%;
  }

  .img-civil-trust {
    position: absolute;
    top: 10%;
    left: 50%;
  }

  .service-content-text-civil-trust {
    position: absolute;
    top: 0;
    left: 10%;
  }

  .img-other-legal-issues {
    position: absolute;
    top: 0;
    left: 10%;
  }

  .service-content-text-other-legal-issues {
    position: absolute;
    top: 20%;
    left: 40%;
  }

  .safety {
    background: linear-gradient(to right, #4cc2ed, #4c8dc5);
    width: 100%;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
  }

  .safety-title {
    color: #c7e3ed;
    font-family: "Quando", serif;
    font-size: 75px;
    line-height: 1.5;
    text-align: center;
  }

  .safety h1 span {
    font-size: 16px;
  }

  .safety-content-wrapper {
    margin-bottom: 100px;
  }

  .safety-content-box {
    background: #fff;
    float: left;
    width: 32%;
    min-height: 400px;
    margin-right: 2%;
  }

  .safety-content-box.last {
    margin-right: 0;
  }

  .safety-content-box-text {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0 5%;
  }

  .safety-content-box-text h1 {
    background: -webkit-linear-gradient(0deg, #44beec, #005dad);
    font-size: 28px;
    font-weight: normal;
    text-align: center;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .safety-images {
    text-align: center;
    width: 100%;
    height: 120px;
  }

  .text-background {
    background: linear-gradient(to right, #19b1e8, #196eb5);
    color: #fff;
    letter-spacing: 8px;
    display: -webkit-flex;
    display:         flex;
            justify-content: center;
            align-items: center;
    width: 80%;
    height: 35px;
    margin: 0 auto;

    -webkit-align-items: center;
    -webkit-justify-content: center;
  }

  .safety-main-text {
    line-height: 30px;
  }

  .message-title {
    color: #c7e3ed;
    font-family: "Quando", serif;
    font-size: 75px;
    line-height: 1;
    text-align: center;
  }

  .message h1 span {
    font-size: 16px;
    line-height: 1;
  }

  .message {
    width: 100%;
    padding-bottom: 100px;
  }

  .message-main-img {
    width: 100%;
    margin-bottom: 100px;
  }

  .message-main-img img {
    width: 100%;
  }

  .message-text {
    margin: 0 20%;
  }

  .message-text p {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 40px;
    letter-spacing: 3px;
  }

  .profile-title {
    background: linear-gradient(to right, #73cef0, #73a7d3);
    border-radius: 20px;
    display: -webkit-flex;
    display:         flex;
            justify-content: center;
            align-items: center;
    width: 120px;
    height: 35px;
    margin-right: 6%;

    -webkit-align-items: center;
    -webkit-justify-content: center;
  }

  .profile {
    display: flex;
    flex-wrap: nowrap;
  }

  .profile p {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .profile .profile-title + p {
    line-height: 1.8;
    width: calc(100% - 6% - 120px);
    margin-top: 1.37em;
  }

  .profile-left {
    width: 100%;
  }

  .profile-right {
    width: 100%;
  }

  .profile-wrapper {
    display: flex;
    width: 100%;
  }

  .consultation {
    width: 100%;
  }

  .consultation-main-content {
    font-family: "Noto Sans JP", sans-serif;
    width: 60%;
    margin: 5% 20% 100px 20%;
  }

  .consultation-main-content p {
    letter-spacing: 3px;
  }

  .consultation-box-img {
    margin-top: 5%;
    margin-right: 2%;
  }

  .consultation-img-box {
    width: 660px;
    margin: 50px auto 100px;
  }

  .consultation-img-box a {
    text-align: center;
    display: block;
    float: left;
    width: 25%;
  }

  .related-office {
    font-family: "Noto Sans JP", sans-serif;
    width: 100%;
    margin-bottom: 100px;
  }

  .related-office-title {
    color: #f2be82;
    font-family: "Quando", serif;
    font-size: 45px;
    line-height: 1;
    text-align: center;
  }

  .related-office h1 span {
    color: #e67e04;
    font-size: 16px;
  }

  .related-office-top-img {
    width: 100%;
    margin-bottom: 100px;
  }

  .related-office-text {
    margin: 0 20% 50px;
  }

  .related-office-text p {
    letter-spacing: 2px;
  }

  .related-office-box-img {
    width: 660px;
    min-width: 164px;
    margin: 0 auto;
  }

  .related-office-box-img a,
  .related-office-box-img .a {
    text-align: center;
    display: block;
    float: left;
    width: 25%;
  }

  .related-office-boxes {
    margin-right: 1%;
  }

  .access {
    font-family: "Noto Sans JP", sans-serif;
    width: 100%;
    /* height: 2800px; */
    position: relative;
  }

  .access-title {
    color: #c7e3ed;
    font-family: "Quando", serif;
    font-size: 62px;
    font-weight: normal;
    line-height: 40px;
    text-align: center;
    margin: 5% 0;
  }

  .access h1 span {
    font-size: 16px;
  }

  .access-icon-wrapper {
    display: flex;
    margin: 9em auto 7em;
  }

  /* .access-icon-img1 {
    position: absolute;
    top: 46%;
  }

  .access-icon-img2 {
    position: absolute;
    top: 81%;
  } */

  .access-left-icon {
    /* width: 100%; */
    width: 35%;
    margin-left: 10%;
  }

  .access-right-text {
    font-family: "Noto Sans JP", sans-serif;
    /* width: 100%; */
    width: 55%;
    /* position: absolute;
    top: 46%;
    left: 45%; */
  }

  .access-right-text {
    letter-spacing: 2px;
  }

  .access-text {
    display: flex;
    flex-wrap: nowrap;
  }

  .access-text-title {
    background: linear-gradient(to right, #73cdf0, #73a7d3);
    border-radius: 20px;
    display: -webkit-flex;
    display:         flex;
            justify-content: center;
            align-items: center;
    width: 120px;
    height: 35px;
    margin-right: 1em;

    -webkit-align-items: center;
    -webkit-justify-content: center;
  }

  .access-text-title2 {
    background: linear-gradient(to right, #fa9981, #e88b1f);
    border-radius: 20px;
    display: -webkit-flex;
    display:         flex;
            justify-content: center;
            align-items: center;
    width: 120px;
    height: 35px;
    margin-right: 1%;

    -webkit-align-items: center;
    -webkit-justify-content: center;
  }

  .access-text-body {
    width: calc(100% - 120px - 1em);
  }

  .access-text span {
    font-size: 10px;
  }

  .contact-top-img {
    max-width: 900px;
    margin: 0 auto;
  }


  .contact-title {
    color: #c7e3ed;
    font-family: "Quando", serif;
    font-size: 62px;
    font-weight: normal;
    line-height: 40px;
    text-align: center;
    margin: 5% 0;
  }

  .contact h1 span {
    font-size: 16px;
  }

  .contact-box {
    background: #e9f4f8;
    text-align: center;
    width: 60%;
    margin: 0 auto 100px;
    padding: 50px;
  }

  .contact-box p {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    margin-top: 2%;
  }

  #formWrap {
    box-shadow: 0 0 5px #000;
    text-align: left;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
  }

  #formWrap [type="text"] {
    background: #e5f0f4;
    font-size: 18px;
    width: 540px;
    height: 55px;
  }

  textarea {
    background: #e5f0f4;
    font-size: 18px;
    width: 540px;
    height: 220px;
    resize: none;
  }

  ::placeholder {
    font-size: 18px;
    letter-spacing: 2px;
    height: 55px;
  }

  .contact-form-text {
    font-size: 30px;
    text-align: center;
  }

  .botton [type="submit"] {
    background: linear-gradient(to right, #00a6e4, #005ead);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 28px;
    width: 425px;
    height: 100px;
    margin-right: 10%;
  }

  #formWrap {
    font-family: "Noto Sans JP", sans-serif;
    padding-bottom: 100px;
  }

  .formTable {
    width: 100%;
  }

  .formTable th {
    text-align: center;
  }

  .formTable th span {
    background: #e60012;
    border-radius: 25px;
    color: #fff;
    display: block;
    width: 80px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .formTable th span.ninni {
    background: #00b46a;
  }

  .only-sp {
    display: none;
  }
}

@media (max-width:768px) {
  .only-sp {
    display: block !important;
  }
}

@media screen and (min-width: 769px) and (max-width: 1250px) {
  .safety {
    padding: 0 5%;
  }

  .safety-content-box {
    height: 450px;
  }

  .text-background {
    letter-spacing: 0;
  }
}

@media screen and (min-width: 769px) and (max-width: 1500px) {
  .our-mission {
    margin-left: 40px;
  }

  .our-mission h1 {
    letter-spacing: -2px;
  }

  .our-mission h1 span {
    letter-spacing: -2px;
  }

  .five-content {
    margin-left: 40px;
  }
}

@media screen and (min-width:1550px) {
  .main-wrapper {
    margin-top: 250px;
  }

  .news p {
    font-size: 200%;
  }

  .news h1 {
    font-size: 500%;
  }

  .service-back-img {
    height: 2900px;
    position: absolute;
    z-index: -2;
  }

  .access {
    font-family: "Noto Sans JP", sans-serif;
    width: 100%;
    /* height: 3100px; */
    position: relative;
  }

  .contact {
    height: 2500px;
  }

  #formWrap [type="text"] {
    background: #e5f0f4;
    font-size: 18px;
    width: 700px;
    height: 55px;
  }

  textarea {
    background: #e5f0f4;
    font-size: 18px;
    width: 700px;
    height: 220px;
    resize: none;
  }

  ::placeholder {
    font-size: 18px;
    letter-spacing: 2px;
    height: 55px;
  }

  .contact-form-text {
    font-size: 30px;
    text-align: center;
  }

  .contact-form-text .time {
    background: -webkit-linear-gradient(0deg, #19b1e8, #196db5);
            background-clip: text;
    font-size: 18px;
    font-weight: normal;
    display: inline-block;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .botton [type="submit"] {
    background: linear-gradient(to right, #00a6e4, #005ead);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 28px;
    width: 425px;
    height: 100px;
    margin-right: 10%;
  }

  .safety {
    padding: 0 15%;
  }
}


/*---------------- added 2022/04/07 -----------------*/

.news {
  position: relative;
}

.news.js-grad::before {
  background: rgb(255,255,255);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  content: "";
  width: 100%;
  height: 150px;
  position: absolute;
  bottom: 0;
  z-index: 1;

  pointer-events: none;
}

.right-news {
  max-height: 500px;
  position: relative;
  overflow-y: scroll;
}

.news-topic .date {
  width: 10%;
}

.add-news-article {
  flex: 1;
  padding-right: 5%;
}

.add-news-text {
  text-align: left;
}


/*---------------- added 2023/08/07 -----------------*/
.souzoku-touki-bnr img {
  width: 100%;
  height: auto;
  vertical-align: top;
}
.souzoku-touki-bnr {
  margin: 0 auto;
}
.souzoku-touki-bnr .bnr-img {
  margin: 0 0 -2.5em;
  position: relative;
  top: -1.5em;
  z-index: 11;
}
@media screen and (max-width:768px) {
  .souzoku-touki-bnr .bnr-img {
    padding: 0 5%;
  }
}

/*  */
