@charset "utf-8";
body {
 background-color: #EFEEE5 ;
 font-size: 16px;
 line-height: 1.6;
 font-family: 'Verdana','Hiragino Sans','Meiryo',sans-serif;
}
header{
    font-size: 15px;
    text-align: right;
    width: 1240px;
    margin: 0 auto 44px;
    border-bottom: 4px solid #7c5d48
}
h1{
    font-size: 35px;
    text-align: right;
    padding: 20px 0px 16px;
}
.mainndiv {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px; /* モバイル向けの余白 */
    display: flex;  /* これが必要 */
    justify-content: space-between;
  gap: 40px; /* ← ここで隙間を調整 */
  }
main {
    flex-basis: 900px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 62px 72px 32px 72px;
    box-shadow: 0px 0px 8px rgba(0,0,0,0.16);
  }
main nav h2{
    margin: 10px 2px;
}
main .aisatu {
    display: flex;
    flex-direction: row-reverse; /* ← 要素を右から左に並べる */
    align-items: center;
    margin-bottom: 30px;
  }
  
  main .aisatu img {
    width: 120px;
    height: auto;
    margin-left: 20px;  /* ← 右に回したので左にマージン */
    border-radius: 8px;
  }
  
  main .aisatu-text {
    flex: 1;
  }
address img{
    max-width:50%;
    object-position:0 100px;
}
 aside nav h3{
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #7c5d48;
 }
 aside nav ul{
    list-style-type: none;
    font-size: 20px;
    margin: 0 5px 16px 20px;
 }
 aside nav ul a{
    color: #7c5d48;
 }
 aside nav ul li a:hover{
    text-decoration:underline double #7c5d48 1.5px;
 }
 aside nav ul li{
    margin: 15px 5px;
 }
footer{
    background-color: #523f2e;
    color: #ffffff;
    text-align: center;
    padding: 14px 10px 20px;
}
footer p{
    text-align: center;
}
#menu-toggle {
    display: none; /* チェックボックスは非表示 */
  }
  
  /* ハンバーガーメニューのボタン */
  .hamburger {
    display: none; /* PCでは非表示 */
    position: fixed; /* 画面右上に固定 */
    top: 10px;
    right: 10px;
    font-size: 26px;
    background-color: #7c5d48;
    color: white;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 1000; /* 他より前面 */
  }
  
  /* メニュー本体 */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 50px;    /* ハンバーガーの下に配置 */
    right: 10px;
    background-color: #fff;
    padding: 10px 20px;
    border: 2px solid #7c5d48;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 999;
    width: 200px;
  }
  
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-menu li {
    margin: 12px 0;
  }
  
  .mobile-menu a {
    color: #7c5d48;
    text-decoration: none;
    font-size: 18px;
  }
  
  .mobile-menu a:hover {
    text-decoration: underline;
  }
  
  /* メニュー開閉制御 */
  #menu-toggle:checked + .hamburger + .mobile-menu {
    display: block;
  }
  
  /* 画面幅768px以下の時にハンバーガーメニューを表示、asideは非表示 */
  @media screen and (max-width: 768px) {
    .hamburger {
      display: block;
    }
    aside {
      display: none;
    }
  }
  
  /* PC画面ではmobile-menuを隠す */
  @media screen and (min-width: 769px) {
    .mobile-menu {
      display: none !important;
    }
  }