/* =========================
   shuyaku common layout
========================= */

.site-header {
  width: min(1100px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 3px solid #30283a;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 5px 5px 0 #c7bdf4;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  color: #7b6ee8;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  text-shadow:
    1px 1px 0 #ffffff,
    3px 3px 0 #a8edf0;
}

.site-logo span {
  color: #ff95b9;
}

.menu-toggle {
  display: none;
}

.site-menu {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 2px solid #30283a;
  border-radius: 999px;
  background: #fff3bf;
  color: #30283a;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
  box-shadow: 3px 3px 0 #c7bdf4;
}

.account-link {
  background: #ff95b9;
  color: #ffffff;
  white-space: nowrap;
}

.site-nav a:hover,
.account-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #c7bdf4;
}

.site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 80px auto 28px;
  padding: 20px;
  border: 3px solid #30283a;
  border-radius: 18px;
  background: #fffdf6;
  box-shadow: 5px 5px 0 #8ee8df;
  text-align: center;
  color: #6c6174;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

/* =========================
   mobile hamburger
========================= */

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 24px, 1100px);
    margin-top: 14px;
    padding: 14px;
    display: block;
  }

  .site-header-top {
    width: 100%;
  }

  .site-logo {
    font-size: 25px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 3px solid #30283a;
    border-radius: 12px;
    background: #fff3bf;
    color: #30283a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 3px 3px 0 #c7bdf4;
    cursor: pointer;
  }

  .site-menu {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 3px dashed rgba(48, 40, 58, 0.28);
  }

  .site-menu.open {
    display: block;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .site-nav a {
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    font-size: 13px;
  }

  .site-account {
    margin-top: 10px;
  }

  .account-link {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }

  .site-footer {
    width: min(100% - 24px, 1100px);
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 12px;
  }

  .site-logo {
    font-size: 23px;
  }

  .menu-toggle {
    width: 42px;
    height: 36px;
    font-size: 22px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    min-height: 40px;
    font-size: 12px;
  }
}

/* =========================
   footer
========================= */

.site-footer {
  margin-top: 80px;
  padding: 42px 20px 30px;
  border-top: 4px solid #30283a;
  background:
    linear-gradient(rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle, #d9cdfa 1.5px, transparent 1.5px),
    #fff7e8;
  background-size: auto, 18px 18px, auto;
  color: #30283a;
}

.site-footer-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 4px solid #30283a;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    7px 7px 0 #c7bdf4,
    0 18px 40px rgba(70, 55, 120, 0.14);
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 10px;
  color: #30283a;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow:
    2px 2px 0 #ffffff,
    4px 4px 0 #c7bdf4;
}

.footer-brand p,
.footer-credit p,
.footer-copy {
  margin: 0;
  color: #665b70;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-nav a {
  min-height: 34px;
  padding: 7px 12px;
  border: 3px solid #30283a;
  border-radius: 999px;
  background: #fff3bf;
  color: #30283a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 3px 0 #c7bdf4;
}

.footer-nav a:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #c7bdf4;
  background: #ff95b9;
  color: #ffffff;
}

.footer-credit {
  padding: 14px 16px;
  border: 3px dashed rgba(48, 40, 58, 0.28);
  border-radius: 18px;
  background: #fff7e8;
}

.footer-credit p:first-child {
  color: #30283a;
}

.footer-copy {
  width: min(1040px, 100%);
  margin: 18px auto 0;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 800px) {
  .site-footer {
    margin-top: 56px;
    padding: 32px 12px 24px;
  }

  .site-footer-inner {
    padding: 22px 18px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-logo {
    font-size: 22px;
  }

  .footer-nav {
    gap: 8px;
  }

  .footer-nav a {
    font-size: 12px;
  }
}
