@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/noto-sans-jp-0-400-normal.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/noto-sans-jp-0-600-normal.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/noto-sans-jp-0-700-normal.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-style: normal;
  font-family: "Noto Sans JP", sans-serif;
  /* background-color: #333; */
}
a {
  text-decoration: none;
  color: inherit;
}
input {
  outline: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  @media (max-width: 1024px) {
    max-width: 100%;
    padding: 0 16px;
  }
}

/* ==================== Header ==================== */

.site-header {
  padding: 14px 0;
  background-color: #fff;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  min-height: 36px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.logo-link img {
  display: block;
}
#mobile-menu-toggle {
  display: none;
}
.nav-wrap {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}
.nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}
.nav-item {
  position: relative;
  font-size: 12px;
  font-weight: 600;
}
.nav-item + .nav-item {
  margin-left: 35px;
}
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.nav-label {
  display: block;
  color: #1f2430;
  line-height: 36px;
  font-size: 14px;
  font-weight: 500;
}
.nav-item-arrow {
  display: block;
  width: 7px;
  height: auto;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.nav-item.active .nav-label {
  color: #007BFF;
}
.nav-item.active .nav-item-arrow {
  opacity: 1;
  transform: rotate(180deg);
}
.desktop-dropdown {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  top: calc(100% + 2px);
  left: -96px;
  width: 414px;
  max-height: 0;
  overflow: hidden;
  padding: 10px 12px 12px;
  border-radius: 0 0 10px 10px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}
.nav-item.active .desktop-dropdown {
  max-height: 414px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 999;
}
.nav-item.active .desktop-dropdown a:hover {
  text-decoration: underline;
}
.nav-item:last-of-type .desktop-dropdown {
  right: 0;
  transform: translateY(0);
  left: unset;
}
.desktop-dropdown-title {
  font-size: 12px;
  color: #007BFF;
}
.desktop-dropdown p {
  font-size: 14px;
  line-height: 1.5;
  color: #1b1b1b;
  border-radius: 8px;
  padding: 10px;
  transition: background-color 0.2s ease;
}
.desktop-dropdown p a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 42px;
}
.desktop-dropdown p:not(:first-child):hover {
  background: #F9FAFB;
}


/* ==================== Footer ==================== */

.site-footer {
  background: #fff;
  padding-top: 160px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-logo {
  flex: 0 0 auto;
}
.footer-logo img {
  width: 176px;
  height: auto;
  display: block;
}
.footer-intro {
  max-width: 540px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
}
.footer-links {
  margin-top: 30px;
  padding: 46px 0;
  display: flex;
  gap: 140px;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
}
.footer-links a {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-social {
  display: flex;
  gap: 40px;
}
.footer-social .footer-social-item-tw:hover {
  content: url(/uploads/page/index/tw-hover.png);
}
.footer-social .footer-social-item-yt:hover {
  content: url(/uploads/page/index/yt-hover.png);
}
.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-subscribe-wrap {
  display: flex;
  gap: 10px;
}
.footer-subscribe-error {
  display: none;
  font-size: 12px;
  color: #ef4444;
  line-height: 1.4;
}
.footer-subscribe input {
  width: 240px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #F3F4F6;
  font-size: 14px;
  color: #111827;
}
.footer-subscribe input::placeholder {
  color: #9ca3af;
}
.footer-subscribe button {
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.footer-subscribe button:hover {
  background: #000;
  color: #c6c6c6;
}
.footer-copy {
  margin-top: 46px;
  text-align: center;
  color: #999;
  font-size: 12px;
  padding-bottom: 30px;
}


/* ==================== Responsive ==================== */

@media (max-width: 1024px) {
  .desktop-dropdown {
    width: 350px;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}
@media (max-width: 820px) {
  .site-header {
    padding: 0;
  }
  .site-header .container {
    padding: 0;
  }
  .header-inner {
    display: block;
    min-height: unset;
    overflow: hidden;
  }
  .logo-link {
    height: 54px;
    border-right: 0;
    justify-content: flex-start;
  }
  .logo-link img {
    width: 98px;
  }
  #mobile-menu-toggle {
    top: 50%;
    right: 16px;
    display: block;
    width: 20px;
    height: auto;
    cursor: pointer;
    transform: rotate(180deg);
    transition: transform 0.25s ease;
  }
  .nav-wrap {
    display: none;
  }
  .header-inner.mobile-menu-open #mobile-menu-toggle {
    transform: rotate(0);
  }
  .header-inner.mobile-menu-open .nav-wrap {
    display: block;
  }
  .nav-list {
    display: block;
    padding: 0;
  }
  .nav-item + .nav-item {
    margin-left: 0;
  }
  .nav-item {
    border-bottom: 1px solid #e6e6e6;
  }
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: auto;
    padding: 20px 40px;
    box-sizing: border-box;
  }
  .nav-label {
    line-height: 1.35;
    font-size: 13px;
    font-weight: 500;
  }
  .nav-item.active .nav-label {
    color: #007BFF;
  }
  .nav-item-arrow {
    display: block;
    width: 10px;
    opacity: 1;
  }
  .nav-item.active .nav-item-arrow {
    transform: rotate(180deg);
  }
  .nav-item.active .desktop-dropdown {
    margin-bottom: 20px;
    max-width: 100%;
  }
  .mobile-menu-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #e6e6e6;
  }
  .desktop-dropdown-title {
    display: none;
  }
  .desktop-dropdown {
    position: unset;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: none;
    padding: 0 40px 0 60px;
  }
  .desktop-dropdown p {
    font-size: 12px;
    padding: 0;
  }
  .desktop-dropdown p a {
    height: 36px;
  }
  .footer-links {
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .site-footer {
    padding-top: 30px;
  }
  .footer-top {
    display: block;
  }
  .footer-logo img {
    width: 116px;
  }
  .footer-intro {
    margin-top: 24px;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }
  .footer-links {
    margin-top: 10px;
    padding: 20px 0;
    display: block;
  }
  .footer-links a:last-child {
    margin-bottom: 0;
  }
  .footer-links a {
    display: block;
    margin-bottom: 24px;
    font-size: 15px;
  }
  .footer-bottom {
    margin-top: 20px;
    display: block;
  }
  .footer-social {
    margin-bottom: 20px;
  }
  .footer-subscribe {
    width: 100%;
  }
  .footer-subscribe input {
    flex: 1;
    width: auto;
  }
  .footer-subscribe button {
    padding: 0 14px;
  }
  .footer-copy {
    margin-top: 20px;
    font-size: 14px;
  }
}
