/*
 * あわら三国ライオンズクラブ
 * 04｜Header & Footer
 * Version: 1.0.0
 */

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

.amlc-site-header {
  position: relative;
  z-index: 100;

  width: 100%;

  background: var(--amlc-white);

  border-bottom: 1px solid var(--amlc-border);
}

.amlc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: 100%;
  max-width:
    calc(var(--amlc-container) + 2 * var(--amlc-gutter));

  min-height: 84px;

  margin-inline: auto;
  padding-inline: var(--amlc-gutter);
}

/* Logo */

.amlc-logo {
  display: inline-flex;

  align-items: center;
  gap: 12px;

  min-width: 0;

  color: var(--amlc-blue);
  text-decoration: none;
}

.amlc-logo__image {
  width: 58px;
  height: auto;
  flex-shrink: 0;
}

.amlc-logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;

  color: var(--amlc-blue);
}

.amlc-logo__name {
  font-family: var(--amlc-font-heading);

  font-size: 17px;
  font-weight: 700;

  line-height: 1.4;
}

.amlc-logo__english {
  font-size: 10px;
  letter-spacing: 0.07em;
}

/* Desktop Navigation */

.amlc-desktop-nav {
  display: flex;
  align-items: center;
}

.amlc-desktop-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 22px);

  margin: 0;
  padding: 0;

  list-style: none;
}

.amlc-desktop-nav a {
  display: inline-flex;
  align-items: center;

  min-height: 44px;

  color: var(--amlc-blue);

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;
  white-space: nowrap;
}

.amlc-desktop-nav a:hover {
  color: var(--amlc-blue-action);
}

.amlc-desktop-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--amlc-blue);
}

/* Header Actions */

.amlc-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.amlc-header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 9px 18px;

  background: var(--amlc-blue);
  color: var(--amlc-white);

  border-radius: 6px;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;
}

.amlc-header-actions a:hover {
  background: var(--amlc-blue-dark);
  color: var(--amlc-white);
}

/* Mobile Navigation Base */

.amlc-mobile-nav {
  display: none;
  position: relative;
}

.amlc-mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 44px;
  min-height: 44px;

  padding: 8px;

  border: 1px solid var(--amlc-border);
  border-radius: 6px;

  color: var(--amlc-blue);

  cursor: pointer;

  list-style: none;
}

.amlc-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.amlc-mobile-nav__panel {
  position: absolute;

  top: calc(100% + 12px);
  right: 0;

  width: min(320px, calc(100vw - 32px));

  padding: 16px;

  background: var(--amlc-white);

  border: 1px solid var(--amlc-border);
  border-radius: var(--amlc-radius-sm);

  box-shadow: var(--amlc-shadow-hover);

  z-index: 200;
}

.amlc-mobile-nav__panel ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.amlc-mobile-nav__panel a {
  display: block;

  padding: 12px 10px;

  color: var(--amlc-blue);

  font-size: 15px;
  font-weight: 700;

  text-decoration: none;

  border-bottom: 1px solid var(--amlc-border);
}

.amlc-mobile-nav__panel li:last-child a {
  border-bottom: 0;
}

/* Focus */

.amlc-site-header :where(a, summary):focus-visible,
.amlc-site-footer a:focus-visible {
  outline: 3px solid var(--amlc-focus);
  outline-offset: 3px;
}


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

.amlc-site-footer {
  background: var(--amlc-white);

  border-top: 1px solid var(--amlc-border);

  color: var(--amlc-text);
}

.amlc-footer__main {
  padding-block: 56px;
}

.amlc-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.amlc-footer__brand {
  max-width: 400px;
}

.amlc-footer__description {
  margin-top: 20px;

  font-size: 14px;
  line-height: 1.8;
}

.amlc-footer__nav ul {
  display: flex;
  flex-wrap: wrap;

  gap: 14px 22px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.amlc-footer__nav a {
  color: var(--amlc-blue);

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;
}

.amlc-footer__nav a:hover {
  text-decoration: underline;
}

/* Footer Bottom */

.amlc-footer__bottom {
  padding: 20px 0;

  background: var(--amlc-bg-sky);

  border-top: 1px solid var(--amlc-border);
}

.amlc-footer__bottom-inner {
  display: flex;

  align-items: center;
  justify-content: space-between;
  gap: 20px;

  font-size: 12px;
  color: var(--amlc-text-muted);
}

/* Back to Top */

.amlc-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border-radius: 50%;

  background: var(--amlc-bg-sky);
  color: var(--amlc-blue);

  border: 1px solid var(--amlc-border);

  text-decoration: none;
}