/* ============================================================
   YU PLANNING - layout
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 105px;
  background-color: var(--color-white);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 7%;
}

/* ---- Column layout: logo 20% / nav 76.3% / icon 3% ---- */
.header-logo-col {
  width: 20%;
  flex-shrink: 1;
  display: flex;
  align-items: center;
}

.header-nav-col {
  width: 76.3%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-icon-col {
  width: 3%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Logo ---- */
.site-logo img {
  width: 90%; /* 90% of the 20% column */
  max-width: 455px;
}

/* ---- PC Nav ---- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 5px; /* スペースの間隔 */
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-nav-text);
  white-space: nowrap;
  transition: color 0.2s, transform 0.2s;
}

.nav-list > li > a:hover {
  color: var(--color-nav-hover);
  transform: translateY(5px);
}

.nav-list > li > a.is-active {
  color: var(--color-nav-active);
}

/* ---- Dropdown ---- */
.has-dropdown {
  display: flex;
  align-items: center;
}

.dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  color: var(--color-nav-text);
  transition: transform 0.2s;
  pointer-events: none;
}

.nav-list > li:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.nav-list > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-nav-text);
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: var(--color-pink-bg);
  color: var(--color-nav-hover);
}

.header-hamburger-col {
  display: none; /* PC: hidden */
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

/* ---- Phone icon (Tablet / Mobile only) ---- */
.header-tel-icon {
  display: none; /* PC: hidden */
}

.header-tel-icon a {
  display: flex;
  align-items: center;
  color: var(--color-btn);
  transition: color 0.2s;
}

.header-tel-icon a:hover {
  color: var(--color-btn-hover);
}



/* ---- Hamburger Button ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  visibility: hidden;
}
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Mobile Nav Drawer ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 105px;
  left: 0;
  width: 100%;
  height: calc(100vh - 105px);
  background-color: var(--color-white);
  overflow-y: auto;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-list {
  padding: 24px 5%;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--color-pink-bg);
}

.mobile-nav-list > li > a {
  display: block;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-nav-text);
  transition: color 0.2s;
}

.mobile-nav-list > li > a:hover {
  color: var(--color-nav-hover);
}

.mobile-nav-list > li > a.is-active {
  color: var(--color-nav-active);
}

/* Mobile Dropdown Toggle */
.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-nav-text);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-main);
}

.mobile-dropdown-toggle .dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.mobile-dropdown-toggle.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  display: none;
  background-color: var(--color-pink-bg);
}

.mobile-dropdown-content.is-open {
  display: block;
}

.mobile-dropdown-content a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-nav-text);
  transition: color 0.2s;
}

.mobile-dropdown-content a:hover {
  color: var(--color-nav-hover);
}


.mobile-dropdown-item {
  position: relative;
}

.mobile-dropdown-link {
  display: block;
  padding: 16px 40px 16px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-nav-text);
  font-family: var(--font-main);
}

.mobile-dropdown-item .mobile-dropdown-toggle {
  position: absolute;
  top: 0;
  right: 0;
  justify-content: flex-end;
  width: 40px;
  padding: 16px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-footer-bg);
}

/* ---- Upper inner section: nav + contact button ---- */
.footer-nav-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1% 7%;
  position: relative;
}

.footer-nav-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 7%;
  right: 7%;
  height: 1px;
  background-color: #947873;
}

.footer-nav-col {
  width: 75%;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav li {
  display: flex;
  align-items: center;
}

.footer-nav li + li::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  background-color: rgba(255,255,255,0.5);
  margin: 0 12px;
}

.footer-nav a {
  display: block;
  padding: 12px 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-btn);
  text-decoration: none;
  border-bottom: 3px solid var(--color-btn);
  padding-bottom: 7px;
}

.footer-nav a.is-active {
  color: #5E5E5E;
  text-decoration: none;
  border-bottom: 3px solid #5E5E5E;
  padding-bottom: 7px;
}

.footer-btn-col {
  width: 25%;
  display: flex;
  justify-content: flex-end;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background-color: var(--color-btn);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-main);
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.footer-contact-btn:hover {
  background-color: var(--color-btn-hover);
}

/* ---- Lower inner section: copyright + SNS ---- */
.footer-bottom-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1% 7%;
}

.footer-copy {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-white);
  opacity: 0.8;
}

.footer-sns a {
  display: flex;
  align-items: center;
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-sns a:hover { opacity: 1; }

.footer-sns svg { width: 22px; height: 22px; }

/* ============================================================
   RESPONSIVE - Tablet: 768px ~ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 5%;
  }

  /* Tablet column: logo 75% / nav+icon remaining */
  .header-logo-col {
    width: 75%;
  }

  .site-logo img {
    width: 88%;
  }

  .header-nav-col {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    gap: 0;
  }

  /* Phone icon: hidden on Tablet */
  .header-tel-icon {
    display: none;
  }

  /* Hamburger: hidden on Tablet */
  .header-hamburger-col {
    display: none;
  }

  .nav-list > li > a {
    font-size: 13px;
    padding: 0 8px;
  }

  .site-footer {
    padding: 40px 0 24px;
  }
}

/* ============================================================
   RESPONSIVE - Mobile: ~ 767px
   ============================================================ */
@media (max-width: 767px) {
  .header-inner {
    padding: 0 5%;
  }

  /* Mobile column: logo 55% / hamburger 35% / tel 10% */
  .header-logo-col {
    width: 55%;
  }

  .site-logo img {
    width: 100%;
  }

  .header-nav-col {
    display: none;
    width: 0;
  }

  .header-hamburger-col {
    width: 32%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .header-icon-col {
    width: 13%;
  }

  /* Phone icon: visible on Mobile */
  .header-tel-icon {
    display: flex;
  }

  .header-tel-icon svg {
    width: 23px;
    height: 23px;
  }

  /* Hamburger: visible */
  .hamburger {
    display: flex;
    width: 32px;
    height: 32px;
  }

  /* Mobile nav drawer */
  .mobile-nav {
    display: block;
  }

  /* Footer */
  .site-footer {
    padding: 14px 0 16px;
  }

  .footer-nav-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav-col {
    width: 100%;
  }

  .footer-btn-col {
    width: 100%;
    justify-content: center;
    padding-bottom: 2%;
  }

  .footer-nav li + li::before {
    margin: 0 8px;
  }

  .footer-nav a {
    font-size: 14px;
    padding: 8px 4px;
  }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 2%;
  bottom: 12px;
  width: 45px;
  height: 45px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
  transition: opacity 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: #9F465C;
}

.back-to-top svg {
  width: 100%;
  height: 100%;
}

.back-to-top-circle {
  fill: #B36A79;
}

.back-to-top:hover .back-to-top-circle {
  fill: #9F465C;
}

.back-to-top-arrow {
  fill: #ffffff;
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: 10%;
  }
}

