@charset "UTF-8";

/* ========================================
   header
======================================== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #FFF9F1;
  border-bottom: 1px solid rgba(95, 90, 84, 0.08);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: 16px 0;
}

.l-header__logo {
  min-width: 0;
}

.l-header__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.l-header__lead {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.5;
  color: #5f5a54;
}

.l-header__logo-image {
  margin: 0;
}

.l-header__logo-image img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

/* right */
.l-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* nav */
.l-header__nav {
  display: none;
}

.l-header__nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-header__nav-item {
  margin: 0;
}

.l-header__nav-link {
  display: inline-block;
  color: #5f5a54;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

/* cta */
.l-header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.l-header__web-btn,
.l-header__tel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;
}

.l-header__web-btn {
  min-width: 150px;
  padding: 0 18px;
  background-color: #30b29d;
  color: #ffffff;
}

.l-header__web-btn p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.l-header__tel-btn {
  min-width: 160px;
  padding: 6px 14px;
  border: 3px solid #30b29d;
  background-color: #ffffff;
  color: #30b29d;
  flex-direction: column;
  gap: 2px;
}

.l-header__tel-btn-lead {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.l-header__tel-btn-num {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

/* menu button */
.l-header__menu-btn {
  position: relative;
  z-index: 1102;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.l-header__menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background-color: #30b29d;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* overlay */
.l-header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}

/* open state */
.l-header.is-open .l-header__overlay {
  opacity: 1;
  visibility: visible;
}

.l-header.is-open .l-header__menu-btn span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.l-header.is-open .l-header__menu-btn span:nth-child(2) {
  opacity: 0;
}

.l-header.is-open .l-header__menu-btn span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========================================
   tablet
======================================== */
@media (min-width: 768px) {
  .l-header__inner {
    width: min(100% - 40px, 1200px);
    gap: 20px;
    padding: 18px 0;
  }

  .l-header__lead {
    font-size: 1rem;
  }

  .l-header__logo-image img {
    width: 300px;
  }

  .l-header__right {
    gap: 14px;
  }

  .l-header__cta {
    gap: 12px;
  }

  .l-header__web-btn {
    min-width: 165px;
    min-height: 52px;
    padding: 0 20px;
  }

  .l-header__web-btn p {
    font-size: 1rem;
  }

  .l-header__tel-btn {
    min-width: 170px;
    min-height: 52px;
    padding: 6px 16px;
  }

  .l-header__tel-btn-lead {
    font-size: 1rem;
  }

  .l-header__tel-btn-num {
    font-size: 1rem;
  }

  .l-header__menu-btn {
    width: 48px;
    height: 48px;
  }
}

/* ========================================
   pc
======================================== */
@media (min-width: 1024px) {
  .l-header__inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: start;
    width: min(100% - 48px, 1200px);
    padding: 18px 0 20px;
  }

  .l-header__logo-image img {
    width: 340px;
  }

  .l-header__right {
    display: grid;
    justify-items: end;
    gap: 18px;
  }

  .l-header__cta {
    position: static;
    order: 1;
    width: auto;
    padding: 0;
    background: transparent;
    border-top: 0;
    z-index: auto;
  }

  .l-header__nav {
    display: block;
    order: 2;
  }

  .l-header__nav-list {
    gap: 30px;
  }

  .l-header__nav-link {
    font-size: 1.2rem;
  }

  .l-header__web-btn {
    min-width: 170px;
    min-height: 58px;
    border-radius: 10px;
  }

  .l-header__tel-btn {
    min-width: 190px;
    min-height: 58px;
    border-radius: 10px;
  }

  .l-header__tel-btn-lead {
    font-size: 1.1rem;
  }

  .l-header__tel-btn-num {
    font-size: 1.5rem;
  }

  .l-header__menu-btn,
  .l-header__overlay {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ========================================
   mobile / tablet drawer
======================================== */
@media (max-width: 1023px) {
  .l-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1101;
    display: block;
    width: min(78vw, 340px);
    height: 100dvh;
    padding: 96px 24px 32px;
    background-color: #FFF9F1;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .l-header.is-open .l-header__nav {
    transform: translateX(0);
  }

  .l-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .l-header__nav-item {
    border-bottom: 1px solid rgba(95, 90, 84, 0.12);
  }

  .l-header__nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* ========================================
   mobile / fixed cta
======================================== */
@media (max-width: 767px) {
  body {
    padding-bottom: 76px;
  }

  .l-header__inner {
    width: min(100% - 24px, 1200px);
    gap: 10px;
    padding: 12px 0;
  }

  .l-header__lead {
    margin-bottom: 4px;
    font-size: 0.5rem;
  }

  .l-header__logo-image img {
    width: 180px;
  }

  .l-header__right {
    gap: 8px;
  }

  .l-header__cta {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background-color: #FFF9F1;
    border-top: 1px solid rgba(95, 90, 84, 0.12);
    z-index: 999;
  }

  .l-header__web-btn,
  .l-header__tel-btn {
    flex: 1;
    min-height: 52px;
    border-radius: 8px;
  }

  .l-header__web-btn {
    min-width: 0;
    padding: 0 10px;
  }

  .l-header__web-btn p {
    font-size: 0.825rem;
  }

  .l-header__tel-btn {
    min-width: 0;
    padding: 4px 10px;
    border-width: 2px;
  }

  .l-header__tel-btn-lead {
    font-size: 0.9rem;
  }

  .l-header__tel-btn-num {
    font-size: 1rem;
  }

  .l-header__menu-btn {
    width: 40px;
    height: 40px;
    gap: 5px;
  }

  .l-header__menu-btn span {
    height: 2px;
  }
}

/* ========================================
   hover
======================================== */
@media (hover: hover) and (pointer: fine) {
  .l-header__nav-link:hover,
  .l-header__web-btn:hover,
  .l-header__tel-btn:hover {
    opacity: 0.7;
  }
}

/* ========================================
   body lock
======================================== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #FFF9F1;
  border-bottom: 1px solid rgba(95, 90, 84, 0.08);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

@media (min-width: 768px) {
  .l-header.is-hidden {
    transform: translateY(-100%);
  }
}