:root{
  --paper:#efe5d6;
  --paper2:#f5eee2;
  --ink:#2b2118;
  --muted:#6a5544;
  --accent:#d38a12;
  --accent2:#b76e00;
  --card:#f7f0e6;
  --shadow: 0 18px 40px rgba(43,33,24,.18);
  --shadow2: 0 8px 18px rgba(43,33,24,.16);
  --radius: 18px;
  --radius2: 14px;
  --max: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1100px 560px at 50% -120px, rgba(255,255,255,.85), transparent 55%),
    linear-gradient(0deg, rgba(0,0,0,.02), rgba(0,0,0,.02)),
    var(--paper);
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(239,229,214,.72);
  border-bottom:1px solid rgba(43,33,24,.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:baseline; gap:10px;
  font-weight:800;
  letter-spacing:.02em;
}
.brand .logo{
  font-size:20px;
}
.brand .tag{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}
.nav-links{
  display:flex; gap:14px; align-items:center;
}
.nav-links a{
  font-size:14px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
}
.nav-links a:hover{background:rgba(255,255,255,.55)}
.hamburger{
  width:44px; height:38px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(43,33,24,.12);
  border-radius:12px;
  background:rgba(255,255,255,.6);
  cursor:pointer;
}
.hamburger span, .hamburger span:before, .hamburger span:after{
  content:"";
  display:block;
  width:18px; height:2px; background:var(--ink);
  position:relative;
  border-radius:2px;
}
.hamburger span:before{position:absolute; top:-6px; left:0}
.hamburger span:after{position:absolute; top:6px; left:0}

.hero{
  position:relative;
  padding:34px 0 10px;
}
.hero-card{
  position:relative;
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.35);
}
.hero-bg{
  height: 420px;
  background: url("../img/hero.jpg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.02);
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.10) 62%, rgba(0,0,0,.0));
}
.hero-content{
  position:absolute; inset:0;
  display:flex; align-items:center;
  padding: 36px 36px;
}
.hero-copy{
  max-width: 560px;
}
.hero-copy h1{
  margin:0 0 12px;
  font-size: 44px;
  line-height:1.12;
  color:#fff;
  text-shadow: 0 8px 20px rgba(0,0,0,.35);
  letter-spacing:.02em;
}
.hero-copy p{
  margin:0 0 20px;
  color: rgba(255,255,255,.92);
  font-weight:700;
  line-height:1.7;
  text-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.hero-actions{
  display:flex; gap:14px; flex-wrap:wrap;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:14px 18px;
  border-radius: 14px;
  font-weight:900;
  letter-spacing:.02em;
  border:1px solid rgba(0,0,0,.08);
  cursor:pointer;
  user-select:none;
}
.btn.primary{
  background: linear-gradient(180deg, #f2b03c, var(--accent2));
  color: #23170f;
  box-shadow: 0 14px 22px rgba(211,138,18,.25);
}
.btn.primary:hover{filter:brightness(1.03)}
.btn.ghost{
  background: rgba(255,255,255,.84);
  color: #2b2118;
  border:1px solid rgba(255,255,255,.55);
}
.btn.ghost:hover{background:rgba(255,255,255,.92)}
.btn .arrow{font-weight:900}

.search-wrap{
  margin: -28px auto 8px;
  position:relative;
}
.search-card{
  background: rgba(247,240,230,.92);
  border: 1px solid rgba(43,33,24,.10);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  padding: 20px 20px;
  display:grid;
  grid-template-columns: 180px 1fr 120px;
  gap:14px;
  align-items:center;
}
.search-title{
  font-weight:900;
  font-size:24px;
}
.search-hint{
  grid-column: 1 / -1;
  font-size:13px;
  color:var(--muted);
  margin-top:-6px;
  font-weight:700;
}
.input{
  width:100%;
  padding:14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(43,33,24,.14);
  background: rgba(255,255,255,.86);
  font-size:16px;
}
.search-btn{
  background: linear-gradient(180deg, #f2b03c, var(--accent2));
  border:none;
  color:#23170f;
  font-weight:900;
  border-radius: 14px;
  padding: 12px 14px;
  cursor:pointer;
}
.search-btn:hover{filter:brightness(1.03)}
.note{
  font-size:13px;
  color:var(--muted);
  font-weight:800;
}

.section{
  padding: 26px 0;
}
.section-title{
  display:flex; align-items:center; justify-content:center;
  gap:18px;
  margin: 8px 0 18px;
}
.section-title h2{
  margin:0;
  font-size:32px;
  letter-spacing:.06em;
}
.rule{
  flex:1;
  max-width: 220px;
  height:2px;
  background: linear-gradient(90deg, transparent, rgba(43,33,24,.35), transparent);
}

.grid{
  display:grid;
  gap:18px;
}
.grid.three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(43,33,24,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.card .thumb{
  height: 190px;
  background: #ddd center/cover no-repeat;
}
.card .body{
  padding: 14px 14px 16px;
}
.card h3{
  margin: 0 0 8px;
  font-size: 18px;
}
.badges{
  display:flex; gap:8px; flex-wrap:wrap;
  margin: 0 0 12px;
}
.badge{
  padding:6px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight:900;
  letter-spacing:.02em;
  color: var(--muted);
  background: rgba(239,229,214,.9);
  border:1px solid rgba(43,33,24,.10);
}
.card .cta{
  display:flex;
}
.card .cta a{
  width:100%;
  text-align:center;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f2b03c, var(--accent2));
  font-weight:900;
  color:#23170f;
}
.card .cta a:hover{filter:brightness(1.03)}

footer{
  padding: 28px 0 34px;
  color: rgba(43,33,24,.7);
  text-align:center;
  font-weight:800;
}

/* Responsive */
@media (max-width: 980px){
  .hero-copy h1{font-size:38px}
  .search-card{grid-template-columns: 1fr; gap:10px}
  .search-title{font-size:22px}
  .grid.three{grid-template-columns: 1fr}
  .hero-bg{height: 460px}
}
@media (max-width: 520px){
  .hero-content{padding: 26px 18px}
  .hero-copy h1{font-size:32px}
  .hero-copy p{font-size:14px}
}

/* mobile menu */
.nav-links{transition: all .2s ease}
@media (max-width: 980px){
  .nav-links{
    position:fixed;
    right:18px; top:64px;
    background: rgba(247,240,230,.96);
    border:1px solid rgba(43,33,24,.12);
    box-shadow: var(--shadow2);
    padding:10px;
    border-radius: 16px;
    display:none;
    flex-direction:column;
    min-width: 180px;
  }
  .nav-links.open{display:flex}
}
