/*
 * Connector's Guild shared site shell
 * TOPページの見え方を基準に、追加ページのヘッダー、
 * スマートフォンメニュー、フッターを共通化します。
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e7e7e7;
  backdrop-filter: blur(12px);
}

.site-header .header-inner {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
  text-decoration: none;
}

.site-header .brand img {
  display: block;
  width: 233px;
  height: auto;
}

.site-header .brand span {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
}

.site-header .global-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.site-header .global-nav > span {
  color: #aaa;
}

.site-header .global-nav a {
  color: #222;
  text-decoration: none;
}

.site-header .global-nav a:hover {
  color: #586cad;
}

.site-header .global-nav .header-recruit-link {
  display: inline-flex;
  min-height: 38px;
  padding: 7px 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid #586cad;
  border-radius: 999px;
  color: #586cad;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: color .2s ease,background .2s ease;
}

.site-header .global-nav .header-recruit-link:hover {
  color: #fff;
  background: #586cad;
}

.site-header .menu-toggle,
.mobile-menu,
.mobile-menu .menu-close {
  display: none;
}

.footer {
  padding: 40px 0;
  background: #222;
  color: #fff;
}

.footer .footer-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 30px;
  row-gap: 10px;
}

.footer .footer-logo img,
.footer .footer-inner > a img {
  display: block;
  width: 233px;
  height: auto;
}

.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.footer .footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer .footer-inner > small {
  grid-column: 2;
  color: #586cad;
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}

/* TOPページを基準にした共通Q&A */
.faq-section,
.directory-faq {
  background: url("/common/img/bg_gray.png");
}

.faq-section details,
.directory-faq details {
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 20px;
  background: #fff;
}

.faq-section details + details,
.directory-faq details + details {
  margin-top: 30px;
}

.faq-section summary,
.directory-faq summary {
  position: relative;
  min-height: 40px;
  padding: 6px 55px 6px 50px;
  display: flex;
  align-items: center;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-section summary::-webkit-details-marker,
.directory-faq summary::-webkit-details-marker {
  display: none;
}

.faq-section summary:hover,
.directory-faq summary:hover {
  color: #586cad;
}

.faq-section summary:focus,
.directory-faq summary:focus {
  outline: none;
}

.faq-section summary:focus-visible,
.directory-faq summary:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(88, 108, 173, 0.22);
}

.faq-section summary::before,
.directory-faq summary::before {
  content: "Q";
  position: absolute;
  top: 50%;
  left: 0;
  width: 43px;
  height: 40px;
  border-radius: 50%;
  background: #586cad;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  transform: translateY(-50%);
}

.faq-section summary::after,
.directory-faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 20px;
  height: 20px;
  background: url("/common/img/accord_arr_down.svg") no-repeat center / 100%;
  transform: translateY(-50%);
}

.faq-section details[open] summary::after,
.directory-faq details[open] summary::after {
  background-image: url("/common/img/accord_arr_up.svg");
}

.faq-section details > p,
.directory-faq details > p {
  position: relative;
  margin: 0;
  padding: 20px 0 10px 50px;
  color: #444;
  font-size: 17px;
  line-height: 1.5;
}

.faq-section details > p::before,
.directory-faq details > p::before {
  content: "A";
  position: absolute;
  top: 20px;
  left: 0;
  width: 43px;
  height: 40px;
  border: 1px solid #586cad;
  border-radius: 50%;
  background: #fff;
  color: #586cad;
  font-size: 17px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
}

@media (max-width: 800px) {
  .site-header {
    height: 70px;
    min-height: 70px;
    background: #fff;
  }

  .site-header .header-inner {
    min-height: 70px;
    padding: 10px 15px;
    gap: 14px;
  }

  .site-header .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-header .brand img {
    width: 173px;
  }

  .site-header .brand span {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.15;
  }

  .site-header .global-nav {
    display: none;
  }

  .mobile-menu .mobile-recruit-priority {
    margin: 8px auto 13px;
  }

  .mobile-menu .mobile-recruit-priority a {
    display: block;
    padding: 13px 18px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
  }

  .site-header .menu-toggle {
    display: block;
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 102;
    width: 70px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .site-header .menu-toggle::before,
  .site-header .menu-toggle::after {
    content: "";
    position: absolute;
    right: 8px;
    width: 45px;
    height: 1px;
    background: #222;
  }

  .site-header .menu-toggle::before {
    top: 17px;
  }

  .site-header .menu-toggle::after {
    top: 29px;
  }

  .site-header .menu-toggle span {
    display: none;
  }

  .mobile-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    padding: 72px 24px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: linear-gradient(145deg, #586cad 0%, #6aa672 100%);
    color: #fff;
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .mobile-menu .menu-close {
    display: block;
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 110;
    width: 70px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu .menu-close::before,
  .mobile-menu .menu-close::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 8px;
    width: 45px;
    height: 1px;
    background: #fff;
  }

  .mobile-menu .menu-close::before {
    transform: rotate(45deg);
  }

  .mobile-menu .menu-close::after {
    transform: rotate(-45deg);
  }

  .mobile-menu ul,
  .mobile-menu .mobile-menu-page-links,
  .mobile-menu .mobile-menu-site-links {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: center;
  }

  .mobile-menu a:not(.mobile-cta) {
    display: block;
    padding: 0 16px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 42px;
    text-decoration: none;
  }

  .mobile-menu .menu-current a,
  .mobile-menu a[aria-current="page"],
  .mobile-menu .mobile-menu-title {
    font-weight: 700;
  }

  .mobile-menu .mobile-menu-title {
    margin: 0;
    color: #fff;
    font-size: 15.5px;
    line-height: 42px;
    text-align: center;
  }

  .mobile-menu .menu-divider,
  .mobile-menu .mobile-menu-divider {
    width: 75%;
    height: 1px;
    margin: 10px auto;
    border: 0;
    background: rgba(255, 255, 255, 0.8);
  }

  .mobile-menu .menu-divider ~ li a,
  .mobile-menu .mobile-menu-site-links a {
    font-size: 13.5px;
    line-height: 36px;
  }

  .mobile-menu .mobile-cta {
    display: flex;
    width: min(100%, 340px);
    min-height: 50px;
    margin: 16px auto 0;
    padding: 10px 24px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #586cad;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .footer .footer-inner {
    display: block;
    padding: 0 20px;
    text-align: center;
  }

  .footer .footer-logo img,
  .footer .footer-inner > a img {
    width: 220px;
    margin: 0 auto 28px;
  }

  .footer .footer-links {
    display: grid;
    justify-content: center;
    gap: 12px;
    margin: 0;
    font-size: 14px;
  }

  .footer .footer-inner > small {
    display: block;
    margin-top: 30px;
    text-align: center;
  }

  .faq-section details,
  .directory-faq details {
    padding: 17px 20px;
  }

  .faq-section details + details,
  .directory-faq details + details {
    margin-top: 15px;
  }

  .faq-section summary,
  .directory-faq summary {
    min-height: 40px;
    padding: 4px 35px 4px 50px;
    font-size: 18px;
  }

  .faq-section summary::after,
  .directory-faq summary::after {
    right: 0;
  }

  .faq-section details > p,
  .directory-faq details > p {
    padding: 20px 0 8px 50px;
    font-size: 17px;
    line-height: 1.5;
  }
}
