/* =========================================================
   せき眼科医院：静的化の調整 ＋ スマホ表示
   旧テーマの style.css の後に読み込む
   ========================================================= */

/* ---- 共通（静的化の調整） ---- */
body, h1, h2, h3, h4, h5, h6, p, th, td, ol, ul, li, dl, dt, dd {
  font-family: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'Noto Sans JP', sans-serif;
}
#catchArea h2 img, .top-banner img, .side-banner img, .side-top-box img, #side-navi img, .b-contact img { display: block; }
#head-tel a { display: block; }
#sp-menu-btn, #sp-fixed, .sp-only { display: none; }
iframe { max-width: 100%; }
.news-body img { max-width: 100%; height: auto; }
.news-files { list-style: none; margin: 0 0 18px; }
.news-files li { margin-bottom: 6px; }
.news-files a { display: inline-block; border: 1px solid #4C6CC5; padding: 2px 14px; text-decoration: none; }
.news-files a::after { content: "PDF"; font-size: 10px; color: #fff; background: #E23733; border-radius: 3px; padding: 0 4px; margin-left: 8px; }
.news-item h3 { margin-bottom: 6px; }
.news-date { font-size: 12px; color: #777; margin-bottom: 4px; }
.postmeta p span { margin: 0 6px; }
.wp-pagenavi a, .wp-pagenavi span { display: inline-block; border: 1px solid #BFBFBF; padding: 2px 9px; margin: 2px; text-decoration: none; }
.wp-pagenavi .current { font-weight: bold; border-color: #4C6CC5; }

/* 受付時間表（旧サイトは画像 time.jpg。HTMLの表に作り直し） */
table.time-t { width: 100%; border-collapse: collapse; margin-bottom: 6px; font-size: 14px; }
.time-t th, .time-t td { border: 1px solid #CCCCCC; text-align: center; vertical-align: middle; padding: 6px 2px; line-height: 1.3; }
.time-t thead th { background: #F2F1EF; font-size: 17px; font-weight: bold; height: 34px; }
.time-t thead th.sat { background: #E5EAF8; color: #4C6CC5; }
.time-t thead th.sun { background: #FBE6EA; color: #D6245A; }
.time-t tbody th { background: #F2F1EF; font-weight: normal; font-size: 16px; width: 24%; height: 52px; }
.time-t tbody th b { display: block; font-size: 17px; letter-spacing: .3em; }
.time-t .mk { display: inline-block; width: 12px; height: 12px; border: 4px solid #4C6CC5; border-radius: 50%; vertical-align: middle; }
.time-t .kome { color: #4C6CC5; font-size: 20px; }
.time-t .off { color: #D6245A; font-weight: bold; font-size: 13px; }
.time-t .note { display: block; color: #4C6CC5; font-weight: bold; font-size: 11px; margin-top: 2px; }
.time-t td.sat { width: 9%; }

/* ---- タブレット・PC幅は旧サイトのまま（viewport を 960px にして縮小表示） ---- */

/* ---- スマホ ---- */
@media (max-width: 767px) {
  body { -webkit-text-size-adjust: 100%; padding-bottom: 64px; }
  body, p, th, td, li, dt, dd { font-size: 15px; }
  #wrapper { overflow-x: hidden; }

  /* ヘッダー */
  #header-area { height: auto; background-size: auto; }
  #header { width: auto; height: 74px; }
  #header h1 { display: none; }
  #header #logo { top: 12px; left: 10px; width: 210px; height: 50px; }
  #header #logo a { height: 50px; background-size: 210px 50px; background-repeat: no-repeat; }
  #head-info, #head-tel { display: none; }
  #sp-menu-btn {
    display: block; position: absolute; right: 8px; top: 13px; width: 48px; height: 48px;
    border: 0; border-radius: 6px; background: #4C6CC5; padding: 0; cursor: pointer;
  }
  #sp-menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto; transition: .2s; }
  .menu-open #sp-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open #sp-menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open #sp-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* メニュー（画像の代わりに文字で） */
  #globalNavi { display: none; background: #fff; border-top: 3px solid #4C6CC5; margin: 0; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
  .menu-open #globalNavi { display: block; }
  #globalNavi ul { width: auto; }
  #globalNavi li { display: block; float: none; border-bottom: 1px solid #E3E3E3; }
  #globalNavi li a, #globalNavi li a:hover {
    width: auto !important; height: auto; background: none !important; text-indent: 0;
    padding: 13px 16px; color: #333; text-decoration: none; font-size: 16px;
  }
  #globalNavi li a::after { content: "›"; float: right; color: #4C6CC5; font-size: 20px; line-height: 1; }
  #globalNavi li.sp-only { display: block; }

  /* メイン画像 */
  #catchArea-area { height: 8px; margin-bottom: 10px; }
  .home #catchArea-area { height: auto; padding-bottom: 8px; }
  .home #catchArea-area-bg, #topflash, #topflash #nofla { height: auto; }
  #topflash #tophead { height: 0; padding-top: 42%; background-size: cover; background-position: center; }

  /* 2カラム → 1カラム */
  #main { width: auto; margin: 12px 14px 30px; }
  #contents { width: auto; float: none; margin: 0; }
  #side_right { width: auto; float: none; margin: 30px auto 0; max-width: 360px; }
  #catchArea { width: auto; height: auto; margin-bottom: 16px; }
  #catchArea h2 img { width: 100%; height: auto; }
  #contents img { max-width: 100%; height: auto; }
  #contents div { width: auto !important; max-width: 100%; float: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  #contents p, #contents dl, #contents ul, #contents h3, #contents h4 { width: auto !important; max-width: 100%; float: none !important; }
  #contents li { max-width: 100%; }
  .top-banner { width: auto !important; }
  #top-aisatu div { text-align: center; margin-bottom: 18px !important; }
  #top-aisatu div img { margin: 0 auto; }
  #contents table { max-width: 100%; }
  #contents iframe { width: 100%; }
  #gm-area iframe { height: 280px; }
  #contents .doctor-t th { width: 30%; }
  h3, .mati h3 { line-height: 1.4; background-size: 100% auto; font-size: 18px; }
  .home h3.top-bar img { display: none; }
  .home h3.top-bar::before { content: attr(data-sp); }
  .home h3.top-bar { padding: 10px 0 16px; font-size: 18px; line-height: 1.4; margin-bottom: 20px; background: url(/assets/img/h3-bg.jpg) no-repeat bottom; background-size: 100% auto; }
  .news-body h1, .news-body h2 { font-size: 21px; line-height: 1.4; margin: 10px 0; }
  #top-banner-area { width: auto; margin: 0 0 10px; }
  .top-banner { float: none !important; margin: 0 0 8px !important; text-align: center; }
  .top-banner img { margin: 0 auto; }
  #news li a { margin-left: 0; display: block; }
  .sickness-link-t td { display: block; width: auto !important; }
  .time-t { font-size: 12px; }
  .time-t thead th { font-size: 14px; }
  .time-t tbody th { font-size: 12px; width: 22%; }
  .time-t tbody th b { font-size: 14px; letter-spacing: .1em; }
  .time-t .mk { width: 9px; height: 9px; border-width: 3px; }
  .time-t .off, .time-t .note { font-size: 10px; }

  /* サイド */
  #side-top { margin: 0 auto 10px; }
  #side_right > p, .side-banner, #side-navi, #side-info { text-align: center; }
  .side-banner img, #side_right > p img, #side-navi img { margin: 0 auto; }
  #side-navi ul li { height: auto; }
  #side-logo { margin: 8px auto; }

  /* フッター */
  #footer-area { height: auto; background-size: auto 100%; background-color: #E3E8F6; padding: 40px 14px 0; }
  #footer { width: auto; }
  #footer .pagetop { top: -40px; }
  #footer #logo, #footer-address, #footer-navi, address { position: static; width: auto; height: auto; }
  #footer #logo { width: 156px; margin: 0 auto; }
  #footer #logo a { background-repeat: no-repeat; }
  #footer-address { text-align: center; margin: 6px 0 10px; }
  #footer-navi p { text-align: center; line-height: 2; font-size: 13px; }
  address { margin: 12px -14px 0; padding: 6px 10px; background: #4C6CC5; }

  /* 画面下の電話ボタン */
  #sp-fixed {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255,255,255,.96); box-shadow: 0 -2px 8px rgba(0,0,0,.15); padding: 8px 10px;
  }
  #sp-fixed a {
    display: block; background: #4C6CC5; color: #fff; text-align: center; text-decoration: none;
    border-radius: 6px; padding: 8px 0; font-size: 18px; font-weight: bold; line-height: 1.3;
  }
  #sp-fixed a small { display: block; font-size: 11px; font-weight: normal; }
}
