@charset "utf-8";
/*
 * いなぐま整形外科クリニック - スマホ対応レスポンシブCSS
 * =====================================================
 * 読み込み方法：既存の style.css の <link> 直後に追加
 * <link rel="stylesheet" href="/common/css/responsive.css" type="text/css">
 */

/* ============================================================
   共通：固定幅の上書き（全幅対応）
   ============================================================ */
@media only screen and (max-width: 767px) {
  body {
    min-width: 0 !important;
    width: 100% !important;
  }
  #wrapper {
    width: 100% !important;
    overflow-x: hidden;
  }
  #container {
    width: 100% !important;
    box-sizing: border-box;
  }
  #contents {
    width: 100% !important;
    box-sizing: border-box;
  }
  #headerWrap {
    width: 100% !important;
    box-sizing: border-box;
  }
  #footerWrap {
    width: 100% !important;
    box-sizing: border-box;
  }
  #mainVisual {
    width: 100% !important;
  }
}

/* ============================================================
   タブレット対応：PCナビを768px以上で表示
   (style.cssのグローバルナビが996px以上にしか効かないため)
   ============================================================ */
@media only screen and (min-width: 768px) and (max-width: 995px) {
  #mainContents, .navMenu { width: 100%; padding: 0; margin: 0 auto; }
  nav#globalNav {
    clear: both;
    overflow: hidden;
    position: relative;
    background-color: #f08200;
    border-bottom: #ef4f00 solid 3px;
    display: block !important;
  }
  nav#globalNav .navMenu { width: 100%; padding: 0 5px; box-sizing: border-box; }
  nav#globalNav ul { display: flex; width: 100%; }
  nav#globalNav ul li { float: left; position: relative; flex: 1; }
  nav#globalNav li.last { border-right: 1px solid #ebebeb; }
  nav#globalNav ul li a {
    display: block;
    text-align: center;
    font-size: 100%;
    font-weight: bold;
    width: 100%;
    height: 45px;
    padding-top: 25px;
    color: #fff;
    background-color: #f08200;
    border-left: 1px solid #ebebeb;
    text-decoration: none;
    box-sizing: border-box;
  }
  nav#globalNav ul li a span { color: #fff; font-size: 13px; }
  nav#globalNav li.active a,
  nav#globalNav li a:hover {
    color: #fff;
    background-color: #fcc872;
    padding-top: 25px;
  }
}

/* ============================================================
   共通：画像・iframeのレスポンシブ化
   ============================================================ */
img {
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
}

/* ============================================================
   ハンバーガーメニュー ボタン（常時定義、PC時は非表示）
   ============================================================ */
#hamburgerBtn {
  display: none;
  position: fixed;
  top: 30px;
  right: 12px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding: 8px;
  box-sizing: border-box;
}
#hamburgerBtn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #f08200;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
#hamburgerBtn span + span {
  margin-top: 6px;
}

/* ハンバーガー → × アニメーション */
#hamburgerBtn.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#hamburgerBtn.is-open span:nth-child(2) {
  opacity: 0;
}
#hamburgerBtn.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   スマホ用ドロワーメニュー（常時定義、PC時は非表示）
   ============================================================ */
#spNav {
  display: none;
}

/* ============================================================
   スマホ用 診療時間バー（PC時は非表示）
   ============================================================ */
#spClinicInfo {
  display: none;
}

/* ============================================================
   PC：dt内のタイトルは非表示、ddのタイトルを表示
   ============================================================ */
.dtTitle {
  display: none;
}

/* bbn: border-bottom none */
.bbn {
  border-bottom: none !important;
}


/* ============================================================
   スマホ対応 (995px以下)
   ============================================================ */
@media only screen and (max-width: 767px) {

  body {
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }
  #wrapper {
    width: 100%;
    overflow-x: hidden;
  }

  /* ---- header ---- */
  #header {
    padding: 0;
  }
  #headerWrap {
    padding: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
  #header .headerLeft {
    display: flex;
    align-items: center;
    padding: 8px 56px 8px 10px;
    position: relative;
    background: #fff6e6;
    width: 100%;
    float: none;
  }
  /* h1テキストはSEO上残しつつ視覚的に非表示 */
  #header .headerLeft h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
  }
  #header .headerLeft a {
    display: block;
    float: none;
    padding: 0;
  }
  #header .headerLeft a img {
    width: 230px;
    height: auto;
  }

  /* ハンバーガーボタン表示 */
  #hamburgerBtn {
    display: block;
  }

  /* headerRight（PC用画像）は非表示 */
  #header .headerRight {
    display: none;
  }

  /* PC用グローバルナビ非表示 */
  nav#globalNav {
    display: none;
  }

  /* ---- スマホ用診療時間バー ---- */
  #spClinicInfo {
    display: block;
    background: #fff6e6;
    border-top: 1px solid #f39801;
    /*border-bottom: 1px solid #f39801;*/
    padding: 8px 10px;
  }
  #spClinicInfoInner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .spInfoTime {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.6;
    color: #666;
  }
  .spInfoLabel {
    font-weight: bold;
    color: #f39801;
    font-size: 14px;
  }
  .spInfoTime .time {
    font-size: 13px;
  }
  .spInfoNote {
    color: #f39801;
    font-size: 10px;
  }
  .spInfoTel {
    flex-shrink: 0;
  }
  .spInfoTel a {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    background: #f39801;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 4px;
    white-space: nowrap;
  }
  .spInfoTel a:hover {
    background: #fcc872;
  }
  .spInfoTelIcon {
    font-size: 11px;
    font-weight: bold;
    background: #fff;
    color: #f39801;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 4px;
  }

  /* ---- スマホ用ドロワーナビ ---- */
  #spNav {
    display: block;
    position: fixed;
    top: 58px;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100%;
    background: #f08200;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-sizing: border-box;
  }
  #spNav.is-open {
    right: 0;
  }
  #spNav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #spNav ul li {
    border-bottom: 1px solid rgba(255,255,255,0.3);
  }
  #spNav ul li a {
    display: block;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    background: url(/common/img/icn_arrow02.gif) no-repeat 95% center;
  }
  #spNav ul li a:hover,
  #spNav ul li a:active {
    background-color: #fcc872;
    color: #fff;
  }

  /* オーバーレイ */
  #spNavOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  #spNavOverlay.is-open {
    display: block;
  }

  /* ---- mainVisual ---- */
  #mainVisual {
    width: 100%;
    height: auto;
    padding: 0;
  }
  #mainVisual img {
    width: 100%;
    height: auto;
  }
  #mainVisual p.line2 {
    bottom: 20px;
    left: 10px;
    font-size: 75%;
    line-height: 1.4;
  }

  /* ---- subPageTitle ---- */
  #subPageTitle {
    padding: 8px 0;
  }
  #subPageTitle2 {
    padding: 0 0 8px;
  }
  #subPageTitle img,
  #subPageTitle2 img {
    width: 100%;
    height: auto;
  }

  /* ---- container / contents ---- */
  #container {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }
  #contents {
    width: 100%;
    float: none;
    padding: 0 5px;
    box-sizing: border-box;
    font-size: 100%;
  }
  #contents h2 {
    font-size: 15px;
    padding-left: 22px;
  }

  /* ---- topics ---- */
  #contents .topics {
    padding-left: 5px;
    margin-bottom: 15px;
  }
  #contents .topics h2,
  #contents .subCommon h2 {
    font-size: 15px;
    padding: 10px 8px 8px 22px;
    margin-right: 5px;
  }
  #contents .topics dl dt {
    float: none;
    width: 100%;
    font-size: 14px;
    padding: 8px 0 2px;
  }
  #contents .topics dl dd {
    font-size: 14px;
    padding: 0 0 8px;
    margin-right: 5px;
    line-height: 1.6;
  }

  /* ---- お知らせテーブル（年末年始等） ---- */
  #contents .topics table,
  #contents .subCommon table {
    width: 100%;
    font-size: 80%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    border: 1px solid #ccc;
  }
  #contents .topics table td,
  #contents .subCommon table td {
    border: 1px solid #ccc;
  }
  #contents .topics .taC td,
  #contents .subCommon .taC td {
    padding: 4px !important;
  }

  /* ---- subCommon ---- */
  #contents .subCommon {
    padding-left: 5px;
    margin-bottom: 15px;
  }
  #contents .subCommon dl dt {
    float: none;
    width: 100%;
    font-size: 14px;
    padding: 15px 0 2px;
    font-weight: bold;
  }
  #contents .subCommon dl dd {
    font-size: 14px;
    padding: 15px 0;
    margin-right: 5px;
    line-height: 1.6;
  }

  /* ---- subCommon お知らせ用---- */
  #contents .subCommon dl.infoList dt,
  #contents .subCommon dl.infoList dd {
    padding: 6px 0;
  }

  /* ---- 診療時間スケジュール画像 ---- */
  #contents .subCommon dl dd img {
    width: 100%;
    height: auto;
    border: none !important;
  }

  /* ---- innerBox ---- */
  #contents .innerBox01,
  #contents .innerBox02 {
    padding: 0 0 15px;
    margin: 0 0 15px;
  }
  #contents .innerBox01 .left,
  #contents .innerBox01 .right,
  #contents .innerBox02 .left,
  #contents .innerBox02 .right {
    float: none;
    width: 100%;
    padding: 5px 8px;
    box-sizing: border-box;
  }

  /* ---- .btn 院内紹介画像：縦1列 ---- */
  #contents .btn img {
    width: 100%;
    height: auto;
    padding-right: 0 !important;
    margin-bottom: 8px;
    display: block;
  }
  #contents .btn .first {
    padding-right: 0;
  }
  #contents .btn .inner {
    width: 100%;
    background-size: contain;
    margin-right: 0;
    display: block;
  }

  /* ---- Googleマップ ---- */
  #contents .subCommon dl dd iframe,
  #contents .btn iframe {
    width: 100%;
    height: 280px;
  }

  /* ---- アクセスページ：bottom.phpの地図非表示 ---- */
  #pageAccess .btn iframe {
    display: none;
  }

  /* ---- FAQ ---- */
  dl.faqBox dt,
  dl.faqBox dd {
    font-size: 14px;
  }
  dl.faqBox dd {
    padding-bottom: 20px;
  }

  /* ---- パンくず ---- */
  ul.bread {
    padding: 3px 5px;
  }
  ul.bread li {
    font-size: 70%;
  }

  /* ---- p.txt ---- */
  p.txt {
    padding: 0 8px;
  }

  /* ---- fortop ---- */
  #fortop {
    margin: 20px 0 2px;
    height: 36px;
  }

  /* ---- footer ---- */
  #footerWrap {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 10px;
  }
  #footer .left,
  #footer .right {
    float: none;
    text-align: center;
  }
  #footer .left li {
    float: none;
    display: inline-block;
    padding: 4px 8px 4px 18px;
    font-size: 85%;
  }
  #footer .right {
    margin-top: 8px;
    font-size: 70%;
    text-align: center;
  }

  /* ---- お知らせ：日付＋タイトル横並び ---- */
  .dtTitle {
    display: inline;
    font-weight: bold;
    margin-left: 8px;
    font-size: 14px;
    color: #333;
    flex: 1;
    min-width: 0;
    padding-right: 3px;
  }
  .ddTitle {
    display: none;
  }
  #contents .topics dl dt,
  #contents .subCommon dl dt {
    display: flex !important;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 6px;
  }
}


  /* ---- 診療時間ボトム ---- */
@media only screen and (max-width: 767px) {
  #contents .btn .inner {
    height: calc(100vw * 0.65); /* 480×312の縦横比65% */
  }
  #contents .btn .inner img {
    max-width: 90%;
    width: 145px;
    position: absolute;
    bottom: 8%;
    right: 10px;
  }
}