@charset "utf-8";
/* スマホ対応（768px以下のみ。PC表示は現行デザインのまま） */

@media screen and (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  /* 背景の飾り帯（bg.gif）はスマホでは要素とズレて被るため外す */
  body {
    background-image: none;
  }

  #wrapper {
    width: auto;
    padding: 12px 0 0;
    background: none;
  }

  /* ヘッダー */
  #header {
    width: auto;
    height: auto;
    padding: 0 4% 12px;
  }

  #header_left {
    width: auto;
    float: none;
  }

  #header_right {
    width: auto;
    float: none;
    margin-top: 8px;
  }

  #header_right #header_link {
    width: auto;
    height: auto;
    float: none;
  }

  #header_right #header_link p {
    display: inline-block;
    margin: 0 8px 6px 0;
  }

  #header_right p#tel {
    width: auto;
    height: auto;
    float: none;
    text-align: left;
  }

  /* メイン画像 */
  #main_img {
    width: auto;
    margin: 0 4% 20px;
  }

  /* メニュー（「メニュー」ボタンで開閉するアコーディオン） */
  #menu-toggle {
    display: block;
    width: 92%;
    margin: 0 4% 8px;
    padding: 12px 10px;
    border: 1px solid #5a9440;
    border-radius: 6px;
    background: #6aa844;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.1em;
  }

  #menu-toggle::after {
    content: "▼";
    margin-left: 8px;
    font-size: 11px;
  }

  #menu.open + #menu-toggle::after,
  #menu-toggle[aria-expanded="true"]::after {
    content: "▲";
  }

  #menu {
    width: auto;
    height: auto;
    margin: 0 4% 20px;
  }

  #menu ul {
    display: none;
  }

  #menu.open ul {
    display: block;
    border: 1px solid #5a9440;
    border-radius: 6px;
    overflow: hidden;
  }

  #menu ul li {
    float: none;
    height: auto;
    border-bottom: 1px solid #5a9440;
  }

  #menu ul li:last-child {
    border-bottom: none;
  }

  #menu ul li.ml7 {
    margin-left: 0;
  }

  /* 画像ボタンを隠し、title属性の文字で等幅ボタン化 */
  #menu ul li img {
    display: none;
  }

  #menu ul li a {
    display: block;
    padding: 13px 10px;
    background: #6aa844;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.08em;
  }

  #menu ul li a::after {
    content: attr(title);
  }

  /* 本文 */
  #contents,
  #sub_contents {
    width: auto;
  }

  /* 7px幅の飾り帯はスマホでは切れ端になるため非表示 */
  #contents_top,
  #contents_top2,
  #sub_contents_top {
    display: none;
  }

  #contents {
    padding: 11px 0 0;
  }

  #left_contents {
    width: auto;
    float: none;
    padding: 0 4%;
  }

  #left_contents h3,
  #left_contents p {
    width: auto;
  }

  #right_contents {
    width: auto;
    float: none;
    border-left: none;
    padding: 0 4%;
    margin-top: 20px;
  }

  #sub_contents {
    padding: 0 4%;
  }

  h2.pagetit {
    width: auto;
    margin: 0 4%;
  }

  h2.pagetit img {
    width: 100%;
    height: auto;
  }

  /* 見出し帯の固定幅を解除 */
  h3.subtit {
    width: auto;
    background-size: 100% 100%;
  }

  /* 会社概要の表を縦積みに */
  #contents table.comp_box {
    width: 100%;
  }

  #contents table.comp_box th,
  #contents table.comp_box td {
    display: block;
    width: auto;
    height: auto;
  }

  #contents table.comp_box th {
    border-bottom: none;
  }

  #contents .subbox,
  #contents .subbox p.text {
    width: auto;
  }

  /* フッター */
  #footer {
    width: auto;
    padding: 12px 4%;
  }

  #footer p {
    width: auto;
    line-height: 2;
  }

  #add {
    width: auto;
    padding: 8px 4%;
  }

  address {
    width: auto;
    padding: 0 4% 14px;
  }

  /* タップ発信バー */
  #mihon-call {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
  }

  #mihon-call a {
    display: block;
    text-align: center;
    padding: 14px 10px;
    background: #2f6e33;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.05em;
  }

  /* 発信バーと重ならないよう余白 */
  body {
    padding-bottom: 56px;
  }
}
