@charset "utf-8";

body {
    background-color: rgb(210, 175, 154); /* お好みの色コードに変更してください */
    font-family: 'arial','Hiragino Sans',sans-serif;
    font-size: 13px;
    line-height: 1.5;
  }



h1 {
    font-size: 28px;
    text-align: center;
    padding: 0 0;
    margin-top: 30px;
    margin-bottom: 30px;
    font-weight: bold;
    color: rgb(128, 99, 83);
}

main {
    
    height: 1030px;
    min-height: 1030px;
    width: 100%;             /* 必要に応じて幅を指定 */
    justify-content: center; 
    background-color: rgba(255, 255, 255, 0.5);
    padding: 30px 30px;
    overflow: auto;
    
}

main h3{
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: rgb(128, 99, 83);
}

main h4 {
    font-size: large;

}

img {
    max-width: 50%;
    height: auto;
  }


p {
    margin-bottom: 20px;
}



nav ul {
    width: 100%;
    padding: 10px 0; /* ← 横paddingはゼロに！ */
    box-sizing: border-box;
    display: flex;
    justify-content: space-evenly;
    list-style: none;

    text-align: center;
    color: #ffffff;
    background-color: rgba(197, 132, 140);
}


div ul li{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0; /* autoを削除し、上下左右に余白を設定 */
}
ul li {
    display: flex;
    
}


.container {
    display: flex;
    gap: 40px;
    padding: 20px;
    flex-wrap: wrap; /* スマホで折り返すため */
    align-items: stretch; /* ← これで子要素の高さが揃いやすくなる */
    min-height: auto;     /* ← 明示してみるとより安定 */
    gap: 40px;
  }

  
  
  /* 画像ブロック（左側） */
  .image-block {
    flex: 0 0 40%;
    max-width: 400px;
  }
  
  /* 画像をブロック全体にフィットさせる */
  .image-block img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* 文章ブロック（右側） */
  .text-block {
    flex: 1;
    min-width: 300px;
  }
  
  .icon-list {
    display: flex;
    flex-wrap: wrap;         /* 折り返しOK */
    gap: 16px;               /* アイコン間のスペース */
    justify-content: flex-start;
    padding: 10px 0;
  }
  


.icon{
    max-width: 85px;
    height: auto;
    display: block;
  }


p {
    margin-bottom: 20px;
    color: rgb(66, 82, 73);
}

.paragraph {
    margin-bottom: 20px;
    color: rgb(66, 82, 73);
}

footer {
    padding: 10px 10px 10px;
    text-align: center;
    color: #ffffff;
    background-color: rgba(197, 132, 140);
}

nav {
    margin-top: 30px;
}

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

    .container {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }    
    
    .text-block {
        margin-top: 10px;
        flex: 1;
        min-width: 290px;
      }
    
}
