/* Taste of Japan — polished, readable styles v4 */
:root{
  --ink:#1a1a18;
  --muted:#5a5a54;
  --line:#e8e4da;
  --line-dark:#d4d0c4;
  --bg:#fbfaf7;
  --paper:#ffffff;
  --accent:#b3332b;
  --gold:#a87b1f;
  --serif:'Shippori Mincho','Hiragino Mincho ProN',Georgia,serif;
  --sans:system-ui,-apple-system,'Segoe UI','Noto Sans JP',sans-serif;
  --shadow-sm:0 1px 3px rgba(0,0,0,.06);
  --shadow-md:0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:0 8px 24px rgba(0,0,0,.12);
  --radius:12px;
  --radius-sm:8px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--bg);
  line-height:1.8;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(960px,92%);margin-inline:auto}
button{font:inherit;cursor:pointer}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}
.brand{
  font-family:var(--serif);font-weight:700;font-size:1.15rem;color:var(--ink);
  display:flex;align-items:center;gap:10px;
}
.brand:hover{text-decoration:none}
.brand__sub{font-size:.6rem;font-weight:400;letter-spacing:.14em;color:var(--muted)}
.nav-menu{display:flex;gap:4px}
.nav-link{
  color:var(--ink);font-size:.92rem;font-weight:500;
  padding:7px 14px;border-radius:6px;
}
.nav-link:hover{background:#f0ede4;text-decoration:none}
.nav-link.active{background:var(--ink);color:#fff}
.nav-toggle{
  display:none;background:none;border:1px solid var(--line-dark);
  border-radius:6px;padding:8px 14px;font-size:1rem;color:var(--ink);
}

/* ---------- hero ---------- */
.hero{
  padding:96px 0 72px;
  background:
    radial-gradient(circle at 85% 15%,rgba(179,51,43,.04) 0%,transparent 50%),
    radial-gradient(circle at 10% 90%,rgba(168,123,31,.04) 0%,transparent 40%);
  overflow:hidden;
}
.hero__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.hero__eyebrow{
  font-size:.78rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent);margin-bottom:18px;
}
.hero h1{
  font-family:var(--serif);font-size:clamp(2.2rem,5.2vw,3.4rem);
  font-weight:700;line-height:1.25;margin-bottom:24px;
}
.hero__lede{max-width:64ch;color:#3d3d3a;margin-bottom:28px;font-size:1.08rem;line-height:1.85}
.hero__links{font-size:.95rem;color:var(--muted)}
.hero__links a{margin:0 2px}
.hero__visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:360px;
}
.hero__circle{
  width:280px;
  height:280px;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 30%,rgba(255,255,255,.6) 0%,transparent 60%),
    linear-gradient(135deg,#c8452c 0%,#e0523f 30%,#d98e4a 60%,#c9963b 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 24px 48px rgba(200,69,44,.28),inset 0 0 0 12px rgba(255,253,248,.5);
  animation:heroFloat 6s ease-in-out infinite;
}
.hero__emoji{
  font-size:120px;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.25));
}
.hero__float{
  position:absolute;
  font-size:44px;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.18));
  animation:floaty 5s ease-in-out infinite;
}
.hero__float--1{top:8%;left:12%;animation-delay:.5s}
.hero__float--2{top:16%;right:8%;animation-delay:1.2s}
.hero__float--3{bottom:12%;left:6%;animation-delay:2s}
.hero__float--4{bottom:6%;right:16%;animation-delay:2.8s}
.hero__float--5{top:48%;left:2%;animation-delay:3.5s}
.hero__float--6{top:44%;right:0;animation-delay:4.2s}
@keyframes heroFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-12px)}
}
@keyframes floaty{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-14px) rotate(8deg)}
}

/* ---------- sections ---------- */
.section{padding:88px 0}
.section--tint{background:#f2efe6;border-block:1px solid var(--line)}
.section-head{margin-bottom:40px}
.section-title{
  font-family:var(--serif);font-size:clamp(1.7rem,3.4vw,2.2rem);
  font-weight:700;line-height:1.35;margin-bottom:14px;
}
.section-lede{color:#3d3d3a;max-width:60ch;font-size:1.02rem}
.featured-line{font-size:.95rem;color:#3d3d3a}
.linklike{
  background:none;border:0;padding:0;color:var(--accent);
  font-weight:600;text-decoration:underline;text-underline-offset:3px;
}

/* ---------- filters ---------- */
.filters{
  display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px;
}
.filters input,.filters select{
  font:inherit;font-size:.95rem;color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line-dark);border-radius:var(--radius-sm);
  padding:11px 16px;outline:none;
  box-shadow:var(--shadow-sm);
}
.filters input{flex:1 1 240px}
.filters input:focus,.filters select:focus{border-color:var(--ink)}
.filters select{
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b6b66'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:36px;
}
.result-count{font-size:.88rem;color:var(--muted);margin-bottom:12px}

/* ---------- restaurant list ---------- */
.resto-list{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:16px;
}
.resto{
  display:flex;flex-direction:column;gap:12px;
  padding:20px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease;
  box-shadow:var(--shadow-sm);
}
.resto:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}
.resto:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.resto__icon{
  width:52px;height:52px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;font-size:28px;
  background:hsl(var(--h) 45% 90%);
  border:1px solid hsl(var(--h) 35% 78%);
}
.resto__name{font-weight:600;font-size:1.08rem}
.resto__name .jp{font-weight:400;font-size:.82em;color:var(--muted);margin-left:8px}
.resto__meta{font-size:.86rem;color:var(--muted);margin-top:3px}
.resto__rating{font-size:.98rem;margin-top:auto}
.resto__rating .star{color:var(--gold)}
.resto__rating small{color:var(--muted)}
.resto__price{font-size:.86rem;color:var(--muted);margin-top:4px}
.resto__price b{color:var(--ink);font-weight:600}

/* ---------- food guide ---------- */
.guide-list{list-style:none;counter-reset:guide}
.guide-list li{
  counter-increment:guide;
  display:flex;gap:20px;align-items:flex-start;
  padding:24px 0;border-bottom:1px solid var(--line);
}
.guide-list li:last-child{border-bottom:0}
.guide-list li::before{
  content:counter(guide,decimal-leading-zero);
  flex:none;font-family:var(--serif);font-weight:700;
  color:var(--line-dark);font-size:1.5rem;width:2.2em;padding-top:2px;
}
.guide-list__emoji{flex:none;font-size:30px;line-height:1.4}
.guide-list h3{font-family:var(--serif);font-size:1.15rem;margin-bottom:5px}
.guide-list p{font-size:.96rem;color:#3d3d3a;line-height:1.8}
.guide-list__try{font-size:.88rem;color:var(--accent);font-weight:600;margin-top:8px}

/* ---------- etiquette ---------- */
.etiquette-cols{display:grid;grid-template-columns:1fr 1fr;gap:48px}
.etiquette-hd{
  font-family:var(--serif);font-size:1.15rem;margin-bottom:18px;
  padding-bottom:10px;border-bottom:2px solid var(--line-dark);
}
.etiquette-hd.do{color:#48622f;border-color:#48622f}
.etiquette-hd.dont{color:var(--accent);border-color:var(--accent)}
.rule-list{list-style:none;display:flex;flex-direction:column;gap:14px}
.rule-list li{font-size:.96rem;color:#3d3d3a;padding-left:22px;position:relative;line-height:1.8}
.rule-list li::before{
  content:"";position:absolute;left:0;top:.68em;
  width:8px;height:8px;border-radius:50%;background:var(--line-dark);
}
.rule-list li b{color:var(--ink)}

/* ---------- phrases ---------- */
.phrase-table{
  width:100%;border-collapse:collapse;background:var(--paper);
  border:1px solid var(--line-dark);font-size:.96rem;
  border-radius:var(--radius);
  overflow:hidden;
}
.phrase-table th{
  text-align:left;font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);padding:14px 18px;border-bottom:1px solid var(--line-dark);
  background:#f2efe6;
}
.phrase-table td{padding:14px 18px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.75}
.phrase-table tr:last-child td{border-bottom:0}
.phrase-table tr:hover td{background:#faf8f1}
.phrase-table td[lang="ja"]{font-size:1.15rem;font-weight:600;white-space:nowrap}
.phrase-table td:nth-child(2){font-style:italic;color:var(--accent);white-space:nowrap}

/* ---------- faq ---------- */
.faq-list{max-width:760px;border-top:1px solid var(--line-dark)}
.faq-item{border-bottom:1px solid var(--line-dark)}
.faq-item summary{
  list-style:none;cursor:pointer;padding:20px 4px;
  font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:16px;
  font-size:1.08rem;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-weight:400;color:var(--muted);font-size:1.25rem}
.faq-item[open] summary::after{content:"–"}
.faq-item p{padding:0 4px 22px;color:#3d3d3a;font-size:.96rem;line-height:1.85}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);padding:48px 0 36px}
.footer__brand{font-family:var(--serif);font-weight:700;font-size:1.1rem;margin-bottom:10px}
.footer__note{font-size:.86rem;color:var(--muted);max-width:60ch}
.footer__links{font-size:.88rem;margin-top:16px}
.footer__links a{margin:0 8px}

/* ---------- ad slot ---------- */
.ad-slot{margin:32px 0;min-height:110px;border:1px dashed var(--line-dark);background:#f4f1e8;border-radius:var(--radius)}

/* ---------- sub pages ---------- */
.sub-title{font-family:var(--serif);font-size:1.15rem;font-weight:700;margin:28px 0 10px}
.plain-list{list-style:none;display:flex;flex-direction:column;gap:10px;font-size:.95rem;color:#3d3d3a}
.plain-list li{padding-left:20px;position:relative}
.plain-list li::before{content:"";position:absolute;left:0;top:.65em;width:7px;height:7px;border-radius:50%;background:var(--line-dark)}
.footer__copy{font-size:.8rem;color:var(--muted);margin-top:24px}

/* ---------- modal ---------- */
.modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:20px}
.modal.open{display:flex}
.modal__overlay{position:absolute;inset:0;background:rgba(30,30,28,.55)}
.modal__panel{
  position:relative;background:var(--paper);max-width:620px;width:100%;
  max-height:88vh;overflow-y:auto;border:1px solid var(--line-dark);
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
}
.modal__close{
  position:absolute;top:12px;right:12px;z-index:2;
  width:36px;height:36px;border:1px solid var(--line-dark);border-radius:6px;
  background:var(--paper);color:var(--ink);font-size:.95rem;
}
.modal__close:hover{background:#f0ede4}
.modal__head{
  display:flex;gap:18px;align-items:center;
  padding:28px 32px;border-bottom:1px solid var(--line);
  background:hsl(var(--h) 45% 92%);
}
.modal__head .resto__icon{width:60px;height:60px;font-size:32px}
.modal__head h3{font-family:var(--serif);font-size:1.4rem;line-height:1.3}
.modal__head h3 .jp{font-size:.65em;color:var(--muted);font-weight:400;margin-left:8px}
.modal__head .meta{font-size:.86rem;color:var(--muted);margin-top:3px}
.modal__head .meta .star{color:var(--gold)}
.modal__body{padding:28px 32px 32px}
.modal__body p{font-size:.95rem;color:#3d3d3a;line-height:1.8}
.modal__body h4{
  font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);margin:24px 0 10px;font-weight:700;
}
.modal__list{list-style:none;display:flex;flex-direction:column;gap:8px}
.modal__list li{display:flex;gap:12px;font-size:.94rem;color:#3d3d3a;line-height:1.7}
.modal__list .li-icon{flex:none}
.modal__tags{display:flex;flex-wrap:wrap;gap:8px}
.modal__tags span{
  font-size:.78rem;font-weight:600;color:var(--ink);
  border:1px solid var(--line-dark);border-radius:999px;padding:3px 12px;
}
.modal__actions{margin-top:28px;display:flex;gap:12px;flex-wrap:wrap}
.btn{
  display:inline-block;padding:10px 20px;border-radius:6px;
  font-size:.92rem;font-weight:600;text-decoration:none;border:1px solid var(--ink);
}
.btn--primary{background:var(--ink);color:#fff}
.btn--primary:hover{text-decoration:none;background:#000}
.btn--ghost{background:var(--paper);color:var(--ink)}
.btn--ghost:hover{background:#f0ede4;text-decoration:none}

/* ---------- responsive ---------- */
@media (max-width:760px){
  html{scroll-padding-top:104px}
  body{font-size:15px}
  .nav-toggle{display:block}
  .nav-menu{
    position:fixed;inset:64px 0 auto 0;flex-direction:column;
    background:var(--bg);border-bottom:1px solid var(--line);
    padding:12px 4% 18px;gap:2px;
    transform:translateY(-130%);transition:transform .25s ease;
  }
  .nav-menu.open{transform:translateY(0)}
  .nav-link{padding:12px 14px}
  .hero{padding:56px 0 44px}
  .hero__grid{grid-template-columns:1fr;gap:40px;text-align:center}
  .hero__lede{margin-inline:auto}
  .hero__links{margin-inline:auto}
  .hero__visual{order:-1;min-height:240px}
  .hero__circle{width:200px;height:200px}
  .hero__emoji{font-size:80px}
  .hero__float{font-size:32px}
  .hero h1{font-size:1.9rem}
  .hero__lede{font-size:.98rem}
  .section{padding:64px 0}
  .section-head{margin-bottom:28px}
  .section-title{font-size:1.5rem}
  .resto-list{grid-template-columns:1fr}
  .resto{flex-direction:row;align-items:center;gap:14px;padding:16px}
  .resto__icon{width:44px;height:44px;font-size:22px}
  .resto__name{font-size:.98rem}
  .resto__meta{font-size:.78rem}
  .resto__rating{font-size:.86rem}
  .resto__price{font-size:.8rem}
  .etiquette-cols{grid-template-columns:1fr}
  .etiquette-hd{font-size:1.05rem}
  .rule-list li{font-size:.88rem}
  .guide-list li{gap:14px;padding:18px 0}
  .guide-list__emoji{font-size:24px}
  .guide-list h3{font-size:1rem}
  .guide-list p{font-size:.86rem}
  .guide-list__try{font-size:.8rem}
  .faq-item summary{font-size:.95rem;padding:16px 4px}
  .faq-item p{font-size:.88rem}
  .phrase-table{font-size:.84rem;border:0;background:transparent}
  .phrase-table thead{display:none}
  .phrase-table,.phrase-table tbody,.phrase-table tr,.phrase-table td{display:block;width:100%}
  .phrase-table tr{
    background:var(--paper);border:1px solid var(--line-dark);
    border-radius:10px;margin-bottom:12px;padding:14px 16px;
  }
  .phrase-table tr:hover td{background:transparent}
  .phrase-table td{border:0;padding:4px 0;font-size:.86rem}
  .phrase-table td[lang="ja"]{font-size:1.2rem;padding-bottom:8px}
  .phrase-table td:nth-child(2){font-size:.8rem}
  .phrase-table td:nth-child(3){font-weight:600;color:var(--ink)}
  .phrase-table td:nth-child(4){font-size:.8rem;color:var(--muted);padding-top:6px}
  .modal__body{padding:20px 22px 24px}
  .modal__head{padding:20px 22px;gap:14px}
  .modal__head .resto__icon{width:50px;height:50px;font-size:26px}
  .modal__head h3{font-size:1.2rem}
  .modal__head .meta{font-size:.78rem}
  .sub-title{font-size:1.05rem;margin:22px 0 8px}
  .plain-list{font-size:.88rem}
  .site-footer{padding:36px 0 28px}
  .footer__brand{font-size:1.05rem}
  .footer__note{font-size:.8rem}
  .footer__copy{font-size:.74rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
