


/*---------- ページ全体の指定 ----------*/


body {
    min-width: 100%;
    box-sizing: border-box;
  font-family: "Inter", "Roboto", "Arial", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #555555;
  
  background-image: url(img/snow-a3.png);
}

a:link {
  color: #583822;
  font-size: 12px;
  margin: 0px 3px 0px 3px;
}

a:hover {
  color: #765c47;
  font-size: 12px;
}

a:visited {
  color: #583822;
  font-size: 12px;
}

p {
  margin: 15px 0 15px 0;
  line-height: 180%;
  letter-spacing: 1px;
}

img {
  border-style: none;
  max-width: 100%; /* 画像が画面幅を超えないように */
  height: auto;
}


/*---------- メイン ----------*/

#main {
  margin: 0 auto 0 auto;
  padding: 0;
  width: 800px;
  border-right:  solid 2px #c6c6c6;
  border-bottom: solid 2px #c6c6c6;
  border-left: solid 2px #c6c6c6;
 /* background-color: #ffffff;*/
 background-color: #fef1fe;
}



/*---------- ヘッダー ----------*/

#header {
  margin: 0;
  width: 800px;
  height: 75px;
  border-top: solid 3px #765c47;
  background-color: #ffffff;
  background-image: url(img/header.jpg);
  background-repeat: no-repeat;
}

#header-inner {
        width: 100%; /* 固定幅800pxを解除 */
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        background: url(img/header.jpg) no-repeat;
        background-size: cover; /* 背景画像を画面にフィット */
    }
    

#header h1 {
  margin: 0;
  padding: 2px 0 0 10px;
  text-align: left;
  font-weight: normal;
  font-size: 10px;
  color: #583822;
}

#header h2 {
  margin: 0;
  padding: 25px 10px 10px 18px;
  width: 400px;
  text-align: left;
  font-size: 12px;
  color: #555555;
  letter-spacing: 1px;
  word-break: break-word;
}


table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* セル幅を固定 */
}


#table-left{
  text-align: left;
  font-size: 16px;
  color: #333333;
  line-height: 150%;
  text-decoration: none;
}

#table-left a{
  font-size: 16px;
  color: #333333;
  text-decoration: none;
}

#table-left a:hover{
  font-size: 16px;
  color: #666666;
  text-decoration: none;
}


#table-right{
  text-align: right;
  margin: 0;
  padding: 2px 14px 2px 0;
  font-size: 10px;
  color: #696969;
  line-height: 150%;
  text-decoration: none;
}

#table-right a{
  font-size: 12px;
  color: #333333;
  text-decoration: none;
}

#table-right a:hover{
  font-size: 12px;
  color: #666666;
  text-decoration: none;
}


#header-menu {
  height: 25px;
  background-color: #333333;
  margin: 0px;
  padding: 13px 0 0 17px;
  border-top: solid 2px #cccccc;
  background: url(img/head_menu_back.gif);
  background-repeat: repeat-x;
  text-align: left;
  width: auto;
}

#header-menu ul {
  text-align: left;
  margin: 0px;
  padding: 0px
}

#header-menu li {
  color: #ffffff;
  display: inline;
  padding-left: 15px;
  padding-right: 10px;
  background: url(img/l_icon.gif) no-repeat;
  background-position: left center;
}

#header-menu a {
  color: #ffffff;
  text-decoration: none;
}

#header-menu a:hover {
  color: #cccccc;
}


/*---------- コンテンツ ----------*/

#container {
  width: 788px;
  overflow: hidden;
  margin: 0px;
  padding: 6px;
  background-color: #fef1fe;
}


/*---------- メインコンテンツ ----------*/

#contents {
  float: left;
  margin: 0;
  padding: 5px 10px 5px 0;
  font-size: 13px;
  line-height: 150%;
  width: 570px;
  letter-spacing: 1px;
}

#pannavi {
  margin: 0;
  padding: 0 0 5px 0;
  font-size: 12px;
}

#contents h2 {
  height: 30px;
  margin: 0 0 4px 0;
  padding: 8px 0 0 20px;
  font-size: 13px;
  color: #583822;
  background-image: url(img/titlebar.gif);
  background-repeat: no-repeat;
}

#contents h3 {
  margin: 12px 5px 10px 6px;
  padding: 8px 10px 5px 13px;
  line-height: 110%;
  font-size: 12px;
  color: #444444;
  border-left: solid 5px #aaaaaa;
  background-color: #eeeeee;
}

#contents p {
  margin: 15px 0 15px 0;
  padding: 0 5px 0 5px;
  line-height: 160%;
  
}

#contents a {
  color: #583822;
  font-size: 12px;
}

#contents a:hover {
  color: #765c47;
  font-size: 12px;
}

#contents img.head_photo {
  margin: 0 0 10px 0;
}

#contents img.photo {
  float: left;
  margin: 10px 20px 0 0;
}

#contents img.picture {
  margin: 0 10px 10px 0;
  float: left;
}

#contents p.photo {
  margin: 0 0 15px 0;
  padding: 0;
}

#contents ul {
  text-align: left;
  margin: 0px;
  padding: 0px
}

#contents li {
  
  
  padding-left: 25px;
  padding-right: 0px;
  background: url(emoji/296[1].gif) no-repeat;
  background-position: left center;
}




table#t01 {
  border: solid 1px #999999;
  border-collapse: collapse;
}


td#t01 {
  border: solid 1px #999999;
  border-collapse: collapse;
}


td#head {
  padding: 7px 6px 5px 10px;
  border: solid 1px #999999;
  border-collapse: collapse;
  background-image: url(img/item_block_bg.gif);
}


table.table_line {
  border-collapse: collapse;
  margin : 10px 0 0 0;
}


td.table_line {
  border-collapse: collapse;
  padding : 9px 14px 7px 14px;
  border-bottom: solid 2px #fffffc;
}





/*---------- メニュー ----------*/

#menu {
  float: right;
  margin: 0 0 15px 0;
  padding: 0;
  width: 190px;
  text-align: left;
  background-image: url(img/menu_back.gif);
  letter-spacing: 1px;
}

#menu h2 {
  height: 19px;
  margin: 0;
  padding: 7px 0 0 12px;
  font-size: 12px;
  color: #fffffc;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
}

#menu p {
  margin: 0;
  padding: 10px 4px 2px 4px;
  font-size: 12px;
  background-color: #f3f3f2;
  line-height: 180%;
}

.menulist {
  margin: 0 0 15px 0;
  padding: 5px 2px 0px 5px;
  width: 180px;
  text-align: left;
  background-image: url(img/menu_back.gif);
}

.menulist h2 {
  height: 19px;
  margin: 0;
  padding: 7px 0 0 12px;
  font-size: 12px;
  color: #fffffc;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
}

.menulist a{
  color: #583822;
  display: block;
  border-right: solid 1px #cfcfcf;
  border-bottom: solid 1px #cfcfcf;
  border-left: solid 1px #cfcfcf;
  width: 154px;
  padding: 7px 4px 3px 20px;
  font-size: 12px;
  line-height: 180%;
  text-decoration: none;
  background-image: url(img/side_menu_bg.gif);
  background-repeat: no-repeat;
 }

.menulist a:hover{
  color: #765c47;
  text-decoration: underline;
  background-image: url(img/side_menu_bg_hover.gif);
  background-repeat: no-repeat;
}


.menu_free {
  margin: 0 0 14px 0;
  padding: 5px 2px 0px 5px;
  width: 180px;
  text-align: left;
  background-image: url(img/menu_back.gif);
}

.menu_free h2 {
  height: 19px;
  margin: 0;
  padding: 7px 0 0 12px;
  font-size: 12px;
  color: #fffffc;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
}

.menu_free a{
  color: #583822;
  padding: 6px 0 5px 0;
  font-size: 12px;
 }

.menu_free a:hover{
  color: #765c47;
}

.menu_free p{
  margin: 0;
  padding: 10px 4px 0 4px;
  font-size: 12px;
  line-height: 180%;
}

#news {
  width: 558px;
  height: 350px;
  overflow: auto;
  font-size: 12px;
  background-color: #ffffff;
  padding: 5px;
  margin: 12px 0 10px 0;
  border-top: 1px;
  border-right: 1px;
  border-bottom: 1px;
  border-left: 1px;
  border-style: solid;
  border-color: #999999;
}


/*---------- フッター ----------*/

#footer {
  clear: both;
  width: 100%;
  margin: 0;
  padding: 12px 0 5px 0;
  text-align: center;
  font-size: 12px;
  color: #333333;
  border-top: solid 3px;
  border-top-color: #765c47;
  background-color: #eeeeee;
}

#footer a {
  color: #333333;
  font-size: 12px;
 }

#footer a:hover {
  color: #333333;
}











/* メディアクエリでモバイル対応 */
@media screen and (max-width: 768px) {



#contents img.head_photo, #contents img.photo, #contents img.picture {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 10px 0; /* 左右のマージンをゼロに */
        display: block;
    }
    
    
    body {
        overflow-x: hidden; /* 横スクロールを禁止 */
        width: 100%;
        margin: 0;
        padding: 0;
    }

#main {
        width: 100%;
        max-width: 100%;
        border: none;
        box-sizing: border-box;
    }


 #main, #header-inner, #header-img, #container, #contents, #news, #menu {
    width: 100%;
    max-width: 100%;
	box-sizing: border-box;
  }
  
  
  .hamburger-icon {
    display: block;
     position: fixed; /* スクロール追従 */
    top: 52px;
    right: 10px;
    background: #fafecb;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1000;
  }


  

table {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        table-layout: auto; /* fixedからautoに変更してコンテンツに適応 */
    }

    td {
        word-break: break-word; /* 長いテキストを折り返す */
        padding: 5px; /* パディングを小さめに */
    }


  #table-left {
    flex: 1;
    padding: 10px 0 0 10px;
    font-size: 0.8rem;
  }
  
  #table-left h1 {
        font-size: 0.7rem; /* H1を小さく（約14px） */
        margin: 0;
        line-height: 1.2;
    }

    #table-left h2 {
        font-size: 0.7rem; /* H2を小さく（約12px） */
        margin: 5px 0 0 0;
        line-height: 1.2;
    }

  #table-right {
    display: block;
    flex: 1;
    text-align: right;
    padding: 10px 10px 2px 0;
    font-size: 0.6rem;
    color: #a9a9a9;
    line-height: 1.2;
  }
	
	
    /* ヘッダーの幅を調整 */
    #header {
        width: 100%;
        height: auto;
        background-size: cover;
    }
	
    /* ヘッダーメニューを非表示（必要に応じて調整） */
    #header-menu {
        display: none; /* モバイルでは非表示 */
    }

	
	
	#header-img img.head_photo {
        max-width: 100%;
        width: 100%; /* 親要素にフィット */
        height: auto;
        display: block;
        margin: 10px auto;
    }
	
	
	
    /* コンテンツエリアの幅を100%に */
    #container {
        width: 100%;
        padding: 0;
    }

    #contents {
        width: 100%;
        padding: 10px;
        float: none;
        font-size: 16px; /* テキストサイズを大きく（例: 16px） */
    }

	#contents li {
        list-style-type: none; /* デフォルトのマーカー（・）を除去 */
        padding-left: 25px;
        padding-right: 0;
        background: url(emoji/296[1].gif) no-repeat;
        background-position: left center;
    }
	
	
    /* メニューをコンテンツの下に配置 */
    #menu {
        width: 100%;
        float: none;
        margin: 0;
        padding: 10px;
        background-image: none;
        background-color: #f3f3f2;
    }

    .menulist {
        width: 100%;
        padding: 0;
    }

    .menulist a {
        width: 100%;
        box-sizing: border-box;
    }

    #news {
        width: 100%;
        max-width: 100%;
        height: 300px; /* 固定高さを設定 */
        overflow-y: auto; /* 縦スクロールを有効 */
        margin: 10px 0;
        padding: 5px;
        box-sizing: border-box;
        background-color: #ffffff;
        border: 1px solid #999999;
    }

    
	
	#contents img.head_photo, #contents img.photo, #contents img.picture {
        max-width: 100%;
        width: 100%; /* 親要素にフィット */
        height: auto;
        float: none;
        margin: 10px auto;
        display: block;
    }
	


    /* インラインフレーム（コメントアウトされている場合の予防） */
    iframe {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* フッターの調整 */
    #footer {
        width: 100%;
        padding: 10px;
    }
}








/* デスクトップ用の既存レイアウトを維持 */
@media screen and (min-width: 769px) {
    
    
    
    
    
    
    
    
    
    #menu {
        float: right;
        width: 190px;
    }
	
	.hamburger-icon {
        display: none;
    }

    #contents {
        float: left;
        width: 570px;
    }

    #header-menu {
        display: block;
    }

    
	
	
	#table-left {
        flex: 1;
        padding: 5px 0 0 3px; /* 左に3pxの余白、既存の上部パディングを維持 */
        text-align: left;
        min-width: 0;
    }

    #table-left h1 {
        font-size: 10px; /* デスクトップの元のサイズ */
    }

    #table-left h2 {
        font-size: 12px; /* デスクトップの元のサイズ */
    }

    #table-right {
        font-size: 10px; /* デスクトップの元のサイズ */
    }
}
