/* =====================================================================
   レントハウス 公開サイト（横スクロール版） 共通スタイル
   参考: www.e-renthouse.com の構造（#subContainer固定 / .column絶対配置）
   ===================================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------------------------------------------------------------------
   #subContainer（固定ユーティリティバー：MENU・現在ページ名・SNS・グローバルナビ）
   --------------------------------------------------------------------- */
#subContainer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 500;
  width: 100%;
  padding: 5px 20px;
  background-color: #000;
  color: #fff;
  transition: all 0.4s ease-in-out;
}

.utility {
  float: left;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
}

#menuOpen {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

#menuOpen:hover { background: rgba(255, 255, 255, 0.1); }

#currentPage {
  margin: 0;
  font-size: 12.5px;
  color: #ccc;
}

@font-face {
  font-family: 'fontello';
  src: url('../../fonts/fontello/fontello.eot');
  src: url('../../fonts/fontello/fontello.eot?#iefix') format('embedded-opentype'),
       url('../../fonts/fontello/fontello.woff') format('woff'),
       url('../../fonts/fontello/fontello.ttf') format('truetype'),
       url('../../fonts/fontello/fontello.svg#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}

.sns {
  float: right;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 46px;
  margin-right: 20px;
}

.sns a {
  display: block;
  overflow: hidden;
  position: relative;
  width: 30px;
  height: 30px;
  color: #fff;
  text-decoration: none;
  text-indent: 100%;
  white-space: nowrap;
}

.sns a::before {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.5em 0 0 -0.5em;
  font-size: 18px;
  line-height: 18px;
  font-family: 'fontello';
  text-indent: 0;
}

.sns a[href*="line"]::before { content: "\e803"; }
.sns a[href*="instagram"]::before { content: "\f31e"; }
.sns a[href*="facebook"]::before { content: "\f230"; }
.sns a[href*="twitter"]::before { content: "\f099"; }

.sns a:hover { opacity: 0.8; }

#gNav {
  float: right;
  height: 46px;
  display: flex;
  align-items: center;
}

#gNav .columnNav {
  display: flex;
  align-items: center;
  gap: 4px;
}

#gNav .columnNav li a,
#gNav .columnNav li span {
  display: inline-block;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

#gNav .columnNav li a:hover { color: #5fb9ee; }

#gNav .columnNav li a .newicon {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: normal;
  margin-left: 4px;
  vertical-align: middle;
}

/* ---------------------------------------------------------------------
   スライドメニュー（オフキャンバス）
   --------------------------------------------------------------------- */
#slideMenu {
  position: fixed;
  top: 0;
  left: -350px;
  width: 320px;
  height: 100%;
  background: #111;
  color: #fff;
  z-index: 900;
  padding: 60px 30px 30px;
  transition: left 0.4s ease-in-out;
}

#slideMenu.is-open { left: 0; }

#slideMenu .columnNav li a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#slideMenu .columnNav li a:hover { color: #5fb9ee; }

#slideMenu .close {
  position: absolute;
  top: 20px;
  right: 24px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: #aaa;
}

#slideMenuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 850;
  display: none;
}

#slideMenuOverlay.is-open { display: block; }

/* ---------------------------------------------------------------------
   #content / #columnContainer（横スクロール本体）
   --------------------------------------------------------------------- */
#content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding-top: 56px;
}

#columnContainer {
  position: relative;
  top: 0;
  left: 0;
  height: 100%;
}

#columnContainer .column {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 100vw;
  min-width: 600px;
  height: 100%;
  text-align: left;
}

#columnContainer .column_main {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px 50px 60px;
  border-right: 1px solid #e7e7e7;
  overflow-y: auto;
  background-size: cover;
  background-position: center;
}

.column_ttl {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}

.columnNav.nextpage {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

.columnNav.nextpage li a {
  display: inline-block;
  padding: 12px 26px;
  background: #1f7fc4;
  color: #fff;
  border-radius: 3px;
  font-weight: 700;
  font-size: 13.5px;
}

.columnNav.nextpage li a:hover { opacity: 0.85; }

/* スマホ・狭幅時は縦積みにフォールバック */
@media (max-width: 800px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  #subContainer { padding: 0 12px; }
  #gNav { display: none; }

  /* SP header: ロゴ左 / 新着情報+MENU右 */
  .utility {
    float: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 46px;
  }

  #currentPage { display: none; }

  #menuOpen {
    order: 3;
    font-size: 11px;
    padding: 4px 10px;
  }

  .sp-header-logo {
    display: block;
    order: 1;
    line-height: 0;
  }

  .sp-header-logo img {
    height: 28px;
    width: auto;
  }

  .sp-header-news {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    order: 2;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }

  .sp-header-news .newicon {
    font-size: 9px;
    background: #f5a623;
    color: #fff;
    padding: 1px 4px;
    border-radius: 2px;
  }

  .sns { display: none; }

  #content {
    position: static;
    overflow: visible;
    overflow-x: hidden;
    padding-top: 46px;
    width: 100%;
  }

  #columnContainer {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    transform: none !important;
  }

  #columnContainer .column {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
  }

  #columnContainer .column_main {
    height: auto;
    overflow: visible;
    overflow-x: hidden;
    padding: 30px 20px 40px;
    border-right: none;
    width: 100%;
  }
}
