@import url('https://cdn.jsdelivr.net/npm/remixicon@4.0.0/fonts/remixicon.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
  --kh-white: #ffffff;
  --kh-mint-50: #f0fdf9;
  --kh-teal-500: #14b8a6;
  --kh-teal-600: #0d9488;
  --kh-teal-700: #0f766e;
  --kh-gray-50: #f9fafb;
  --kh-gray-100: #f3f4f6;
  --kh-gray-200: #e5e7eb;
  --kh-gray-600: #4b5563;
  --kh-gray-700: #374151;
  --kh-header-height: 64px;
}

.kh-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.kh-site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9990;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.admin-bar .kh-site-header {
  top: 32px;
}

.kh-header-inner {
  width: 100%;
  min-height: var(--kh-header-height);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.kh-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--kh-teal-700);
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.kh-header-logo::before {
  display: none;
}

.kh-header-logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 999px;
}

.kh-header-logo span {
  display: inline-block;
  white-space: nowrap;
}

.kh-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--kh-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.kh-header-nav a {
  position: relative;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.kh-header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--kh-teal-500);
  transition: width 0.3s ease;
}

.kh-header-nav a:hover {
  color: var(--kh-teal-600);
}

.kh-header-nav a:hover::after {
  width: 100%;
}

.kh-header-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.kh-header-dropdown::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 32px;
  z-index: 9994;
  pointer-events: auto;
}

.kh-header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kh-header-nav-link i {
  font-size: 1rem;
  line-height: 1;
}

.kh-header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 9995;
  display: grid;
  gap: 2px;
  min-width: 250px;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  transform: translate(-50%, 4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease 0.06s, transform 0.18s ease 0.06s, visibility 0s linear 0.24s;
}

.kh-header-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(20, 184, 166, 0.18);
  border-top: 1px solid rgba(20, 184, 166, 0.18);
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.kh-header-dropdown:hover .kh-header-dropdown-menu,
.kh-header-dropdown:focus-within .kh-header-dropdown-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s, 0s, 0s;
}

.kh-header-dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--kh-gray-700);
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: nowrap;
}

.kh-header-dropdown-menu a::after {
  display: none;
}

.kh-header-dropdown-menu a:hover {
  background: var(--kh-mint-50);
  color: var(--kh-teal-600);
}


.kh-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--kh-gray-700);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.kh-menu-button:hover {
  background: var(--kh-gray-100);
}

.kh-mobile-nav {
  display: none;
}

/* Footer */
.kh-footer {
  padding: 58px 0 28px;
  background: #1f3f48;
  color: #ffffff;
}

.kh-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.1fr;
  gap: 36px;
}

.kh-footer p {
  margin: 0;
}

.kh-footer-brand-title {
  margin: 0 0 12px;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}

.kh-footer-brand h2,
.kh-footer-brand h3 {
  margin: 0 0 12px;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}

.kh-footer-brand p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.kh-footer-brand span {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 500;
}

.kh-footer-heading {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
}

.kh-footer h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
}

.kh-footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.kh-footer-links a {
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.kh-footer-links a:hover,
.kh-footer-contact a:hover {
  color: #ffffff;
}

.kh-footer-link-group {
  display: grid;
  gap: 7px;
  margin: 2px 0 4px;
}

.kh-footer-link-parent {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 700 !important;
}

.kh-footer-child-links {
  display: grid;
  gap: 6px;
  padding-left: 14px;
}

.kh-footer-child-link,
.kh-footer-child-link:link,
.kh-footer-child-link:visited {
  position: relative;
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.86rem !important;
}

.kh-footer-child-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: rgba(94, 234, 212, 0.8);
}


.kh-footer-contact {
  display: grid;
  gap: 10px;
}

.kh-footer-contact p {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
}

.kh-footer-contact i {
  color: #5eead4;
  padding-top: 3px;
}

.kh-footer-contact a {
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
}

.kh-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.kh-footer-bottom p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  font-weight: 400;
}

.kh-footer-sns {
  display: flex;
  gap: 10px;
}

.kh-footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.1rem;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .kh-header-nav {
    gap: 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 860px) {
  :root {
    --kh-header-height: 64px;
  }

  .kh-header-inner {
    padding: 12px 24px;
  }

  .kh-header-nav {
    display: none;
  }

  .kh-menu-button {
    display: inline-flex;
  }

  .kh-mobile-nav {
    display: grid;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .kh-mobile-nav.is-open {
    max-height: 900px;
    padding: 12px 24px 18px;
  }

  .kh-mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--kh-gray-700);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
  }

  .kh-mobile-nav a:hover {
    background: var(--kh-mint-50);
    color: var(--kh-teal-600);
  }

  .kh-mobile-nav-parent {
    font-weight: 700 !important;
  }

  .kh-mobile-subnav {
    display: grid;
    gap: 2px;
    margin: -2px 0 4px;
    padding: 0 0 0 14px;
  }

  .kh-mobile-subnav-link,
  .kh-mobile-subnav-link:link,
  .kh-mobile-subnav-link:visited {
    position: relative;
    padding: 9px 14px 9px 24px !important;
    color: var(--kh-gray-600) !important;
    font-size: 0.86rem !important;
  }

  .kh-mobile-subnav-link::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--kh-teal-500);
    transform: translateY(-50%);
  }


  .kh-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kh-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 782px) {
  .admin-bar .kh-site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .kh-container {
    width: min(100% - 32px, 1180px);
  }

  .kh-header-inner {
    padding: 12px 16px;
  }

  .kh-header-logo {
    gap: 8px;
    font-size: 1.08rem;
  }

  .kh-header-logo-image {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 420px) {
  .kh-header-logo {
    gap: 7px;
    font-size: 1rem;
  }

  .kh-header-logo-image {
    width: 34px;
    height: 34px;
  }
}