@charset "utf-8";

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overscroll-behavior-y: none;
}  

body{
    background: #fff;
    font-family: 'Noto Sans JP', sans-serif;
	color: #333;
    font-weight: 400;
	font-size:1rem;
	line-height:1.85;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%; 
	word-wrap: break-word;
}

*{box-sizing: border-box;}

ul,
ol{
	margin:0;
	padding: 0;
	list-style: none;
}

a{
	color: #333;
	text-decoration: none;
    outline: none;
}

img{
    width: 100%;
    height: auto;
}

h2{
    text-transform: uppercase;
    font-size: 3rem;
}

@media screen and (max-width:768px) {

  h2{
      font-size:2rem;
    }
}

/* inner */
.bg{
    background: #f5f5f5;
}

.inner{
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
    padding-top: 50px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

@media screen and (max-width: 767px) {
    .inner {
        padding-left: 15px;
        padding-right: 15px;
    }

}


/* header */

#header{
    background:rgba(255,255,255,0.9);
    border-bottom: 0;
    padding: 0.8rem 0 0 0.7rem;
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    justify-content: space-between;
    display: flex;
}

@media screen and (max-width: 767px) {
#header {
    padding-top: 0.5rem;
    height: 69px;
    position: fixed;
    z-index: 9999;
}
}

.header-area{
    display: flex;
}

.header-logo{
    display: inline-block;
}
.header-logo img{
    height: 50px;
    width: calc(100% - 70px);
}
.menu-box{
    display:flex;
    align-items: center;
}
.header-menu{
    display: flex;
    padding-right: 1rem;
    align-items: center;
}
.header-menu li {
    font-size: 0.875rem;
    font-weight: bold;
    padding-right: 40px;
}
.header-menu li:last-child {
    padding-right: 0;
  }
  

  /* 1279px以下で非表示にする */
  @media screen and (max-width: 1465px) {
    .header-menu {
      display: none;
    }
  }
  
/*g-nav*/

.link01{
    width: calc(100% - 40px);
    list-style-type: none;
    margin: 80px 20px 20px;
    padding: 0;
}

.link02 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    list-style-type: none;
    margin: 10px 20px;
    padding: 0;
}
.link02 li {
    -ms-flex-preferred-size: calc(50% - 5px);
    flex-basis: calc(50% - 5px);
}

/* main */
#top-main {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}

@media (max-width: 768px){
    #top-main {
        padding: 80px 10px 30px;
    }
}

.top-container {
    width: 100%;
    max-width: 1920px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    justify-items: center;
    gap: 40px;
}

.top-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    max-width: 500px;
}

.top-text h1 {
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.top-text p {
    display: inline-block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
}
.top-text h1, 
.top-text p {
    width: 100%;
    text-align: left;
}
.top-text .button-top {
    margin-right: auto;
}

@media (min-width: 1280px){
    .top-text h1{
        font-size: 3rem;
    }
}
@media (max-width: 926px){
    .top-text h1{
        font-size: 1.8rem;
    }
    .top-text p {
        font-size: 0.8rem;
    }
}

.top-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .top-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        text-align: center;
    }

    .top-text {
        text-align: center;
        align-items: center;
        margin-bottom: 3rem;
        order: 2;
    }

    .top-text h1, 
    .top-text p, 
    .top-text .button-top {
        text-align: center;
    }

    .top-text .button-top{
        margin-left: 0;
        margin-right: 0;
    }

    .top-image {
        order: 1;
    }
}
    
/* heading */

.heading {
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background-color: #008855;
    position: absolute;
    left: 0;
    bottom: 0;
}

.heading-c {
    text-align: center;
}

.heading-c::after {
    left: 50%;
    transform: translateX(-50%);
}

/* about */
#about {
    position: relative;
    margin: 0 auto;
    padding-bottom: 100px;
    background: #f5f5f5;
    z-index: 2;
}

.bar {
    background: #008855;
    color: #fff;
    width: 60%;
    height: 200px;
    position: absolute;
    top: -10px;
    left: 0;
    z-index: -1;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1280px;
    margin: 0 auto;
    padding: 150px 20px 30px;
    gap: 30px;
    align-items: end;
}
  
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-description h2{
    align-self: center;
}

.about-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    padding: 2rem;
    text-align: left;
}

.about-description span{
    font-size: 1.5rem;
    font-weight: bold;
    color: #008855;
    align-self: center;
}

.about-btn {
    align-self: center;
    max-width: none;
    margin: 0 2rem;
}


@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
    }
    .about-description p {
        padding: 2rem 0;
    }
    .about-btn {
        margin: 0;
    }
}



/* team */
#team {
    margin-top: -5rem;
}
.team-bg-top::before {
    content: '';
    display: block;
    position: relative;
    background-color: #fff;
    background-image: url(../img/team_bg_top.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 7.86vw;
    left: 0;
    top: 0;
    width: 100%;
    height: 7.86vw;
}

.team-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.team-text {
    display: grid;
    gap: 10px;
    max-width: 45%; 
    margin-right: -10px;
}
.team-text p{
    padding: 2rem 0;
    max-width: 305px;
    text-align-last: left;
  }

.team-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
} 

.team-image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
    }
  
    .team-text {
        max-width: 100%;
        margin: auto;
        order: 1;
    }
    .team-text p{
        max-width: none;
    }
  }


/* team2　*/
#team2 {
    position: relative;
    width: 100%;
    margin: auto;
}

.team2-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    scrollbar-width: none; /* Firefox用 */
}
.team2-container::-webkit-scrollbar {
    display: none; /* Chrome, Edge, Safari用 */
}

.team2-card {
    flex: 0 0 75%;
    scroll-snap-align: center;
    background-color: #e8f5e9;
    padding: 30px 20px 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team2-card h3{
    padding: 25px 0 8px;
  }
.team2-card img {
    width: 80px;
    height: auto;
}

.team2-pad {
    display: block;
    flex: 0 0 5vw;
    height: 1px;
    background: transparent;
}

@media (min-width: 768px) {
    #team2{
        max-width: 1080px;
        padding: 20px;
    }
    .team2-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 46px;
      padding: 10px;
    }
  
    .team2-card {
      flex: none;
      scroll-snap-align: none;
    }

    .team2-pad {
        display: none;
    }

}

/* unit */
#unit {
    width: 100%;
    background: #008855;
    margin-top: 100px;
    padding: 60px 20px;
    color: #fff;
}

.unit-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto auto; 
    column-gap: 50px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: center;
}
.unit-heading{
    text-align: center;
    padding-bottom: 3rem;
    letter-spacing: 0.1em;
}

.unit-image {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 100%;
}

.unit-image img {
    width: 100%;
    height: auto;
    display: block;
}

.unit-text {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 1rem;
    color: #fff;
}

.unit-text h3{
    font-size: 1.5rem;
    border-bottom: solid 1px #fff;
}

.unit-text p{
    padding: 20px 0;
}

.unit-button {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .unit-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .unit-image {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .unit-text {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .unit-button {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        justify-content: center;
    }
}

/* top-robot */
#top-robot{
  background-image: url("../img/robot_bg.jpg");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  min-height: 650px;
}

.top-robot-container{
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px 80px;
}

.top-robot-text{
  margin: 30px auto 30px;
}

.top-robot-btn{
  max-width: 320px;
  margin: 0 auto 30px;
}

@media (max-width: 768px){
  .top-robot{
    background:url("../img/robot_bg.jpg") no-repeat center top / 120%;
    padding: 50px 15px;
  }

  .top-robot-text{
    text-align: left;
  }
}


/* support */
#support {
    background: #e6f4ea;
    padding: 100px 20px 150px;
}

.support-container {
    display: grid;
    grid-template-columns: 1fr 5fr;
    max-width: 1080px;
    margin: 0 auto;
    align-items: center;
}

.support-description {
    max-width: 1080px;
    padding: 30px 0 40px;
    margin: 0 auto;
}

.support-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    overflow: hidden;
}

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

.support-facility {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.facility-box {
    display: grid;
    grid-template-rows: auto auto;
    gap: 15px;
}

.facility-header {
    color: #008855;
    text-align: center;
    padding: 5px;
    border-radius: 20px;
    border: 1px solid #008855;
    letter-spacing: 0.2em;
}

.facility-content {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    background: #fff;
    padding-bottom: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: 0.3s;
}

.facility-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.facility-content p {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.facility-content:hover {
    transform: scale(1.05);
    opacity: 0.9;
}


@media (max-width: 768px) {
    .support-container {
        display: flex;
        flex-direction: column;
    }

    .support-facility {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-items: center; 
    }

    .support-logo {
        order: 2;
        align-self: flex-end;
        margin-top: -200px;
        margin-right: 20px;
    }
    .facility-header{
        letter-spacing: normal;
    }
    .facility-content p {
        font-size: 0.8rem;
    }
}

/* contact */
#contact {
    background: url(../img/contact_bg.jpg) no-repeat center center;
    background-size: cover;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 1080px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 50px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center;
}

.contact-container h2{
    font-size: 1.8rem;
}

.contact-info {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 15px;
}

.contact-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c7ed68;
    border-radius: 10px;;
    color: #002b1b;
    font-size: 2.3rem;
    font-weight: bold;
    padding: 10px;
    text-decoration: none;
    letter-spacing: 0.2rem;
    transition: 0.3s;
}

.tel-icon {
    width: 0.9em;
    height: 0.9em;
    vertical-align: middle;
    margin-right: 5px;
    margin-top: 7px;
}

.contact-time {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }

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

    .underline {
        margin: 0 auto;
    }

    .contact-tel {
        font-size: 1.2rem;
    }
}

.br-sp {
    display: none;
}

@media (max-width: 391px) {
    .br-sp {
        display: block;
    }
}

.br-pc {
    display: block;
}

@media (max-width: 391px) {
    .br-pc {
        display: none;
    }
}

/* pickup */

#pickup {
    width: 100%;
    padding: 60px 20px 20px;
    background: #f5f5f5;
    text-align: center;
}

.pickup-box { 
    max-width: 1080px;
    margin: 0 auto;
    align-items: center;
    background: #fff;
    padding: 50px 40px 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.pickup-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.pickup-content {
    display: grid;
    grid-template-rows: auto auto;
    gap: 15px;
}

.pickup-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.pickup-button {
    max-width: 100%;
    text-align: center;
    }

.pickup-button:hover{
    border:solid 1px #008855;
}

.medisapo-image {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-top: 50px;
}

.medisapo-image img {
  width: 100%;
  height: auto;
  display: block;
}


@media (max-width: 768px) {
    .pickup-box{
        padding: 0;

    }

    .pickup-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .pickup-content {
        display: grid;
        grid-template-rows: auto auto auto auto;
        gap: 15px;
        text-align: center;
    }


    .medisapo-image {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px 20px;
    }

    .medisapo-image img:nth-of-type(1){
        display: none;
    }
}


/* access */
#access {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    color: #fff;
    scroll-margin-top: 50px;
}

.access-description {
    background-color: #008855;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 50%;
    flex: 0 1 50%;
}
.access-description-inner {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 460px;
    flex: 0 1 460px;
}
.access-title {
    font-size: 3.2rem;
    font-weight: normal;
    margin-bottom: 40px;
    margin-top: 10px;
}
.access-address {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .access-address{
        flex-direction: column;
    }
}

.access-mean{
    margin: 40px 0;
    color:#fff;
}
.access-mean-title {
    font-weight: normal;
    border-bottom: 1px solid #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
}
.access-mean-list {
    color: #b8bdbd;
    list-style-type: square !important;
}
.access-mean-list li{
    margin-left: 20px;
}
.access-mean-list span{
    color: #fff;
}

.access-icon {
    color: #fff;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    margin-right: 5px;
}

.access-map {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
}
@media (max-width: 1080px) {
    .access-description {
        padding: 50px 25px;
    }
    .access-map {
        height: 45vh;
    }
}
@media (max-width: 860px) {
    #access {
        display: block;
    }
    .access-description-inner {
        -webkit-box-flex: 0;
        -ms-flex: 0 1 100%;
        flex: 0 1 100%;
    }
    .access-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

/* footer */

footer{
    background: #f5f5f5;
}

#footer{
    background: #666;
    color: #fff;
    padding: 70px 70px 10px 70px;
}
@media (max-width: 768px) {
    #footer{
        padding: 30px;
    }
}

#footer a{
    color: #fff;
}

.footer-area{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-info{
    width:60%;
}

.footer-info span{
    display: block;
    font-size:1.7rem;
    font-weight: bold;
    line-height: 1.5;
}

.footer-info dt.footer-title,
.footer-info li:first-of-type{
    margin: 0 0 10px 0;
}

.footer-info li dt{
    margin:0 10px 0 0;
}

.footer-info li dt,
.footer-info li dd{
    display: inline-block;
}

.footer-sitemap{
    width:40%;
}

.footer-sitemap ul{
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 50px 0;
    font-size: 0.9rem;
}

.footer-sitemap li{
    padding: 10px 20px;
}

.footer-sitemap li a{
	position: relative;
    padding: 0 10px;
}

.footer-sitemap li a:before{
	position: absolute;
	top:40%;
	left:-10px;
	content: '';
    width: 7px;
    height:7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

small{
    display: block;
    margin: 0 auto;
    margin-top: 50px;
    text-align: center;
}

@media screen and (max-width:1090px) {
    .footer-info{
        width:40%;
    }
    .footer-sitemap{
        width:56%;
    }
    
}

@media screen and (max-width:940px) {
    small{
        text-align: center;
    }    
}

@media screen and (max-width:768px) {
.footer-info,
.footer-sitemap{
    width:100%;
}
    
.footer-info{
    margin:0 0 70px 0;
    padding: 0 0 70px 0;
    border-bottom:1px solid rgba(255,255,255,0.8);
}
.footer-info span{
        font-size:1.3rem;
}    
}

/* 子ページ */
.content-area{
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    margin-bottom: 100px;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}
.page-header {
  background: #eaf5e1;
  padding: 60px 0;
  text-align: center;
}

@media screen and (max-width:768px) {
    .page-header{
        margin-top: 70px;
        padding: 30px;
    }
}

.page-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #333;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: #919191;
}

.breadcrumb a {
    color: #616161;
}

.flex-container {
  display: flex;
  gap: 30px;
}

.flex-container main {
  flex: 1;
}

@media screen and (max-width: 768px) {
  .flex-container {
    flex-direction: column;
  }

  .flex-container main {
    order: 1;
  }

  .flex-container aside {
    order: 2;
  }
}

#pg{
    margin-bottom: 3rem;
}

#pg h2 {
    font-size: 1.8rem;
    position: relative;
    margin: 1.5rem 0 2rem;
    padding: 2.5rem 1rem 1rem;
    border-bottom: 3px solid #ccc;
}
#pg h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
  }
  

#pg h2:before {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 10%;
    height: 3px;
    content: '';
    background: #008855;
}
  
#pg h3 {
    border-left: 5px solid #cfeecf;
    padding: 0.1rem 1rem;
    margin: 2rem 0 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  text-align: left;
}

table th,
table td {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
}

table th {
  background-color: #f5f5f5;
}


@media screen and (max-width: 768px) {
  table,
  table tbody,
  table tr {
    display: block;
    width: 100%;
  }

  table tr {
    border: 1px solid #ccc;
  }

  table th,
  table td {
    display: block;
    width: 100%;
    border: none;
    padding: 0.4rem 0;
  }

  table th {
    font-weight: bold;
    font-size: 1rem;
    padding: 1rem;
  }

  table td {
    padding-left: 0;
  }

  table ul {
    margin: 0;
    padding-left: 1rem;
  }
}

#pg ul {
  padding-left: 1.5em;
  margin: 1.5rem 0;
}

#pg ul li {
  position: relative;
  padding-left: 1em;
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

#pg ul li::before {
  content: "●";
  font-size: 0.6rem;
  color: #ccc;
  position: absolute;
  left: 0;
  top: 0.5em;
}


.txt-c{
    text-align: center;
}

.txt-l{
    text-align: left;
}

.txt-r{
    text-align: right;
}

.font-s{
    font-size: 0.8rem;
}

.col2 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}
.col2 > * {
  flex: 1 1 48%;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .col2 > * {
    flex: 1 1 100%;
  }
}

.col3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}
.col3 > * {
  flex: 1 1 30%;
  box-sizing: border-box;
}

.col3 .wide {
  flex: 1 1 64%;
}

@media (max-width: 1024px) {
  .col3 > * {
    flex: 1 1 48%;
  }
}
@media (max-width: 767px) {
  .col3 > * {
    flex: 1 1 100%;
  }
}

.team-col > div:last-child {
    margin-top: auto;
}

.ma-t h3{
    margin-top: 0!important;
}
.ma-b{
    margin-bottom: 50px;
}

.lead {
    font-size: 1.8rem;
}

@media screen and (max-width: 768px){
    .lead{
        font-size: 1.5rem;
    }
}

.homecare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.homecare a {
  display: block; 
  background-color: #cfeecf;
  color: #008855;
  font-weight: bold;
  text-decoration: none;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

.homecare a:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: #bee9be;
}

@media screen and (max-width: 768px) {
  .homecare {
    grid-template-columns: 1fr;
  }
}

.group h4 {
    background: #f5f5f5;
    font-size: 1.2rem;
    padding-left: 10px;
    margin-bottom: 10px;
}

.group a {
    border: solid 1px #008855;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 20px 0;
    display: block;
    color: #008855;
    width: 50%;
    min-width: 260px;
}

.group-t {
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .group img {
    width: 80%;
  }
}

#t01,#t02,#t03,#t04,#t05{
    scroll-margin-top: 80px;
}

/* robot */
.mb-10 {
   margin-bottom: 10px;
}

.hal {
    background: #f2f9fc;
    padding: 15px;
}

.taisho {
    background: #f5f5f5;
    padding: 1rem 0.6rem 1rem;
}

.flow {
  --bg: #f5f7fb;
  --num: #79b12b;
  --text: #333;
  --arrow: #79b12b;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
}

.flow__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr; 
  gap: 18px;
  align-items: center;

  background: var(--bg);
  border-radius: 10px;
  padding: 18px 22px;
}

.flow__item + .flow__item {
  margin-top: 40px;
}

.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -30px;
  width: 90px;
  height: 20px;
  background: url("../img/arrow.png") no-repeat center / contain;
}

.flow__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.flow__num {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--num);
  font-size: 18px;
  line-height: 1;
}

.flow__title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.flow__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .flow {
    padding: 14px;
  }

  .flow__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 16px;
  }

  .flow__item:not(:last-child)::after {
    left: 22px;
    bottom: -38px;
    width: 40px;
    height: 40px;
  }

  .flow__title {
    font-size: 15px;
  }

  .flow__desc {
    font-size: 13px;
  }
}

/* sidebar */
#sidebar {
    list-style-type: none;
    width: 250px;
    font-size: 0.95rem;
}

@media screen and (max-width: 768px){
    #sidebar {
        width: 100%;
    }
}

#sidebar li {
    display: flex;
    align-items: center;
    gap: 0 10px;
    position: relative;
    background: #f5f5f5;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

#sidebar li a {
    padding: 1em 1em 1em 1.5em;
    width: 100%;
}

#sidebar p {
    padding-left: 2em;
    position: relative;
}
#sidebar p::before {
    position: absolute;
    content: '';
}

#sidebar p::before {
    top: 0.9em;
    left: 1em;
    transform: translateX(-75%) rotate(-45deg);
    width: 0.3em;
    height: 0.3em;
    border-bottom: 2px solid #2589d0;
    border-right: 2px solid #2589d0;
}
#sidebar p:last-of-type {
    padding-bottom: 2em;
}

.ext::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.3em;
    background: url('../img/ext.svg') no-repeat center center;
    background-size: contain;
    vertical-align: text-bottom;
}
.ext-w::after {
    background: url('../img/ext-w.svg') no-repeat center center;
}
  
.footer-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1080px;
  box-sizing: border-box;
  padding: 50px 50px 100px;
}

.banner {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.banner img {
  width: auto;
  max-width: 100%;
  display: block;
}

.banner.wide {
  flex: 2;
}
.banner.narrow {
  flex: 1;
}

@media (max-width: 768px) {
  .footer-banners {
    flex-direction: column;
    gap: 25px;
    padding: 30px 20px 50px;
  }

  .banner {
    width: 100%;
  }
  .narrow img{
    height: 60px!important;
  }
}