/* ==================================================
   Header SP
   - SP header / SP menu only
================================================== */

.chikko-sp-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10010;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  width: 100%;
  padding-left: 5%;
  padding-right: 0;
  box-sizing: border-box;
  background: transparent;
  transition: background 0.25s ease;
  border-bottom: 2px solid #1e2087;
}

.chikko-header-fixed.is-scrolled .chikko-sp-header,
.chikko-header-fixed.is-menu-open .chikko-sp-header {
  background: #fff;
}

.chikko-sp-header .sp-header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.chikko-sp-header .sp-header-logo__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 35px;
}

.chikko-sp-header .sp-header-logo img {
  display: block;
  width: auto;
  height: auto;
}

.chikko-sp-header .sp-header-logo .logo-normal,
.chikko-sp-header .sp-header-logo .logo-white {
  position: absolute;
  top: 50%;
  left: 0;
  height: 35px;
  width: auto;
  max-width: none;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chikko-sp-header .sp-header-logo .logo-normal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chikko-sp-header .sp-header-logo .logo-white {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chikko-header-fixed.is-scrolled .chikko-sp-header .sp-header-logo .logo-normal,
.chikko-header-fixed.is-menu-open .chikko-sp-header .sp-header-logo .logo-normal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chikko-header-fixed.is-scrolled .chikko-sp-header .sp-header-logo .logo-white,
.chikko-header-fixed.is-menu-open .chikko-sp-header .sp-header-logo .logo-white {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chikko-sp-header .sp-menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 70px;
  height: 70px;
  padding: 0;
  margin-left: auto;
  border: 0;
  background: #1e2087;
  cursor: pointer;
}

.chikko-sp-header .sp-menu-btn__lines {
  position: relative;
  display: block;
  width: 26px;
  height: 18px;
}

.chikko-sp-header .sp-menu-btn__lines span {
  position: absolute;
  left: 0;
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.chikko-sp-header .sp-menu-btn__lines span:nth-child(1) {
  top: 0;
}

.chikko-sp-header .sp-menu-btn__lines span:nth-child(2) {
  top: 8px;
}

.chikko-sp-header .sp-menu-btn__lines span:nth-child(3) {
  top: 16px;
}

.chikko-header-fixed.is-menu-open .chikko-sp-header .sp-menu-btn__lines span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.chikko-header-fixed.is-menu-open .chikko-sp-header .sp-menu-btn__lines span:nth-child(2) {
  opacity: 0;
}

.chikko-header-fixed.is-menu-open .chikko-sp-header .sp-menu-btn__lines span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* ----------------------------------
   SP Menu overlay
---------------------------------- */
.sp-menu-overlay {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 10000;
}

.sp-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ----------------------------------
   SP Menu panel
---------------------------------- */
.sp-menu-panel {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  overflow-y: auto;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 10005;
  box-sizing: border-box;
}

.sp-menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sp-menu-panel .sp-menu-content {
  width: 100%;
  margin: 0;
  padding: 30px 10px;
  box-sizing: border-box;
}

.sp-menu-panel .menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-menu-panel .menu-list > li {
  list-style: none;
  border-bottom: 1px solid #d9d9d9;
}

/* お問い合わせの下線削除 */
.sp-menu-panel .menu-list > li.sp-contact-item {
  border-bottom: none;
}

/* 言語スイッチャーの下線削除 */
.sp-menu-panel .menu-list > li.sp-language-switcher-item {
  border-bottom: none;
  padding: 10px 20px;
}

.sp-menu-panel .menu-list a {
  text-decoration: none;
}

.sp-menu-panel .menu-list > li > a {
  display: block;
  width: 100%;
  padding: 20px 5%;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  box-sizing: border-box;
  font-weight: 500;
}

.sp-menu-panel .sp-contact-item .sp-contact-link {
  color: #fff;
}

/* ----------------------------------
   SP accordion
---------------------------------- */
.sp-menu-parent-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 5%;
  border: 0;
  background: #fff;
  color: #111;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.sp-menu-parent-btn__text {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.sp-menu-parent-btn__icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.sp-menu-parent-btn__icon::before,
.sp-menu-parent-btn__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #1e2087;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sp-menu-parent-btn__icon::before {
  width: 18px;
  height: 2px;
}

.sp-menu-parent-btn__icon::after {
  width: 2px;
  height: 18px;
}

.has-sub.is-open .sp-menu-parent-btn {
  border-bottom: 1px solid #d9d9d9;
}

.has-sub.is-open .sp-menu-parent-btn__icon::after {
  opacity: 0;
}

.sp-sub-panel {
  display: block;
  max-height: 0;
  padding: 0 5%;
  opacity: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition:
    max-height 0.32s ease,
    padding 0.22s ease,
    opacity 0.18s ease;
}

.has-sub.is-open .sp-sub-panel {
  max-height: 1200px;
  padding: 20px 5% 24px;
  opacity: 1;
}

.sp-sub-panel__heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 18px;
  color: #1e2087;
}

.sp-sub-panel__heading-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #1e2087;
}

.sp-sub-panel__heading-arrow {
  font-size: 16px;
  line-height: 1;
}

.sp-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 12px;
  margin-top: 10px;
}

.sp-sub-card {
  display: block;
  color: #111;
}

.sp-sub-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e9e9;
}

.sp-sub-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-sub-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

.sp-sub-card__title-text {
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}

.sp-sub-card__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.sp-sub-card:hover .sp-sub-card__arrow {
  transform: translateX(4px);
}

.sp-sub-panel__bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #1e2087;
  font-size: 14px;
  line-height: 1.5;
}

/* ----------------------------------
   Contact
---------------------------------- */
.sp-menu-panel .sp-contact-item {
  display: block;
  padding: 24px 5%;
  border-bottom: 0;
}

.sp-menu-panel .sp-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  background: #1e2087;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
}

/* =================================
   SP language switcher
================================= */
.sp-contact-item {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sp-language-switcher-item {
  padding-top: 14px;
  border-top: none;
  border-bottom: none;
}

.sp-language-switcher {
  position: relative;
  display: inline-block;
  padding: 0;
}

.sp-language-switcher__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 30px 6px 30px;
  box-sizing: border-box;
  border: 1px solid #cfcfcf;
  background-color: #fff;
  background-image: url("/wp-content/uploads/2026/03/Language.svg");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 14px 14px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  color: #111;
  cursor: pointer;
}

.sp-language-switcher__label::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 10px;
  line-height: 1;
  color: #111;
  transition: transform 0.2s ease;
}

.sp-language-switcher.is-open .sp-language-switcher__label::after {
  transform: translateY(-50%) rotate(180deg);
}

.sp-language-switcher__menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 108px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #cfcfcf;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sp-language-switcher.is-open .sp-language-switcher__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sp-language-switcher__item {
  border-top: 1px solid #eee;
}

.sp-language-switcher__item:first-child {
  border-top: none;
}

.sp-language-switcher__link {
  display: block;
  padding: 5px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #111;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.sp-language-switcher__link.is-current,
.sp-language-switcher__link:hover {
  background: #f3f3f3;
  color: #1e2087;
}


/* ----------------------------------
   Utility
---------------------------------- */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 1024px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: flex;
  }

  .chikko-sp-header {
    display: flex;
  }

  .chikko-header-fixed{
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .sp-sub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .sp-sub-panel__heading-text {
    font-size: 18px;
  }

  .sp-sub-card__title-text {
    font-size: 13px;
  }
}

@media screen and (max-width: 782px) {
  html #wpadminbar {
    height: 46px;
    min-width: 240px;
    display: none;
  }
}

html{
  margin-top: 0!important;
}