/*
Theme Name: Tokyo Bay Online
Theme URI: https://example.com/tokyobayonline
Author: Codex
Description: Tokyo Bay area information portal theme based on the provided HTML/CSS design.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tokyobayonline
*/

:root {
  --blue: #0758bf;
  --deep-blue: #003f9a;
  --sky: #39a9f5;
  --aqua: #74d1dd;
  --ink: #073f93;
  --muted: #5f7da8;
  --line: #d7e6f7;
  --bg: #f8fbff;
  --card: #ffffff;
  --shadow: 0 14px 34px rgba(3, 72, 149, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(86, 188, 250, .16), transparent 26rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 46%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
}

:target {
  scroll-margin-top: 165px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(7, 72, 151, .06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar,
.main-nav,
main,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  min-height: 102px;
  display: grid;
  grid-template-columns: 230px minmax(280px, 1fr) 330px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--deep-blue);
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 230px;
  height: 82px;
  object-fit: contain;
}

.site-search {
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 56px;
  border: 1px solid #bfd2eb;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
}

.site-search input {
  min-width: 0;
  border: 0;
  padding: 0 24px;
  color: var(--ink);
  font-size: 15px;
  outline: 0;
}

.site-search button,
.primary-btn {
  border: 0;
  color: #fff;
  background: var(--blue);
}

.site-search button {
  display: grid;
  place-items: center;
  border-radius: 0 26px 26px 0;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep-blue);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-link {
  display: none;
}

.quick-nav,
.main-nav,
.category-grid,
.social {
  display: flex;
  align-items: center;
}

.quick-nav {
  justify-content: space-between;
  gap: 10px;
}

.quick-nav a,
.main-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--deep-blue);
  font-weight: 700;
}

.quick-nav a {
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}

.quick-nav svg {
  width: 23px;
  height: 23px;
}

.main-nav {
  justify-content: center;
  min-height: 48px;
  gap: 0;
}

.main-nav a {
  min-width: 118px;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  border-left: 1px solid var(--line);
}

.main-nav a:last-child {
  border-right: 1px solid var(--line);
}

main {
  padding: 22px 0 0;
}

.hero {
  position: relative;
}

.hero-panel {
  min-height: 314px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dff6ff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bay {
  background: url("assets/banner-main-source.png") center center / cover no-repeat;
}

.slide-bay .hero-copy {
  display: none;
}

.custom-hero {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.slide-night {
  background:
    linear-gradient(90deg, rgba(228, 244, 255, .98) 0%, rgba(224, 242, 255, .9) 36%, rgba(224, 242, 255, .26) 58%, rgba(224, 242, 255, 0) 76%),
    url("assets/hero-night-clean.png") right center / 48% 100% no-repeat,
    linear-gradient(135deg, #eaf8ff 0%, #b8dcff 46%, #276acb 100%);
}

.slide-family {
  background:
    linear-gradient(90deg, rgba(238, 250, 244, .98) 0%, rgba(231, 249, 242, .92) 35%, rgba(231, 249, 242, .22) 58%, rgba(231, 249, 242, 0) 76%),
    url("assets/hero-family-clean.png") right center / 50% 100% no-repeat,
    linear-gradient(135deg, #edfff9 0%, #b8e5f4 48%, #68b8df 100%);
}

.hero-copy {
  position: absolute;
  inset: 45px auto auto 90px;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 16px;
  color: #003f9a;
  font-size: 34px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: .14em;
}

.hero-copy p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.primary-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #c9dbef;
  border-radius: 14px;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 60, 140, .14);
}

.slider-arrow.left {
  left: -13px;
}

.slider-arrow.right {
  right: -13px;
}

.dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: flex;
  gap: 13px;
  transform: translateX(-50%);
}

.dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
}

.dots .active {
  background: var(--blue);
}

.info-cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.info-card {
  min-height: 170px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  padding: 32px 100px 24px 24px;
  color: #fff;
}

.info-card > :not(img) {
  position: relative;
  z-index: 1;
}

.info-card.blue { background: url("assets/banner-card-sight-source.png") center center / cover no-repeat; }
.info-card.aqua { background: url("assets/banner-card-food-source.png") center center / cover no-repeat; }
.info-card.purple { background: url("assets/banner-card-event-source.png") center center / cover no-repeat; }

.info-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -67px;
  bottom: -66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.info-card::after,
.info-card .icon-bubble,
.info-card h2,
.info-card p,
.info-card > img {
  display: none;
}

.info-card > div:not(.icon-bubble) {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.info-card a {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0;
  background: transparent;
}

.info-card img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 100%;
  object-fit: cover;
  border-radius: 120px 0 0 0;
  z-index: 0;
}

.icon-bubble {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
}

.icon-bubble img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 50%;
}

.content-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

.section-block {
  margin-bottom: 30px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2,
.categories h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-blue);
  font-size: 20px;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-width: 0;
  position: relative;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 12px;
}

.feature-card span {
  position: absolute;
  top: 126px;
  left: 10px;
  padding: 3px 9px;
  color: var(--blue);
  background: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 5px 13px rgba(8, 79, 161, .16);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}

.feature-card p {
  margin: 0;
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.area-carousel {
  position: relative;
  padding: 0 46px 24px;
}

.area-viewport {
  overflow: hidden;
}

.area-track {
  display: flex;
  gap: 14px;
  transition: transform .4s ease;
  will-change: transform;
}

.area-arrow {
  position: absolute;
  top: 44px;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 6px 14px rgba(7, 78, 160, .12);
  cursor: pointer;
}

.area-arrow.left {
  left: 0;
}

.area-arrow.right {
  right: 0;
}

.area-card {
  flex: 0 0 calc((100% - 42px) / 4);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.area-card img {
  width: 100%;
  height: 82px;
  object-fit: cover;
}

.area-card strong {
  display: block;
  padding: 10px 11px 12px;
  font-size: 13px;
}

.area-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.area-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7d8f2;
  cursor: pointer;
}

.area-dots .active {
  background: var(--blue);
}

.member-strip {
  margin: 20px 0 34px;
  min-height: 98px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 20px 26px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 235, 238, .92), rgba(232, 245, 255, .94)),
    linear-gradient(120deg, transparent 80%, rgba(8, 88, 191, .14));
}

.member-strip h2 {
  margin: 0;
  font-size: 22px;
}

.member-perks {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 800;
}

.member-perks span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.member-perks svg {
  width: 34px;
  height: 34px;
}

.categories {
  margin-bottom: 30px;
}

.category-grid {
  margin-top: 24px;
  justify-content: space-between;
  gap: 12px;
}

.category-grid a {
  min-width: 72px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 800;
}

.category-grid img {
  width: 57px;
  height: 57px;
  object-fit: contain;
  border-radius: 50%;
}

.instagram {
  margin-bottom: 48px;
  padding: 20px 18px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef8ff, #dff1ff);
}

.instagram-slider {
  position: relative;
  padding: 0 40px 22px;
}

.insta-viewport {
  overflow: hidden;
}

.insta-track {
  display: flex;
  gap: 9px;
  transition: transform .4s ease;
  will-change: transform;
}

.insta-item {
  flex: 0 0 calc((100% - 36px) / 5);
}

.insta-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(7, 78, 160, .12);
}

.insta-arrow {
  position: absolute;
  top: calc(50% - 16px);
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 6px 14px rgba(7, 78, 160, .12);
  cursor: pointer;
}

.insta-arrow.left {
  left: 0;
}

.insta-arrow.right {
  right: 0;
}

.insta-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.insta-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7d8f2;
  cursor: pointer;
}

.insta-dots .active {
  background: var(--blue);
}

.sidebar {
  display: grid;
  gap: 22px;
}

.notice-box,
.banner-box,
.side-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.notice-box {
  padding: 24px 22px;
}

.notice-box h2,
.banner-box h2 {
  margin: 0 0 16px;
  font-size: 17px;
}

.notice-box article {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.notice-box time {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.notice-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

.outline-btn {
  width: 100%;
  margin-top: 12px;
  color: var(--blue);
  border: 1px solid #bfd2eb;
  background: #fff;
}

.side-card {
  position: relative;
  overflow: hidden;
}

.side-card img {
  width: 100%;
  height: 143px;
  object-fit: cover;
}

.side-card div {
  position: absolute;
  inset: 20px auto auto 20px;
}

.side-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.55;
}

.side-card p {
  width: 140px;
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.7;
  font-weight: 800;
}

.side-card .primary-btn {
  min-height: 31px;
  padding: 0 13px;
  font-size: 11px;
}

.banner-box {
  padding: 18px 14px;
}

.banner-box a {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 6px;
}

.banner-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer {
  color: var(--deep-blue);
  background: #fff;
}

.wave {
  height: 78px;
  background: url("assets/footer-wave-image.png") center bottom / cover no-repeat;
  border-bottom: 1px solid #b8e1f5;
}

.footer-columns {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.footer-column,
.footer-widget {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column h2,
.footer-widget h2 {
  margin: 0 0 8px;
  color: var(--deep-blue);
  font-size: 15px;
}

.footer-column a,
.footer-widget a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-column-menu {
  display: grid;
  gap: 9px;
}

.footer-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 245px 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand img {
  width: 178px;
  height: 62px;
}

.footer-inner nav {
  display: flex;
  justify-content: center;
  gap: 0;
}

.footer-inner nav a {
  padding: 0 22px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.footer-inner nav a:last-child {
  border-right: 1px solid var(--line);
}

.social {
  justify-content: flex-end;
  gap: 18px;
}

.social nav {
  display: flex;
  gap: 18px;
}

.social a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep-blue);
  background: #fff;
  box-shadow: 0 8px 18px rgba(3, 72, 149, .08);
}

.social a:hover {
  color: #fff;
  background: var(--blue);
}

.social-label {
  display: block;
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.social a[aria-label="Facebook"] .social-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.page-shell {
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
  padding: 46px 0 64px;
}

.page-shell-wide {
  width: min(1180px, calc(100% - 48px));
}

.archive-grid {
  margin-top: 0;
}

.page-header {
  margin-bottom: 24px;
  color: var(--deep-blue);
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.35;
}

.page-header time,
.post-card time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.entry-content-wrap,
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.entry-content-wrap {
  padding: 32px;
}

.entry-content {
  color: #143f7f;
  font-size: 16px;
  line-height: 1.9;
}

.entry-content a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

.entry-content h2,
.entry-content h3 {
  color: var(--deep-blue);
  line-height: 1.45;
}

.entry-content iframe,
.google-map {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(7, 78, 160, .12);
}

.entry-hero img {
  width: 100%;
  max-height: 420px;
  margin-bottom: 24px;
  object-fit: cover;
  border-radius: 8px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-list .pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.page-numbers {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
}

.page-numbers.current {
  color: #fff;
  background: var(--blue);
}

.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 16px;
}

.post-card.no-thumbnail {
  grid-template-columns: 1fr;
}

.post-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 6px;
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.45;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.not-found {
  text-align: center;
}

@media (max-width: 860px) {
  .mobile-menu-link {
    position: fixed;
    top: 25px;
    right: 14px;
    z-index: 40;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 7px 16px rgba(7, 88, 191, .18);
  }

  .mobile-menu-link span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  }

  .hamburger-square .mobile-menu-link {
    border-radius: 8px;
  }

  .hamburger-outline .mobile-menu-link {
    border: 1px solid var(--blue);
    background: #fff;
  }

  .hamburger-outline .mobile-menu-link span {
    background: var(--blue);
    box-shadow: 0 -6px 0 var(--blue), 0 6px 0 var(--blue);
  }

  .hamburger-label .mobile-menu-link {
    width: auto;
    padding: 0 14px 0 40px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
  }

  .hamburger-label .mobile-menu-link::after {
    content: "メニュー";
  }

  .hamburger-label .mobile-menu-link span {
    position: absolute;
    left: 14px;
  }

  .topbar {
    position: relative;
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  .menu-toggle {
    position: fixed;
    top: 25px;
    right: 14px;
    z-index: 30;
    display: inline-flex !important;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
    box-shadow: 0 7px 16px rgba(7, 88, 191, .18);
  }

  .menu-toggle span,
  .menu-toggle i {
    display: none;
  }

  .menu-toggle::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  }

  .quick-nav,
  .main-nav {
    display: none;
  }

  .site-header.menu-open .quick-nav {
    width: min(100% - 48px, 1180px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 0 12px;
    overflow: visible;
  }

  .site-header.menu-open .main-nav {
    width: min(100% - 48px, 1180px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 0 14px;
    min-height: 0;
    overflow: visible;
  }

  .site-header.menu-open .main-nav a {
    min-width: 0;
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .content-grid,
  .info-cards,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card span {
    top: calc((100vw - 80px) / 2 * .8 - 28px);
  }

  .area-card {
    flex-basis: calc((100% - 28px) / 3);
  }

  .member-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .category-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .insta-item {
    flex-basis: calc((100% - 27px) / 4);
  }

  .footer-inner nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-inner nav a {
    border: 0;
  }

  .footer-inner .social {
    justify-content: center;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-shell {
    width: min(100% - 28px, 920px);
  }

  .post-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .main-nav,
  main,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .footer-columns {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
  }

  :target {
    scroll-margin-top: 175px;
  }

  .topbar {
    position: relative;
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 0 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .brand img {
    width: 178px;
    height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-self: end;
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
    box-shadow: 0 7px 16px rgba(7, 88, 191, .18);
  }

  .menu-toggle span {
    display: none;
  }

  .menu-toggle i {
    display: none;
  }

  .menu-toggle::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  }

  .site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 44px;
  }

  .quick-nav,
  .main-nav {
    display: none;
  }

  .site-header.menu-open .quick-nav {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 0 4px;
    overflow: visible;
  }

  .site-header.menu-open .main-nav {
    width: min(100% - 28px, 1180px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 0 14px;
    min-height: 0;
    overflow: visible;
  }

  .site-header.menu-open .main-nav a {
    min-width: 0;
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .hero-panel {
    min-height: 430px;
    height: 430px;
  }

  .hero-panel {
    background:
      linear-gradient(180deg, rgba(227, 248, 255, .98) 0%, rgba(220, 246, 255, .9) 46%, rgba(220, 246, 255, .28) 80%),
      url("assets/hero-photo.png") 58% bottom / auto 62% no-repeat,
      linear-gradient(180deg, #dff6ff, #aee0fb);
  }

.slide-bay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .18)),
      url("assets/banner-main-source.png") center center / cover no-repeat;
  }

  .slide-night {
    background:
      linear-gradient(180deg, rgba(228, 244, 255, .98) 0%, rgba(224, 242, 255, .9) 46%, rgba(224, 242, 255, .26) 80%),
      url("assets/hero-night-clean.png") center bottom / 100% 48% no-repeat,
      linear-gradient(135deg, #eaf8ff 0%, #b8dcff 48%, #276acb 100%);
  }

  .slide-family {
    background:
      linear-gradient(180deg, rgba(238, 250, 244, .98) 0%, rgba(231, 249, 242, .9) 46%, rgba(231, 249, 242, .24) 80%),
      url("assets/hero-family-clean.png") center bottom / 100% 48% no-repeat,
      linear-gradient(135deg, #edfff9 0%, #b8e5f4 48%, #68b8df 100%);
  }

  .hero-copy {
    inset: 30px 24px auto;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .info-card {
    padding-right: 110px;
  }

  .info-card h2,
  .info-card p,
  .info-card a {
    margin-left: 0;
  }

  .info-card h2 {
    margin-top: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card span {
    top: auto;
    bottom: 76px;
  }

  .area-carousel {
    padding-inline: 38px;
  }

  .area-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .member-perks {
    flex-wrap: wrap;
  }

  .instagram-slider {
    padding-inline: 36px;
  }

  .insta-item {
    flex-basis: calc((100% - 9px) / 2);
  }
}

@media (max-width: 640px) {
  .site-header .menu-toggle {
    position: fixed;
    top: 25px;
    right: 14px;
    z-index: 30;
    display: inline-flex !important;
  }
}
