/* ---------------------------------------------------------------
   レスポンシブ対応 rwd.css
   ブレイクポイント：768px
--------------------------------------------------------------- */


/* ============================================================
   PC（768px以上）
============================================================ */
@media only screen and (min-width: 768px) {

  .pc_n {
    display: none;
  }

  body, #jquery-overlay {
    min-width: 1040px;
  }

  /* SP専用要素はPC非表示 */
  #sp-header,
  #sp-nav {
    display: none !important;
  }

  #jquery-lightbox {
    position: fixed !important;
    top: 50px !important;
    right: 0 !important;
    bottom: 0 !important;

  }
}


/* ============================================================
   SP（767px以下）
============================================================ */
@media only screen and (max-width: 767px) {

  /* ---- ベースリセット ---- */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  iframe {
    width: 100%;
  }

  table {
    width: 100%;
  }

  .sp_n {
    display: none;
  }

  /* ---- PCヘッダー・PCナビを非表示 ---- */
  #header {
    display: none !important;
  }


  /* ============================
     SP ヘッダー（ロゴ左 ＋ ハンバーガー右上）
  ============================ */

  #sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* ロゴ：左寄せ */
  #sp-logo {
    flex: 1;
    line-height: 0;
  }

  #sp-logo a {
    display: inline-block;
  }

  #sp-logo img {
    height: 40px;
    width: auto;
    max-width: 60vw;
    object-fit: contain;
    object-position: left center;
    vertical-align: middle;
  }

  /* ハンバーガーボタン：右上 */
  #sp-hamburger {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #881f1b;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 6px 10px 5px;
    cursor: pointer;
    min-width: 56px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }

  /* 三本線アイコン */
  .sp-hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
  }

  .sp-hamburger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
  }

  /* 「メニュー」ラベル */
  .sp-hamburger-label {
    display: block;
    font-size: 10px;
    color: #fff;
    letter-spacing: 0.05em;
    font-family: 'メイリオ', Meiryo, sans-serif;
  }

  /* 開いたとき：×アニメーション */
  #sp-hamburger.is-open .sp-hamburger-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  #sp-hamburger.is-open .sp-hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  #sp-hamburger.is-open .sp-hamburger-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }


  /* ============================
     SP ドロワーナビ
  ============================ */

  #sp-nav {
    display: none;
    background-color: #881f1b;
    width: 100%;
    z-index: 998;
    position: sticky;
    top: 57px; /* sp-headerの高さ分下げる */
  }

  #sp-nav.is-open {
    display: block;
  }

  #sp-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #sp-nav ul li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  #sp-nav ul li:first-child {
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  #sp-nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px 15px 36px;
    font-size: 15px;
    font-family: 'メイリオ', Meiryo, sans-serif;
    letter-spacing: 0.05em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='13' viewBox='0 0 8 13'%3E%3Cpolyline points='1,1 7,6.5 1,12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 16px center;
    background-size: 8px auto;
  }

  #sp-nav ul li a:active {
    background-color: rgba(255,255,255,0.15);
  }


  /* ============================
     メインビジュアル（タイトル画像）
  ============================ */

  /* トップページ：そのままスケール */
  .top #visual {
    height: auto;
    background-size: cover;
    background-position: center top;
    min-height: 0;
  }

  #visual .v-box {
    padding-top: 0;
    position: static;
    width: auto;
  }

  #visual .v-box .main img,
  #visual .v-box p img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* サブページ：object-fit: cover で左寄せ・高さ80px */
  .sub #visual {
    height: auto;
    overflow: hidden;
    background-image: none !important;
  }

  .sub #visual .main {
    width: 100%;
    height: 80px;
    overflow: hidden;
  }

  .sub #visual .main img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: left center;
    display: block;
  }

  #visual .btn {
    position: static;
    text-align: center;
    width: 100%;
    left: auto;
    top: auto;
  }


  /* ============================
     幅のリセット（固定幅を解除）
  ============================ */

  .top #container,
  .sub #container,
  #header .h-box,
  #header .gnavi,
  .sub #visual .main,
  #visual .v-box,
  #footer .f-box,
  #footer small,
  ul.breadcrumb,
  #primary dl.menu,
  .news,
  .news table,
  ul.info,
  .waku_topic,
  .bg_note,
  ul.bg_02 {
    width: auto !important;
  }


  /* ============================
     メインレイアウト（2カラム → 1カラム）
  ============================ */

  .top #container,
  .sub #container {
    width: 100%;
    padding: 10px;
  }

  #content {
    float: none;
    width: 100%;
    display: block;
  }

  /* サイドバー：メインの下へ */
  #primary {
    float: none;
    width: 100%;
    display: block;
    padding: 10px 0 20px;
  }

  #primary dl.menu {
    width: 100%;
  }

  #primary .shinryo_detail img,
  #primary dl.menu dt.root img {
    width: 100%;
    height: auto;
  }

  #primary .shinryo_btn li img {
    max-width: 100%;
    height: auto;
  }


  /* ============================
     コンテンツ内の固定幅解除・float解除
  ============================ */

  .imgl,
  .imgr,
  #content .section .left,
  #content .section .right,
  .top_text,
  .top #content dl.incho,
  .rec_col .cleft,
  .rec_col .cright,
  #footer .f-box .left,
  #footer .f-box .right {
    float: none;
    display: block;
    width: auto !important;
    margin: 0 auto 15px;
    text-align: center;
  }

  .entry .w420,
  .entry .w380,
  .entry .w330,
  .entry .w300,
  .entry .w240,
  .Content_MaxWidth,
  .bg_inchotxt {
    width: auto !important;
    padding-left: 0 !important;
  }

  /* ニューステーブル */
  .news table td dl {
    padding-left: 0;
    position: static;
  }
  .news table td dl dt {
    position: static;
    width: auto;
    text-align: left;
  }
  .news table td dl dd .day,
  .news table td dl dd .time {
    float: none;
    width: auto;
    display: block;
  }

  /* infoリスト */
  ul.info li {
    padding-left: 0;
    padding-top: 40px;
  }
  ul.info li span {
    position: static;
    width: auto;
    display: block;
    padding: 0 0 5px;
  }

  /* ピックアップ */
  ul.picup li {
    float: none;
    display: block;
    width: 100%;
    height: auto;
    padding: 5px 0;
  }

  /* サブページトップ */
  #content .subpage_top01 li {
    width: 100%;
    float: none;
    margin: 10px 0;
  }

  #content .subpage_top01 li .photo {
    float: none;
    width: 100%;
    text-align: center;
  }

  #content .subpage_top01 li .text {
    float: none;
    width: 100%;
  }

  /* アクセスエリア */
  .top #content .access {
    background-image: none;
    padding-top: 10px;
  }

  .top #content .access ul {
    width: 100%;
    height: auto;
  }

  /* パンくず */
  ul.breadcrumb {
    width: 100%;
    padding: 0 10px;
  }

  ul.breadcrumb li {
    float: none;
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  /* 採用情報 */
  .bg_note {
  width: auto;
    background: url(images/rec/bg_note_m.jpg) repeat-y center;
  }
  .bg_note .inner {
  background: none;
  }
  .bg_note .inner ul {
    width: auto;
    padding: 10px 10px 20px;
  }

  /* タイトル画像：高さ50px */
  .bg_note .note_tt img {
    width: auto;
    height: 50px;
    max-width: 100%;
    object-fit: cover;
  }

  /* リスト背景画像：罫線が出ないようサイズ調整 */
  ul.bg_01 {
    background: url(images/disclosure/list_bg01.gif) no-repeat center top / cover;
    height: auto;
    padding: 20px 0px 20px 10px;
  }
  ul.bg_02 {
    background: url(images/disclosure/list_bg02.gif) no-repeat center top / cover;
    height: auto;
    width: auto;
    padding: 10px 20px 10px 15px;
  }

  /* 採用タブ：SP用 */
  #entry_guide #tab_btn {
    overflow: hidden;
    display: block;
    clear: both;
  }
  #tab_btn li {
    float: left;
    width: 25%;
    display: block;
  }
  #tab_btn li a {
    display: block;
    height: 30px;
    width: 100% !important;
    background-size: 100% auto !important;
    text-indent: -999em;
    overflow: hidden;
  }
  #tab_btn #tab1 a, #tab_btn #tab2 a, #tab_btn #tab3 a, #tab_btn #tab4 a {
    background-position: top 8px left !important;;
  }

  #tab_btn #tab1 a.current, #tab_btn #tab2 a.current, #tab_btn #tab3 a.current, #tab_btn #tab4 a.current {
    background-position: top -17px left !important;
  }

	p, .entry dl dd.keireki{
		text-align: left;
	}
	p.name img {
		object-fit: cover;
    object-position: left center;
    height: 35px;
	}

	table.cost th {
    width: auto;
	}

  /* 院内設備 */
  img[usemap="#gallery"] {
    pointer-events:none;
  }


  /* ============================
     フッター
  ============================ */

  #footer .f-box {
    width: 100%;
    padding: 15px 10px;
    text-align: center;
  }

  #footer .f-box .left {
    width: auto;
    text-align: center;
    margin-bottom: 15px;
  }

  #footer .f-box .left img {
    max-width: 80%;
    height: auto;
  }

  #footer .f-box .left .adress {
    margin: 10px auto 0;
    text-align: center;
  }

  #footer .f-box .right {
    width: auto;
    text-align: center;
  }

  #footer .f-box .right img {
    max-width: 90%;
    height: auto;
  }

  #footer small {
    width: 100%;
    text-align: center;
    padding: 10px;
    display: block;
  }


  /* ============================
     その他共通
  ============================ */

  .pagetop {
    text-align: center;
  }

  /* ページトップへ：SPではスムーズスクロールでページ最上部へ */
  .pagetop a[href="#header"] {
    display: inline-block;
  }

  .entry h2,
  .entry-title {
    margin-bottom: 20px;
  }

  .entry table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 1.2em;
  }

  #entry_guide #tab_btn {
    overflow: hidden;
  }

  #tab_btn li {
    float: left;
    width: 25%;
  }

  #tab_btn li a {
    width: 100% !important;
    background-size: 100% auto !important;
  }

  .waku_topic {
    width: 100% !important;
  }


  /* ============================
     SP 固定フッターナビ
  ============================ */

  /* ページ下部にナビ分の余白を確保 */
  body {
    padding-bottom: 64px;
  }

  #sp-fixed-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: #881f1b;
  }

  .sp-fnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 6px 4px 8px;
    min-height: 56px;
    border-right: 1px solid rgba(255,255,255,0.4);
    text-align: center;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
  }

  .sp-fnav-item:last-child {
    border-right: none;
  }

  .sp-fnav-item:active {
    background-color: rgba(255,255,255,0.15);
  }

  .sp-fnav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    margin-bottom: 3px;
    color: #fff;
  }

  .sp-fnav-icon svg {
    display: block;
    flex-shrink: 0;
  }

  .sp-fnav-label {
    display: block;
    font-size: 12px;
    color: #fff;
    font-family: 'メイリオ', Meiryo, sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.4;
  }

  .sp-fnav-tel {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.03em;
  }

} /* end @media (max-width: 767px) */


/* =PC（768px以上）でSP固定ナビを非表示 */
@media only screen and (min-width: 768px) {
  #sp-fixed-nav {
    display: none !important;
  }
}
