@charset "UTF-8";
/* ============================================================
   トラベルイン 共通ヘッダー・フッター CSS
   設置: /css/ti-common.css
   見た目はトップページ（/css_top/style.css）のヘッダー・フッターと同じです。

   【干渉対策】
   1. body の余白0 以外は、すべて #ti-common-header / #ti-common-footer の中だけに効く書き方
      → 各ページ本文や、既存ページのCSSには影響しません
   2. トップページのCSS（destyle.css・style.css）は読み込まず、
      ヘッダー・フッターに必要な分だけをこのファイルに収録
   3. !important は使用しない
   色: 赤 #e62e3d / 青 #007bbb
   ============================================================ */

/* ---------- ページ全体（唯一のグローバル指定） ----------
   トップページは destyle.css で body の余白を0にしているため、同じ見た目にする */
body {
  margin: 0;
}

/* ---------- 共通リセット（ヘッダー・フッター内のみ） ---------- */
:is(#ti-common-header, #ti-common-footer) {
  display: block;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
:is(#ti-common-header, #ti-common-footer) *,
:is(#ti-common-header, #ti-common-footer) *::before,
:is(#ti-common-header, #ti-common-footer) *::after {
  box-sizing: border-box;
}
:is(#ti-common-header, #ti-common-footer) :is(header, footer, nav, div, p, ul, li) {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  list-style: none;
  text-align: left;
}
:is(#ti-common-header, #ti-common-footer) :is(p, li) {
  font-size: 15px;
  font-weight: normal;
  line-height: 140%;
  color: #333;
}
:is(#ti-common-header, #ti-common-footer) li::before,
:is(#ti-common-header, #ti-common-footer) li::marker {
  content: none;
}
:is(#ti-common-header, #ti-common-footer) a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}
:is(#ti-common-header, #ti-common-footer) a:hover {
  opacity: 0.7;
}
:is(#ti-common-header, #ti-common-footer) img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}
:is(#ti-common-header, #ti-common-footer) i {
  font-size: inherit;
}
:is(#ti-common-header, #ti-common-footer) .inner {
  width: calc(100% - 40px);
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- ヘッダー ---------- */
#ti-common-header header {
  background: #fff;
  border-top: 5px solid #e62e3d;
}
#ti-common-header header .inner {
  position: relative;
  padding: 10px 0;
}
#ti-common-header header .logo {
  width: 100px;
  height: auto;
}
#ti-common-header header .link-mypage {
  display: block;
  position: absolute;
  top: -10px;
  right: 0;
}
#ti-common-header header .link-mypage a {
  display: block;
  height: 75px;
  padding: 22px 20px 0;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(-60deg, #e62e3d 20px, #fff 20px);
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.2);
  color: #333;
  font-size: 15px;
}
#ti-common-header header .link-mypage a:hover {
  transform: translateY(5px);
  opacity: 1;
}
#ti-common-header header .link-mypage i {
  margin: 0 5px 0 0;
  font-size: 20px;
}
#ti-common-header header .link-mypage a::after {
  content: "login";
  display: block;
  color: #e62e3d;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
}

/* メニュー */
#ti-common-header .menu {
  margin: 10px 0 2px;
  padding: 0;
  background: #007bbb;
}
#ti-common-header .menu ul {
  display: flex;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}
#ti-common-header .menu li {
  width: calc(100% / 4);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
  text-align: center;
}
#ti-common-header .menu li a {
  display: block;
  position: relative;
  height: 60px;
  line-height: 60px;
  background: #007bbb;
  color: #fff;
}
#ti-common-header .menu li a:hover {
  opacity: 1;
}
#ti-common-header .menu li a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 30px;
  width: calc(100% - 60px);
  height: 7px;
  background: #e62e3d;
}

/* ---------- フッター ---------- */
#ti-common-footer {
  margin-top: 60px;
}
#ti-common-footer footer {
  background: #fff;
  border-top: 5px solid #e62e3d;
}
#ti-common-footer footer .inner {
  position: relative;
  padding: 30px 0 0;
}
#ti-common-footer .pagetop {
  display: block;
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #e62e3d;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}
#ti-common-footer .pagetop a {
  display: block;
  color: #fff;
}
#ti-common-footer .pagetop.fixed {
  position: fixed;
  top: auto;
  bottom: 20px;
  right: 20px;
}
#ti-common-footer .foot-menu {
  display: flex;
  justify-content: space-between;
  margin: 0 0 30px;
}
#ti-common-footer .left-box {
  width: calc(100% / 4 - 20px);
}
#ti-common-footer .right-box {
  width: calc(100% / 4 * 3 - 10px);
}
#ti-common-footer .right-box .right-top {
  display: flex;
  flex-wrap: wrap;
  width: 70%;
  margin: 0 0 20px;
}
#ti-common-footer .right-box .right-top li.link {
  width: 50%;
  min-width: 185px;
  max-width: 200px;
}
#ti-common-footer .right-box .right-bottom {
  display: flex;
  justify-content: space-between;
}
#ti-common-footer .right-box .right-bottom .link-box {
  width: calc(100% / 3 - 20px);
}
#ti-common-footer .foot-menu li {
  font-size: 14px;
  line-height: 160%;
}
#ti-common-footer .foot-menu .label {
  padding: 10px 0 5px;
  color: #e62e3d;
  font-weight: 500;
}
#ti-common-footer .logo-wrap {
  margin: 0 0 20px;
}
#ti-common-footer .logo-wrap li,
#ti-common-footer .sns-wrap li {
  display: inline-block;
  vertical-align: middle;
}
#ti-common-footer .logo-wrap li.logo1 {
  width: 100px;
  height: 60px;
  margin: 0 10px 0 0;
}
#ti-common-footer .logo-wrap li.logo2 {
  width: 90px;
  height: 42px;
}
#ti-common-footer .logo-wrap li img {
  height: 100%;
  object-fit: contain;
}
#ti-common-footer .sns-wrap li.label {
  display: block;
}
#ti-common-footer .sns-wrap li.sns-logo {
  width: 30px;
  margin: 0 10px 0 0;
}
#ti-common-footer .mark-wrap {
  margin: 0 0 10px;
  text-align: right;
}
#ti-common-footer .mark-wrap li {
  display: inline-block;
  width: auto;
  height: 50px;
}
#ti-common-footer .mark-wrap li img {
  width: auto;
  height: 50px;
  object-fit: contain;
}
#ti-common-footer .copyright {
  padding: 10px 5px;
  background: #e62e3d;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/* ---------- スマホ（〜768px）※トップページと同じブレークポイント ---------- */
@media screen and (max-width: 768px) {
  :is(#ti-common-header, #ti-common-footer) .inner {
    width: calc(100% - 28px);
  }
  :is(#ti-common-header, #ti-common-footer) a:hover {
    opacity: 1;
  }
  #ti-common-header header .logo {
    width: 70px;
  }
  #ti-common-header header .link-mypage a {
    height: 62px;
    padding: 17px 20px 0;
  }
  #ti-common-header .menu {
    padding: 0 0 3px;
    background: none;
  }
  #ti-common-header .menu ul {
    flex-wrap: wrap;
    border-right: 0;
  }
  #ti-common-header .menu li {
    width: calc(100% / 2 - 2px);
    margin: 2px 0;
    font-size: 12px;
  }
  #ti-common-header .menu li a {
    height: 38px;
    line-height: 38px;
  }
  #ti-common-header .menu li a:hover::after {
    content: none;
  }
  #ti-common-footer .foot-menu,
  #ti-common-footer .right-box .right-bottom {
    flex-direction: column;
  }
  #ti-common-footer .left-box,
  #ti-common-footer .right-box,
  #ti-common-footer .right-box .right-top,
  #ti-common-footer .right-box .right-bottom .link-box {
    width: 100%;
  }
  #ti-common-footer .right-box .right-top {
    margin: 0;
  }
  #ti-common-footer .right-box .right-top li.link {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  #ti-common-footer .mark-wrap li,
  #ti-common-footer .mark-wrap li img {
    height: 40px;
  }
}
