@charset "UTF-8";
/* コンテンツ幅の調整 */
#container {
    width: 885px;
    margin: 0 auto 0 auto;
    overflow: hidden;
    padding: 12px 10px 6px 5px;
    background: #ffffff url(../img/side_yback.jpg);
    background-repeat: repeat-y;
}

/* メインコンテンツの幅を調整 */
#contents {
    float: right;
    margin: 0;
    padding: 4px 0 5px 0;
    font-size: 14px;
    width: 640px;
    letter-spacing: 0.05em;
    text-align: left;
    line-height: 1.7;
}

/* メインページタイトル */
#contents h2.page_title {
    width: 100%;
    height: auto;
    min-height: 70px; /* 高さを増やす */
    margin: 30px 0 18px 0;
    padding: 18px 34px; /* 左右のパディングも追加 */
    font-size: 20px;
    color: #4c1800;
    background-image: url(../img/page_title.gif);
    background-repeat: no-repeat;
    background-size: 100%; /* この指定が原因かも */
    box-sizing: border-box;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* セクション見出し */
#contents h2 {
    height: 45px;
    margin: 0 0 10px 0;
    padding: 11px 0 0 26px;
    font-size: 17px;
    color: #666666;
    background-image: url(../img/titlebar.gif);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 100%;
    box-sizing: border-box;
}

/* テーブルスタイル - 浮き上がり効果追加 */
#contents table#t01 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#contents table#t01:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#contents table#t01 td#head {
    background-image: url(../img/main_block_bg.gif);
    color: #444444;
    font-weight: bold;
    padding: 9px 6px 6px 15px;
    border: solid 1px #cccccc;
}

#contents table#t01 td#t01 {
    padding: 10px;
    border: solid 1px #cccccc;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

/* 画像スタイル - 浮き上がり効果 */
#contents img {
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

#contents img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* リンクスタイル */
#contents a {
    color: #885522;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contents a:hover {
    color: #bb7744;
    text-decoration: underline;
}

/* 茶色の大きなテキスト */
.brown_big {
    font-size: 16px;
    color: #4c1800;
    font-weight: bold;
}

/* 水平線 */
.line {
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 20px 0;
}

/* 画像クラス */
.picture {
    float: left;
    margin: 0 10px 10px 0;
}

/* クリアフィックス */
.clear {
    clear: both;
}

/* ページトップへ戻るボタン */
.back {
    text-align: right;
    margin: 20px 10px;
}

.scroll {
    transition: opacity 0.3s ease;
}

.scroll:hover {
    opacity: 0.8;
}

/* スライダー関連のスタイル */
.slider {
    width: 633px;
    margin: 0 auto;
}

.slide-container {
    width: 633px;
    height: auto;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-caption {
    background-color: rgba(70, 70, 70, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0px; /* 画像との間に少し余白 */
}

/* bxSliderの調整 */
.bx-wrapper {
    position: relative;
    margin: 0 auto !important;
    padding: 0;
    *zoom: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
}

.bx-wrapper .bx-viewport {
    height: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    left: 0 !important;
    overflow: hidden !important;
}

.bx-wrapper .bx-pager {
    bottom: -50px !important;
    width: 100%;
    margin-top: 50px !important;
    margin-bottom: 30px !important;
}

.bx-wrapper .bx-controls-direction a {
    z-index: 50;
}

/* サイドエリア */
#menu {
    float: left;
    width: 220px;
    padding: 0;
}

.menulist {
    margin: 0 0 28px 0;
}

.menu_free {
  margin: 0 0 28px 5px;
  padding: 0;
  width: 210px;
  text-align: left;
  background-image: url(../img/menu_back.gif);
}

/* レスポンシブ対応 */
@media screen and (max-width: 680px) {
    /* コンテナの調整 */
    #container {
        width: 100%;
        padding: 0;
        background: #ffffff;
        background-image: none;
    }

    #contents {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        float: none;
    }

    /* スライダーのモバイル調整 */
    .slider {
        width: 100%;
        margin: 0 auto 40px;
    }

    .slide-container {
        width: 100%;
    }

    .slider img {
        width: 100%;
        height: auto;
    }

    .bx-wrapper {
        width: 100%;
        margin: 0 auto !important;
    }

    .bx-wrapper .bx-viewport {
        height: auto !important;
    }

    /* （以下、モバイル用の他のスタイル設定が続く） */
    /* ... */
}