/* =========================================
   layout.css
   ヘッダー・メイン・フッター
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header__inner,
.site-header__inner--new {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: .02em;
}

.site-logo__image {
  height: 52px;
  width: auto;
  display: block;
}

.site-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1;
}

.site-header__search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-nav a {
  color: #fff;
  opacity: .9;
  font-weight: 700;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown__button {
  background: none;
  border: 0;
  color: #fff;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}

.site-nav-dropdown__button::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
}

.site-nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: #fff;
  color: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  z-index: 1001;
}

.site-nav-dropdown:hover .site-nav-dropdown__menu {
  display: block;
}

.site-nav-dropdown__menu a {
  display: block;
  padding: 12px 16px;
  color: #222;
  opacity: 1;
  border-bottom: 1px solid #f1f1f1;
}

.site-nav-dropdown__menu a:hover {
  background: #f5f5f5;
}

.site-nav-dropdown__empty {
  display: block;
  padding: 12px 16px;
  color: #888;
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 280px;
  max-width: 430px;
  flex: 1;
}

.header-search input {
  width: 100%;
  height: 40px;
  border: 0;
  padding: 0 14px;
  border-radius: 10px 0 0 10px;
  background: #fff;
}

.header-search button {
  height: 40px;
  border: 0;
  background: #0066cc;
  color: #fff;
  padding: 0 16px;
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-menu-button,
.mobile-drawer {
  display: none;
}

.main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 48px;
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 24px 16px;
  background: #111;
  color: #fff;
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .site-header__inner,
  .site-header__inner--new {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-logo {
    justify-content: center;
    text-align: center;
  }

  .site-header__right {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-nav {
    justify-content: center;
  }

  .header-search {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header__inner,
  .site-header__inner--new {
    padding: 12px 14px;
    gap: 10px;
  }

  .site-logo {
    justify-content: center;
    text-align: center;
    font-size: 18px;
  }

  .site-logo__image {
    height: 42px;
  }

  .site-header__right {
    display: block;
  }

  .site-header__search-row {
    width: 100%;
  }

  .header-search {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #0066cc;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
  }

  .site-nav--main,
  .site-nav--member {
    display: none;
  }

  .mobile-drawer {
    position: fixed;
    top: 92px;
    right: 14px;
    width: min(310px, calc(100vw - 28px));
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    background: #fff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
    z-index: 2000;
  }

  body.is-mobile-menu-open .mobile-drawer {
    display: block;
  }

  .mobile-drawer a,
  .mobile-drawer-title,
  .mobile-drawer-empty {
    display: block;
    padding: 13px 16px;
    color: #222;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-drawer a:hover {
    background: #f7f7f7;
  }

  .mobile-drawer-group {
    border-bottom: 1px solid #eee;
  }

  .mobile-drawer-title {
    background: #fafafa;
  }

  .mobile-drawer-title::after {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
  }

  .mobile-drawer-group a {
    padding-left: 28px;
    color: #555;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-drawer-empty {
    padding-left: 28px;
    color: #888;
    font-size: 13px;
  }

  .mobile-drawer-divider {
    height: 8px;
    background: #f3f3f3;
    border-bottom: 1px solid #eee;
  }

  .main {
    padding: 0 14px 36px;
  }
}
.site-footer {
  margin-top: 60px;
  padding: 30px 20px;
  background: #222;
  color: #fff;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

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

.footer-company {
  font-size: 14px;
  line-height: 1.8;
}