@charset "utf-8";
/* ==========================================================================
   レスポンシブ対応CSS
   - PC版(960px以上)には一切影響を与えない
   - メディアクエリ内のスタイルのみ
   ========================================================================== */

/* --- ハンバーガーメニュー（PC時は非表示） --- */
.mobile-menu-btn {
  display: none;
}
.mobile-nav-overlay {
  display: none;
}

/* ==========================================================================
   959px以下（タブレット・スマホ）
   ========================================================================== */
@media screen and (max-width: 959px) {

  /* --- 共通リセット --- */
  * {
    box-sizing: border-box;
  }

  body {
    min-width: 0 !important;
    overflow-x: hidden;
  }

  /* --- h1バー（SEO用テキスト）--- */
  #h1wrap {
    height: auto !important;
    width: 100% !important;
  }
  #h1wrap h1 {
    width: auto !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    height: auto !important;
    padding: 2px 10px !important;
  }

  /* --- ヘッダー --- */
  #headerwrap {
    height: auto !important;
    width: 100% !important;
  }
  #header {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
    min-height: 60px;
  }

  /* ヘッダー背景画像 */
  #outtipimage331654a23a0f186e95dc1530d2b99005 {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    border: none !important;
  }
  #outtipimage331654a23a0f186e95dc1530d2b99005 img {
    width: 100%;
    height: auto;
  }

  /* ロゴ */
  #outtipimage2ae3bfd58b5786af1ae5167badbbe27b {
    position: absolute !important;
    width: 55% !important;
    max-width: 280px;
    height: auto !important;
    top: 10px !important;
    left: 10px !important;
    border: none !important;
  }
  #outtipimage2ae3bfd58b5786af1ae5167badbbe27b img {
    width: 100%;
    height: auto;
  }

  /* ヘッダーのお問い合わせリンク */
  #toiawase_link {
    display: none !important;
  }

  /* --- サイドバーナビゲーション非表示 --- */
  #navigation {
    display: none !important;
  }

  /* --- メインコンテナ --- */
  #bigcontainer {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }

  /* --- コンテンツエリア --- */
  #container {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 10px !important;
    font-size: 100% !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  /* コンテナ内の全absolute要素をstaticに（coating/company/quality等） */
  #container > div,
  #container > h2,
  #container > h3,
  #container > p,
  #container > img {
    position: static !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    overflow: visible !important;
    margin-bottom: 15px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: none !important;
    z-index: auto !important;
    clip: auto !important;
    max-width: 100% !important;
  }

  /* コンテナ内divの子要素も確実に表示 */
  #container > div > *,
  #container > div > * > * {
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    float: none !important;
  }

  /* コンテナ内の全画像をレスポンシブに */
  #container img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #header img {
    max-width: 100%;
    height: auto;
  }

  /* h2見出しバー */
  #container > h2 {
    background-size: 100% 100% !important;
    padding: 5px 10px 5px 25px !important;
    line-height: 1.6 !important;
    min-height: 30px;
    font-size: 14px !important;
    color: #fff !important;
    background-color: #0b9cc8 !important;
  }

  /* h3見出し */
  #container > h3 {
    padding: 5px 10px 5px 25px !important;
    line-height: 1.6 !important;
    font-size: 13px !important;
    font-weight: bold !important;
    border-left: 4px solid #0b9cc8;
    background-color: #f5f5f5 !important;
  }

  /* テキスト読みやすさ */
  #container span.textstyle3,
  #container span.textstyle5,
  #container span.textstyle6,
  #container span.textstyle10 {
    font-size: 13px !important;
    line-height: 170% !important;
  }
  #container span.textstyle4 {
    font-size: 14px !important;
    line-height: 170% !important;
  }

  /* --- index.html 固有 --- */
  /* メインビジュアル */
  #container .imgbox {
    margin: 10px 0 !important;
  }
  #container .imgbox img {
    width: 100%;
    height: auto;
  }

  /* 特徴セクション */
  #container .topimg {
    width: auto !important;
    height: auto !important;
    margin: 15px 0 !important;
    padding-bottom: 20px !important;
  }
  #container .topimg2 {
    width: auto !important;
    height: auto !important;
    margin: 10px 0 !important;
  }
  #container .toptext {
    padding: 10px !important;
  }
  #container .ptext {
    margin: 10px !important;
  }
  #container .ptext2 {
    margin: 10px !important;
    height: auto !important;
  }

  /* テキストスタイル11（index特徴テキスト） */
  .textstyle11 {
    font-size: 15px !important;
    line-height: 150% !important;
  }
  .textstyle2 b {
    font-size: 15px !important;
  }

  /* ポイントアイコン */
  .leftimg {
    float: left;
    margin-right: 10px;
    margin-bottom: 5px;
    width: 40px !important;
    height: 40px !important;
  }

  /* english画像 */
  .english_img {
    margin-left: 0 !important;
    width: 100%;
    height: auto;
  }

  /* 3カラムレイアウト → 1カラム */
  #wrapperbox {
    width: 100% !important;
    padding: 0 !important;
  }
  #wrapperbox .threebox {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }
  #wrapperbox .part {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 25px 0 !important;
    padding-bottom: 15px;
    background-size: 100% auto;
    background-position: center top !important;
  }
  #wrapperbox h2 {
    width: auto !important;
    height: auto !important;
    margin: 6px 0 !important;
    line-height: 33px !important;
    background-size: 100% 100% !important;
  }
  #wrapperbox a h2 {
    text-decoration: none;
  }
  .partimg {
    margin-left: 0 !important;
    width: 100% !important;
    height: auto !important;
  }
  .detailimg {
    margin-top: 10px !important;
  }

  /* バナーエリア */
  .bannar_area {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 15px !important;
  }
  .bannar_area img {
    width: 100% !important;
    height: auto !important;
  }
  .centerimg {
    width: 100% !important;
    height: auto !important;
  }

  /* --- coating07/08（Qアイテム）固有 --- */
  .midasi {
    margin-bottom: 15px;
  }
  .midasi img {
    width: 100%;
    height: auto;
  }
  .setumei {
    margin: 10px 0 20px !important;
    padding: 0 5px;
  }
  .box2 {
    overflow: visible !important;
    margin-bottom: 10px;
  }
  .kouka {
    float: none !important;
    width: 100% !important;
    margin-bottom: 20px;
    overflow: hidden;
  }
  .kouka .imgbox {
    text-align: center;
    margin-bottom: 10px;
  }
  .kouka .imgbox img {
    max-width: 180px;
    height: auto;
  }

  /* --- テーブル（横スクロール対応） --- */
  table {
    width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  table tbody {
    display: table;
    width: 100%;
    min-width: 500px;
  }
  .table_data {
    white-space: normal;
  }
  .table_data tbody {
    min-width: 600px;
  }

  /* --- company.html Google Map --- */
  iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
  }

  /* --- quality.html 品質方針テキスト --- */
  .policy_text {
    font-size: 14px !important;
    line-height: 180% !important;
    font-weight: bold;
  }

  /* --- privacy.html（インラインstyleのdivが1つだけの構造用） --- */
  /* 注: coating系ページの div[style="z-index: 10;"] には影響させない */

  /* --- フッター --- */
  #footer {
    width: 100% !important;
    height: auto !important;
    padding: 15px 10px !important;
    background-size: cover !important;
  }
  #footer > p.contentslink {
    max-width: 100% !important;
    text-align: center !important;
    line-height: 2.2 !important;
  }
  #footer > p.contentslink a {
    white-space: nowrap;
  }

  /* --- coating01 カードレイアウト --- */
  .coating-card {
    padding: 12px 10px 12px 15px !important;
    margin: 12px 0 !important;
  }
  .card-accent-bar {
    position: static !important;
    width: 40px !important;
    height: 6px !important;
    margin-bottom: 8px !important;
  }
  .fa-item {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
  }
  .section-heading {
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .section-text {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-header-img {
    max-width: 100% !important;
    margin-left: 0 !important;
  }
  .grade-table {
    display: block !important;
    overflow-x: auto !important;
  }

  /* --- ハンバーガーメニュー --- */
  .mobile-menu-btn {
    display: block;
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    background: #0b9cc8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 9px 8px;
  }
  .mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* モバイルナビオーバーレイ */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 4, 110, 0.97);
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 64px 0 30px;
  }
  .mobile-nav-overlay.active {
    display: block;
  }
  .mobile-nav-overlay .mobile-nav-title {
    color: #fff;
    font-size: 12px;
    padding: 0 20px 10px;
    border-bottom: 2px solid #0b9cc8;
    margin-bottom: 0;
  }
  .mobile-nav-overlay a {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: none !important;
  }
  .mobile-nav-overlay a:hover,
  .mobile-nav-overlay a:active {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  .mobile-nav-overlay a.current-page {
    background: rgba(11, 156, 200, 0.3) !important;
    font-weight: bold;
  }
  .mobile-nav-overlay .mobile-nav-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.8;
    padding: 20px 20px 10px;
    border-top: 2px solid #0b9cc8;
    margin-top: 10px;
  }
  .mobile-nav-overlay .mobile-nav-tel {
    display: block;
    color: #fff !important;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none !important;
    background: #0b9cc8 !important;
    text-align: center;
    padding: 12px 20px;
    margin: 10px 20px;
    border-radius: 4px;
    border-bottom: none !important;
  }
}

/* ==========================================================================
   480px以下（スマートフォン縦）
   ========================================================================== */
@media screen and (max-width: 480px) {
  #h1wrap {
    display: none !important;
  }

  #container {
    padding: 8px !important;
  }

  /* フッターリンク縦並び */
  #footer > p.contentslink {
    line-height: 2.5 !important;
    font-size: 13px;
  }
  #footer > p.contentslink a {
    display: inline-block;
    padding: 2px 0;
  }

  /* index 3カラムカード */
  #wrapperbox .part {
    background-image: none !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px !important;
  }
  #wrapperbox h2 {
    background-image: none !important;
    background-color: #0b9cc8 !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 3px;
    font-size: 13px !important;
  }

  /* 見出しテキスト調整 */
  .textstyle11 {
    font-size: 14px !important;
  }

  /* テーブル文字サイズ */
  table {
    font-size: 11px !important;
  }
}
