html, body {
    height: 100%;
    margin: 0;
    font-size: 17px;
}

body {
    font-family: 'Istok Web', sans-serif;
    font-weight: 400;
    
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding:  0%;
    background-color: #f7f3e7;
    background-image: 
  
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  
    background-repeat: repeat, repeat, repeat;
    background-size: 20px 20px, 20px 20px;
}

/*　画像のスタイルリセット　*/
img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}


.content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-top: 5%;
}

/*
grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
*/

.headers {
    display: flex;
    justify-content: center; /* Centers the images horizontally */
    align-items: center; /* Vertically center images if the header has more height */
    gap: 2vw; /* Space between the images */
    margin-top: 30px;

}
/*
.header-images img{
    max-width: 100%;
    height: auto;
    display: block;
}
*/

h1 {
    
    font-size: 20px;
    color: #f24c9f;
    text-align: center;
}

h1.margin20 {
    margin-top: 5px;
    font-size: 20px;
    color: #f24c9f;
    text-align: center;
}

.intro-text {
    font-size: small;
    color: #11508e;
    margin: 5% auto;
    width: 100%;
}

.note-text{
    color: #f24c9f;
    text-align: left;
    margin-top: 0;

}

.name_logos {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 2vw; /* Space between the images */
}

ul{
    text-align: left;
    padding: 0% 0% 0% 2%;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    box-sizing: border-box;
}

hr {
    border: none; 
    border-top: 1.5px 
    solid #bbbbbb; 
    margin: 100px auto;
    width: 90%;
}

.img-1 {
    width: 7vw; /* 15% of the viewport width */
    max-width: 50px; /* Maximum size */
    margin-right: 1vw;
}

.img-2 {
    width: 30vw; /* 25% of the viewport width */
    max-width: 250px; /* Maximum size */
}

.img-3 {
    width: 30vw; /* 25% of the viewport width */
    max-width: 250px; /* Maximum size */
}

/* 画面幅が600px以下の場合は縦並びに切り替え */
@media (max-width: 600px) {
  
    .content {
        margin-top: 20px;
    }

    .name_logos {
      flex-direction: column;
      gap: 0.5vw;
    }

    .img-1 {
        width: 48px; /* % of the viewport width */
        padding-right: 2%;
    }

    .img-2, .img-3 {
        width: 180px;
    }
  }
/* レスポンシブおわり */

main {
    padding: 2rem;
    text-align: center;
    width: 80%;
    max-width: 650px;
    margin: 0 auto 50px;
    flex: 1;
}

main p {
    text-align: justify;
    text-align-last: left;
    line-height: 1.6;        /* 読みやすさのための行間 */
   
  }
/* モバイル用文字調整 */
  @media (max-width: 600px) {
    main p {
      text-align: left;         /* モバイルでは左寄せに */
    }
  }

.illustrations {
    width: auto;
    height: auto;
    text-align: center;
}

.img-table {
    width: 60vw;
    max-width: 180px;
    margin: 20px auto;
}

.img-trees {
    width: 40vw;
    max-width: 160px;
}

.img-awl {
    width: 40vw;
    max-width: 160px;
}

.img-map {
    width: 80vw;
    max-width: 450px;
    border: 2px solid #11508e;
    border-radius: 8px;
    padding: 0.5rem;
    box-sizing: border-box;
    margin: 2em auto;  
}

.img-fee {
    width: 60vw;
    max-width: 35px;
}



.shinprof {
    width: 145px;
    height: 145px;
  
    margin: 0 auto;
    border-radius: 50% 45% 50% 45% / 45% 50% 45% 50%;
    border: 2px solid gray;
    background-color: #fff;
    overflow: hidden;
    position: relative;
  }
  
  .slider {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .slide.active {
    opacity: 1;
  }
/************* スライド　おわり **************/

/************* feeのボックス **************/

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0px;
    width: 100%;
    max-width: 450px;              /* 必要に応じて調整 */
    margin: 2em auto;            /* 左右中央寄せ */
    box-sizing: border-box;
  }
  
  .box01 {
    
    padding: 10px;
    text-align: center;
    border: 2px solid #11508e;
    height: 20px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right: 2px dotted #11508e;  
  }

  .box02 {
    padding: 10px;
    text-align: center;
    border: 2px solid #11508e;
    height: 20px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: none;
  }

 
  

/************* feeのボックス おわり **************/

footer {
    text-align: center;
    
    background-color: #11508e;
    height: 20px;
    padding: 0.4rem 0.2rem;
    font-size: 0.8rem;
}

.copyright {
    color: white;
}





/******* 車のアニメーション　******/


  
  .road {
    width: 100%;
    max-width: 800px;
    height: 60px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
   
  }
  
  .car {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100px;
    height: auto;
    transition: left 0.016s linear;
  }
  
  .hidden {
    display: none;
  }

/******* 車のアニメーション　おわり******/  

/******* フォーム　******/

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin: 12px auto;
    max-width: 400px;
  }
  
  .contact-form label {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 2px; /* ← ラベルと入力欄の間隔を明確に制御 */
    text-align: left;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
  }
  .contact-form textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .contact-form button {
    background-color: #f24c9f;
    color: white;
    border: none;
    padding: 10px;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    padding: 0.8em 5em;
  }
  
  .contact-form button:hover {
    background-color: #d83d8a;
  }

  /******* フォーム おわり　******/