@charset "UTF-8";

/*!
 * Header Style
 * Author: SSTA
 * Date: 2026-05-21
 */

/* =================================================
   Header Common (Base)
   ================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

#header_nav_wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

/* =================================================
   Header Logo & Nav Structure
   ================================================= */
/* --- PC Layout (1201px~) --- */
@media screen and (min-width: 1201px) {
  .sp_only {
    display: none !important;
  }

  .pc_only {
    display: flex !important;
  }

  #header_nav {
    display: block !important;
    transform: none !important;
  }

  #header_nav_wrapper {
    height: 66px;
  }

  .header_inner {
    display: flex;
    align-items: center;
    overflow: visible;
    height: 66px;
    justify-content: space-between;
    padding: 15px 30px;
  }

  /* Logo */
  .header_logo a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
  }

  .header_logo span:nth-child(1) {
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.05em;
  }

  .header_logo span:nth-child(2) {
    color: #b89a5e;
    font-family: "Outfit", sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 1.1;
    margin-top: 3.5px;
    letter-spacing: 0.15em;
  }
}

/* --- Tablet & SP Layout (~1200px) --- */
@media screen and (max-width: 1200px) {
  .pc_only {
    display: none !important;
  }

  .sp_only {
    display: flex !important;
  }

  body.fixed {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body.fixed #header_nav_wrapper {
    background: transparent !important;
    box-shadow: none !important;
  }

  body.fixed .menu_button p,
  body.fixed .menu_trigger span {
    color: #2c3338 !important;
  }

  body.fixed .sp_logo_text {
    opacity: 0;
    pointer-events: none;
  }

  #header_nav_wrapper {
    height: 50px;
    transition: background 0.35s, box-shadow 0.35s, opacity 0.35s;
  }

  .sp_logo_text {
    display: inline-flex;
    width: max-content;
    align-items: center;
    box-sizing: border-box;
    height: 50px;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(16px, 16px + (20 - 16) * ((100vw - 768px) / (1200 - 768)), 19px);
    font-weight: 500;
    text-decoration: none;
    padding: 2px 18px 0;
    transition: opacity 0.35s;
  }
}

/* =================================================
   Navigation & Sub Menu
   ================================================= */
/* --- PC Layout (1201px~) --- */
@media screen and (min-width: 1201px) {
  .nav_list {
    display: flex;
    list-style: none;
    height: 66px;
    align-items: stretch;
    gap: 30px;
  }

  .nav_list > li > a,
  .nav_list > li > span {
    position: relative;
    display: flex;
    align-items: center;
    height: 66px;
    line-height: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .nav_list > li > a::after,
  .nav_list > li > span::after {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #b89a5e;
    transform: scaleX(0);
    transform-origin: right top;
    transition: transform 0.3s ease;
  }

  .nav_list > li:hover > a::after,
  .nav_list > li:hover > span::after {
    transform-origin: left top;
    transform: scaleX(1);
  }

  .nav_list > li > a:hover {
    opacity: 1;
  }

  .nav_list_child {
    position: relative;
  }

  .nav_sub_menu {
    position: absolute;
    top: 75px;
    left: -20px;
    flex-direction: column;
    background: #fff;
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    border-radius: 12px;
    border: 1px dotted #eef1f4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
  }

  .nav_sub_menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
  }

  .nav_list_child:hover .nav_sub_menu {
    opacity: 1;
    visibility: visible;
  }

  .nav_sub_menu a {
    display: block;
    padding: 10px 20px;
    color: #2c333a;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
  }

  .nav_sub_menu a:hover {
    background: #fcfbfa;
    color: #1a1f24;
    padding-left: 24px;
    transition: 0.3s ease;
  }

  .nav_arrow {
    position: relative;
    padding-right: 18px;
  }

  .nav_arrow::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    bottom: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-60%) rotate(45deg);
    transition: 0.3s;
  }

  .nav_list_child:hover .nav_arrow::before {
    transform: translateY(-10%) rotate(-135deg);
  }

  #header_nav_wrapper.scrolled {
    background: #fff;
    box-shadow: 0 7px 18px -15px rgba(0, 0, 0, .3);
  }

  #header_nav_wrapper.scrolled .nav_list > li > a,
  #header_nav_wrapper.scrolled .nav_list > li > span {
    color: #2c3338;
  }

  #header_nav_wrapper.scrolled .header_logo span:nth-child(1) {
    color: #2c3338;
    -webkit-text-stroke: 0.2px #2f3f4c;
  }

  #header_nav_wrapper.scrolled .nav_arrow::before {
    border-color: #2c3338;
  }
}

/* --- Tablet & SP Layout (~1200px) --- */
@media screen and (max-width: 1200px) {
  #header_nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 9998;
    padding-top: 35px;
    overflow-y: auto;
  }

  #header_nav.open {
    transform: translateX(0);
  }

  .nav_list {
    display: flex;
    flex-direction: column;
    padding: 25px;
    list-style: none;
  }

  .nav_list > li {
    border-bottom: 1px dotted #eee;
    transform: translateX(-150%);
  }

  .nav_list > li:first-child {
    border-top: 1px dotted #eee;
  }

  #header_nav.open .nav_list > li {
    animation: menu_fadein 0.4s 0.1s forwards;
  }

  .nav_list a,
  .nav_list span {
    display: block;
    padding: 16px 20px;
    color: #2c3338;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    cursor: pointer;
  }

  .nav_list_child > a.nav_arrow {
    padding-right: 60px !important;
  }

  .nav_sub_menu {
    display: none;
    padding: 0 0 15px;
    list-style: none;
    background: #fff;
  }

  .nav_sub_menu a {
    padding: 9px 30px;
    font-size: 13px;
    color: #555;
  }

  .nav_sub_menu a:hover {
    color: #2c3338;
    background: #fdfbfa;
  }

  .nav_arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #2c3338;
    border-bottom: 1.5px solid #2c3338;
    transform: translateY(-70%) rotate(45deg);
    transition: 0.3s;
  }

  .nav_list_child.active .nav_arrow::before,
  .nav_arrow.open::before {
    transform: translateY(-30%) rotate(-135deg);
  }

  #header_nav_wrapper.scrolled {
    background: #fff;
    box-shadow: 0 7px 18px -15px rgba(0, 0, 0, .3);
  }

  #header_nav_wrapper.scrolled .sp_logo_text,
  #header_nav_wrapper.scrolled .menu_button p {
    color: #2c333a;
  }

  #header_nav_wrapper.scrolled .menu_trigger span {
    background: #2c333a;
  }

/* SNS */
  .sp_nav_sns {
    margin-top: 0px;
    padding: 0 45px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .sp_nav_sns p {
    font-size: 11px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    color: #777;
  }

  .sp_nav_sns .sns_list {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
  }

  .sp_nav_sns .sns_list a {
    font-size: 21px;
    color: #555;
    padding: 0;
    transition: color 0.3s;
  }

  .sp_nav_sns .sns_list a:hover {
    color: #2c3338;
  }
}

/* =================================================
   Hamburger Menu (SP)
   ================================================= */
/* --- Tablet & SP Layout (~1200px) --- */
@media screen and (max-width: 1200px) {
  .menu_button {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9999;
    padding: 17px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .menu_button p {
    font-size: 13px;
    font-family: "Outfit";
    letter-spacing: 0.1em;
    margin: 0;
    color: #fff;
    transition: color 0.3s;
  }

  .menu_trigger {
    width: 28px;
    height: 20px;
    position: relative;
  }

  .menu_trigger span {
    position: absolute;
    right: 0;
    height: 1px;
    background: #fff;
    transition: .2s;
    width: 28px;
  }

  .menu_trigger span:nth-child(1) {
    top: 5px;
    width: 28px;
  }

  .menu_trigger span:nth-child(2) {
    top: 13px;
    width: 22px;
  }

  .active .menu_trigger span:nth-child(1) {
    top: 9px;
    width: 28px;
    transform: rotate(-45deg);
    background: #2c333a;
  }

  .active .menu_trigger span:nth-child(2) {
    top: 9px;
    width: 28px;
    transform: rotate(45deg);
    background: #2c333a;
  }

  .nav_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, .45);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
  }

  .nav_overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* =================================================
   Sub Page Settings
   ================================================= */
body.is_sub #header_nav_wrapper {
  background: #fff !important;
  box-shadow: 0 7px 18px -15px rgba(0, 0, 0, .3) !important;
}

body.is_sub main {
  padding-top: 66px;
}

/* --- PC Layout (1201px~) --- */
@media screen and (min-width: 1201px) {

  body.is_sub .nav_list > li > a,
  body.is_sub .nav_list > li > span,
  body.is_sub .header_logo span:nth-child(1) {
    color: #2c3338 !important;
  }

  body.is_sub .header_logo span:nth-child(1) {
    -webkit-text-stroke: 0.2px #2f3f4c;
  }

  body.is_sub .nav_arrow::before {
    border-color: #2c3338 !important;
  }
}

/* --- Tablet & SP Layout (~1200px) --- */
@media screen and (max-width: 1200px) {
  body.is_sub main {
    padding-top: 50px;
  }

  body.is_sub .sp_logo_text,
  body.is_sub .menu_button p {
    color: #2c333a !important;
  }

  body.is_sub .menu_trigger span {
    background: #2c333a !important;
  }
}

/* =================================================
   Animations
   ================================================= */
@keyframes menu_fadein {
  0% {
    opacity: 0;
    transform: translateY(-4%);
  }

  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}
