body {
    margin: 0;
    padding-top: auto;
    background-color: #cac5c5;
    background-image:url(biyo1.jpg);
    font-family:serif;
}

all {
    display: flex;
    flex-direction: column; /* 追加: スマホ画面で縦に並べるための設定 */
}

a{
    color: #fc2727;
}

.tell{
    margin-top: 5%;
    font-size: large;
    text-align: center;
    color: #fc2727;
    margin-right: 10%;
}
.tell main{
    margin-top: 5%;
}
main{
    width: 70%;
}

p{
    font-size: 20px;
    text-align: left;
}

img{
    max-width: 700px;
    width: 700px;

}
sub{
    width: auto;
}
.waku{
    border-width: 1px;
    border-color: black;
    border-style: solid;
    margin-top: 160px;
    margin-right: 70px;
}
header {
    /*background-color: #e67e22; /* ヘッダーの背景色 */
    color: #fc2727;
    padding: 20px;
    text-align: center;
    margin-top: 230px;
    margin-right: 10px;
    font-size:large;
}
h2{

    color: #000000;
    text-align: center;
    margin-top: 20px;

}
nav {
    background-color: #d35400; /* ナビゲーションの背景色 */
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.container {
    margin-top: 5%;
    padding: 20px;
}
.slideshow-container {
    position: relative;
    padding-top: 20px;
    max-width: 700px; /* Adjust this to fit your design */
    margin: 10px 20px;
}
  
.slide {
    display: none;
}
  
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
  
@keyframes fade {
    from {
      opacity: 0.4;
    }
    to {
      opacity: 1;
    }
}
  

.intro {
    text-align: center;
    margin-bottom: 30px;
    margin-right: 30px;
    margin-left: 80px;
}

.services {
    margin-top: 5%;
    margin-bottom: 30px;
    font-size: large;
}

.service {
    background-color: #1495ae;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    transition: transform 0.3s ease;
}
.service p{
    text-align: center;
}



footer {
    background-color: #1495ae;/* フッターの背景色 */
    color: #000000;
    padding: 20px;
    text-align: center;
}

#datetime {
    font-size: 24px;
    font-weight: bold;
    font-family:serif;
    text-align: center;
    color: #fc2727;
}
  


/* レスポンシブデザイン */
@media (min-width: 600px) {
    all {
        flex-direction: row; /* タブレット以上の画面では横並びにする */
        align-items: flex-start; /* タブレット以上の画面でデフォルトに戻す */
    }
    main {
        width: 70%; /* タブレット以上の画面で70%幅を使用 */
        text-align: center; /* タブレット以上の画面でデフォルトに戻す */
    }

    .services {
        display: flex;
        justify-content: center;
        text-align: center; /* タブレット以上の画面でデフォルトに戻す */
    }

    .services .service {
        text-align: center;
        max-width: none;
        margin-left: 20%;
    }
}

@media (min-width: 900px) {
    body {
        font-size: 18px;
        text-align: center; /* タブレット以上の画面でデフォルトに戻す */
    }
}

/* スマホ表示用スタイル */
@media (max-width: 600px) {

    h1{
        margin-top: auto;
    }

    img {
        max-width: 600px; /* 画像の最大幅を50%に設定 */
        height: auto;
    }

    .slideshow-container img {
        max-width: 600px; /* スライドショー内の画像の最大幅を50%に設定 */
        height: auto;
    }

    iframe {
        max-width: 600px; /* 地図の最大幅を50%に設定 */
        height: auto;
    }

    .container {
        text-align: center; /* スマホ画面でテキストをセンター揃え */
    }

    .intro {
        margin-left: 0; /* スマホ画面で左マージンを削除 */
        margin-right: 0; /* スマホ画面で右マージンを削除 */
        text-align: center;
    }
}