/* ========================================
   Site Chrome — ニューワンズコーポレート
   ヘッダー・フッター・追従UI
======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z_header);
  background: var(--color-bg);
  box-shadow: none;
}

.header_main {
  position: relative;
  background: var(--color-bg);
}

.header_main_inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 16px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 12px clamp(16px, 3vw, 40px) 10px;
  padding-right: calc(58px + clamp(16px, 3vw, 40px));
  position: relative;
}

.header_brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.header_logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.header_logo img {
  width: min(55px, 22vw);
  height: auto;
}

.header_brand_txt {
  flex: 1 1 auto;
  min-width: 0;
}

.header_brand_name {
  margin: 0 0 2px;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
  font-family: var(--font-base);
}

.header_brand_desc {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--color-text);
}

.header_right {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.header_actions {
  display: none;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header_tel_num {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
}

.header_tel_num a {
  color: var(--color-text);
  text-decoration: none;
}

.header_tel_num a:hover {
  color: var(--color-accent);
}

.header_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 140px;
  height: 40px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), opacity var(--transition-base);
}

.header_btn img {
  flex: 0 0 auto;
  width: 18px;
  height: auto;
  position: relative;
  z-index: 1;
  transition: filter var(--transition-base);
}

.header_btn_outline {
  background: var(--color-bg);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.header_btn_outline:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
  opacity: 1;
  text-decoration: none;
}

.header_btn_outline:hover img {
  filter: brightness(0) invert(1);
}

.header_btn_primary {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient-brand);
  color: var(--color-text-inverse);
  border: none;
}

.header_btn_primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-brand-reverse);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.header_btn_primary:hover::before {
  opacity: 1;
}

.header_btn_primary:hover {
  background: var(--gradient-brand);
  color: var(--color-text-inverse);
  opacity: 1;
  text-decoration: none;
}

.header_btn_primary span {
  position: relative;
  z-index: 1;
}

.header .global_menu {
  display: none;
  width: 100%;
}

.global_menu > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global_menu > ul > li > a {
  display: block;
  padding: 6px clamp(8px, 1.2vw, 16px);
  color: var(--color-text);
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 16px);
  white-space: nowrap;
}

.global_menu > ul > li > a:hover,
.global_menu > ul > li.is_active > a {
  color: var(--color-accent);
  text-decoration: none;
}

.header .sp_dnav_btn {
  display: block;
}

.sp_dnav_btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 65px;
    height: 65px;
    margin: 0;
    padding: 0;
    border: none;
    background: var(--gradient-brand);
    cursor: pointer;
    border-radius: 0;
}

.sp_dnav_btn .inn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sp_dnav_btn .ct {
  position: relative;
  width: 24px;
}

.sp_dnav_btn .ct .line i {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 8px;
  background-color: var(--color-text-inverse);
  transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.sp_dnav_btn .ct .line i:last-child {
  margin-bottom: 0;
}

.sp_dnav_btn.is_open .ct .line i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  margin-bottom: 0;
}

.sp_dnav_btn.is_open .ct .line i:nth-child(2) {
  opacity: 0;
}

.sp_dnav_btn.is_open .ct .line i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.drawer_overlay {
  display: none;
  position: fixed;
  z-index: var(--z_drawer_overlay);
  top: var(--header_height);
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% - var(--header_height));
  background-color: rgba(0, 0, 0, 0.5);
}

.drawer_nav {
  position: absolute;
  z-index: var(--z_drawer);
  top: 0;
  right: 0;
  overflow-y: auto;
  width: min(400px, 85vw);
  max-width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  -webkit-overflow-scrolling: touch;
}

.drawer_menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer_menu li {
  margin: 0;
}

.drawer_menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  font-size: 94%;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-light);
  background-color: var(--color-surface-muted);
  color: var(--color-text);
}

.drawer_menu li a i {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  color: var(--color-accent);
}

.drawer_nav .cv_tel,
.drawer_nav .drawer_cv_tel {
  margin: 16px 20px 24px;
  padding: 0;
  text-align: center;
  line-height: 1.5;
}

.drawer_cv_tel_label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-text);
}

.drawer_cv_tel_num {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  font-weight: 700;
}

.drawer_cv_tel_num i {
  color: var(--color-accent);
  font-size: 0.9em;
}

.drawer_cv_tel_num a {
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.drawer_cv_tel_hours {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-light);
}

.btn_gotop {
  position: fixed;
  bottom: 80px;
  right: 2vw;
  z-index: var(--z_pagetop);
  background: var(--color-surface-muted);
  border-radius: 50%;
  font-size: 0.75em;
  text-align: center;
  transition: background var(--transition-base);
  width: 50px;
  height: 50px;
  line-height: 50px;
}

.btn_gotop:hover {
  background: var(--color-accent);
}

.btn_gotop a {
  color: var(--color-text);
  text-decoration: none;
  display: block;
}

.btn_gotop:hover a {
  color: var(--color-text-inverse);
}

.footer {
  margin-bottom: 69px;
}

.footer_inner {
  color: var(--color-text);
  padding: clamp(40px, 6vw, 60px) 0 clamp(24px, 4vw, 40px);
  margin-bottom: 60px;
}

.footer_inner_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  align-items: flex-start;
  justify-content: space-between;
}

.footer_brand {
  flex: 1 1 280px;
  max-width: 100%;
}

.footer_box {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.footer_box p {
  margin-bottom: 0;
}

.footer_box div {
  margin-left: 15px;
}

.footer_logo {
  display: inline-block;
  margin-bottom: 8px;
}

.footer_logo img {
  width: min(50px, 30vw);
  height: auto;
}

.footer_brand_name {
  margin: 0 0 2px;
  font-size: 16px;
}

.footer_brand_desc {
  margin: 0 0 16px;
  font-size: 10px;
}

.footer_address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.95;
}

.footer_address p {
  margin: 0;
}

.footer_nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 80px);
  /*flex: 1 1 320px;*/
}

.footer_nav_col {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer_nav_col li {
  margin-bottom: 8px;
}

.footer_nav_col a {
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer_nav_col a:hover {
  color: var(--color-accent);
}

.footer_bottom {
  width: 95%;
  margin: 0 auto;
  padding: 40px 0;
  border-top: solid 1px var(--color-border);
}

.footer_bottom::before,
.footer_bottom::after {
  display: none;
}

.footer_copy {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-brand-strong);
}

p.footer_copy {
  margin-bottom: 0;
}

.sp_foot_btns {
  position: fixed;
  z-index: var(--z_sp_footer);
  bottom: 0;
  left: 0;
  width: 100%;
}

.sp_foot_btns ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp_foot_btns ul li {
  width: 50%;
}

.sp_foot_btns ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  border: 2px solid var(--color-bg);
  text-decoration: none;
  background: var(--gradient-brand);
}

.sp_foot_btns ul li:first-child a {
  background: var(--color-brand-strong);
}

.sp_foot_btns ul li a span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-text-inverse);
  font-size: 80%;
  font-weight: 500;
  text-decoration: none;
}

.sp_foot_btns ul li a:hover span,
.sp_foot_btns ul li a:focus-visible span {
  color: var(--color-text-inverse);
  text-decoration: none;
}

.sp_foot_btns ul li a span i {
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-inverse);
}

@media (min-width: 768px) {
  .header_logo img {
    width: min(55px, 10vw);
  }

  .footer {
    margin-bottom: 0;
  }
}

@media (min-width: 1280px) {
  .header_main_inner {
    align-items: center;
    padding: 10px clamp(16px, 3vw, 40px) 8px;
  }

  .header_brand {
    flex: 0 1 auto;
    order: 1;
    margin-top: 10px;
  }

  .header .header_actions {
    display: flex;
    flex: 0 0 auto;
    order: 2;
    margin-left: auto;
  }

  .header .global_menu {
    display: block;
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }

  .header .sp_dnav_btn {
    display: none;
  }

  .drawer_nav .drawer_cv_tel {
    display: none;
  }

  .btn_gotop {
    bottom: 30px;
  }

  .global_menu ul li {
    margin-bottom: 0;
  }
}

@media (max-width: 1279px) {
  .header_main_inner {
    align-items: center;
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 767px) {
  .sp_foot_btns ul li {
    margin-bottom: 0;
  }
}
