@charset "utf-8";

/* ======================================
   Header
====================================== */
.l-header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e2e6e8;
}

.l-header__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 25px 10px 25px;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.l-header__logo {
  margin: 7px 0 0 0;
  flex: 0 0 auto;
  width: 170px;
}

.l-header__logo a,
.l-header__logo img {
  display: block;
}

.l-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.l-header__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.l-header__tel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-red);
  font-size: 1.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.l-header__tel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: auto;
    transform: translateY(1px);
}

.l-header__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 30px;
    border-radius: 8px;
    background: var(--color-red);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.l-gnav__list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.l-gnav__item {
  position: relative;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

.l-gnav__item + .l-gnav__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 1px;
  height: 16px;
  background: #d0d0d0;
  transform: translateY(-50%);
}

/* ======================================
   Footer
====================================== */
.l-footer {
  margin-top: 0;
}

.l-footer__upper {
  padding: 38px 0 34px;
  background: #efefef;
}

.l-footer__inner {
  width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.l-footer__col {
  min-height: 230px;
  padding: 0 32px;
  border-left: 1px solid #cdcdcd;
}

.l-footer__col:last-child {
  border-right: 1px solid #cdcdcd;
}

.l-footer__title {
  position: relative;
  margin-bottom: 16px;
  padding-left: 16px;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 700;
}

.l-footer__title::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  transform: translateY(-50%);
}

.l-footer__nav li + li {
  margin-top: 8px;
}

.l-footer__nav a {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
}

.l-footer__banner {
  margin-top: 18px;
  width: 190px;
}

.l-footer__banner a {
    margin-bottom: 1rem;
    display: block;
}

.l-footer__lower {
  background: #ef1f12;
  padding: 16px 0 14px;
}

.l-footer__policy {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 22px;
  margin-bottom: 8px;
}

.l-footer__policy a {
  position: relative;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
}

.l-footer__policy li + li a::before {
  content: "|";
  position: absolute;
  left: -12px;
  top: 0;
  color: rgba(255, 255, 255, 0.8);
}

.l-footer__copyright {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #fff;
}

/* ======================================
   Common page spacing
====================================== */
.l-page {
  padding-top: 56px;
  padding-bottom: 110px;
}

/* SP */
@media screen and (max-width: 767px) {

  .l-header__inner {
    display: block;
    padding: 1.2rem 1.6rem;
  }

  .l-header__logo {
    width: 80%;
    margin: 0 auto 1rem;
  }

  .l-header__logo a {
    display: block;
  }

  .l-header__logo img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }

  .l-header__right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  /* 2段目：電話とお問い合わせ */
  .l-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .l-header__tel {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }

  .l-header__tel-icon img {
    width: 2rem;
    height: auto;
    display: block;
  }

  .l-header__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 10rem;
    height: 3.6rem;
    padding: 0 1.2rem;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
  }

  .l-header__menu-btn {
    position: relative;
    width: 100%;
    height: 4.8rem;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
  }

  /* 線 */
  .l-header__menu-line {
    position: absolute;
    left: 50%;
    width: 2.4rem;
    height: 3px;
    background: #333;

    transform: translateX(-50%);
    transform-origin: center;

    transition:
      top 0.3s ease,
      transform 0.3s ease,
      opacity 0.2s ease;
  }

  /* 初期位置（中央寄せ） */
  .l-header__menu-line:nth-child(1) {
    top: calc(50% - 6px);
  }

  .l-header__menu-line:nth-child(2) {
    top: 50%;
  }

  .l-header__menu-line:nth-child(3) {
    top: calc(50% + 6px);
  }

  /* 開いたとき（×） */
  .l-header__menu-btn.is-open .l-header__menu-line:nth-child(1) {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .l-header__menu-btn.is-open .l-header__menu-line:nth-child(2) {
    opacity: 0;
  }

  .l-header__menu-btn.is-open .l-header__menu-line:nth-child(3) {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
  }

  .l-gnav {
    display: none;
    width: 100%;
    margin-top: 0.8rem;
    border-top: 1px solid #ddd;
    background: #fff;
  }

  .l-gnav.is-open {
    display: block;
  }

  .l-gnav__list {
    display: block;
  }

  .l-gnav__item {
    border-bottom: 1px solid #e5e5e5;
  }

  .l-gnav__item a {
    display: block;
    padding: 1.4rem 1rem;
    font-size: 1.4rem;
    line-height: 1.6;
    text-decoration: none;
    color: #333;
  }

  .l-gnav__item + .l-gnav__item::before {
    display: none;
  }

  .l-header {
    border-bottom: 0;
  }


  .l-footer__inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .l-footer__col {
    min-height: auto;
    padding: 20px 0;
    border-left: none;
    border-top: 1px solid #cdcdcd;
  }

  .l-footer__col:last-child {
    border-right: none;
    border-bottom: 1px solid #cdcdcd;
  }

  .l-footer__policy {
    gap: 8px 16px;
    padding: 0 16px;
  }

  .l-footer__policy li + li a::before {
    display: none;
  }

  .l-footer__policy a {
    font-size: 1rem;
  }
}