/*
Theme Name: ToolShelf
Version: 1.0
*/

:root{
  --text:#111;
  --muted:#666;
  --line:#e9e9e9;
  --bg:#fff;
  --card:#fff;
  --radius:18px;
  --shadow: 0 8px 28px rgba(0,0,0,.06);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui,-apple-system,"Segoe UI","Noto Sans JP",sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

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

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  height:72px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.brand .logo{
  width:34px;height:34px;border-radius:10px;
  background:#111;color:#fff;display:grid;place-items:center;
  font-size:14px;
}
.header-nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.header-nav ul{
  display:flex;
  list-style:none;
  margin:0;
  padding:0;
  gap:18px;
}
.header-nav a{
  color:#222;
  font-weight:600;
  font-size:14px;
}
.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid #ddd;
  font-weight:700;
  font-size:13px;
  background:#fff;
}
.btn.primary{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* Hero */
.hero{
  padding:64px 0 44px;
}
.hero-title{
  text-align:center;
  font-size:36px;
  font-weight:800;
  letter-spacing:-.02em;
  margin:0 0 18px;
}
.hero-search{
  display:flex;
  justify-content:center;
  margin-top:18px;
}
.search-box{
  width:min(720px, 100%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:10px;
}
.search-box input{
  border:0;
  outline:0;
  width:100%;
  font-size:15px;
}
.search-suggest{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:12px;
  font-weight:700;
  color:#333;
}

/* Sections */
.section{
  padding:42px 0;
}
.section-title{
  text-align:center;
  font-size:22px;
  margin:0 0 24px;
  font-weight:800;
}

/* Category cards (用途から探す) */
.purpose-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:14px;
}
.purpose-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 14px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  transition:.15s;
}
.purpose-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.purpose-icon{
  width:34px;height:34px;border-radius:999px;
  border:1px solid var(--line);
  display:grid;place-items:center;
  color:#555;
}
.purpose-name{ font-weight:800; font-size:13px; color:#222; }

/* New tools */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.section-head .left h2{
  margin:0;
  font-size:22px;
  font-weight:900;
}
.section-head .right a{
  font-weight:800;
  font-size:13px;
  text-decoration:underline;
}
.tool-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.tool-card{
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  padding:18px;
  display:grid;
  grid-template-columns: 120px 1fr auto;
  align-items:center;
  gap:18px;
}
.tool-thumb{
  width:120px;height:86px;
  border-radius:14px;
  background:#e9e9e9;
  overflow:hidden;
}
.tool-meta{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.tool-title{
  margin:8px 0 6px;
  font-size:20px;
  font-weight:900;
}
.tool-excerpt{
  margin:0;
  color:#555;
  font-size:13px;
  line-height:1.6;
}
.tool-right{
  display:flex;
  align-items:center;
  gap:14px;
}
.tool-price{
  font-weight:900;
  font-size:18px;
}
.arrow{
  width:42px;height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  display:grid;place-items:center;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:44px 0;
  background:#fff;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:22px;
}
.footer-brand{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.footer-brand .logo{
  width:34px;height:34px;border-radius:10px;
  background:#111;color:#fff;display:grid;place-items:center;
  font-size:14px;
}
.footer-desc{
  margin:8px 0 0;
  color:#555;
  font-size:13px;
  line-height:1.7;
}
.footer-col h3{
  margin:0 0 10px;
  font-size:13px;
  font-weight:900;
}
.footer-col a{
  display:block;
  padding:6px 0;
  color:#333;
  font-weight:700;
  font-size:13px;
}

/* Responsive */
@media (max-width: 980px){
  .purpose-grid{ grid-template-columns: repeat(3, 1fr); }
  .tool-card{ grid-template-columns: 110px 1fr; }
  .tool-right{ justify-content:flex-end; }
}
@media (max-width: 640px){
  .header-nav{ display:none; } /* まずは簡易的に非表示。必要ならSPメニュー実装 */
  .hero-title{ font-size:28px; }
  .purpose-grid{ grid-template-columns: repeat(2, 1fr); }
}
