:root{
  --bg:#f7f8fa;
  --surface:#fbfcfd;
  --line:#e6eaf0;
  --line-strong:#d9e0e8;
  --text:#16202a;
  --muted:#5f6b76;
  --muted-2:#7d8893;
  --brand:#d84b6a;
  --brand-dark:#bc3856;
  --hover-pink:#f3c8d4;
  --hover-pink-bg:#fff4f7;
  --accent:#2f80ed;
  --shadow:0 12px 32px rgba(19,35,58,.12);
  --shadow-hover:0 18px 42px rgba(19,35,58,.12);
  --container:1220px;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}

body{
  font-family:'Inter','Noto Sans JP',sans-serif;
  color:var(--text);
  line-height:1.6;
  background:
    linear-gradient(rgba(247,248,250,.78), rgba(247,248,250,.82)),
    url('../images/brand/site-bg.jpg') center top / cover fixed no-repeat,
    var(--bg);
}

img{max-width:100%;display:block;}
a{color:inherit;}
button,input,select,textarea{font:inherit;}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

.main{
  padding:22px 0 60px;
}

/* Header */
.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{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  padding:0;
}

.header-inner{
  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-pink);
  background:var(--hover-pink-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:"\25be";
  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-pink-bg);
  border:1px solid var(--hover-pink);
  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;
}

.search-box{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--line-strong);
  border-radius:14px;
  padding:0 14px;
}

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

.search-box input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  color:var(--text);
}

.header-search .search-box{
  min-width:220px;
  height:42px;
  border-radius:999px;
  padding:0 12px;
}

.header-search .search-box span{font-size:19px;}
.header-search .search-box input{font-size:13px;}

.header-search .search-btn{
  font-family:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  width:42px;
  min-width:42px;
  margin:0;
  height:42px;
  border-radius:999px;
  padding:0;
  font-size:24px;
  line-height:1;
  text-align:center;
  color:#1E3A5F;
  background:#f8fafc;
  border:1px solid #CBD5E1;
  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-pink);
  background:var(--hover-pink-bg);
  transform:translateY(-1px);
}

/* Footer */
.page-footer,
.site-footer{
  margin-top:44px;
  padding:34px 0 30px;
  background:rgba(255,255,255,.82);
  border-top:1px solid #dbe3ec;
  color:#1F2937;
}

body > .page-footer,
body > .site-footer{
  width:100%;
  margin:44px 0 0;
}

.footer-inner{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(min(100%, 260px), .72fr) minmax(0, 1.8fr);
  align-items:start;
  gap:clamp(24px, 4vw, 44px);
}

.footer-left{
  display:flex;
  align-items:flex-start;
  gap:12px;
  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;
  color:#1E3A5F;
}

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

.footer-links{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap:24px clamp(18px, 3vw, 32px);
  min-width:0;
  padding:2px 0 0;
}

.footer-group{
  display:grid;
  gap:8px;
  align-content:start;
  min-width:0;
}

.footer-heading{
  font-size:12px;
  font-weight:800;
  color:#1E3A5F;
  letter-spacing:.03em;
}

.footer-links a{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  font-size:13px;
  line-height:1.45;
  color:#475569;
  text-decoration:none;
  border-radius:4px;
  overflow-wrap:anywhere;
  transition:color .18s ease, background .18s ease;
}

.footer-links a:hover{
  color:#1E3A5F;
  background:#FCEFF4;
}

@media (max-width:780px){
  .container{width:min(var(--container), calc(100% - 24px));}

  .site-header .header-inner{
    width:min(var(--container), calc(100% - 24px));
  }

  .header-inner{
    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,
  .site-footer{
    padding:30px 0 28px;
  }

  body > .page-footer,
  body > .site-footer{
    width:100%;
  }

  .footer-inner{
    width:min(var(--container), calc(100% - 24px));
    grid-template-columns:1fr;
    gap:24px;
  }

  .footer-links{
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  }
}

@media (max-width:560px){
  body{
    background:
      linear-gradient(rgba(247,248,250,.96), rgba(247,248,250,.98)),
      url('../images/brand/site-bg.jpg') center top / cover no-repeat,
      var(--bg);
  }

  .footer-left{
    flex-direction:column;
  }

  .footer-logo{
    height:44px;
  }

  .footer-links{
    grid-template-columns:1fr;
    gap:18px;
  }
}
