/* ---------- Simple Modern Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-family: "BIZ UDPGothic", sans-serif;
  background-color: #fff;
  min-height: 100vh;
  color: #121212;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.header {
  background: white;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}
@media screen and (max-width: 1000px) {
  .header {
    padding: 0 10px 0 15px;
  }
}

.header-content {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
@media screen and (max-width: 1000px) {
  .heart-image {
    max-width: 300px;
  }

  .header-content {
    height: 60px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: normal;
}

.logo-icon {
  width: 120px;
  line-height: normal;
}
@media screen and (max-width: 1000px) {
  .logo {
    gap: 10px;
  }
  .logo-icon {
    width: 100px;
  }
}

.company-name {
  width: 230px;
  line-height: normal;
}
@media screen and (max-width: 1000px) {
  .company-name {
    width: 200px;
  }
}

.nav-desktop {
  display: flex;
  gap: 0;
}

.nav-desktop a {
  position: relative;
  padding: 0 22px 0 10px;
  text-decoration: none;
  color: #121212;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.3s;
}

@media (max-width: 1000px) {
  .nav-desktop {
    display: none;
  }
}
.nav-desktop a:last-child {
  padding-right: 0;
}

.nav-desktop a:not(:last-child)::after {
  content: "｜";
  position: absolute;
  right: 0;
  top: 0;
  color: #999;
}

.nav-desktop a:hover {
  color: #d80c24;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 1002;
}

.hamburger {
  position: relative;
  width: 20px;
  height: 2px;
  background: #d80c24;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: #d80c24;
  transition: all 0.3s ease;
  left: 0;
  z-index: 100000;
}
@media screen and (max-width: 1000px) {
  .menu-toggle {
    display: block;
  }
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #ededeb;
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

.mobile-nav-menu {
  padding: 70px 20px;
}

.mobile-nav-menu a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #b0b0b0;
  text-decoration: none;
  color: #121212;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #c2c2c2;
  transition: background 0.3s;
}

.mobile-nav-menu a:hover {
  background: #f8f9fa;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.section-last {
  padding-bottom: 280px;
}
.footer {
  position: relative;
  padding: 180px 0 0;
  text-align: center;
  overflow: hidden;
  margin-top: -180px;
}
.footer-inner {
  background-color: #f5f5f5;
  margin: 0;
  padding: 50px 0 1em;
}

.footer-illust {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background-image: url("/heartful/assets/images/footer-illust.png");
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 180px;
  pointer-events: none;
}

.company-name-footer {
  font-size: 24px;
  font-weight: bold;
  width: 300px;
  color: #121212;
  text-align: center;
  margin: 0 auto 30px;
}
.company-name-footer a:hover {
  opacity: 0.8;
  transition: opacity 0.3s;
}
.company-name-footer img {
  width: 100%;
}
@media screen and (max-width: 768px) {
  .company-name-footer {
    width: 50%;
  }
}

.footer-nav-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}
.footer-nav-item {
  color: #121212;
  text-decoration: none;
  font-size: 17px;
  padding: 5px 10px;
}
.footer-nav-item:hover {
  color: #d80c24;
  transition: color 0.3s;
}
.footer-nav-item:not(:last-child)::after {
  content: "｜";
  color: #121212;
  margin-left: 10px;
}

.footer-policy-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-policy-link {
  color: #121212;
  text-decoration: none;
  font-size: 17px;
}
.footer-policy-link:hover {
  color: #d80c24;
  transition: color 0.3s;
}

.footer-policy-link:not(:last-child)::after {
  content: "｜";
  color: #121212;
  margin-left: 20px;
}

.copyright {
  color: #666;
  font-size: 12px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .footer {
    padding: 140px 0 0;
  }
  .footer-illust {
    height: 140px;
    background-size: auto 140px;
  }
  .company-name-footer {
    width: 70%;
    max-width: 350px;
  }
  .footer-nav-menu {
    flex-direction: column;
    gap: 15px;
  }
  .footer-nav-item:not(:last-child)::after {
    display: none;
  }
  .footer-policy-links {
    flex-direction: column;
    gap: 15px;
  }
  .footer-policy-link:not(:last-child)::after {
    display: none;
  }
}

/* ========== Back‑to‑Top ボタン ========== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #c5c5c5;
  background: #fff;
  cursor: pointer;
  outline: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.back-to-top::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-left: 2px solid #d80c24;
  border-top: 2px solid #d80c24;
  transform: translate(-50%, -25%) rotate(45deg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  z-index: 100;
}
.back-to-top:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 480px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}
.sp-only {
  display: none;
}
@media screen and (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}

.pc-only {
  display: inline;
}
@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
}
