.site-header,
.page-footer{
  --bg:#f7f8fa;
  --line:#e6eaf0;
  --line-strong:#d9e0e8;
  --text:#16202a;
  --muted:#5f6b76;
  --muted-2:#7d8893;
  --brand:#004f98;
  --hover-blue:#b8d0eb;
  --hover-blue-bg:#eaf4ff;
  --accent:#2f80ed;
  --container:1220px;
  line-height:1.6;
}

.site-header{
  box-sizing:border-box;
  font-family:'Inter','Noto Sans JP',sans-serif;
  position:sticky;
  top:0;
  z-index:200;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(230,234,240,.92);
}

.site-header .header-inner{
  box-sizing:border-box;
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  padding:0;
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  min-width:0;
}

.brand-logo{
  width:136px;
  height:34px;
  border-radius:0;
  object-fit:contain;
  background:transparent;
  border:none;
  box-shadow:none;
}

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

.brand-title{
  display:block;
  font-size:14px;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1.1;
}

.brand-sub{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.header-search{
  display:flex;
  align-items:center;
  gap:8px;
  width:auto;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}

.header-city,
.header-category,
.header-language{
  display:flex;
  align-items:center;
  gap:8px;
  width:auto;
  max-width:none;
  margin:0;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-size:13px;
  font-weight:400;
  transition:all .18s ease;
}

.header-category:hover,
.header-language:hover{
  border-color:var(--hover-blue);
  background:var(--hover-blue-bg);
  transform:translateY(-1px);
}

.header-category-menu{
  position:relative;
  display:flex;
  align-items:center;
}

.header-category-menu::before{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:100%;
  height:12px;
}

.header-category-trigger{
  font:inherit;
  margin:0;
  padding:0;
  border:none;
  background:transparent;
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
}

.header-category-menu::after{
  content:"▾";
  font-size:24px;
  line-height:1;
  color:var(--muted);
  margin-top:1px;
  pointer-events:none;
}

.category-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:220px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 16px 30px rgba(19,35,58,.14);
  padding:8px;
  display:none;
  z-index:20;
}

.header-category-menu:hover .category-dropdown,
.header-category-menu:focus-within .category-dropdown{
  display:grid;
  gap:2px;
}

.category-dropdown a{
  text-decoration:none;
  font-size:13px;
  color:#2f3e4c;
  padding:8px 10px;
  border-radius:10px;
}

.category-dropdown a:hover{
  background:var(--hover-blue-bg);
  border:1px solid var(--hover-blue);
  color:var(--brand);
  transform:translateY(-1px);
}

.header-city select,
.header-category select,
.header-language select{
  font:inherit;
  border:none;
  width:auto;
  min-width:0;
  max-width:none;
  margin:0;
  padding:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  color:var(--text);
  font-weight:700;
  outline:none;
}

.header-search .search-box{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:400;
  background:rgba(255,255,255,.96);
  border:1px solid var(--line-strong);
  box-shadow:none;
  margin:0;
  min-width:220px;
  height:42px;
  border-radius:999px;
  padding:0 12px;
}

.header-search .search-box span{
  color:var(--muted-2);
  font-size:19px;
}

.header-search .search-box input{
  font:inherit;
  flex:1;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
  border:none;
  border-radius:0;
  box-shadow:none;
  outline:none;
  background:transparent;
  color:var(--text);
  font-size:13px;
}

.header-search .search-btn{
  font-family:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:0;
  margin:0;
  height:42px;
  border-radius:999px;
  padding:0 14px;
  font-size:24px;
  line-height:1;
  color:#1f5fbf;
  background:rgba(47,128,237,.20);
  border:1px solid rgba(47,128,237,.32);
  box-shadow:none;
  cursor:pointer;
}

.header-nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.header-nav a{
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  color:#34414d;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #dce4ee;
  background:rgba(255,255,255,.74);
  transition:all .18s ease;
}

.header-nav a.active{
  color:#34414d;
  border-color:#dce4ee;
  background:rgba(255,255,255,.74);
  transform:none;
}

.header-nav a:hover{
  color:var(--brand);
  border-color:var(--hover-blue);
  background:var(--hover-blue-bg);
  transform:translateY(-1px);
}

.page-footer{
  box-sizing:border-box;
  font-family:'Inter','Noto Sans JP',sans-serif;
  width:min(var(--container), calc(100% - 32px));
  margin:34px auto 0;
  padding:14px 20px 18px;
  background:linear-gradient(135deg, rgba(248,250,252,.72) 0%, rgba(238,243,249,.68) 100%);
  border:1px solid #e1e8f0;
  border-radius:24px;
  box-shadow:0 12px 24px rgba(19,35,58,.06);
  backdrop-filter:blur(6px);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:nowrap;
}

.footer-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 1 auto;
  min-width:0;
  padding-left:0;
}

.footer-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.footer-logo{
  display:block;
  width:auto;
  height:48px;
  max-width:210px;
  object-fit:contain;
  background:transparent;
  border:none;
  box-shadow:none;
  border-radius:0;
  flex-shrink:0;
}

.footer-title{
  font-size:14px;
  font-weight:800;
}

.footer-sub,
.footer-meta{
  font-size:12px;
  color:var(--muted);
}

.footer-links{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  flex:1 1 auto;
  justify-content:flex-end;
  align-items:center;
  min-width:0;
  white-space:nowrap;
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:thin;
  padding:4px 0;
}

.footer-links a{
  font-size:12px;
  color:#34414d;
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid #e2e8f0;
  transition:all .18s ease;
}

.footer-links a:hover{
  color:var(--brand);
  border-color:var(--hover-blue);
  background:var(--hover-blue-bg);
  transform:translateY(-1px);
}

@media (max-width:780px){
  .site-header .header-inner{
    width:min(var(--container), calc(100% - 24px));
    min-height:auto;
    padding:14px 0;
    align-items:flex-start;
    flex-direction:column;
  }

  .header-actions{
    width:100%;
    justify-content:flex-start;
  }

  .header-search{
    width:100%;
  }

  .header-search .search-box{
    flex:1 1 auto;
  }

  .header-actions .header-category,
  .header-actions .header-language{
    width:max-content;
  }

  .page-footer{
    width:min(var(--container), calc(100% - 24px));
    padding:16px;
  }

  .footer-inner{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .footer-left,
  .footer-links{
    width:100%;
  }

  .footer-links{
    justify-content:flex-start;
  }
}
