@charset "UTF-8";

/* ヘッダー・フッター・グローバルナビ・SP追従バー・ドロワー（fg_common/header.html・footer.html 用）
   読み込み順: css/common.css → fg_common/css/style.css → css/<ページ>.css
   変数（:root）・リセットは css/common.css 側 */

/* l-header */
.l-header {
  --header-top-h: 41px;
  position: sticky;
  top: calc(var(--header-top-h) * -1);
  z-index: 9999;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 0;
}

.l-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background: #fff;
}

.l-header__top {
  height: 41px;
  padding-top: 6px;
  padding-left: 6px;
}

.l-header__corp img {
  width: 113px;
  height: auto;
}

.l-header__main {
  position: relative;
  z-index: 101; /* .l-gnav（100）より前面。ロゴ・ハンバーガーが隠れないように */
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 85px;
}

.l-header__brand a {
  display: flex;
  align-items: center;
}

.l-header__fg {
  width: 154px;
  margin-left: 8px;
}

.l-header__name {
  margin-left: 26px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-text-sub);
}

.l-header__sub {
  display: flex;
  align-items: center;
  list-style: none;
  padding-right: 23px;
  font-size: 14px;
}

.l-header__sub li + li {
  margin-left: 15px;
}

.l-header__sub .l-header__btn:first-of-type {
  margin-left: 18px;
}

.l-header__sub a {
  color: var(--color-text-sub);
}

.l-header__sub .l-header__btn a,
.l-header__sub .l-header__btn a:link,
.l-header__sub .l-header__btn div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  min-height: 45px;
  color: var(--color-gold);
  background: var(--color-brown-btn);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.l-header__btn a::before,
.l-header__btn div::before,
.l-footer__btn a::before {
  content: "";
  flex: none;
  width: 14px;
  height: 17px;
  margin-right: 8px;
  background: url("../img/icon-siryo.svg") no-repeat center / contain;
}

.l-header__btn--visit a::before,
.l-header__btn--visit div::before,
.l-footer__btn--visit a::before {
  width: 19px;
  height: 18px;
  background-image: url("../img/icon-raijo.svg");
}

.l-header__sub .l-header__btn + .l-header__btn {
  margin-left: 7px;
}

.l-header__sub .l-header__btn--visit a,
.l-header__sub .l-header__btn--visit div {
  background: var(--color-brown-btn-off);
}

.l-header__burger {
  display: none;
}

.l-gnav__list {
  display: flex;
  list-style: none;
  background: var(--color-text-sub);
}

.l-gnav__list li {
  flex: 1;
  border-left: 1px solid #fff;
}

.l-gnav__list li:first-child {
  border-left: 0;
}

.l-gnav__list a,
.l-gnav__list a:link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  margin-bottom: -1px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

.l-gnav__list a.is-current,
.l-gnav__list a.is-current:link {
  background: var(--color-gold);
  color: var(--color-text-sub);
}

.l-gnav__sp {
  display: none;
}

/* l-footer */
.l-footer {
  padding-top: 83px;
}

.l-footer__nav {
  max-width: 1280px;
  margin: 0 auto;
}

.l-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  padding: 43px 0 147px;
}

.l-footer__btns {
  display: flex;
  justify-content: center;
  gap: 17px;
  padding: 0 16px;
  list-style: none;
}

.l-footer__btn {
  flex: 0 1 200px;
  min-width: 0;
}

.l-footer__btn a,
.l-footer__btn a:link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  background: var(--color-brown-btn);
  color: var(--color-gold);
  font-size: 16px;
}

.l-footer__btn--visit a {
  background: var(--color-brown-btn-off);
}

.l-footer__contact {
  margin-top: 77px;
}

.l-footer__lead {
  font-size: 16px;
  line-height: 1.7;
}

.l-footer__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  line-height: 55px;
  color: var(--color-text-sub);
}

.l-footer__tel::before {
  content: "";
  width: 56px;
  height: 29px;
  margin-right: 10px;
  background: url("../img/tel_symbol_green.png") no-repeat center / contain;
}

.l-footer__tel a {
  color: var(--color-text-sub);
  letter-spacing: 0;
}

.l-footer__time {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
}

.l-footer__sep {
  display: inline-block;
  width: 30px;
}

.l-footer__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 114px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #a2a2a2;
}

.l-footer__logo {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.l-footer__logo span {
  white-space: nowrap;
  margin-right: 14px;
}

.l-footer__logo img {
  width: auto;
  height: 38px;
}

.l-footer__links {
  display: flex;
  justify-content: center;
  margin-top: 46px;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
}

.l-footer__links a {
  color: var(--color-text);
}

.l-footer__copy {
  margin-top: 9px;
  font-size: 10px;
  line-height: 20px;
}

@media screen and (max-width: 1200px) and (min-width: 1024px) {
  .l-header__name {
    margin-left: 16px;
    font-size: 22px;
    white-space: nowrap;
  }

  .l-header__sub {
    padding-right: 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .l-header__sub li + li {
    margin-left: 10px;
  }
}

@media screen and (max-width: 1023px) {
  .l-header {
    padding: 0 16px;
  }

  .l-header__name {
    font-size: 22px;
    margin-left: 16px;
  }

  .l-header__sub {
    display: none;
  }

  .l-header__burger {
    display: block;
    position: relative;
    z-index: 101; /* .l-gnav（100）より前面 */
    flex: none;
    width: 34px;
    height: 35px;
    border: 0;
    background: none;
  }

  .l-header__burger span {
    position: absolute;
    left: 0;
    width: 34px;
    height: 5px;
    background: var(--color-main-dark);
  }

  .l-header__burger span:nth-child(1) { top: 0; }
  .l-header__burger span:nth-child(2) { top: 15px; }
  .l-header__burger span:nth-child(3) { top: 30px; }

  .l-gnav {
    display: none;
  }

  .l-header.localnav-open .l-gnav {
    display: block;
    position: fixed;
    top: var(--header-h, 100px);
    left: 0;
    right: 0;
    z-index: 100;
    max-height: calc(100vh - var(--header-h, 100px));
    max-height: calc(100dvh - var(--header-h, 100px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 0 151px;
    background: rgba(255, 255, 255, 0.95);
  }

  .l-header.localnav-open .l-gnav__list {
    display: block;
    background: none;
  }

  .l-header.localnav-open .l-gnav__list li {
    border: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .l-header.localnav-open .l-gnav__list a,
  .l-header.localnav-open .l-gnav__list a:link,
  .l-header.localnav-open .l-gnav__list a:visited {
    align-items: flex-end;
    justify-content: center;
    min-height: 59px;
    padding: 0;
    color: var(--color-text-sub);
    font-size: 12px;
    line-height: 21px;
    background: none;
  }

  /* ドロワー開時：ハンバーガーを × に */
  .l-header.localnav-open .l-header__burger span:nth-child(1),
  .l-header.localnav-open .l-header__burger span:nth-child(3) {
    top: 15px;
    left: -6px;
    width: 46px;
  }

  .l-header.localnav-open .l-header__burger span:nth-child(1) {
    transform: rotate(45deg);
  }

  .l-header.localnav-open .l-header__burger span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .l-header.localnav-open .l-header__burger span:nth-child(2) {
    opacity: 0;
  }

  .l-gnav__sp {
    display: block;
  }

}

@media screen and (max-width: 900px) {
  .l-footer__links {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .l-footer__links li + li {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media screen and (max-width: 600px) {
  .l-header {
    padding: 0;
  }

  .l-header {
    --header-top-h: 29px;
  }

  .l-header__top {
    height: 29px;
    padding: 4px 0 0 4px;
  }

  .l-header__corp img {
    width: 116px;
  }

  .l-header__main {
    min-height: 67px;
    padding: 0 15px 0 7px;
  }

  .l-header__fg {
    width: 103px;
    margin-left: 0;
  }

  .l-header__name {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 22.66px;
    letter-spacing: 0;
  }

  .l-footer__logo + .l-footer__logo img {
    width: 220px;
    height: auto;
  }

  .l-footer__logos {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .l-footer__links {
    flex-direction: column;
    gap: 14px;
  }

  .l-footer__time {
    line-height: 1.8;
  }

  .l-footer__sep {
    display: block;
    width: 0;
    height: 0;
    margin: 0;
  }
}

.l-footer__logo + .l-footer__logo img {
  height: 73px;
}

@media screen and (min-width: 901px) {
  .l-footer__links li + li {
    margin-left: clamp(12px, 2.8vw, 40px);
    padding-left: clamp(12px, 2.8vw, 40px);
    border-left: 1px solid var(--color-text-sub);
  }
}

/* l-footer : スマホ・タブレット（SPデザイン: top-sp.ai） */
@media screen and (max-width: 1023px) {
  .l-footer {
    padding-top: 10px;
    background: #fff;
  }

  .l-footer__nav {
    max-width: none;
  }

  .l-footer__nav .l-gnav__list {
    display: block;
    background: none;
  }

  .l-footer__nav .l-gnav__list li {
    border: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .l-footer__nav .l-gnav__list a,
  .l-footer__nav .l-gnav__list a:link,
  .l-footer__nav .l-gnav__list a:visited {
    align-items: flex-end;
    justify-content: center;
    min-height: 60px;
    padding: 0;
    color: var(--color-text-sub);
    font-size: 12px;
    line-height: 21px;
    background: none;
  }

  .l-footer__inner {
    background: #fff;
    padding: 47px 0 26px;
  }

  .l-footer__btns {
    display: none;
  }

  .l-footer__contact {
    margin-top: 0;
  }

  .l-footer__lead {
    font-size: 14px;
    line-height: 24.5px;
  }

  .l-footer__tel {
    margin-top: 5px;
    font-size: 44px;
    line-height: 55px;
  }

  .l-footer__time {
    margin-top: 8px;
    font-size: 14px;
    line-height: 24px;
  }

  .l-footer__sep {
    display: block;
    width: 0;
  }

  .l-footer__logos {
    flex-direction: column;
    align-items: center;
    gap: 44px;
    margin: 16px 13px 0;
    padding-top: 36px;
  }

  .l-footer__logo {
    font-size: 13px;
  }

  .l-footer__logo img {
    width: 165px;
    height: auto;
  }

  .l-footer__logo + .l-footer__logo img {
    width: 179px;
    height: auto;
  }

  .l-footer__links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 313px;
    max-width: calc(100% - 52px);
    margin: 60px auto 0;
  }

  .l-footer__links li + li {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .l-footer__links a {
    display: flex;
    justify-content: space-between;
  }

  .l-footer__copy {
    margin-top: 8px;
  }
}

/* デザイン（Illustrator）はプロポーショナルメトリクス（palt）なし。共通の h/p の palt を打ち消す
.l-header *,
.l-footer *,
#Index main * {
  font-feature-settings: normal;
}
*/

/* l-fixbar : スマホ追従ボタン（top-sp.ai アートボード3） */
.l-fixbar {
  display: none;
}

@media screen and (max-width: 600px) {
  .l-fixbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    height: 73px;
  }

  body {
    padding-bottom: 73px;
  }

  .l-fixbar__list {
    display: flex;
    gap: 1px;
    height: 100%;
    list-style: none;
    background: #fff;
  }

  .l-fixbar__item {
    flex: 1;
    min-width: 0;
  }

  .l-fixbar__item a,
  .l-fixbar__item a:link,
  .l-fixbar__item a:visited {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    height: 100%;
    padding: 9px 0 4px;
    font-size: 12px;
    color: var(--color-text-sub);
  }

  .l-fixbar__icon {
    display: block;
    flex: none;
    width: 33px;
    height: 33px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .l-fixbar__label {
    font-size: 12px;
    line-height: 14px;
    white-space: nowrap;
    font-feature-settings: normal;
  }

  .l-fixbar__item--map {
    background: #c3c6be;
  }

  .l-fixbar__item--map .l-fixbar__icon {
    background-image: url("../img/icon-map.svg");
  }

  .l-fixbar__item--doc,
  .l-fixbar__item--visit {
    background: linear-gradient(90deg, #390000 0%, #7a3a2a 50%, #390000 100%);
  }

  .l-fixbar__item--doc a,
  .l-fixbar__item--doc a:link,
  .l-fixbar__item--doc a:visited,
  .l-fixbar__item--visit a,
  .l-fixbar__item--visit a:link,
  .l-fixbar__item--visit a:visited {
    color: var(--color-gold-light);
  }

  .l-fixbar__item--doc .l-fixbar__icon {
    background-image: url("../img/icon-siryo.svg");
  }

  .l-fixbar__item--visit .l-fixbar__icon {
    background-image: url("../img/icon-raijo.svg");
  }

  .l-fixbar__item--contact {
    background: var(--color-bg);
  }

  .l-fixbar__item--contact .l-fixbar__icon {
    background-image: url("../img/icon-contact.svg");
  }
}

/* ドロワー表示中は背面のページをスクロールさせない */
html.is-drawer-open,
html.is-drawer-open body {
  overflow: hidden;
}
