@charset "shift_jis";


/*---------- ページ全体の指定 ----------*/

body {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino KaKu Gothic Pro", "ＭＳ Ｐゴシック", "MS P Gothic", Osaka, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #333;
  background-image: url(img/back.gif);
  background-repeat: no-repeat;
  background-position: center top;
}

a:link {
  color: #004080;
  font-size: 12px;
}

a:hover {
  color: #005ebb;
  font-size: 12px;
}

a:visited {
  color: #004080;
  font-size: 12px;
}

p {
  margin: 18px 0 18px 0;
  line-height: 180%;
  letter-spacing: 1px;
}


/*---------- メイン ----------*/

#main {
  margin: 0 auto 0 auto;
  padding: 0;
  width: 800px;
  background-color: #ffffff;
}


/*---------- ヘッダー ----------*/

#header {
  margin: 0;
  width: 800px;
  height: 75px;
  background-color: #ffffff;
  border-bottom: solid 3px #004080;
  background-image: url(img/header.jpg);
  background-repeat: no-repeat;
}

#header h1 {
  margin: 0;
  padding: 2px 0 0 10px;
  font-weight: normal;
  text-align: left;
  font-size: 10px;
  color: #666666;
}

#header h2 {
  margin: 0;
  padding: 25px 10px 10px 15px;
  width: 400px;
  text-align: left;
  font-size: 14px;
  color: #666666;
  letter-spacing: 1px;
}


#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: 8px 14px 2px 0;
  font-size: 16px;
  color: #c9171e;
  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 {
  background-color: #333333;
  margin: 0px;
  padding: 17px 0 15px 15px;
  border-bottom: solid 2px #ffffff;
  background: url(img/head_menu_back.gif);
  background-repeat: repeat-x;
  text-align: left;
  width: auto;
  box-sizing: border-box;
}

#header-menu ul {
  text-align: left;
  padding-bottom: 1px;
  margin: 0px;
  padding: 0px;
}

#header-menu li {
  color: #ffffff;
  display: inline;
  padding-left: 12px;
  padding-right: 7px;
  background: url(img/l_icon.gif) no-repeat;
  background-position: left center;
}

#header-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
}

#header-menu a:hover {
  color: #cccccc;
  font-size: 12px;
}


/*---------- コンテンツ ----------*/

#container {
  width: 788px;
  overflow: hidden;
  margin: 0px;
  padding: 6px;
  background-color: #ffffff;
  box-sizing: border-box;
}


/*---------- メインコンテンツ ----------*/

#contents {
  float: right;
  margin: 0;
  padding: 5px 8px 5px 0;
  font-size: 12px;
  line-height: 180%;
  letter-spacing: 1px;
  width: 590px;
  box-sizing: border-box;
}

#contents h2 {
  margin: 0 0 4px 0;
  padding: 9px 0 7px 14px;
  line-height: 110%;
  font-size: 12px;
  color: #004080;
  background-image: url(img/titlebar.gif);
  background-repeat: no-repeat;
}

#contents p {
  margin: 18px 0 18px 0;
  padding: 0 5px 0 5px;
  line-height: 180%;
  letter-spacing: 1px;
}

#contents a {
  color: #004080;
  font-size: 12px;
}

#contents a:hover {
  color: #005ebb;
  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 20px 0;
  padding: 0;
}

table#t01 {
  border: solid 1px #999999;
  border-collapse: collapse;
}


td#t01 {
  border: solid 1px #999999;
  border-collapse: collapse;
}


td#head {
  padding: 6px;
  border: solid 1px #999999;
  border-collapse: collapse;
}


/*---------- メニュー ----------*/

#menu {
  float: left;
  margin: 0 0 15px 0;
  padding: 0;
  width: 170px;
  bottom: 0;
  text-align: left;
  background-image: url(img/menu_back.gif);
  box-sizing: border-box;
}

#menu h2 {
  margin: 0 0 2px 0;
  padding: 7px 0 5px 12px;
  line-height: 110%;
  font-size: 12px;
  color: #fffffc;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
  box-sizing: border-box;
}


.menulist {
  margin: 0 0 15px 0;
  padding: 5px 2px 0px 5px;
  width: 160px;
  text-align: left;
  background-image: url(img/menu_back.gif);
  box-sizing: border-box;
}

.menulist h2 {
  margin: 0;
  padding: 6px 0 6px 12px;
  line-height: 110%;
  font-size: 12px;
  color: #fffffc;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
  box-sizing: border-box;
}


/*---------- サイドメニューの修正版 ----------*/

.menulist a {
  color: #004080;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border-bottom: solid 1px #9f9f9f;
  padding: 7px 4px 3px 18px;
  font-size: 12px;
  line-height: 160%;
  text-decoration: none;
  background-image: url(img/side_menu_bg.gif);
  background-repeat: no-repeat;

  /* 長い文字が右にはみ出さないようにする */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}

.menulist a:hover {
  color: #005ebb;
  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: 160px;
  text-align: left;
  letter-spacing: 1px;
  background-image: url(img/menu_back.gif);
  box-sizing: border-box;
}

.menu_free h2 {
  margin: 0;
  padding: 6px 0 6px 12px;
  line-height: 110%;
  font-size: 12px;
  color: #fffffc;
  background-image: url(img/sidebar.gif);
  background-repeat: no-repeat;
  box-sizing: border-box;
}

.menu_free a {
  color: #004080;
  width: 138px;
  padding: 6px 0 5px 0;
  font-size: 12px;
  background-color: #f3f3f2;
  box-sizing: border-box;
}

.menu_free a:hover {
  color: #005ebb;
  background-color: #f3f3f2;
}

.menu_free p {
  margin: 10px 4px 0 4px;
  font-size: 12px;
  background-color: #f3f3f2;
  line-height: 180%;
  letter-spacing: 1px;
}

#menu p {
  margin: 10px 4px 0 4px;
  line-height: 180%;
}


/*---------- フッター ----------*/

#footer {
  clear: both;
  width: 100%;
  height: 90px;
  margin: 20px 0 0 0;
  padding: 40px 0 15px 0;
  text-align: center;
  font-size: 12px;
  color: #333333;
  background-color: #cccccc;
  box-sizing: border-box;
}

#footer a {
  color: #333333;
  font-size: 12px;
}

#footer a:hover {
  color: #333333;
}


/*---------- メイン画像 ----------*/

.photo01 {
  max-width: 100%;
  height: auto;
}


/*==================================================
  スマートフォン・タブレット対応
==================================================*/

@media screen and (max-width: 800px) {

  /* ページ全体 */

  #main {
    width: 100%;
    box-sizing: border-box;
  }


  /* ヘッダー */

  #header {
    width: 100%;
    height: auto;
    min-height: 75px;
    box-sizing: border-box;
    background-size: cover;
  }


  /* ヘッダー内の電話番号など */

  #header table {
    width: 100% !important;
    box-sizing: border-box;
  }

  #table-left,
  #table-right {
    box-sizing: border-box;
  }

  #table-left img {
    max-width: 100%;
    height: auto;
  }

  #table-right {
    padding-right: 8px;
    font-size: 14px;
  }


  /* 上部メニュー */

  #header-menu {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 5px;
  }

  #header-menu ul {
    width: 100%;
    box-sizing: border-box;
  }

  #header-menu li {
    display: inline-block;
    padding: 4px 7px 4px 12px;
    line-height: 150%;
    box-sizing: border-box;
  }

  #header-menu a {
    font-size: 12px;
  }


  /* メイン画像 */

  .photo01 {
    display: block;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
  }


  /* コンテンツ全体 */

  #container {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
  }


  /* メインコンテンツ */

  #contents {
    float: none;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
  }


  /* サイドメニュー */

  #menu {
    float: none;
    width: 100%;
    box-sizing: border-box;
  }

  .menulist {
    width: 100%;
    box-sizing: border-box;
  }

  .menulist a {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    /* スマホでも文字を右側からはみ出させない */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
  }


  /* フリーメニュー */

  .menu_free {
    width: 100%;
    box-sizing: border-box;
  }

  .menu_free a {
    max-width: 100%;
    box-sizing: border-box;
  }


  /* 本文の文字 */

  #contents p {
    overflow-wrap: break-word;
    word-break: normal;
  }


  /* フッター */

  #footer {
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 90px;
    padding: 40px 10px 15px;
  }

}

/*---------- 上部メニューの右端切れ対策 ----------*/

#header-menu {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 8px 10px 8px;
  overflow: visible;
}

#header-menu ul {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#header-menu li {
  display: block;
  box-sizing: border-box;
  padding: 4px 6px 4px 12px;
  line-height: 150%;
  white-space: nowrap;
}

#header-menu a {
  display: inline-block;
  font-size: 12px;
  white-space: nowrap;
}

